@altnovatrail/contracts 0.19.13 → 0.19.14
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/README.md +4 -4
- package/novatrail/api/v1/account_pb.d.ts +48 -48
- package/novatrail/api/v1/account_pb.js +5 -5
- package/novatrail/api/v1/attempt_pb.d.ts +23 -22
- package/novatrail/api/v1/attempt_pb.js +7 -6
- package/novatrail/api/v1/cause_pb.d.ts +29 -28
- package/novatrail/api/v1/cause_pb.js +7 -6
- package/novatrail/api/v1/debug_pb.d.ts +10 -9
- package/novatrail/api/v1/debug_pb.js +3 -2
- package/novatrail/api/v1/learning_pb.d.ts +12 -12
- package/novatrail/api/v1/learning_pb.js +4 -4
- package/novatrail/api/v1/legal_pb.d.ts +7 -7
- package/novatrail/api/v1/legal_pb.js +3 -3
- package/novatrail/api/v1/module_pb.d.ts +4 -3
- package/novatrail/api/v1/module_pb.js +2 -1
- package/novatrail/api/v1/package_pb.d.ts +9 -9
- package/novatrail/api/v1/package_pb.js +2 -2
- package/novatrail/api/v1/paper_pb.d.ts +12 -12
- package/novatrail/api/v1/paper_pb.js +4 -3
- package/novatrail/api/v1/progress_pb.d.ts +25 -24
- package/novatrail/api/v1/progress_pb.js +4 -3
- package/novatrail/api/v1/work_pb.d.ts +7 -6
- package/novatrail/api/v1/work_pb.js +3 -2
- package/novatrail/eval/v1/report_pb.d.ts +7 -6
- package/novatrail/eval/v1/report_pb.js +1 -1
- package/novatrail/eval/v1/sample_pb.d.ts +4 -4
- package/novatrail/eval/v1/sample_pb.js +1 -1
- package/novatrail/observation/v1/observation_pb.d.ts +4 -4
- package/novatrail/observation/v1/observation_pb.js +2 -2
- package/novatrail/paper/v1/key_pb.d.ts +7 -7
- package/novatrail/paper/v1/key_pb.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ const written = toJson(ObservationSchema, observation, { useProtoFieldName: true
|
|
|
14
14
|
|
|
15
15
|
The code imports the runtime of protobuf-es, `@bufbuild/protobuf`, under Apache-2.0 and BSD-3-Clause, which the package depends on at the exact version of `protoc-gen-es` that wrote it. Take the runtime at that version too, or let npm install it with the package.
|
|
16
16
|
|
|
17
|
-
JSON of a contract names each field by its protobuf name, in snake case, as the files of `spec` do: whatever writes it passes `useProtoFieldName: true` to `toJson`. A reader takes both the protobuf name and the lowerCamelCase one, as `fromJson` does ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)
|
|
17
|
+
JSON of a contract names each field by its protobuf name, in snake case, as the files of `spec` do: whatever writes it passes `useProtoFieldName: true` to `toJson`. A reader takes both the protobuf name and the lowerCamelCase one, as `fromJson` does ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)). The package has no types of JSON: `protoc-gen-es` would spell them in lowerCamelCase.
|
|
18
18
|
|
|
19
19
|
The package is read through its `exports`, under `"moduleResolution": "nodenext"`, `"node16"` or `"bundler"`. `spec` checks its declarations with TypeScript 7 under both, strictly, and runs its code under Node.
|
|
20
20
|
|
|
21
21
|
## Test vectors
|
|
22
22
|
|
|
23
|
-
The package carries the test vectors of the rules that the device and the eval runner share — how a history of writing folds, the groups of strokes, the crop, which strokes a box of a model snaps to and which box of a workbook a stroke fills ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)
|
|
23
|
+
The package carries the test vectors of the rules that the device and the eval runner share — how a history of writing folds, the groups of strokes, the crop, which strokes a box of a model snaps to and which box of a workbook a stroke fills ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)) — each exported by its path, as JSON:
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
26
|
import { fromJson } from "@bufbuild/protobuf";
|
|
@@ -39,11 +39,11 @@ Their messages are written with the protobuf names and every field, and a reader
|
|
|
39
39
|
|
|
40
40
|
The package's version is the tag of the release of `altnovatrail/spec` it comes from, without its `v`: 0.7.0 is `v0.7.0`. Every release from the line 0.7 on carries one, even when the contracts have not changed. Take it at an exact version, the same tag as the `spec` submodule and the Go modules of `spec` you hold, and move all of them together. Leave it out of Dependabot, as the Go modules: a release of `spec` comes out with each change of its documents. Dependabot's `ignore` matches a dependency by the name the manifest gives it, `@altnovatrail/contracts` here, and `github.com/altnovatrail/spec/contracts` for the Go module.
|
|
41
41
|
|
|
42
|
-
Within a contract's package — its last part, `v1` — a release only adds. A change that breaks it comes as a new package, `v2`, beside the old one, in a new line of `spec` ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)
|
|
42
|
+
Within a contract's package — its last part, `v1` — a release only adds. A change that breaks it comes as a new package, `v2`, beside the old one, in a new line of `spec` ([the contracts' text](https://github.com/altnovatrail/spec/blob/main/contracts/README.md)).
|
|
43
43
|
|
|
44
44
|
## Checking the archive
|
|
45
45
|
|
|
46
|
-
The archive in npm is the file `altnovatrail-contracts-<version>.tgz` of that release, which the release signs with cosign and whose attestation names it. A NovaTrail repository lets the package into its code only once spec's `release-verify-npm` has accepted its lock file, in CI of the pull request that changes it (
|
|
46
|
+
The archive in npm is the file `altnovatrail-contracts-<version>.tgz` of that release, which the release signs with cosign and whose attestation names it. A NovaTrail repository lets the package into its code only once spec's `release-verify-npm` has accepted its lock file, in CI of the pull request that changes it ([RULES.md](https://github.com/altnovatrail/spec/blob/main/RULES.md)). It runs from the repository's `spec` submodule:
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
49
|
just -f spec/justfile release-verify-npm package-lock.json
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// of the section for adults; the voicing and the hint mode a learner sets; the storage of works;
|
|
10
10
|
// the own key checked when it is connected; the share of the quota of platform AI; deletion and
|
|
11
11
|
// export. What each message means, and what `app` does on each refusal, are the rules of
|
|
12
|
-
// contracts/README.md
|
|
12
|
+
// contracts/README.md for the contract between `app` and `api`.
|
|
13
13
|
|
|
14
14
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
15
15
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -73,7 +73,7 @@ export declare type CreateAccountRequest = Message<"novatrail.api.v1.CreateAccou
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* The owner's statement that they are 18 or older: true, or the request is refused
|
|
76
|
-
* `invalid_argument`. `api` keeps it with its date (
|
|
76
|
+
* `invalid_argument`. `api` keeps it with its date (П-6).
|
|
77
77
|
*
|
|
78
78
|
* @generated from field: bool adult_stated = 2;
|
|
79
79
|
*/
|
|
@@ -146,7 +146,7 @@ export declare type Account = Message<"novatrail.api.v1.Account"> & {
|
|
|
146
146
|
/**
|
|
147
147
|
* The consents for a child that have no profile yet: waiting, or confirmed and waiting for the
|
|
148
148
|
* profile. A consent taken back or withdrawn is not here: nothing of it is left but the minimal
|
|
149
|
-
* record, which names no account
|
|
149
|
+
* record, which names no account.
|
|
150
150
|
*
|
|
151
151
|
* @generated from field: repeated novatrail.api.v1.ChildConsent child_consents = 4;
|
|
152
152
|
*/
|
|
@@ -160,9 +160,9 @@ export declare type Account = Message<"novatrail.api.v1.Account"> & {
|
|
|
160
160
|
export declare const AccountSchema: GenMessage<Account>;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
|
-
* A profile, a learner in the account
|
|
163
|
+
* A profile, a learner in the account, as `api` keeps it, with its open attempt and
|
|
164
164
|
* its open lesson runs. Its date of the age given and its last activity stay in `api`; its
|
|
165
|
-
* interests come only once the module format gives a task a look by interests
|
|
165
|
+
* interests come only once the module format gives a task a look by interests.
|
|
166
166
|
*
|
|
167
167
|
* @generated from message novatrail.api.v1.Profile
|
|
168
168
|
*/
|
|
@@ -198,7 +198,7 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* The age category, by its code: "under_13", "from_13_to_consent", "from_consent_to_18" or
|
|
201
|
-
* "adult"
|
|
201
|
+
* "adult".
|
|
202
202
|
*
|
|
203
203
|
* @generated from field: string age_category = 5;
|
|
204
204
|
*/
|
|
@@ -228,14 +228,14 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* The language of the interface, a tag of BCP 47: absent when none is set, and then `app` speaks
|
|
231
|
-
* the language of the device. It goes to no AI
|
|
231
|
+
* the language of the device. It goes to no AI.
|
|
232
232
|
*
|
|
233
233
|
* @generated from field: optional string interface_language = 9;
|
|
234
234
|
*/
|
|
235
235
|
interfaceLanguage?: string | undefined;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
-
* The grade, from 1 to 12, as a module with grades asks for it
|
|
238
|
+
* The grade, from 1 to 12, as a module with grades asks for it: absent when none is given.
|
|
239
239
|
*
|
|
240
240
|
* @generated from field: optional int32 grade = 10;
|
|
241
241
|
*/
|
|
@@ -252,7 +252,7 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
252
252
|
/**
|
|
253
253
|
* The profile's open attempt of a task of a module: absent when it has none. A profile has one
|
|
254
254
|
* at most; the open attempts of tasks from paper are not named here, since only the device that
|
|
255
|
-
* holds their page goes on with them
|
|
255
|
+
* holds their page goes on with them.
|
|
256
256
|
*
|
|
257
257
|
* @generated from field: novatrail.api.v1.OpenAttemptRef open_attempt = 12;
|
|
258
258
|
*/
|
|
@@ -274,14 +274,14 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Whether a year has passed since the age was given: `app` asks the adult for the age again,
|
|
277
|
-
* `RestateAge`, and until then the category stays as it is
|
|
277
|
+
* `RestateAge`, and until then the category stays as it is.
|
|
278
278
|
*
|
|
279
279
|
* @generated from field: bool age_check_due = 15;
|
|
280
280
|
*/
|
|
281
281
|
ageCheckDue: boolean;
|
|
282
282
|
|
|
283
283
|
/**
|
|
284
|
-
* Whether the storage of the profile's works on the server is on
|
|
284
|
+
* Whether the storage of the profile's works on the server is on.
|
|
285
285
|
*
|
|
286
286
|
* @generated from field: bool work_storage = 16;
|
|
287
287
|
*/
|
|
@@ -289,7 +289,7 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
291
|
* The hint mode: whether a task from paper gets the wavy line with the words of a rung. It goes
|
|
292
|
-
* to no AI
|
|
292
|
+
* to no AI.
|
|
293
293
|
*
|
|
294
294
|
* @generated from field: novatrail.api.v1.HintMode hint_mode = 17;
|
|
295
295
|
*/
|
|
@@ -339,7 +339,7 @@ export declare const ProfileConsentSchema: GenMessage<ProfileConsent>;
|
|
|
339
339
|
|
|
340
340
|
/**
|
|
341
341
|
* The presentation style of a profile. What else it holds comes with what a module may say of it
|
|
342
|
-
* (
|
|
342
|
+
* (О-23).
|
|
343
343
|
*
|
|
344
344
|
* @generated from message novatrail.api.v1.PresentationStyle
|
|
345
345
|
*/
|
|
@@ -430,7 +430,7 @@ export declare type ProfileSettings = Message<"novatrail.api.v1.ProfileSettings"
|
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
432
|
* The language of the interface, a well-formed tag of BCP 47, which `api` keeps with no list of
|
|
433
|
-
* its own
|
|
433
|
+
* its own; empty clears it. On a new profile `app` sends the language of the section for
|
|
434
434
|
* adults.
|
|
435
435
|
*
|
|
436
436
|
* @generated from field: optional string interface_language = 5;
|
|
@@ -510,7 +510,7 @@ export declare type ChildConsent = Message<"novatrail.api.v1.ChildConsent"> & {
|
|
|
510
510
|
/**
|
|
511
511
|
* The code of the request, which the parent writes on the signed form and the operator checks the
|
|
512
512
|
* scan by: ten characters of Crockford's base32 in two groups of five, as "ABCDE-FGHJK", unique
|
|
513
|
-
* among the consents that wait. Empty at a consent that the learner gives
|
|
513
|
+
* among the consents that wait. Empty at a consent that the learner gives.
|
|
514
514
|
*
|
|
515
515
|
* @generated from field: string request_code = 6;
|
|
516
516
|
*/
|
|
@@ -1458,7 +1458,7 @@ export declare const ExportProfileRequestSchema: GenMessage<ExportProfileRequest
|
|
|
1458
1458
|
*/
|
|
1459
1459
|
export declare type ExportProfileResponse = Message<"novatrail.api.v1.ExportProfileResponse"> & {
|
|
1460
1460
|
/**
|
|
1461
|
-
* The part, `api.zip` of the export format — `export/` of `spec`
|
|
1461
|
+
* The part, `api.zip` of the export format — `export/` of `spec` —, which `app` puts into
|
|
1462
1462
|
* the file of the export as it is, without reading it.
|
|
1463
1463
|
*
|
|
1464
1464
|
* @generated from field: bytes part = 1;
|
|
@@ -1501,7 +1501,7 @@ export declare const ExportAccountRequestSchema: GenMessage<ExportAccountRequest
|
|
|
1501
1501
|
*/
|
|
1502
1502
|
export declare type ExportAccountResponse = Message<"novatrail.api.v1.ExportAccountResponse"> & {
|
|
1503
1503
|
/**
|
|
1504
|
-
* The part, `api.zip` of the export format — `export/` of `spec`
|
|
1504
|
+
* The part, `api.zip` of the export format — `export/` of `spec` —, which `app` puts into
|
|
1505
1505
|
* the file of the export as it is, without reading it.
|
|
1506
1506
|
*
|
|
1507
1507
|
* @generated from field: bytes part = 1;
|
|
@@ -1696,8 +1696,8 @@ export declare const GetQuotaResponseSchema: GenMessage<GetQuotaResponse>;
|
|
|
1696
1696
|
|
|
1697
1697
|
/**
|
|
1698
1698
|
* The share of the family day's quota of platform AI that a profile and its account have spent: a
|
|
1699
|
-
* share of a cap, never a sum in dollars and no cap
|
|
1700
|
-
* account's tariff's; the tariff itself comes with what is decided of tariffs (
|
|
1699
|
+
* share of a cap, never a sum in dollars and no cap. The caps are the
|
|
1700
|
+
* account's tariff's; the tariff itself comes with what is decided of tariffs (О-14).
|
|
1701
1701
|
*
|
|
1702
1702
|
* @generated from message novatrail.api.v1.QuotaShare
|
|
1703
1703
|
*/
|
|
@@ -1707,7 +1707,7 @@ export declare type QuotaShare = Message<"novatrail.api.v1.QuotaShare"> & {
|
|
|
1707
1707
|
* calls were settled, without the reserves of calls still going, so that within a day it only
|
|
1708
1708
|
* grows: in whole percent from 0 to 100, rounded down, so that 100 is the cap reached; spending
|
|
1709
1709
|
* past the cap is 100 too. Absent when the account's tariff has no caps: platform AI is closed to
|
|
1710
|
-
* it
|
|
1710
|
+
* it.
|
|
1711
1711
|
*
|
|
1712
1712
|
* @generated from field: optional int32 profile_percent = 1;
|
|
1713
1713
|
*/
|
|
@@ -1768,14 +1768,14 @@ export enum ConsentGiver {
|
|
|
1768
1768
|
OWNER = 1,
|
|
1769
1769
|
|
|
1770
1770
|
/**
|
|
1771
|
-
* A parent, by the signed form
|
|
1771
|
+
* A parent, by the signed form.
|
|
1772
1772
|
*
|
|
1773
1773
|
* @generated from enum value: CONSENT_GIVER_PARENT = 2;
|
|
1774
1774
|
*/
|
|
1775
1775
|
PARENT = 2,
|
|
1776
1776
|
|
|
1777
1777
|
/**
|
|
1778
|
-
* The learner themselves, from the age of digital consent of their country
|
|
1778
|
+
* The learner themselves, from the age of digital consent of their country.
|
|
1779
1779
|
*
|
|
1780
1780
|
* @generated from enum value: CONSENT_GIVER_LEARNER = 3;
|
|
1781
1781
|
*/
|
|
@@ -1869,7 +1869,7 @@ export enum VoicingSpeed {
|
|
|
1869
1869
|
export declare const VoicingSpeedSchema: GenEnum<VoicingSpeed>;
|
|
1870
1870
|
|
|
1871
1871
|
/**
|
|
1872
|
-
* A mode of the screen of a task
|
|
1872
|
+
* A mode of the screen of a task. A mode its build does not know `app` reads as "by
|
|
1873
1873
|
* steps".
|
|
1874
1874
|
*
|
|
1875
1875
|
* @generated from enum novatrail.api.v1.Mode
|
|
@@ -1903,7 +1903,7 @@ export enum Mode {
|
|
|
1903
1903
|
export declare const ModeSchema: GenEnum<Mode>;
|
|
1904
1904
|
|
|
1905
1905
|
/**
|
|
1906
|
-
* The hint mode of a profile
|
|
1906
|
+
* The hint mode of a profile.
|
|
1907
1907
|
*
|
|
1908
1908
|
* @generated from enum novatrail.api.v1.HintMode
|
|
1909
1909
|
*/
|
|
@@ -2012,7 +2012,7 @@ export enum ConsentState {
|
|
|
2012
2012
|
export declare const ConsentStateSchema: GenEnum<ConsentState>;
|
|
2013
2013
|
|
|
2014
2014
|
/**
|
|
2015
|
-
* What the check of an own key gave
|
|
2015
|
+
* What the check of an own key gave. A value its build does not know `app` words as a check
|
|
2016
2016
|
* that did not go through.
|
|
2017
2017
|
*
|
|
2018
2018
|
* @generated from enum novatrail.api.v1.OwnKeyCheck
|
|
@@ -2070,7 +2070,7 @@ export declare const OwnKeyCheckSchema: GenEnum<OwnKeyCheck>;
|
|
|
2070
2070
|
* with no `Refusal`, when the token could not be checked. A method on a profile names the right it
|
|
2071
2071
|
* needs, `can_manage`, `can_learn` or `can_view`; a method on the account itself needs the account
|
|
2072
2072
|
* of the token alone: it is an action of an adult, and the PIN in front of it is a barrier of the
|
|
2073
|
-
* interface
|
|
2073
|
+
* interface. A request without the right it needs
|
|
2074
2074
|
* gets the code `permission_denied` with no `Refusal`, and a request whose form the contract
|
|
2075
2075
|
* refuses the code `invalid_argument` with no `Refusal`. `app` reads the cause of a refusal before
|
|
2076
2076
|
* it refreshes any token:
|
|
@@ -2138,7 +2138,7 @@ export declare const AccountService: GenService<{
|
|
|
2138
2138
|
* `CAUSE_PIN_LOCKED`, `CAUSE_NO_PIN`, `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat
|
|
2139
2139
|
* with the same idempotency key gets the same check, and counts nothing again. The PIN is a
|
|
2140
2140
|
* barrier of the interface, not of the server: when to ask for it `app` decides, and no request
|
|
2141
|
-
* carries proof that it was asked
|
|
2141
|
+
* carries proof that it was asked.
|
|
2142
2142
|
*
|
|
2143
2143
|
* @generated from rpc novatrail.api.v1.AccountService.VerifyPin
|
|
2144
2144
|
*/
|
|
@@ -2192,7 +2192,7 @@ export declare const AccountService: GenService<{
|
|
|
2192
2192
|
* the category and the country alone: no pseudonym and no other field of the profile. The age in
|
|
2193
2193
|
* years `api` keeps nowhere. Below the age of digital consent of the country the consent is a
|
|
2194
2194
|
* parent's, with the code of the request that the signed form names; from it on, the learner's
|
|
2195
|
-
* own, which they give in their profile
|
|
2195
|
+
* own, which they give in their profile. Refusals: `CAUSE_COUNTRY_NOT_ACCEPTED`,
|
|
2196
2196
|
* `CAUSE_TOO_MANY_CONSENTS`, checked after the key, `CAUSE_TEXT_NOT_CURRENT`,
|
|
2197
2197
|
* `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency key gets
|
|
2198
2198
|
* the same consent, at the limit too.
|
|
@@ -2207,7 +2207,7 @@ export declare const AccountService: GenService<{
|
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Sends the scan of a parent's signed form, a photo or a PDF, for a consent of a parent that
|
|
2209
2209
|
* waits: `api` keeps it apart from its database, where the operator checks it against the code of
|
|
2210
|
-
* the request and confirms the consent or does not accept the form
|
|
2210
|
+
* the request and confirms the consent or does not accept the form. A form sent again
|
|
2211
2211
|
* takes the place of the one before. Refusals: `CAUSE_NOT_FOUND`, `CAUSE_ALREADY_EXISTS` when
|
|
2212
2212
|
* the consent is confirmed, `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the
|
|
2213
2213
|
* same idempotency key gets the same consent.
|
|
@@ -2222,7 +2222,7 @@ export declare const AccountService: GenService<{
|
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Takes back a consent with no profile, waiting or confirmed: one that waits `api` erases with
|
|
2224
2224
|
* its form, and keeps nothing of it; one confirmed leaves its minimal record and its form for
|
|
2225
|
-
* their term, as a withdrawal does
|
|
2225
|
+
* their term, as a withdrawal does. Either no longer counts toward the limit. Refusals:
|
|
2226
2226
|
* `CAUSE_NOT_FOUND`, which is the answer of a repeat too: `app` reads it as taken back already.
|
|
2227
2227
|
* It carries no idempotency key: it repeats by the consent's state.
|
|
2228
2228
|
*
|
|
@@ -2250,7 +2250,7 @@ export declare const AccountService: GenService<{
|
|
|
2250
2250
|
/**
|
|
2251
2251
|
* The learner's own consent, in their profile, before their first work: a learner from the age
|
|
2252
2252
|
* of digital consent of their country gives it, and one who reached that age confirms by it the
|
|
2253
|
-
* consent a parent gave
|
|
2253
|
+
* consent a parent gave. A learning request with the right `can_learn`, by the text
|
|
2254
2254
|
* `teen-consent`. Refusals: `CAUSE_NO_PROFILE`, `CAUSE_ADULT_NEEDED` at a profile below that age,
|
|
2255
2255
|
* and `CAUSE_TEXT_NOT_CURRENT`. It carries no idempotency key: it repeats by the profile's state,
|
|
2256
2256
|
* and a consent given already is the answer.
|
|
@@ -2265,13 +2265,13 @@ export declare const AccountService: GenService<{
|
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Withdraws the learner's own consent, as easily as it was given: a learning request with the
|
|
2267
2267
|
* right `can_learn`, which deletes the profile and everything of it, as `DeleteProfile` does, and
|
|
2268
|
-
* leaves the minimal record of the consent and the reports of a problem, as `DeleteProfile` does
|
|
2269
|
-
*
|
|
2268
|
+
* leaves the minimal record of the consent and the reports of a problem, as `DeleteProfile` does.
|
|
2269
|
+
* `app` offers the export first. Neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED`
|
|
2270
2270
|
* refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`, `ListWorks` and `GetWork`,
|
|
2271
|
-
* by which `app` builds the export, nor the other requests on the consent that
|
|
2271
|
+
* by which `app` builds the export, nor the other requests on the consent that
|
|
2272
2272
|
* contracts/README.md names. A learner who reached the age of digital consent of their country
|
|
2273
2273
|
* while a parent's consent stands, whose profile waits for their own consent, withdraws that
|
|
2274
|
-
* consent by it too, instead of confirming it
|
|
2274
|
+
* consent by it too, instead of confirming it.
|
|
2275
2275
|
* Refusals: `CAUSE_ADULT_NEEDED` at a profile whose consent an adult gave and that waits for no
|
|
2276
2276
|
* consent of the learner — the adult withdraws it by `DeleteProfile` —, and `CAUSE_NO_PROFILE`,
|
|
2277
2277
|
* which is the answer of a repeat too. It carries no
|
|
@@ -2287,7 +2287,7 @@ export declare const AccountService: GenService<{
|
|
|
2287
2287
|
/**
|
|
2288
2288
|
* The age and the country of a profile given again, by an action of an adult with the right
|
|
2289
2289
|
* `can_manage`: once the country raised its age of digital consent (`CAUSE_AGE_NEEDED`), at the
|
|
2290
|
-
* yearly refinement of the category, and with a new country
|
|
2290
|
+
* yearly refinement of the category, and with a new country. The owner's
|
|
2291
2291
|
* profile gives its country alone. `api` works out the category again, as `RequestChildConsent`
|
|
2292
2292
|
* does, and keeps the age nowhere. A category that needs another consent leaves the profile
|
|
2293
2293
|
* waiting for it: the learner's own, or a parent's, asked for with a new code of the request.
|
|
@@ -2327,7 +2327,7 @@ export declare const AccountService: GenService<{
|
|
|
2327
2327
|
},
|
|
2328
2328
|
/**
|
|
2329
2329
|
* Sets the hint mode of a profile, and nothing else, from the profile's menu: a learning request
|
|
2330
|
-
* with the right `can_learn`, of a profile of the category `adult
|
|
2330
|
+
* with the right `can_learn`, of a profile of the category `adult`. Refusals:
|
|
2331
2331
|
* `CAUSE_NO_PROFILE`, and `CAUSE_ADULT_NEEDED` for a child's profile, whose mode an adult sets
|
|
2332
2332
|
* with `UpdateProfile`.
|
|
2333
2333
|
*
|
|
@@ -2339,7 +2339,7 @@ export declare const AccountService: GenService<{
|
|
|
2339
2339
|
output: typeof SetHintModeResponseSchema;
|
|
2340
2340
|
},
|
|
2341
2341
|
/**
|
|
2342
|
-
* Switches the storage of a profile's works on the server on or off
|
|
2342
|
+
* Switches the storage of a profile's works on the server on or off. Switching it on is a
|
|
2343
2343
|
* consent by the text `storage-consent`, which the one who consents for the learner gives: an
|
|
2344
2344
|
* action of an adult with the right `can_manage`, and at a profile whose learner gave their own
|
|
2345
2345
|
* consent, the learner's learning request with the right `can_learn`. Switching it off records
|
|
@@ -2347,7 +2347,7 @@ export declare const AccountService: GenService<{
|
|
|
2347
2347
|
* too; switching it on then gets `CAUSE_NO_CONSENT`. At a profile whose learner gave their own
|
|
2348
2348
|
* consent, the learner switching on a storage that an adult switched on is no repeat: it records
|
|
2349
2349
|
* the learner's own consent by `storage-consent`, the learner its giver, in place of the
|
|
2350
|
-
* adult's
|
|
2350
|
+
* adult's. Refusals: `CAUSE_NO_PROFILE`, `CAUSE_TEXT_NOT_CURRENT`, `CAUSE_ADULT_NEEDED`
|
|
2351
2351
|
* and `CAUSE_LEARNER_DECIDES`. It carries no idempotency key: it repeats by the profile's state.
|
|
2352
2352
|
*
|
|
2353
2353
|
* @generated from rpc novatrail.api.v1.AccountService.SetWorkStorage
|
|
@@ -2360,9 +2360,9 @@ export declare const AccountService: GenService<{
|
|
|
2360
2360
|
/**
|
|
2361
2361
|
* Deletes a profile and everything of it, by an action of an adult with the right `can_manage`
|
|
2362
2362
|
* and a fresh sign-in, checked last. For a child it is the withdrawal of the parent's consent,
|
|
2363
|
-
* and leaves its minimal record
|
|
2364
|
-
* the IDs of the account, the profile and the attempt
|
|
2365
|
-
* gave their own consent too: the owner holds the account
|
|
2363
|
+
* and leaves its minimal record. The reports of a problem stay to their term without
|
|
2364
|
+
* the IDs of the account, the profile and the attempt. It deletes a profile whose learner
|
|
2365
|
+
* gave their own consent too: the owner holds the account. The profile of the owner is
|
|
2366
2366
|
* deleted the same way, and the last profile leaves the account without profiles. The answer is
|
|
2367
2367
|
* "deleted", and `app` erases the profile's database. Refusals: `CAUSE_FRESH_SIGN_IN_NEEDED`, and
|
|
2368
2368
|
* `CAUSE_NO_PROFILE`, which is the answer of a repeat too: `app` reads it as deleted already. It
|
|
@@ -2378,7 +2378,7 @@ export declare const AccountService: GenService<{
|
|
|
2378
2378
|
/**
|
|
2379
2379
|
* Deletes the account and everything of it, with the user of the sign-in service, by a fresh
|
|
2380
2380
|
* sign-in, checked last; the reports of a problem stay to their term without the IDs of the
|
|
2381
|
-
* account, the profile and the attempt
|
|
2381
|
+
* account, the profile and the attempt. The answer is "deleted", and `app` erases
|
|
2382
2382
|
* everything of the account on the device and signs out, without refreshing the token. Other
|
|
2383
2383
|
* devices learn of it by `CAUSE_ACCOUNT_GONE`. Refusals: `CAUSE_FRESH_SIGN_IN_NEEDED`; a repeat
|
|
2384
2384
|
* gets `CAUSE_ACCOUNT_GONE`. It carries no idempotency key: it repeats by the account's state.
|
|
@@ -2393,9 +2393,9 @@ export declare const AccountService: GenService<{
|
|
|
2393
2393
|
/**
|
|
2394
2394
|
* The part of a profile's export that `api` holds, by an action of an adult with the right
|
|
2395
2395
|
* `can_manage`, with no fresh sign-in, and at a profile whose learner gave their own consent, by
|
|
2396
|
-
* the learner's learning request with the right `can_learn` too
|
|
2396
|
+
* the learner's learning request with the right `can_learn` too. `app` makes the file of
|
|
2397
2397
|
* the export of it, of what the device holds and of the stored works its profile's file names,
|
|
2398
|
-
* each by `WorkService.GetWork
|
|
2398
|
+
* each by `WorkService.GetWork`. Refusals: `CAUSE_NO_PROFILE` and
|
|
2399
2399
|
* `CAUSE_ADULT_NEEDED`.
|
|
2400
2400
|
*
|
|
2401
2401
|
* @generated from rpc novatrail.api.v1.AccountService.ExportProfile
|
|
@@ -2419,7 +2419,7 @@ export declare const AccountService: GenService<{
|
|
|
2419
2419
|
/**
|
|
2420
2420
|
* Checks a key of the owner's at its provider, when it is connected, by a request with nothing of
|
|
2421
2421
|
* a learner's: on the page where the key is entered, an action of an adult with the right
|
|
2422
|
-
* `can_manage` on the owner's profile of the age category `adult
|
|
2422
|
+
* `can_manage` on the owner's profile of the age category `adult`. A provider that gave no
|
|
2423
2423
|
* answer is an outcome. Refusals: `CAUSE_NO_PROFILE`, `CAUSE_KEY_NOT_FOR_PROFILE`, and
|
|
2424
2424
|
* `CAUSE_KEY_CHECKS_EXHAUSTED` beyond the checks `api` lets the account make, with no call and
|
|
2425
2425
|
* with when the next check opens, which `app` tells the owner. The limit is checked after the
|
|
@@ -2437,7 +2437,7 @@ export declare const AccountService: GenService<{
|
|
|
2437
2437
|
* of AI that `api` makes at least — the reading of a work, the words sent with the work, and
|
|
2438
2438
|
* "explain differently", sent without it —, by the admission table and the models admitted at the
|
|
2439
2439
|
* deployment's rung, so that `app` builds no list in and offers no provider that `CheckOwnKey`
|
|
2440
|
-
* finds closed: empty at a profile whose age category is not `adult
|
|
2440
|
+
* finds closed: empty at a profile whose age category is not `adult`. An action of an
|
|
2441
2441
|
* adult with the right `can_manage`. Refusals: `CAUSE_NO_PROFILE`.
|
|
2442
2442
|
*
|
|
2443
2443
|
* @generated from rpc novatrail.api.v1.AccountService.ListOwnKeyProviders
|
|
@@ -2452,7 +2452,7 @@ export declare const AccountService: GenService<{
|
|
|
2452
2452
|
* dollars: a learning action with the right `can_learn` gets the share of its own profile alone,
|
|
2453
2453
|
* where the learner begins their work, and an action of an adult with the right `can_view` the
|
|
2454
2454
|
* account's share too, in the section for adults, so that a child never sees what the family
|
|
2455
|
-
* spends
|
|
2455
|
+
* spends. Beside either, whether a cap is reached and when the next family
|
|
2456
2456
|
* day begins. The own key spends none of it. A learning request of a profile whose consent is not
|
|
2457
2457
|
* confirmed gets `CAUSE_NO_CONSENT`, and one of a profile whose age is to be given again
|
|
2458
2458
|
* `CAUSE_AGE_NEEDED`. Refusals: `CAUSE_NO_PROFILE`. It carries no idempotency key: it repeats
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// of the section for adults; the voicing and the hint mode a learner sets; the storage of works;
|
|
10
10
|
// the own key checked when it is connected; the share of the quota of platform AI; deletion and
|
|
11
11
|
// export. What each message means, and what `app` does on each refusal, are the rules of
|
|
12
|
-
// contracts/README.md
|
|
12
|
+
// contracts/README.md for the contract between `app` and `api`.
|
|
13
13
|
|
|
14
14
|
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
15
15
|
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
@@ -494,7 +494,7 @@ export const ModeSchema = /*@__PURE__*/
|
|
|
494
494
|
enumDesc(file_novatrail_api_v1_account, 3);
|
|
495
495
|
|
|
496
496
|
/**
|
|
497
|
-
* A mode of the screen of a task
|
|
497
|
+
* A mode of the screen of a task. A mode its build does not know `app` reads as "by
|
|
498
498
|
* steps".
|
|
499
499
|
*
|
|
500
500
|
* @generated from enum novatrail.api.v1.Mode
|
|
@@ -509,7 +509,7 @@ export const HintModeSchema = /*@__PURE__*/
|
|
|
509
509
|
enumDesc(file_novatrail_api_v1_account, 4);
|
|
510
510
|
|
|
511
511
|
/**
|
|
512
|
-
* The hint mode of a profile
|
|
512
|
+
* The hint mode of a profile.
|
|
513
513
|
*
|
|
514
514
|
* @generated from enum novatrail.api.v1.HintMode
|
|
515
515
|
*/
|
|
@@ -552,7 +552,7 @@ export const OwnKeyCheckSchema = /*@__PURE__*/
|
|
|
552
552
|
enumDesc(file_novatrail_api_v1_account, 7);
|
|
553
553
|
|
|
554
554
|
/**
|
|
555
|
-
* What the check of an own key gave
|
|
555
|
+
* What the check of an own key gave. A value its build does not know `app` words as a check
|
|
556
556
|
* that did not go through.
|
|
557
557
|
*
|
|
558
558
|
* @generated from enum novatrail.api.v1.OwnKeyCheck
|
|
@@ -569,7 +569,7 @@ export const OwnKeyCheck = /*@__PURE__*/
|
|
|
569
569
|
* with no `Refusal`, when the token could not be checked. A method on a profile names the right it
|
|
570
570
|
* needs, `can_manage`, `can_learn` or `can_view`; a method on the account itself needs the account
|
|
571
571
|
* of the token alone: it is an action of an adult, and the PIN in front of it is a barrier of the
|
|
572
|
-
* interface
|
|
572
|
+
* interface. A request without the right it needs
|
|
573
573
|
* gets the code `permission_denied` with no `Refusal`, and a request whose form the contract
|
|
574
574
|
* refuses the code `invalid_argument` with no `Refusal`. `app` reads the cause of a refusal before
|
|
575
575
|
* it refreshes any token:
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// and the verdict, the tutor's words and marks, hints, the solution shown, and "Done" on a task
|
|
7
7
|
// with a rubric — of a task of a module, and of a task from the learner's paper, whose attempts
|
|
8
8
|
// `PaperService` begins. What each message means, what never reaches the device, and what a repeat
|
|
9
|
-
// with the same idempotency key answers are the rules of contracts/README.md
|
|
9
|
+
// with the same idempotency key answers are the rules of contracts/README.md for
|
|
10
|
+
// the contract between `app` and `api`.
|
|
10
11
|
|
|
11
12
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
12
13
|
import type { Message } from "@bufbuild/protobuf";
|
|
@@ -81,7 +82,7 @@ export declare type SubmitWorkRequest = Message<"novatrail.api.v1.SubmitWorkRequ
|
|
|
81
82
|
* The provider of the learner's own key, by its code in the admission table, without the key:
|
|
82
83
|
* with a profile of its owner that checks the tasks by its own key, on a submission with no
|
|
83
84
|
* `work`, which AI would read, and so with no `own_key`, so that the engine's choice in `next`
|
|
84
|
-
* goes by that route
|
|
85
|
+
* goes by that route. Empty on platform AI. A submission with it beside `work` or
|
|
85
86
|
* `own_key` gets the code `invalid_argument`: there the route is that of `own_key`, or platform
|
|
86
87
|
* AI's without one.
|
|
87
88
|
*
|
|
@@ -128,7 +129,7 @@ export declare type SubmitWorkResponse = Message<"novatrail.api.v1.SubmitWorkRes
|
|
|
128
129
|
|
|
129
130
|
/**
|
|
130
131
|
* The solved task, when every item is correct and the attempt is closed `CLOSE_REASON_CORRECT`:
|
|
131
|
-
* empty on a task from paper, which shows neither its key nor a solution
|
|
132
|
+
* empty on a task from paper, which shows neither its key nor a solution.
|
|
132
133
|
*
|
|
133
134
|
* @generated from field: novatrail.api.v1.SolvedTask solved = 4;
|
|
134
135
|
*/
|
|
@@ -204,7 +205,7 @@ export declare type SubmitEssayRequest = Message<"novatrail.api.v1.SubmitEssayRe
|
|
|
204
205
|
export declare const SubmitEssayRequestSchema: GenMessage<SubmitEssayRequest>;
|
|
205
206
|
|
|
206
207
|
/**
|
|
207
|
-
* How a submission of an essay ended
|
|
208
|
+
* How a submission of an essay ended. No verdict: an item with a rubric has none.
|
|
208
209
|
*
|
|
209
210
|
* @generated from message novatrail.api.v1.SubmitEssayResponse
|
|
210
211
|
*/
|
|
@@ -295,7 +296,7 @@ export declare type DoneRequest = Message<"novatrail.api.v1.DoneRequest"> & {
|
|
|
295
296
|
/**
|
|
296
297
|
* The provider of the learner's own key, by its code in the admission table, without the key:
|
|
297
298
|
* with a profile of its owner that checks the tasks by its own key, so that the engine's choice
|
|
298
|
-
* in `next` goes by that route, though the request calls no AI. Empty on platform AI
|
|
299
|
+
* in `next` goes by that route, though the request calls no AI. Empty on platform AI.
|
|
299
300
|
*
|
|
300
301
|
* @generated from field: string own_key_provider = 3;
|
|
301
302
|
*/
|
|
@@ -877,7 +878,7 @@ export declare type GetHintResponse = Message<"novatrail.api.v1.GetHintResponse"
|
|
|
877
878
|
* the instance that the attempt got: the author's question that breaks the task down, in the
|
|
878
879
|
* module's explanation language. Empty when the task has none, and always empty with the rung's
|
|
879
880
|
* words: after the first wrong answer it is no more given. The server records it as given only
|
|
880
|
-
* when it is not empty, as it records a technique given on request
|
|
881
|
+
* when it is not empty, as it records a technique given on request.
|
|
881
882
|
*
|
|
882
883
|
* @generated from field: string leading_question = 3;
|
|
883
884
|
*/
|
|
@@ -1029,7 +1030,7 @@ export declare type ShowSolutionRequest = Message<"novatrail.api.v1.ShowSolution
|
|
|
1029
1030
|
/**
|
|
1030
1031
|
* The provider of the learner's own key, by its code in the admission table, without the key:
|
|
1031
1032
|
* with a profile of its owner that checks the tasks by its own key, so that the engine's choice
|
|
1032
|
-
* in `next` goes by that route, though the request calls no AI. Empty on platform AI
|
|
1033
|
+
* in `next` goes by that route, though the request calls no AI. Empty on platform AI.
|
|
1033
1034
|
*
|
|
1034
1035
|
* @generated from field: string own_key_provider = 5;
|
|
1035
1036
|
*/
|
|
@@ -1154,7 +1155,7 @@ export declare type ReportProblemResponse = Message<"novatrail.api.v1.ReportProb
|
|
|
1154
1155
|
reportId: string;
|
|
1155
1156
|
|
|
1156
1157
|
/**
|
|
1157
|
-
* When the operator reviews it by: 3 days after it came
|
|
1158
|
+
* When the operator reviews it by: 3 days after it came.
|
|
1158
1159
|
*
|
|
1159
1160
|
* @generated from field: google.protobuf.Timestamp review_by = 2;
|
|
1160
1161
|
*/
|
|
@@ -1199,7 +1200,7 @@ export declare type Work = Message<"novatrail.api.v1.Work"> & {
|
|
|
1199
1200
|
case: "workbook";
|
|
1200
1201
|
} | {
|
|
1201
1202
|
/**
|
|
1202
|
-
* A dotted sheet under the crop of a task from paper, as tracing paper
|
|
1203
|
+
* A dotted sheet under the crop of a task from paper, as tracing paper.
|
|
1203
1204
|
*
|
|
1204
1205
|
* @generated from field: novatrail.api.v1.PaperWork paper = 3;
|
|
1205
1206
|
*/
|
|
@@ -1584,7 +1585,7 @@ export declare type Mark = Message<"novatrail.api.v1.Mark"> & {
|
|
|
1584
1585
|
|
|
1585
1586
|
/**
|
|
1586
1587
|
* Where the mark stands. A group's label comes only if the frames of the groups go with the work
|
|
1587
|
-
* (
|
|
1588
|
+
* (Т-31).
|
|
1588
1589
|
*
|
|
1589
1590
|
* @generated from oneof novatrail.api.v1.Mark.place
|
|
1590
1591
|
*/
|
|
@@ -1709,7 +1710,7 @@ export enum TutorReply {
|
|
|
1709
1710
|
export declare const TutorReplySchema: GenEnum<TutorReply>;
|
|
1710
1711
|
|
|
1711
1712
|
/**
|
|
1712
|
-
* What is wrong with the tutor's words: the closed set the person picks one word of
|
|
1713
|
+
* What is wrong with the tutor's words: the closed set the person picks one word of.
|
|
1713
1714
|
*
|
|
1714
1715
|
* @generated from enum novatrail.api.v1.ProblemKind
|
|
1715
1716
|
*/
|
|
@@ -1770,7 +1771,7 @@ export enum ProblemKind {
|
|
|
1770
1771
|
export declare const ProblemKindSchema: GenEnum<ProblemKind>;
|
|
1771
1772
|
|
|
1772
1773
|
/**
|
|
1773
|
-
* Whose action a request is: the server tells kinds of action apart, not people
|
|
1774
|
+
* Whose action a request is: the server tells kinds of action apart, not people.
|
|
1774
1775
|
*
|
|
1775
1776
|
* @generated from enum novatrail.api.v1.Action
|
|
1776
1777
|
*/
|
|
@@ -1824,7 +1825,7 @@ export enum MarkKind {
|
|
|
1824
1825
|
|
|
1825
1826
|
/**
|
|
1826
1827
|
* A wavy line under the place of the first mistake: on a task from paper alone, at a box on the
|
|
1827
|
-
* crop, and only while the profile's hint mode is `HINT_MODE_SHOW_WHERE
|
|
1828
|
+
* crop, and only while the profile's hint mode is `HINT_MODE_SHOW_WHERE`.
|
|
1828
1829
|
*
|
|
1829
1830
|
* @generated from enum value: MARK_KIND_WAVY_LINE = 2;
|
|
1830
1831
|
*/
|
|
@@ -1849,10 +1850,10 @@ export declare const MarkKindSchema: GenEnum<MarkKind>;
|
|
|
1849
1850
|
* solution shown or by "Done" says what comes next, `next`: an attempt begins by
|
|
1850
1851
|
* `LearningService`. The engine's choice in `next` goes by the route to AI that the request
|
|
1851
1852
|
* names, the own key's by the provider of its `own_key` or by its `own_key_provider`, or platform
|
|
1852
|
-
* AI's without either, as `ChooseNext` judges it
|
|
1853
|
-
*
|
|
1853
|
+
* AI's without either, as `ChooseNext` judges it. An attempt of a task from paper
|
|
1854
|
+
* has an item with one answer slot for each task its crop holds, from 1 to 20, no `next`,
|
|
1854
1855
|
* and nothing to show: its key, the solver's or the AI's, the first submission derives, `api`
|
|
1855
|
-
* keeps it while the attempt is open, and it never reaches the device
|
|
1856
|
+
* keeps it while the attempt is open, and it never reaches the device.
|
|
1856
1857
|
*
|
|
1857
1858
|
* @generated from service novatrail.api.v1.AttemptService
|
|
1858
1859
|
*/
|
|
@@ -1970,7 +1971,7 @@ export declare const AttemptService: GenService<{
|
|
|
1970
1971
|
/**
|
|
1971
1972
|
* "Hint" on a task from paper before its first wrong answer: the tutor's opening question, one
|
|
1972
1973
|
* call of AI on the attempt, sending the task's crop without the learner's strokes, a question on
|
|
1973
|
-
* how to begin the task it holds, or the first of a frame of several
|
|
1974
|
+
* how to begin the task it holds, or the first of a frame of several. Refusals:
|
|
1974
1975
|
* `CAUSE_NOT_CURRENT` once the attempt has a wrong answer, whose rung `GetHint` gives,
|
|
1975
1976
|
* `CAUSE_ATTEMPT_CLOSED`, `CAUSE_KEY_NOT_FOR_PROFILE`, `CAUSE_KEY_ALREADY_USED` and
|
|
1976
1977
|
* `CAUSE_STILL_GOING`; a task of a module gets `invalid_argument`. A call of AI that gives no
|
|
@@ -1992,7 +1993,7 @@ export declare const AttemptService: GenService<{
|
|
|
1992
1993
|
* learner's press, by the route of the attempt: the attempt keeps the reading while it is open,
|
|
1993
1994
|
* and the Check that derives the key takes it with no call of its own. An attempt that keeps a
|
|
1994
1995
|
* reading or a key gives its statements with no AI. The answer holds the statements alone, never
|
|
1995
|
-
* a formula nor a key
|
|
1996
|
+
* a formula nor a key. Refusals: `CAUSE_ATTEMPT_CLOSED`, `CAUSE_KEY_NOT_FOR_PROFILE`,
|
|
1996
1997
|
* `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`; on platform AI, `CAUSE_QUOTA`,
|
|
1997
1998
|
* `CAUSE_PLATFORM_LIMIT` and `CAUSE_NOT_ADMITTED` too: it makes no call without the reserve of
|
|
1998
1999
|
* the quota. A task of a module gets `invalid_argument`. A call of AI that gives no reading is no
|
|
@@ -2022,7 +2023,7 @@ export declare const AttemptService: GenService<{
|
|
|
2022
2023
|
* `CLOSE_REASON_SOLUTION_SHOWN`; a task with a rubric and a task from paper have none to show,
|
|
2023
2024
|
* `CAUSE_NO_SHOWING`. A learning action needs the right `can_learn`, and an action of
|
|
2024
2025
|
* an adult `can_manage`: a request without it gets the code `permission_denied`. The PIN of the
|
|
2025
|
-
* section for adults is a barrier of the interface, not of the server
|
|
2026
|
+
* section for adults is a barrier of the interface, not of the server. Refusals:
|
|
2026
2027
|
* `CAUSE_ADULT_NEEDED`, `CAUSE_LADDER_NOT_PASSED`, by either kind of action,
|
|
2027
2028
|
* `CAUSE_NO_SHOWING`, `CAUSE_ATTEMPT_CLOSED`, `CAUSE_KEY_NOT_FOR_PROFILE`,
|
|
2028
2029
|
* `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency key gets
|
|
@@ -2038,9 +2039,9 @@ export declare const AttemptService: GenService<{
|
|
|
2038
2039
|
/**
|
|
2039
2040
|
* Reports a problem with the tutor's words of the attempt, from the screen of the task: a
|
|
2040
2041
|
* learning request with the right `can_learn`, on an open attempt or a closed one. Who sees it,
|
|
2041
|
-
* `app` decides (
|
|
2042
|
-
* days, and for a year after, by its own clock, and the operator follows the path of escalation
|
|
2043
|
-
*
|
|
2042
|
+
* `app` decides (П-26). `api` keeps the report until the operator reviews it, within 3
|
|
2043
|
+
* days, and for a year after, by its own clock, and the operator follows the path of escalation.
|
|
2044
|
+
* Neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED` refuses it. The report keeps
|
|
2044
2045
|
* the words and the text as they were written, so `app` asks the person to write no name in it.
|
|
2045
2046
|
* Refusals: `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency
|
|
2046
2047
|
* key gets the same report.
|