@altnovatrail/contracts 0.13.0 → 0.14.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.
@@ -120,6 +120,36 @@ export declare type LegalText = Message<"novatrail.api.v1.LegalText"> & {
120
120
  */
121
121
  export declare const LegalTextSchema: GenMessage<LegalText>;
122
122
 
123
+ /**
124
+ * A version of a legal text that a person saw, which a request that gives a consent names and the
125
+ * record of the consent keeps (R130; R136): the current version that `GetLegalTexts` gave. A text
126
+ * with no version in force is named by no request, and a version that is not the current one gets
127
+ * `CAUSE_TEXT_NOT_CURRENT`.
128
+ *
129
+ * @generated from message novatrail.api.v1.LegalTextRef
130
+ */
131
+ export declare type LegalTextRef = Message<"novatrail.api.v1.LegalTextRef"> & {
132
+ /**
133
+ * The ID of the text in the passport, such as "parent-consent".
134
+ *
135
+ * @generated from field: string id = 1;
136
+ */
137
+ id: string;
138
+
139
+ /**
140
+ * The number of the version, from 1 on.
141
+ *
142
+ * @generated from field: int32 version = 2;
143
+ */
144
+ version: number;
145
+ };
146
+
147
+ /**
148
+ * Describes the message novatrail.api.v1.LegalTextRef.
149
+ * Use `create(LegalTextRefSchema)` to create a new message.
150
+ */
151
+ export declare const LegalTextRefSchema: GenMessage<LegalTextRef>;
152
+
123
153
  /**
124
154
  * The legal texts that `app` shows (R130). The method goes without a token and without the ID of a
125
155
  * profile, by Connect GET: the policy is read before signing in. It has the idempotency level
@@ -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("Chxub3ZhdHJhaWwvYXBpL3YxL2xlZ2FsLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIjIKFEdldExlZ2FsVGV4dHNSZXF1ZXN0EhoKEmludGVyZmFjZV9sYW5ndWFnZRgBIAEoCSJDChVHZXRMZWdh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9sYW5ndWFnZRgGIAEoCSIrCgxMZWdhbFRleHRSZWYSCgoCaWQYASABKAkSDwoHdmVyc2lvbhgCIAEoBTJ1CgxMZWdhbFNlcnZpY2USZQoNR2V0TGVnYWxUZXh0cxImLm5vdmF0cmFpbC5hcGkudjEuR2V0TGVnYWxUZXh0c1JlcXVlc3QaJy5ub3ZhdHJhaWwuYXBpLnYxLkdldExlZ2FsVGV4dHNSZXNwb25zZSIDkAIBQsMBChRjb20ubm92YXRyYWlsLmFwaS52MUIKTGVnYWxQcm90b1ABWj1naXRodWIuY29tL2FsdG5vdmF0cmFpbC9zcGVjL2NvbnRyYWN0cy9ub3ZhdHJhaWwvYXBpL3YxO2FwaXYxogIDTkFYqgIQTm92YXRyYWlsLkFwaS5WMcoCEE5vdmF0cmFpbFxBcGlcVjHiAhxOb3ZhdHJhaWxcQXBpXFYxXEdQQk1ldGFkYXRh6gISTm92YXRyYWlsOjpBcGk6OlYxYgZwcm90bzM");
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.14.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": {