@altnovatrail/contracts 0.17.13 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1541,7 +1541,8 @@ export declare const ListOwnKeyProvidersRequestSchema: GenMessage<ListOwnKeyProv
1541
1541
  */
1542
1542
  export declare type ListOwnKeyProvidersResponse = Message<"novatrail.api.v1.ListOwnKeyProvidersResponse"> & {
1543
1543
  /**
1544
- * The providers open to an own key, in the order of the admission table.
1544
+ * The providers open to an own key, as `ListOwnKeyProviders` names them, in the order of the
1545
+ * admission table.
1545
1546
  *
1546
1547
  * @generated from field: repeated novatrail.api.v1.OwnKeyProvider providers = 1;
1547
1548
  */
@@ -1947,8 +1948,9 @@ export enum OwnKeyCheck {
1947
1948
  NO_PERMISSION = 3,
1948
1949
 
1949
1950
  /**
1950
- * The admission function does not open the provider to an own key at this profile, or the
1951
- * admission table does not know the provider: no call went.
1951
+ * The provider is not one that `ListOwnKeyProviders` names at this profile — `tutor` admits its
1952
+ * own key there for no kind of call of `api` —, or the admission table does not know it: no call
1953
+ * went.
1952
1954
  *
1953
1955
  * @generated from enum value: OWN_KEY_CHECK_PROVIDER_CLOSED = 4;
1954
1956
  */
@@ -2166,9 +2168,11 @@ export declare const AccountService: GenService<{
2166
2168
  * right `can_learn`, which deletes the profile and everything of it, as `DeleteProfile` does, and
2167
2169
  * leaves the minimal record of the consent and the reports of a problem, as `DeleteProfile` does
2168
2170
  * (R117; R132). `app` offers the export first. Neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED`
2169
- * refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`. A learner who reached the
2170
- * age of digital consent of their country while a parent's consent stands, whose profile waits for
2171
- * their own consent, withdraws that consent by it too, instead of confirming it (R116; R141).
2171
+ * refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`, `ListWorks` and `GetWork`,
2172
+ * by which `app` builds the export, nor the other requests on the consent that section 15 of
2173
+ * contracts/README.md names. A learner who reached the age of digital consent of their country
2174
+ * while a parent's consent stands, whose profile waits for their own consent, withdraws that
2175
+ * consent by it too, instead of confirming it (R116; R141).
2172
2176
  * Refusals: `CAUSE_ADULT_NEEDED` at a profile whose consent an adult gave and that waits for no
2173
2177
  * consent of the learner — the adult withdraws it by `DeleteProfile` —, and `CAUSE_NO_PROFILE`,
2174
2178
  * which is the answer of a repeat too. It carries no
@@ -2278,7 +2282,8 @@ export declare const AccountService: GenService<{
2278
2282
  * The part of a profile's export that `api` holds, by an action of an adult with the right
2279
2283
  * `can_manage`, with no fresh sign-in, and at a profile whose learner gave their own consent, by
2280
2284
  * the learner's learning request with the right `can_learn` too (R136). `app` makes the file of
2281
- * the export of it and of what the device holds. Refusals: `CAUSE_NO_PROFILE` and
2285
+ * the export of it, of what the device holds and of the stored works its profile's file names,
2286
+ * each by `WorkService.GetWork` (R151). Refusals: `CAUSE_NO_PROFILE` and
2282
2287
  * `CAUSE_ADULT_NEEDED`.
2283
2288
  *
2284
2289
  * @generated from rpc novatrail.api.v1.AccountService.ExportProfile
@@ -2303,7 +2308,10 @@ export declare const AccountService: GenService<{
2303
2308
  * Checks a key of the owner's at its provider, when it is connected, by a request with nothing of
2304
2309
  * a learner's: on the page where the key is entered, an action of an adult with the right
2305
2310
  * `can_manage` on the owner's profile of the age category `adult` (R84). A provider that gave no
2306
- * answer is an outcome. Refusals: `CAUSE_NO_PROFILE` and `CAUSE_KEY_NOT_FOR_PROFILE`.
2311
+ * answer is an outcome. Refusals: `CAUSE_NO_PROFILE`, `CAUSE_KEY_NOT_FOR_PROFILE`, and
2312
+ * `CAUSE_KEY_CHECKS_EXHAUSTED` beyond the checks `api` lets the account make, with no call and
2313
+ * with when the next check opens, which `app` tells the owner. The limit is checked after the
2314
+ * profile, the form of the key and the category: a request refused by them counts no check.
2307
2315
  *
2308
2316
  * @generated from rpc novatrail.api.v1.AccountService.CheckOwnKey
2309
2317
  */
@@ -2313,9 +2321,12 @@ export declare const AccountService: GenService<{
2313
2321
  output: typeof CheckOwnKeyResponseSchema;
2314
2322
  },
2315
2323
  /**
2316
- * The providers that the admission function opens to an own key at a profile, so that `app`
2317
- * builds no list in: empty at a profile whose age category is not `adult`. An action of an adult
2318
- * with the right `can_manage`. Refusals: `CAUSE_NO_PROFILE`.
2324
+ * The providers whose own key `tutor` admits at the profile's age category for one kind of call
2325
+ * of AI that `api` makes at least — the reading of a work, the words sent with the work, and
2326
+ * "explain differently", sent without it —, by the admission table and the models admitted at the
2327
+ * deployment's rung, so that `app` builds no list in and offers no provider that `CheckOwnKey`
2328
+ * finds closed: empty at a profile whose age category is not `adult` (R96). An action of an
2329
+ * adult with the right `can_manage`. Refusals: `CAUSE_NO_PROFILE`.
2319
2330
  *
2320
2331
  * @generated from rpc novatrail.api.v1.AccountService.ListOwnKeyProviders
2321
2332
  */
@@ -1658,11 +1658,15 @@ export declare const AttemptService: GenService<{
1658
1658
  output: typeof GetRungWordsResponseSchema;
1659
1659
  },
1660
1660
  /**
1661
- * Asks for the tutor's words after a correct answer, sending the work again, once, on the attempt
1662
- * that the answer has just closed. Refusals: `CAUSE_NO_MORE_WORDS`, also on an attempt that no
1663
- * correct answer closed, `CAUSE_KEY_NOT_FOR_PROFILE`,
1664
- * `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency key gets
1665
- * an answer without words: the server keeps none.
1661
+ * Asks for the tutor's words after a correct answer, sending the work again, on the attempt that
1662
+ * the answer has just closed. The right is one answer with words: `api` spends it when it gives
1663
+ * the words, and only then. An answer without words — a call of AI that gave none, or words that
1664
+ * failed a check — leaves it, and a request with a new idempotency key sends the work again and
1665
+ * calls AI again, bounded by the quota on platform AI and, on an own key, by its limit at its
1666
+ * provider. An answer with words that was lost has spent it: its repeat with the same
1667
+ * idempotency key gets an answer `repeated` without words, since the server keeps none.
1668
+ * Refusals: `CAUSE_NO_MORE_WORDS` once the words were given, also on an attempt that no correct
1669
+ * answer closed, `CAUSE_KEY_NOT_FOR_PROFILE`, `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`.
1666
1670
  *
1667
1671
  * @generated from rpc novatrail.api.v1.AttemptService.GetCorrectAnswerWords
1668
1672
  */
@@ -94,6 +94,14 @@ export declare type Refusal = Message<"novatrail.api.v1.Refusal"> & {
94
94
  */
95
95
  value: EndedSegments;
96
96
  case: "endedSegments";
97
+ } | {
98
+ /**
99
+ * Beside `CAUSE_KEY_CHECKS_EXHAUSTED`: when the next check of an own key opens.
100
+ *
101
+ * @generated from field: google.protobuf.Timestamp next_key_check = 9;
102
+ */
103
+ value: Timestamp;
104
+ case: "nextKeyCheck";
97
105
  } | { case: undefined; value?: undefined };
98
106
  };
99
107
 
@@ -429,8 +437,9 @@ export enum Cause {
429
437
 
430
438
  /**
431
439
  * The words asked for are not given: the words after a correct answer on an attempt that no
432
- * correct answer closed, a second time, or once the profile began another attempt; the words of a
433
- * rung from the fourth wrong answer on, where no rung is new. Code `failed_precondition`.
440
+ * correct answer closed, once `api` gave the words, or once the profile began another
441
+ * attempt; the words of a rung from the fourth wrong answer on, where no rung is new. Code
442
+ * `failed_precondition`.
434
443
  *
435
444
  * @generated from enum value: CAUSE_NO_MORE_WORDS = 19;
436
445
  */
@@ -539,7 +548,9 @@ export enum Cause {
539
548
  * gives: its index marks the version withdrawn, or the version's module format is out of the
540
549
  * window of formats that `api` reads. `app` asks `CheckPackages` about the digests it keeps,
541
550
  * and erases what it keeps of the version. An attempt or a lesson run on such a version is closed
542
- * or ended `unchecked` instead. Code `failed_precondition`.
551
+ * or ended `unchecked` instead. A work put of an attempt on a version out of that window, with
552
+ * no work of the attempt kept before, gets it too: its kind cannot be known. Code
553
+ * `failed_precondition`.
543
554
  *
544
555
  * @generated from enum value: CAUSE_VERSION_NOT_GIVEN = 32;
545
556
  */
@@ -642,11 +653,23 @@ export enum Cause {
642
653
 
643
654
  /**
644
655
  * A work larger than 4 MiB, as `StoredWork` counts it: `api` keeps none of it, and `app` keeps
645
- * it on the device alone (R113). Code `invalid_argument`, with no data.
656
+ * it on the device alone (R113). Code `invalid_argument`, with no data. A `PutWork` message
657
+ * larger than `api` reads gets `resource_exhausted` with no `Refusal` instead (contracts/README.md,
658
+ * section 15): `app` reads it as this cause.
646
659
  *
647
660
  * @generated from enum value: CAUSE_WORK_TOO_LARGE = 44;
648
661
  */
649
662
  WORK_TOO_LARGE = 44,
663
+
664
+ /**
665
+ * A check of an own key beyond the checks that `api` lets an account make in a sliding window:
666
+ * every check that is not refused before it counts, a provider closed with no call too. `api`
667
+ * holds the number and the window (R78 api). The refusal holds when the next check opens. Code
668
+ * `resource_exhausted`.
669
+ *
670
+ * @generated from enum value: CAUSE_KEY_CHECKS_EXHAUSTED = 45;
671
+ */
672
+ KEY_CHECKS_EXHAUSTED = 45,
650
673
  }
651
674
 
652
675
  /**
@@ -16,7 +16,7 @@ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
16
16
  * Describes the file novatrail/api/v1/cause.proto.
17
17
  */
18
18
  export const file_novatrail_api_v1_cause = /*@__PURE__*/
19
- fileDesc("Chxub3ZhdHJhaWwvYXBpL3YxL2NhdXNlLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIvwCCgdSZWZ1c2FsEiYKBWNhdXNlGAEgASgOMhcubm92YXRyYWlsLmFwaS52MS5DYXVzZRI1CgxjbG9zZV9yZWFzb24YAiABKA4yHS5ub3ZhdHJhaWwuYXBpLnYxLkNsb3NlUmVhc29uSAASNQoPbmV4dF9mYW1pbHlfZGF5GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAEhcKDXdyb25nX2Fuc3dlcnMYBCABKAVIABIyCgxsb2NrZWRfdW50aWwYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASHgoUbWF4X2F1dGhfYWdlX3NlY29uZHMYBiABKAVIABIrCgdydW5fZW5kGAcgASgLMhgubm92YXRyYWlsLmFwaS52MS5SdW5FbmRIABI5C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UFTT05fQ09ERV9VTlNQRUNJRklFRBAAEh0KGVJFQVNPTl9DT0RFX0NPTlNPTElEQVRJT04QARIZChVSRUFTT05fQ09ERV9ORVdfU0tJTEwQAhIVChFSRUFTT05fQ09ERV9RVUVVRRADEhoKFlJFQVNPTl9DT0RFX1JFUEVUSVRJT04QBBIVChFSRUFTT05fQ09ERV9QUk9CRRAFEhwKGFJFQVNPTl9DT0RFX1NLSUxMX0NIT1NFThAGEhwKGFJFQVNPTl9DT0RFX0FVVEhPUl9PUkRFUhAHEhgKFFJFQVNPTl9DT0RFX09QRU5fUlVOEAgSGAoUUkVBU09OX0NPREVfUk9UQVRJT04QCSqmAQoMUnVuRW5kUmVhc29uEh4KGlJVTl9FTkRfUkVBU09OX1VOU1BFQ0lGSUVEEAASGQoVUlVOX0VORF9SRUFTT05fUEFTU0VEEAESHAoYUlVOX0VORF9SRUFTT05fVU5DSEVDS0VEEAISHwobUlVOX0VORF9SRUFTT05fTk9UX1NVSVRBQkxFEAMSHAoYUlVOX0VORF9SRUFTT05fQUJBTkRPTkVEEARCwwEKFGNvbS5ub3ZhdHJhaWwuYXBpLnYxQgpDYXVzZVByb3RvUAFaPWdpdGh1Yi5jb20vYWx0bm92YXRyYWlsL3NwZWMvY29udHJhY3RzL25vdmF0cmFpbC9hcGkvdjE7YXBpdjGiAgNOQViqAhBOb3ZhdHJhaWwuQXBpLlYxygIQTm92YXRyYWlsXEFwaVxWMeICHE5vdmF0cmFpbFxBcGlcVjFcR1BCTWV0YWRhdGHqAhJOb3ZhdHJhaWw6OkFwaTo6VjFiBnByb3RvMw", [file_google_protobuf_timestamp]);
20
20
 
21
21
  /**
22
22
  * Describes the message novatrail.api.v1.Refusal.
@@ -91,7 +91,8 @@ export declare type WorkSubmission = Message<"novatrail.api.v1.WorkSubmission">
91
91
  context: Uint8Array;
92
92
 
93
93
  /**
94
- * How many events of the history the submission covers.
94
+ * How many events of the history the submission covers, from 0: below it, `PutWork` is refused
95
+ * `invalid_argument`.
95
96
  *
96
97
  * @generated from field: int32 history_length = 2;
97
98
  */
@@ -389,10 +390,11 @@ export declare const WorkKindSchema: GenEnum<WorkKind>;
389
390
  * what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, an attempt
390
391
  * that is not the profile's `CAUSE_NOT_FOUND`, a learning request of a profile whose consent is not
391
392
  * confirmed `CAUSE_NO_CONSENT` and one of a profile whose age is to be given again
392
- * `CAUSE_AGE_NEEDED`, a request without the right it needs the code `permission_denied` with no
393
- * `Refusal`, and a request whose form the contract refuses the code `invalid_argument` with no
394
- * `Refusal`. Each repeats by the state of the profile's works, with no idempotency key. The server
395
- * reads no work and gives none to an AI provider.
393
+ * `CAUSE_AGE_NEEDED` — but for `DeleteWork` and the learner's `ListWorks` and `GetWork`, which
394
+ * neither refuses (R113) —, a request without the right it needs the code `permission_denied`
395
+ * with no `Refusal`, and a request whose form the contract refuses the code `invalid_argument`
396
+ * with no `Refusal`. Each repeats by the state of the profile's works, with no idempotency key.
397
+ * The server reads no work and gives none to an AI provider.
396
398
  *
397
399
  * @generated from service novatrail.api.v1.WorkService
398
400
  */
@@ -402,9 +404,16 @@ export declare const WorkService: GenService<{
402
404
  * request with the right `can_learn`, while the profile's storage of works is on. `app` puts a
403
405
  * work when it writes it to the device — at each submission and when the attempt closes at
404
406
  * least —, and the last one put stands. The kind of the work `api` takes from the attempt's
405
- * task. `api` checks the form of the work alone, as `StoredWork` names it: a work of another form
406
- * gets the code `invalid_argument` with no `Refusal`. Refusals: `CAUSE_STORAGE_OFF` and
407
- * `CAUSE_WORK_TOO_LARGE`.
407
+ * task, or from the work kept of it before. `api` checks the form of the work alone, as
408
+ * `StoredWork` names it: a work of another form gets the code `invalid_argument` with no
409
+ * `Refusal`. A message larger than `api` reads gets the code `resource_exhausted` with no
410
+ * `Refusal`, before it is parsed, and `app` reads it as `CAUSE_WORK_TOO_LARGE`. Refusals:
411
+ * `CAUSE_STORAGE_OFF`, `CAUSE_WORK_TOO_LARGE`, `CAUSE_PACKAGE_UNKNOWN` when the index of the
412
+ * image does not know the attempt's package digest, whatever work of the attempt was kept before,
413
+ * and `CAUSE_VERSION_NOT_GIVEN` when the attempt's version is out of the window of formats that
414
+ * `api` reads and no work of the attempt was kept before, so that its kind cannot be known; a
415
+ * withdrawn version, which the image still holds, gives the kind by its task. On each refusal
416
+ * `api` keeps nothing of the work, and `app` keeps it on the device alone.
408
417
  *
409
418
  * @generated from rpc novatrail.api.v1.WorkService.PutWork
410
419
  */
@@ -416,7 +425,10 @@ export declare const WorkService: GenService<{
416
425
  /**
417
426
  * The works of the profile kept on the server, newest first, without their bytes: a learning
418
427
  * request with the right `can_learn`, or an action of an adult with `can_manage`. While the
419
- * storage is off the list is empty: switching it off erased them.
428
+ * storage is off the list is empty: switching it off erased them. While the profile waits for a
429
+ * consent or for its age, neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED` refuses the
430
+ * learner's request, by which `app` builds the export, as neither refuses the learner's
431
+ * `ExportProfile`; nor does `CAUSE_ADULT_NEEDED`, at any profile (R113).
420
432
  *
421
433
  * @generated from rpc novatrail.api.v1.WorkService.ListWorks
422
434
  */
@@ -426,8 +438,10 @@ export declare const WorkService: GenService<{
426
438
  output: typeof ListWorksResponseSchema;
427
439
  },
428
440
  /**
429
- * One work kept on the server, whole, as it was put, to restore it on a device or to export it:
430
- * as `ListWorks`. Refusals: `CAUSE_NOT_FOUND`, also for an attempt with no work kept.
441
+ * One work kept on the server, whole, as it was put, to restore it on a device or to export it,
442
+ * beside the part of the export `ExportProfile` and `ExportAccount` give (R151): as `ListWorks`,
443
+ * while the profile waits too. Refusals: `CAUSE_NOT_FOUND`, also for an attempt with no work
444
+ * kept.
431
445
  *
432
446
  * @generated from rpc novatrail.api.v1.WorkService.GetWork
433
447
  */
@@ -440,8 +454,10 @@ export declare const WorkService: GenService<{
440
454
  * Erases one work kept on the server, by whoever consents to the storage for the learner, as
441
455
  * `SetWorkStorage`: an action of an adult with `can_manage`, and at a profile whose learner gave
442
456
  * their own consent, the learner's learning request with `can_learn`. The answer is "erased",
443
- * and so is a repeat's, of an attempt with no work kept. The work on the device stays. Refusals:
444
- * `CAUSE_LEARNER_DECIDES` and `CAUSE_ADULT_NEEDED`.
457
+ * and so is a repeat's, of an attempt with no work kept. The work on the device stays. While the
458
+ * profile waits for a consent or for its age, it goes as switching the storage off goes: neither
459
+ * `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED` refuses it (R113). Refusals: `CAUSE_LEARNER_DECIDES`
460
+ * and `CAUSE_ADULT_NEEDED`.
445
461
  *
446
462
  * @generated from rpc novatrail.api.v1.WorkService.DeleteWork
447
463
  */
@@ -114,10 +114,11 @@ export const WorkKind = /*@__PURE__*/
114
114
  * what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, an attempt
115
115
  * that is not the profile's `CAUSE_NOT_FOUND`, a learning request of a profile whose consent is not
116
116
  * confirmed `CAUSE_NO_CONSENT` and one of a profile whose age is to be given again
117
- * `CAUSE_AGE_NEEDED`, a request without the right it needs the code `permission_denied` with no
118
- * `Refusal`, and a request whose form the contract refuses the code `invalid_argument` with no
119
- * `Refusal`. Each repeats by the state of the profile's works, with no idempotency key. The server
120
- * reads no work and gives none to an AI provider.
117
+ * `CAUSE_AGE_NEEDED` — but for `DeleteWork` and the learner's `ListWorks` and `GetWork`, which
118
+ * neither refuses (R113) —, a request without the right it needs the code `permission_denied`
119
+ * with no `Refusal`, and a request whose form the contract refuses the code `invalid_argument`
120
+ * with no `Refusal`. Each repeats by the state of the profile's works, with no idempotency key.
121
+ * The server reads no work and gives none to an AI provider.
121
122
  *
122
123
  * @generated from service novatrail.api.v1.WorkService
123
124
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/contracts",
3
- "version": "0.17.13",
3
+ "version": "0.18.1",
4
4
  "description": "The code of NovaTrail's API contracts for TypeScript, which protoc-gen-es generates from their protobuf files: the messages and enums of each contract, with their descriptors, for @bufbuild/protobuf and Connect.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {