@altnovatrail/contracts 0.14.0 → 0.15.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.
@@ -2065,9 +2065,12 @@ export declare const AccountService: GenService<{
2065
2065
  * right `can_learn`, which deletes the profile and everything of it, as `DeleteProfile` does, and
2066
2066
  * leaves the minimal record of the consent and the reports of a problem, as `DeleteProfile` does
2067
2067
  * (R117; R132). `app` offers the export first. Neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED`
2068
- * refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`. Refusals:
2069
- * `CAUSE_ADULT_NEEDED` at a profile whose consent an adult gave — the adult withdraws it by
2070
- * `DeleteProfile` —, and `CAUSE_NO_PROFILE`, which is the answer of a repeat too. It carries no
2068
+ * refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`. A learner who reached the
2069
+ * age of digital consent of their country while a parent's consent stands, whose profile waits for
2070
+ * their own consent, withdraws that consent by it too, instead of confirming it (R116; R141).
2071
+ * Refusals: `CAUSE_ADULT_NEEDED` at a profile whose consent an adult gave and that waits for no
2072
+ * consent of the learner — the adult withdraws it by `DeleteProfile` —, and `CAUSE_NO_PROFILE`,
2073
+ * which is the answer of a repeat too. It carries no
2071
2074
  * idempotency key: it repeats by the profile's state.
2072
2075
  *
2073
2076
  * @generated from rpc novatrail.api.v1.AccountService.WithdrawOwnConsent
@@ -2124,9 +2127,11 @@ export declare const AccountService: GenService<{
2124
2127
  * action of an adult with the right `can_manage`, and at a profile whose learner gave their own
2125
2128
  * consent, the learner's learning request with the right `can_learn`. Switching it off records
2126
2129
  * when, and erases the copies on the server, and so goes while the profile waits for a consent
2127
- * too; switching it on then gets `CAUSE_NO_CONSENT`. Refusals: `CAUSE_NO_PROFILE`,
2128
- * `CAUSE_TEXT_NOT_CURRENT`, `CAUSE_ADULT_NEEDED` and `CAUSE_LEARNER_DECIDES`. It carries no
2129
- * idempotency key: it repeats by the profile's state.
2130
+ * too; switching it on then gets `CAUSE_NO_CONSENT`. At a profile whose learner gave their own
2131
+ * consent, the learner switching on a storage that an adult switched on is no repeat: it records
2132
+ * the learner's own consent by `storage-consent`, the learner its giver, in place of the
2133
+ * adult's (R141). Refusals: `CAUSE_NO_PROFILE`, `CAUSE_TEXT_NOT_CURRENT`, `CAUSE_ADULT_NEEDED`
2134
+ * and `CAUSE_LEARNER_DECIDES`. It carries no idempotency key: it repeats by the profile's state.
2130
2135
  *
2131
2136
  * @generated from rpc novatrail.api.v1.AccountService.SetWorkStorage
2132
2137
  */
@@ -24,8 +24,8 @@ export declare const file_novatrail_api_v1_legal: GenFile;
24
24
  export declare type GetLegalTextsRequest = Message<"novatrail.api.v1.GetLegalTextsRequest"> & {
25
25
  /**
26
26
  * The language of the screen that shows the texts, a well-formed tag of BCP 47, a field of the
27
- * message and not the header `Accept-Language` (R92): the language the gists come in. Empty
28
- * asks for English.
27
+ * message and not the header `Accept-Language` (R92): the language the gists and the
28
+ * translations come in. Empty asks for English.
29
29
  *
30
30
  * @generated from field: string interface_language = 1;
31
31
  */
@@ -112,6 +112,24 @@ export declare type LegalText = Message<"novatrail.api.v1.LegalText"> & {
112
112
  * @generated from field: string summary_language = 6;
113
113
  */
114
114
  summaryLanguage: string;
115
+
116
+ /**
117
+ * The translation of the version into the language asked, found as the gist is, when the version
118
+ * has one (R141): Markdown as the body is, with no force of its own — the body in English is the
119
+ * one in force, and a consent names the version, never its translation. Empty when the version
120
+ * has no translation into that language, and when English is asked.
121
+ *
122
+ * @generated from field: string translation = 7;
123
+ */
124
+ translation: string;
125
+
126
+ /**
127
+ * The language the translation is in, its tag as the passport writes it, such as "ru"; empty when
128
+ * there is no translation.
129
+ *
130
+ * @generated from field: string translation_language = 8;
131
+ */
132
+ translationLanguage: string;
115
133
  };
116
134
 
117
135
  /**
@@ -161,8 +179,9 @@ export declare const LegalTextRefSchema: GenMessage<LegalTextRef>;
161
179
  */
162
180
  export declare const LegalService: GenService<{
163
181
  /**
164
- * The current version of every text whose place is `app`, with its body in English and its gist
165
- * in the language asked when the passport has it, else in English.
182
+ * The current version of every text whose place is `app`, with its body in English, its gist in
183
+ * the language asked when the passport has it, else in English, and its translation into the
184
+ * language asked when the version has one.
166
185
  *
167
186
  * @generated from rpc novatrail.api.v1.LegalService.GetLegalTexts
168
187
  */
@@ -14,7 +14,7 @@ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2
14
14
  * Describes the file novatrail/api/v1/legal.proto.
15
15
  */
16
16
  export const file_novatrail_api_v1_legal = /*@__PURE__*/
17
- fileDesc("Chxub3ZhdHJhaWwvYXBpL3YxL2xlZ2FsLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIjIKFEdldExlZ2FsVGV4dHNSZXF1ZXN0EhoKEmludGVyZmFjZV9sYW5ndWFnZRgBIAEoCSJDChVHZXRMZWdhbFRleHRzUmVzcG9uc2USKgoFdGV4dHMYASADKAsyGy5ub3ZhdHJhaWwuYXBpLnYxLkxlZ2FsVGV4dCJ5CglMZWdhbFRleHQSCgoCaWQYASABKAkSDwoHdmVyc2lvbhgCIAEoBRIWCg5pbl9mb3JjZV9zaW5jZRgDIAEoCRIMCgRib2R5GAQgASgJEg8KB3N1bW1hcnkYBSABKAkSGAoQc3VtbWFyeV9sYW5ndWFnZRgGIAEoCSIrCgxMZWdhbFRleHRSZWYSCgoCaWQYASABKAkSDwoHdmVyc2lvbhgCIAEoBTJ1CgxMZWdhbFNlcnZpY2USZQoNR2V0TGVnYWxUZXh0cxImLm5vdmF0cmFpbC5hcGkudjEuR2V0TGVnYWxUZXh0c1JlcXVlc3QaJy5ub3ZhdHJhaWwuYXBpLnYxLkdldExlZ2FsVGV4dHNSZXNwb25zZSIDkAIBQsMBChRjb20ubm92YXRyYWlsLmFwaS52MUIKTGVnYWxQcm90b1ABWj1naXRodWIuY29tL2FsdG5vdmF0cmFpbC9zcGVjL2NvbnRyYWN0cy9ub3ZhdHJhaWwvYXBpL3YxO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MVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z");
18
18
 
19
19
  /**
20
20
  * Describes the message novatrail.api.v1.GetLegalTextsRequest.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/contracts",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
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": {