@altnovatrail/contracts 0.13.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.
@@ -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
  /**
@@ -120,6 +138,36 @@ export declare type LegalText = Message<"novatrail.api.v1.LegalText"> & {
120
138
  */
121
139
  export declare const LegalTextSchema: GenMessage<LegalText>;
122
140
 
141
+ /**
142
+ * A version of a legal text that a person saw, which a request that gives a consent names and the
143
+ * record of the consent keeps (R130; R136): the current version that `GetLegalTexts` gave. A text
144
+ * with no version in force is named by no request, and a version that is not the current one gets
145
+ * `CAUSE_TEXT_NOT_CURRENT`.
146
+ *
147
+ * @generated from message novatrail.api.v1.LegalTextRef
148
+ */
149
+ export declare type LegalTextRef = Message<"novatrail.api.v1.LegalTextRef"> & {
150
+ /**
151
+ * The ID of the text in the passport, such as "parent-consent".
152
+ *
153
+ * @generated from field: string id = 1;
154
+ */
155
+ id: string;
156
+
157
+ /**
158
+ * The number of the version, from 1 on.
159
+ *
160
+ * @generated from field: int32 version = 2;
161
+ */
162
+ version: number;
163
+ };
164
+
165
+ /**
166
+ * Describes the message novatrail.api.v1.LegalTextRef.
167
+ * Use `create(LegalTextRefSchema)` to create a new message.
168
+ */
169
+ export declare const LegalTextRefSchema: GenMessage<LegalTextRef>;
170
+
123
171
  /**
124
172
  * The legal texts that `app` shows (R130). The method goes without a token and without the ID of a
125
173
  * profile, by Connect GET: the policy is read before signing in. It has the idempotency level
@@ -131,8 +179,9 @@ export declare const LegalTextSchema: GenMessage<LegalText>;
131
179
  */
132
180
  export declare const LegalService: GenService<{
133
181
  /**
134
- * The current version of every text whose place is `app`, with its body in English and its gist
135
- * 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.
136
185
  *
137
186
  * @generated from rpc novatrail.api.v1.LegalService.GetLegalTexts
138
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("Chxub3ZhdHJhaWwvYXBpL3YxL2xlZ2FsLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIjIKFEdldExlZ2FsVGV4dHNSZXF1ZXN0EhoKEmludGVyZmFjZV9sYW5ndWFnZRgBIAEoCSJDChVHZXRMZWdhbFRleHRzUmVzcG9uc2USKgoFdGV4dHMYASADKAsyGy5ub3ZhdHJhaWwuYXBpLnYxLkxlZ2FsVGV4dCJ5CglMZWdhbFRleHQSCgoCaWQYASABKAkSDwoHdmVyc2lvbhgCIAE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g8KB3ZlcnNpb24YAiABKAUydQoMTGVnYWxTZXJ2aWNlEmUKDUdldExlZ2FsVGV4dHMSJi5ub3ZhdHJhaWwuYXBpLnYxLkdldExlZ2FsVGV4dHNSZXF1ZXN0Gicubm92YXRyYWlsLmFwaS52MS5HZXRMZWdhbFRleHRzUmVzcG9uc2UiA5ACAULDAQoUY29tLm5vdmF0cmFpbC5hcGkudjFCCkxlZ2FsUHJvdG9QAVo9Z2l0aHViLmNvbS9hbHRub3ZhdHJhaWwvc3BlYy9jb250cmFjdHMvbm92YXRyYWlsL2FwaS92MTthcGl2MaICA05BWKoCEE5vdmF0cmFpbC5BcGkuVjHKAhBOb3ZhdHJhaWxcQXBpXFYx4gIcTm92YXRyYWlsXEFwaVxWMVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z");
18
18
 
19
19
  /**
20
20
  * Describes the message novatrail.api.v1.GetLegalTextsRequest.
@@ -37,6 +37,13 @@ export const GetLegalTextsResponseSchema = /*@__PURE__*/
37
37
  export const LegalTextSchema = /*@__PURE__*/
38
38
  messageDesc(file_novatrail_api_v1_legal, 2);
39
39
 
40
+ /**
41
+ * Describes the message novatrail.api.v1.LegalTextRef.
42
+ * Use `create(LegalTextRefSchema)` to create a new message.
43
+ */
44
+ export const LegalTextRefSchema = /*@__PURE__*/
45
+ messageDesc(file_novatrail_api_v1_legal, 3);
46
+
40
47
  /**
41
48
  * The legal texts that `app` shows (R130). The method goes without a token and without the ID of a
42
49
  * profile, by Connect GET: the policy is read before signing in. It has the idempotency level
@@ -258,10 +258,10 @@ export declare const ConnectedModuleSchema: GenMessage<ConnectedModule>;
258
258
  * right `can_learn`, and repeats by the state of the profile, with no idempotency key. Every method
259
259
  * carries the token of the sign-in service and may get the refusals of every request with a token,
260
260
  * which the comment of `AccountService` names with what `app` does on each; a profile that is not
261
- * the account's gets `CAUSE_NO_PROFILE`, and a request of a profile whose consent is not confirmed
262
- * `CAUSE_NO_CONSENT`. A module is named by its ID, and a version by the digest of its package:
263
- * `app` reads its title and explanation language in the open view of its manifest,
264
- * `PackageService`.
261
+ * the account's gets `CAUSE_NO_PROFILE`, a request of a profile whose consent is not confirmed
262
+ * `CAUSE_NO_CONSENT`, and one of a profile whose age is to be given again `CAUSE_AGE_NEEDED`. A
263
+ * module is named by its ID, and a version by the digest of its package: `app` reads its title and
264
+ * explanation language in the open view of its manifest, `PackageService`.
265
265
  *
266
266
  * @generated from service novatrail.api.v1.ModuleService
267
267
  */
@@ -90,10 +90,10 @@ export const ConnectedModuleSchema = /*@__PURE__*/
90
90
  * right `can_learn`, and repeats by the state of the profile, with no idempotency key. Every method
91
91
  * carries the token of the sign-in service and may get the refusals of every request with a token,
92
92
  * which the comment of `AccountService` names with what `app` does on each; a profile that is not
93
- * the account's gets `CAUSE_NO_PROFILE`, and a request of a profile whose consent is not confirmed
94
- * `CAUSE_NO_CONSENT`. A module is named by its ID, and a version by the digest of its package:
95
- * `app` reads its title and explanation language in the open view of its manifest,
96
- * `PackageService`.
93
+ * the account's gets `CAUSE_NO_PROFILE`, a request of a profile whose consent is not confirmed
94
+ * `CAUSE_NO_CONSENT`, and one of a profile whose age is to be given again `CAUSE_AGE_NEEDED`. A
95
+ * module is named by its ID, and a version by the digest of its package: `app` reads its title and
96
+ * explanation language in the open view of its manifest, `PackageService`.
97
97
  *
98
98
  * @generated from service novatrail.api.v1.ModuleService
99
99
  */
@@ -593,7 +593,8 @@ export declare const CriterionMarkSchema: GenEnum<CriterionMark>;
593
593
  * token of the sign-in service and may get the refusals of every request with a token, which the
594
594
  * comment of `AccountService` names with what `app` does on each; a profile that is not the
595
595
  * account's gets `CAUSE_NO_PROFILE`, a learning request of a profile whose consent is not
596
- * confirmed `CAUSE_NO_CONSENT`, a request without the right it needs the code `permission_denied`
596
+ * confirmed `CAUSE_NO_CONSENT` and one of a profile whose age is to be given again
597
+ * `CAUSE_AGE_NEEDED`, a request without the right it needs the code `permission_denied`
597
598
  * with no `Refusal`, and a request whose form the contract refuses the code `invalid_argument`
598
599
  * with no `Refusal`. Both repeat by the state of the profile, with no idempotency key.
599
600
  *
@@ -132,7 +132,8 @@ export const CriterionMark = /*@__PURE__*/
132
132
  * token of the sign-in service and may get the refusals of every request with a token, which the
133
133
  * comment of `AccountService` names with what `app` does on each; a profile that is not the
134
134
  * account's gets `CAUSE_NO_PROFILE`, a learning request of a profile whose consent is not
135
- * confirmed `CAUSE_NO_CONSENT`, a request without the right it needs the code `permission_denied`
135
+ * confirmed `CAUSE_NO_CONSENT` and one of a profile whose age is to be given again
136
+ * `CAUSE_AGE_NEEDED`, a request without the right it needs the code `permission_denied`
136
137
  * with no `Refusal`, and a request whose form the contract refuses the code `invalid_argument`
137
138
  * with no `Refusal`. Both repeat by the state of the profile, with no idempotency key.
138
139
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/contracts",
3
- "version": "0.13.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": {