@altnovatrail/contracts 0.16.7 → 0.17.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.
@@ -81,7 +81,7 @@ export declare type CreateAccountRequest = Message<"novatrail.api.v1.CreateAccou
81
81
 
82
82
  /**
83
83
  * The versions of `privacy-policy` and `terms-of-use` that the owner accepted, as
84
- * `GetLegalTexts` gave them: each of the two that has a version in force, and no other text.
84
+ * `GetLegalTexts` gave them: each of the two that has a current version, and no other text.
85
85
  *
86
86
  * @generated from field: repeated novatrail.api.v1.LegalTextRef accepted_texts = 3;
87
87
  */
@@ -810,7 +810,7 @@ export declare type RequestChildConsentRequest = Message<"novatrail.api.v1.Reque
810
810
 
811
811
  /**
812
812
  * The version of `parent-consent` that `app` shows with the form, as `GetLegalTexts` gave it:
813
- * `app` sends it whenever the text has a version in force, whoever the category makes give the
813
+ * `app` sends it whenever the text has a current version, whoever the category makes give the
814
814
  * consent, since only `api` works it out; `api` records it with a parent's consent alone.
815
815
  *
816
816
  * @generated from field: novatrail.api.v1.LegalTextRef parent_consent_text = 4;
@@ -1001,7 +1001,7 @@ export declare type GiveOwnConsentRequest = Message<"novatrail.api.v1.GiveOwnCon
1001
1001
 
1002
1002
  /**
1003
1003
  * The version of `teen-consent` the learner read, as `GetLegalTexts` gave it: absent while the
1004
- * text has no version in force, and needed once it has.
1004
+ * text has no current version, and needed once it has.
1005
1005
  *
1006
1006
  * @generated from field: novatrail.api.v1.LegalTextRef text = 2;
1007
1007
  */
@@ -1105,7 +1105,7 @@ export declare type RestateAgeRequest = Message<"novatrail.api.v1.RestateAgeRequ
1105
1105
 
1106
1106
  /**
1107
1107
  * The version of `parent-consent` that `app` shows, sent as at `RequestChildConsent` whenever the
1108
- * text has a version in force: `api` records it with a parent's consent that the new category
1108
+ * text has a current version: `api` records it with a parent's consent that the new category
1109
1109
  * asks for.
1110
1110
  *
1111
1111
  * @generated from field: novatrail.api.v1.LegalTextRef parent_consent_text = 5;
@@ -1263,7 +1263,7 @@ export declare type SetWorkStorageRequest = Message<"novatrail.api.v1.SetWorkSto
1263
1263
 
1264
1264
  /**
1265
1265
  * Beside switching on: the version of `storage-consent` that the person read, as
1266
- * `GetLegalTexts` gave it; absent while the text has no version in force.
1266
+ * `GetLegalTexts` gave it; absent while the text has no current version.
1267
1267
  *
1268
1268
  * @generated from field: novatrail.api.v1.LegalTextRef text = 4;
1269
1269
  */
@@ -615,9 +615,10 @@ export enum Cause {
615
615
  AGE_NEEDED = 40,
616
616
 
617
617
  /**
618
- * The version of a legal text that the request names is not the current one, or a text that has
619
- * a version in force is not named: `app` reads `GetLegalTexts` again and shows the current
620
- * version before it asks once more. Code `failed_precondition`.
618
+ * The version of a legal text that the request names is not the current one — a next version
619
+ * before its day among them —, or a text that has a current version is not named: `app` reads
620
+ * `GetLegalTexts` again and shows the current version before it asks once more. Code
621
+ * `failed_precondition`.
621
622
  *
622
623
  * @generated from enum value: CAUSE_TEXT_NOT_CURRENT = 41;
623
624
  */
@@ -630,6 +631,22 @@ export enum Cause {
630
631
  * @generated from enum value: CAUSE_LEARNER_DECIDES = 42;
631
632
  */
632
633
  LEARNER_DECIDES = 42,
634
+
635
+ /**
636
+ * A work put while the storage of the profile's works is off: `app` keeps it on the device alone
637
+ * (R113). Code `failed_precondition`, with no data.
638
+ *
639
+ * @generated from enum value: CAUSE_STORAGE_OFF = 43;
640
+ */
641
+ STORAGE_OFF = 43,
642
+
643
+ /**
644
+ * 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.
646
+ *
647
+ * @generated from enum value: CAUSE_WORK_TOO_LARGE = 44;
648
+ */
649
+ WORK_TOO_LARGE = 44,
633
650
  }
634
651
 
635
652
  /**
@@ -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_novatr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FwaS5WMcoCEE5vdmF0cmFpbFxBcGlcVjHiAhxOb3ZhdHJhaWxcQXBpXFYxXEdQQk1ldGFkYXRh6gISTm92YXRyYWlsOjpBcGk6OlYxYgZwcm90bzM", [file_google_protobuf_timestamp]);
20
20
 
21
21
  /**
22
22
  * Describes the message novatrail.api.v1.Refusal.
@@ -747,7 +747,8 @@ export declare const LearningService: GenService<{
747
747
  },
748
748
  /**
749
749
  * The open attempt, by which the learner goes on with it, on another device too, with a clean
750
- * sheet: the strokes stay on the device that wrote them. Refusals: `CAUSE_NOT_FOUND`,
750
+ * sheet: the strokes stay on the device that wrote them, but for a work another device put by
751
+ * `WorkService.PutWork`, which `GetWork` gives back. Refusals: `CAUSE_NOT_FOUND`,
751
752
  * `CAUSE_ATTEMPT_CLOSED` with its close reason, and `CAUSE_PACKAGE_UNKNOWN`. It repeats by the
752
753
  * state of the attempt.
753
754
  *
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  // The legal texts in the contract between `app` and `api`: the privacy policy, the terms of use
6
- // and the consents that `app` shows as its own pages, each in its current version, with its gist
7
- // in the language of the screen. The texts are those of the legal part, `legal/` of `spec`, or of a
8
- // self-hosted copy's operator. What each message means is the rule of contracts/README.md,
6
+ // and the consents that `app` shows as its own pages, each in its current version and its next
7
+ // one, with its gist in the language of the screen. The texts are those of the legal part,
8
+ // `legal/` of `spec`, or of a self-hosted copy's operator. What each message means is the rule of contracts/README.md,
9
9
  // section 15.
10
10
 
11
11
  import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
@@ -46,12 +46,24 @@ export declare const GetLegalTextsRequestSchema: GenMessage<GetLegalTextsRequest
46
46
  export declare type GetLegalTextsResponse = Message<"novatrail.api.v1.GetLegalTextsResponse"> & {
47
47
  /**
48
48
  * The current version of every text whose place is `app`, in the order of their IDs by code
49
- * units. A text with no version in force has none, and is absent: the list is empty while no such
50
- * text is in force.
49
+ * units: its version in force with the highest number whose day has come, on the day of the
50
+ * request in UTC. A text with no such version has none, and is absent: the list is empty while no
51
+ * such text applies.
51
52
  *
52
53
  * @generated from field: repeated novatrail.api.v1.LegalText texts = 1;
53
54
  */
54
55
  texts: LegalText[];
56
+
57
+ /**
58
+ * The next version of every text whose place is `app` that has one, in the same order: the
59
+ * version that becomes current on the nearest day still to come, its version in force with the
60
+ * highest number among those of that day. `app` shows it before it
61
+ * applies, as the version that will apply from its day (R130). No request names it in a
62
+ * consent: a consent names the current version.
63
+ *
64
+ * @generated from field: repeated novatrail.api.v1.LegalText next_texts = 2;
65
+ */
66
+ nextTexts: LegalText[];
55
67
  };
56
68
 
57
69
  /**
@@ -61,7 +73,7 @@ export declare type GetLegalTextsResponse = Message<"novatrail.api.v1.GetLegalTe
61
73
  export declare const GetLegalTextsResponseSchema: GenMessage<GetLegalTextsResponse>;
62
74
 
63
75
  /**
64
- * A legal text in its current version: its version in force with the highest number.
76
+ * A legal text in a version in force: its current version or its next one.
65
77
  *
66
78
  * @generated from message novatrail.api.v1.LegalText
67
79
  */
@@ -82,7 +94,8 @@ export declare type LegalText = Message<"novatrail.api.v1.LegalText"> & {
82
94
  version: number;
83
95
 
84
96
  /**
85
- * The date the author approved the version, from which it is in force, `YYYY-MM-DD`.
97
+ * The day from which the version applies, `YYYY-MM-DD`, from 00:00 UTC: the day the author
98
+ * approved it, or a later day, which comes with the version so that `app` shows it ahead.
86
99
  *
87
100
  * @generated from field: string in_force_since = 3;
88
101
  */
@@ -179,9 +192,9 @@ export declare const LegalTextRefSchema: GenMessage<LegalTextRef>;
179
192
  */
180
193
  export declare const LegalService: GenService<{
181
194
  /**
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.
195
+ * The current version of every text whose place is `app`, and its next version, each with its
196
+ * body in English, its gist in the language asked when the passport has it, else in English, and
197
+ * its translation into the language asked when the version has one.
185
198
  *
186
199
  * @generated from rpc novatrail.api.v1.LegalService.GetLegalTexts
187
200
  */
@@ -3,9 +3,9 @@
3
3
  /* eslint-disable */
4
4
 
5
5
  // The legal texts in the contract between `app` and `api`: the privacy policy, the terms of use
6
- // and the consents that `app` shows as its own pages, each in its current version, with its gist
7
- // in the language of the screen. The texts are those of the legal part, `legal/` of `spec`, or of a
8
- // self-hosted copy's operator. What each message means is the rule of contracts/README.md,
6
+ // and the consents that `app` shows as its own pages, each in its current version and its next
7
+ // one, with its gist in the language of the screen. The texts are those of the legal part,
8
+ // `legal/` of `spec`, or of a self-hosted copy's operator. What each message means is the rule of contracts/README.md,
9
9
  // section 15.
10
10
 
11
11
  import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
@@ -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("Chxub3ZhdHJhaWwvYXBpL3YxL2xlZ2FsLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIjIKFEdldExlZ2FsVGV4dHNSZXF1ZXN0EhoKEmludGVyZmFjZV9sYW5ndWFnZRgBIAEoCSJDChVHZXRMZWdhbFRleHRzUmVzcG9uc2USKgoFdGV4dHMYASADKAsyGy5ub3ZhdHJhaWwuYXBpLnYxLkxlZ2FsVGV4dCKsAQoJTGVnYWxUZXh0EgoKAmlkGAEgASgJEg8KB3ZlcnNpb24YAiABKAUSFgoOaW5fZm9yY2Vfc2luY2UYAyABKAkSDAoEYm9keRgEIAEoCRIPCgdzdW1tYXJ5GAUgASgJEhgKEHN1bW1hcnlfbGFuZ3VhZ2UYBiABKAkSEwoLdHJhbnNsYXRpb24YByABKAkSHAoUdHJhbnNsYXRpb25fbGFuZ3VhZ2UYCCABKAkiKwoMTGVnYWxUZXh0UmVmEgoKAmlkGAEgASgJEg8KB3ZlcnNpb24YAiABKAUydQoMTGVnYWxTZXJ2aWNlEmUKDUdldExl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LmFwaS52MS5HZXRMZWdhbFRleHRzUmVxdWVzdBonLm5vdmF0cmFpbC5hcGkudjEuR2V0TGVnYWxUZXh0c1Jlc3BvbnNlIgOQAgFCwwEKFGNvbS5ub3ZhdHJhaWwuYXBpLnYxQgpMZWdhbFByb3RvUAFaPWdpdGh1Yi5jb20vYWx0bm92YXRyYWlsL3NwZWMvY29udHJhY3RzL25vdmF0cmFpbC9hcGkvdjE7YXBpdjGiAgNOQViqAhBOb3ZhdHJhaWwuQXBpLlYxygIQTm92YXRyYWlsXEFwaVxWMeICHE5vdmF0cmFpbFxBcGlcVjFcR1BCTWV0YWRhdGHqAhJOb3ZhdHJhaWw6OkFwaTo6VjFiBnByb3RvMw");
18
18
 
19
19
  /**
20
20
  * Describes the message novatrail.api.v1.GetLegalTextsRequest.
@@ -0,0 +1,454 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file novatrail/api/v1/work.proto (package novatrail.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ // The stored works in the contract between `app` and `api`: the works of a profile that the server
6
+ // keeps while the storage of its works is on, each as the device holds it — the history of
7
+ // writing, the contexts of its submissions and its picture —, put, listed, read back and erased one
8
+ // at a time (R113). What each message means is the rule of contracts/README.md, section 15.
9
+
10
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
13
+ import type { Action } from "./attempt_pb.js";
14
+
15
+ /**
16
+ * Describes the file novatrail/api/v1/work.proto.
17
+ */
18
+ export declare const file_novatrail_api_v1_work: GenFile;
19
+
20
+ /**
21
+ * A work as the device holds it. Its size is the sum of the bytes of its history, of the contexts
22
+ * of its submissions and of its picture: at most 4 MiB, 4,194,304 bytes.
23
+ *
24
+ * @generated from message novatrail.api.v1.StoredWork
25
+ */
26
+ export declare type StoredWork = Message<"novatrail.api.v1.StoredWork"> & {
27
+ /**
28
+ * The attempt whose work it is.
29
+ *
30
+ * @generated from field: string attempt_id = 1;
31
+ */
32
+ attemptId: string;
33
+
34
+ /**
35
+ * What it is: set by `api`, and not sent by `PutWork`.
36
+ *
37
+ * @generated from field: novatrail.api.v1.WorkKind kind = 2;
38
+ */
39
+ kind: WorkKind;
40
+
41
+ /**
42
+ * The history of writing, as the element `<novatrail-canvas>` gives it, in its own names: the
43
+ * JSON array of it, in UTF-8. The server checks that it is one, keeps it as bytes, and reads no
44
+ * more of it.
45
+ *
46
+ * @generated from field: bytes history = 3;
47
+ */
48
+ history: Uint8Array;
49
+
50
+ /**
51
+ * Each submission of the attempt, in order.
52
+ *
53
+ * @generated from field: repeated novatrail.api.v1.WorkSubmission submissions = 4;
54
+ */
55
+ submissions: WorkSubmission[];
56
+
57
+ /**
58
+ * The picture of the work: the PNG of the strokes the surface shows at the end, as the device
59
+ * draws it, beginning with the signature of PNG.
60
+ *
61
+ * @generated from field: bytes picture = 5;
62
+ */
63
+ picture: Uint8Array;
64
+
65
+ /**
66
+ * When `api` kept it: set by `api`, and not sent by `PutWork`.
67
+ *
68
+ * @generated from field: google.protobuf.Timestamp stored_at = 6;
69
+ */
70
+ storedAt?: Timestamp | undefined;
71
+ };
72
+
73
+ /**
74
+ * Describes the message novatrail.api.v1.StoredWork.
75
+ * Use `create(StoredWorkSchema)` to create a new message.
76
+ */
77
+ export declare const StoredWorkSchema: GenMessage<StoredWork>;
78
+
79
+ /**
80
+ * A submission of a stored work.
81
+ *
82
+ * @generated from message novatrail.api.v1.WorkSubmission
83
+ */
84
+ export declare type WorkSubmission = Message<"novatrail.api.v1.WorkSubmission"> & {
85
+ /**
86
+ * The context of the submission, as the element `<novatrail-canvas>` gave it, in its own names:
87
+ * the JSON object of it, in UTF-8.
88
+ *
89
+ * @generated from field: bytes context = 1;
90
+ */
91
+ context: Uint8Array;
92
+
93
+ /**
94
+ * How many events of the history the submission covers.
95
+ *
96
+ * @generated from field: int32 history_length = 2;
97
+ */
98
+ historyLength: number;
99
+ };
100
+
101
+ /**
102
+ * Describes the message novatrail.api.v1.WorkSubmission.
103
+ * Use `create(WorkSubmissionSchema)` to create a new message.
104
+ */
105
+ export declare const WorkSubmissionSchema: GenMessage<WorkSubmission>;
106
+
107
+ /**
108
+ * A stored work named, without its bytes.
109
+ *
110
+ * @generated from message novatrail.api.v1.StoredWorkInfo
111
+ */
112
+ export declare type StoredWorkInfo = Message<"novatrail.api.v1.StoredWorkInfo"> & {
113
+ /**
114
+ * The attempt whose work it is.
115
+ *
116
+ * @generated from field: string attempt_id = 1;
117
+ */
118
+ attemptId: string;
119
+
120
+ /**
121
+ * What it is.
122
+ *
123
+ * @generated from field: novatrail.api.v1.WorkKind kind = 2;
124
+ */
125
+ kind: WorkKind;
126
+
127
+ /**
128
+ * When `api` kept it.
129
+ *
130
+ * @generated from field: google.protobuf.Timestamp stored_at = 3;
131
+ */
132
+ storedAt?: Timestamp | undefined;
133
+
134
+ /**
135
+ * Its size, in bytes, as `StoredWork` counts it.
136
+ *
137
+ * @generated from field: int64 size_bytes = 4;
138
+ */
139
+ sizeBytes: bigint;
140
+ };
141
+
142
+ /**
143
+ * Describes the message novatrail.api.v1.StoredWorkInfo.
144
+ * Use `create(StoredWorkInfoSchema)` to create a new message.
145
+ */
146
+ export declare const StoredWorkInfoSchema: GenMessage<StoredWorkInfo>;
147
+
148
+ /**
149
+ * A work to keep.
150
+ *
151
+ * @generated from message novatrail.api.v1.PutWorkRequest
152
+ */
153
+ export declare type PutWorkRequest = Message<"novatrail.api.v1.PutWorkRequest"> & {
154
+ /**
155
+ * The profile.
156
+ *
157
+ * @generated from field: string profile_id = 1;
158
+ */
159
+ profileId: string;
160
+
161
+ /**
162
+ * The work, with no `kind` and no `stored_at`.
163
+ *
164
+ * @generated from field: novatrail.api.v1.StoredWork work = 2;
165
+ */
166
+ work?: StoredWork | undefined;
167
+ };
168
+
169
+ /**
170
+ * Describes the message novatrail.api.v1.PutWorkRequest.
171
+ * Use `create(PutWorkRequestSchema)` to create a new message.
172
+ */
173
+ export declare const PutWorkRequestSchema: GenMessage<PutWorkRequest>;
174
+
175
+ /**
176
+ * The work kept.
177
+ *
178
+ * @generated from message novatrail.api.v1.PutWorkResponse
179
+ */
180
+ export declare type PutWorkResponse = Message<"novatrail.api.v1.PutWorkResponse"> & {
181
+ /**
182
+ * The work named, as `ListWorks` names it.
183
+ *
184
+ * @generated from field: novatrail.api.v1.StoredWorkInfo work = 1;
185
+ */
186
+ work?: StoredWorkInfo | undefined;
187
+ };
188
+
189
+ /**
190
+ * Describes the message novatrail.api.v1.PutWorkResponse.
191
+ * Use `create(PutWorkResponseSchema)` to create a new message.
192
+ */
193
+ export declare const PutWorkResponseSchema: GenMessage<PutWorkResponse>;
194
+
195
+ /**
196
+ * A request for the list of stored works.
197
+ *
198
+ * @generated from message novatrail.api.v1.ListWorksRequest
199
+ */
200
+ export declare type ListWorksRequest = Message<"novatrail.api.v1.ListWorksRequest"> & {
201
+ /**
202
+ * The profile.
203
+ *
204
+ * @generated from field: string profile_id = 1;
205
+ */
206
+ profileId: string;
207
+
208
+ /**
209
+ * Whose action it is: `ACTION_LEARNING` or `ACTION_ADULT`. `ACTION_UNSPECIFIED` is refused
210
+ * `invalid_argument`.
211
+ *
212
+ * @generated from field: novatrail.api.v1.Action action = 2;
213
+ */
214
+ action: Action;
215
+ };
216
+
217
+ /**
218
+ * Describes the message novatrail.api.v1.ListWorksRequest.
219
+ * Use `create(ListWorksRequestSchema)` to create a new message.
220
+ */
221
+ export declare const ListWorksRequestSchema: GenMessage<ListWorksRequest>;
222
+
223
+ /**
224
+ * The stored works of the profile.
225
+ *
226
+ * @generated from message novatrail.api.v1.ListWorksResponse
227
+ */
228
+ export declare type ListWorksResponse = Message<"novatrail.api.v1.ListWorksResponse"> & {
229
+ /**
230
+ * Each work kept, newest first.
231
+ *
232
+ * @generated from field: repeated novatrail.api.v1.StoredWorkInfo works = 1;
233
+ */
234
+ works: StoredWorkInfo[];
235
+ };
236
+
237
+ /**
238
+ * Describes the message novatrail.api.v1.ListWorksResponse.
239
+ * Use `create(ListWorksResponseSchema)` to create a new message.
240
+ */
241
+ export declare const ListWorksResponseSchema: GenMessage<ListWorksResponse>;
242
+
243
+ /**
244
+ * A request for one stored work.
245
+ *
246
+ * @generated from message novatrail.api.v1.GetWorkRequest
247
+ */
248
+ export declare type GetWorkRequest = Message<"novatrail.api.v1.GetWorkRequest"> & {
249
+ /**
250
+ * The profile.
251
+ *
252
+ * @generated from field: string profile_id = 1;
253
+ */
254
+ profileId: string;
255
+
256
+ /**
257
+ * The attempt whose work it is.
258
+ *
259
+ * @generated from field: string attempt_id = 2;
260
+ */
261
+ attemptId: string;
262
+
263
+ /**
264
+ * Whose action it is, as at `ListWorks`.
265
+ *
266
+ * @generated from field: novatrail.api.v1.Action action = 3;
267
+ */
268
+ action: Action;
269
+ };
270
+
271
+ /**
272
+ * Describes the message novatrail.api.v1.GetWorkRequest.
273
+ * Use `create(GetWorkRequestSchema)` to create a new message.
274
+ */
275
+ export declare const GetWorkRequestSchema: GenMessage<GetWorkRequest>;
276
+
277
+ /**
278
+ * One stored work.
279
+ *
280
+ * @generated from message novatrail.api.v1.GetWorkResponse
281
+ */
282
+ export declare type GetWorkResponse = Message<"novatrail.api.v1.GetWorkResponse"> & {
283
+ /**
284
+ * The work, whole.
285
+ *
286
+ * @generated from field: novatrail.api.v1.StoredWork work = 1;
287
+ */
288
+ work?: StoredWork | undefined;
289
+ };
290
+
291
+ /**
292
+ * Describes the message novatrail.api.v1.GetWorkResponse.
293
+ * Use `create(GetWorkResponseSchema)` to create a new message.
294
+ */
295
+ export declare const GetWorkResponseSchema: GenMessage<GetWorkResponse>;
296
+
297
+ /**
298
+ * The erasure of one stored work.
299
+ *
300
+ * @generated from message novatrail.api.v1.DeleteWorkRequest
301
+ */
302
+ export declare type DeleteWorkRequest = Message<"novatrail.api.v1.DeleteWorkRequest"> & {
303
+ /**
304
+ * The profile.
305
+ *
306
+ * @generated from field: string profile_id = 1;
307
+ */
308
+ profileId: string;
309
+
310
+ /**
311
+ * The attempt whose work it is.
312
+ *
313
+ * @generated from field: string attempt_id = 2;
314
+ */
315
+ attemptId: string;
316
+
317
+ /**
318
+ * Whose action it is: `ACTION_ADULT`, or `ACTION_LEARNING` at a profile whose learner gave their
319
+ * own consent. `ACTION_UNSPECIFIED` is refused `invalid_argument`.
320
+ *
321
+ * @generated from field: novatrail.api.v1.Action action = 3;
322
+ */
323
+ action: Action;
324
+ };
325
+
326
+ /**
327
+ * Describes the message novatrail.api.v1.DeleteWorkRequest.
328
+ * Use `create(DeleteWorkRequestSchema)` to create a new message.
329
+ */
330
+ export declare const DeleteWorkRequestSchema: GenMessage<DeleteWorkRequest>;
331
+
332
+ /**
333
+ * "Erased": the server keeps no work of the attempt.
334
+ *
335
+ * @generated from message novatrail.api.v1.DeleteWorkResponse
336
+ */
337
+ export declare type DeleteWorkResponse = Message<"novatrail.api.v1.DeleteWorkResponse"> & {
338
+ };
339
+
340
+ /**
341
+ * Describes the message novatrail.api.v1.DeleteWorkResponse.
342
+ * Use `create(DeleteWorkResponseSchema)` to create a new message.
343
+ */
344
+ export declare const DeleteWorkResponseSchema: GenMessage<DeleteWorkResponse>;
345
+
346
+ /**
347
+ * What a stored work is, which `api` takes from the attempt's task.
348
+ *
349
+ * @generated from enum novatrail.api.v1.WorkKind
350
+ */
351
+ export enum WorkKind {
352
+ /**
353
+ * Not named: never sent.
354
+ *
355
+ * @generated from enum value: WORK_KIND_UNSPECIFIED = 0;
356
+ */
357
+ UNSPECIFIED = 0,
358
+
359
+ /**
360
+ * The handwriting on a task with a verdict: an item checked by a key or a predicate.
361
+ *
362
+ * @generated from enum value: WORK_KIND_HANDWRITING = 1;
363
+ */
364
+ HANDWRITING = 1,
365
+
366
+ /**
367
+ * An essay: a task with a rubric.
368
+ *
369
+ * @generated from enum value: WORK_KIND_ESSAY = 2;
370
+ */
371
+ ESSAY = 2,
372
+
373
+ /**
374
+ * A drawing: a task with no item checked and no rubric.
375
+ *
376
+ * @generated from enum value: WORK_KIND_DRAWING = 3;
377
+ */
378
+ DRAWING = 3,
379
+ }
380
+
381
+ /**
382
+ * Describes the enum novatrail.api.v1.WorkKind.
383
+ */
384
+ export declare const WorkKindSchema: GenEnum<WorkKind>;
385
+
386
+ /**
387
+ * The stored works of a profile. Every method carries the token of the sign-in service and may get
388
+ * the refusals of every request with a token, which the comment of `AccountService` names with
389
+ * what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, an attempt
390
+ * that is not the profile's `CAUSE_NOT_FOUND`, a learning request of a profile whose consent is not
391
+ * 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.
396
+ *
397
+ * @generated from service novatrail.api.v1.WorkService
398
+ */
399
+ export declare const WorkService: GenService<{
400
+ /**
401
+ * Keeps the work of an attempt of the profile, in place of the one kept of it before: a learning
402
+ * request with the right `can_learn`, while the profile's storage of works is on. `app` puts a
403
+ * work when it writes it to the device — at each submission and when the attempt closes at
404
+ * 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`.
408
+ *
409
+ * @generated from rpc novatrail.api.v1.WorkService.PutWork
410
+ */
411
+ putWork: {
412
+ methodKind: "unary";
413
+ input: typeof PutWorkRequestSchema;
414
+ output: typeof PutWorkResponseSchema;
415
+ },
416
+ /**
417
+ * The works of the profile kept on the server, newest first, without their bytes: a learning
418
+ * 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.
420
+ *
421
+ * @generated from rpc novatrail.api.v1.WorkService.ListWorks
422
+ */
423
+ listWorks: {
424
+ methodKind: "unary";
425
+ input: typeof ListWorksRequestSchema;
426
+ output: typeof ListWorksResponseSchema;
427
+ },
428
+ /**
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.
431
+ *
432
+ * @generated from rpc novatrail.api.v1.WorkService.GetWork
433
+ */
434
+ getWork: {
435
+ methodKind: "unary";
436
+ input: typeof GetWorkRequestSchema;
437
+ output: typeof GetWorkResponseSchema;
438
+ },
439
+ /**
440
+ * Erases one work kept on the server, by whoever consents to the storage for the learner, as
441
+ * `SetWorkStorage`: an action of an adult with `can_manage`, and at a profile whose learner gave
442
+ * 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`.
445
+ *
446
+ * @generated from rpc novatrail.api.v1.WorkService.DeleteWork
447
+ */
448
+ deleteWork: {
449
+ methodKind: "unary";
450
+ input: typeof DeleteWorkRequestSchema;
451
+ output: typeof DeleteWorkResponseSchema;
452
+ },
453
+ }>;
454
+
@@ -0,0 +1,126 @@
1
+ // @generated by protoc-gen-es v2.17.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file novatrail/api/v1/work.proto (package novatrail.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ // The stored works in the contract between `app` and `api`: the works of a profile that the server
6
+ // keeps while the storage of its works is on, each as the device holds it — the history of
7
+ // writing, the contexts of its submissions and its picture —, put, listed, read back and erased one
8
+ // at a time (R113). What each message means is the rule of contracts/README.md, section 15.
9
+
10
+ import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
11
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
12
+ import { file_novatrail_api_v1_attempt } from "./attempt_pb.js";
13
+
14
+ /**
15
+ * Describes the file novatrail/api/v1/work.proto.
16
+ */
17
+ export const file_novatrail_api_v1_work = /*@__PURE__*/
18
+ fileDesc("Chtub3ZhdHJhaWwvYXBpL3YxL3dvcmsucHJvdG8SEG5vdmF0cmFpbC5hcGkudjEi0gEKClN0b3JlZFdvcmsSEgoKYXR0ZW1wdF9pZBgBIAEoCRIoCgRraW5kGAIgASgOMhoubm92YXRyYWlsLmFwaS52MS5Xb3JrS2luZBIPCgdoaXN0b3J5GAMgASgMEjUKC3N1Ym1pc3Npb25zGAQgAygLMiAubm92YXRyYWlsLmFwaS52MS5Xb3JrU3VibWlzc2lvbhIPCgdwaWN0dXJlGAUgASgMEi0KCXN0b3JlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiOQoOV29ya1N1Ym1pc3Npb24SDwoHY29udGV4dBgBIAEoDBIWCg5oaXN0b3J5X2xlbmd0aBgCIAEoBSKRAQoOU3RvcmVkV29ya0luZm8SEgoKYXR0ZW1wdF9pZBgBIAEoCRIoCgRraW5kGAIgASgOMhoubm92YXRyYWlsLmFwaS52MS5Xb3JrS2luZBItCglzdG9yZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnNpemVfYnl0ZXMYBCABKAMiUAoOUHV0V29ya1JlcXVlc3QSEgoKcHJvZmlsZV9pZBgBIAEoCRIqCgR3b3JrGAIgASgLMhwubm92YXRyYWlsLmFwaS52MS5TdG9yZWRXb3JrIkEKD1B1dFdvcmtSZXNwb25zZRIuCgR3b3JrGAEgASgLMiAubm92YXRyYWlsLmFwaS52MS5TdG9yZWRXb3JrSW5mbyJQChBMaXN0V29ya3NSZXF1ZXN0EhIKCnByb2ZpbGVfaWQYASABKAkSKAoGYWN0aW9uGAIgASgOMhgubm92YXRyYWlsLmFwaS52MS5BY3Rpb24iRAoRTGlzdFdvcmtzUmVzcG9u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KFGNvbS5ub3ZhdHJhaWwuYXBpLnYxQglXb3JrUHJvdG9QAVo9Z2l0aHViLmNvbS9hbHRub3ZhdHJhaWwvc3BlYy9jb250cmFjdHMvbm92YXRyYWlsL2FwaS92MTthcGl2MaICA05BWKoCEE5vdmF0cmFpbC5BcGkuVjHKAhBOb3ZhdHJhaWxcQXBpXFYx4gIcTm92YXRyYWlsXEFwaVxWMVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_novatrail_api_v1_attempt]);
19
+
20
+ /**
21
+ * Describes the message novatrail.api.v1.StoredWork.
22
+ * Use `create(StoredWorkSchema)` to create a new message.
23
+ */
24
+ export const StoredWorkSchema = /*@__PURE__*/
25
+ messageDesc(file_novatrail_api_v1_work, 0);
26
+
27
+ /**
28
+ * Describes the message novatrail.api.v1.WorkSubmission.
29
+ * Use `create(WorkSubmissionSchema)` to create a new message.
30
+ */
31
+ export const WorkSubmissionSchema = /*@__PURE__*/
32
+ messageDesc(file_novatrail_api_v1_work, 1);
33
+
34
+ /**
35
+ * Describes the message novatrail.api.v1.StoredWorkInfo.
36
+ * Use `create(StoredWorkInfoSchema)` to create a new message.
37
+ */
38
+ export const StoredWorkInfoSchema = /*@__PURE__*/
39
+ messageDesc(file_novatrail_api_v1_work, 2);
40
+
41
+ /**
42
+ * Describes the message novatrail.api.v1.PutWorkRequest.
43
+ * Use `create(PutWorkRequestSchema)` to create a new message.
44
+ */
45
+ export const PutWorkRequestSchema = /*@__PURE__*/
46
+ messageDesc(file_novatrail_api_v1_work, 3);
47
+
48
+ /**
49
+ * Describes the message novatrail.api.v1.PutWorkResponse.
50
+ * Use `create(PutWorkResponseSchema)` to create a new message.
51
+ */
52
+ export const PutWorkResponseSchema = /*@__PURE__*/
53
+ messageDesc(file_novatrail_api_v1_work, 4);
54
+
55
+ /**
56
+ * Describes the message novatrail.api.v1.ListWorksRequest.
57
+ * Use `create(ListWorksRequestSchema)` to create a new message.
58
+ */
59
+ export const ListWorksRequestSchema = /*@__PURE__*/
60
+ messageDesc(file_novatrail_api_v1_work, 5);
61
+
62
+ /**
63
+ * Describes the message novatrail.api.v1.ListWorksResponse.
64
+ * Use `create(ListWorksResponseSchema)` to create a new message.
65
+ */
66
+ export const ListWorksResponseSchema = /*@__PURE__*/
67
+ messageDesc(file_novatrail_api_v1_work, 6);
68
+
69
+ /**
70
+ * Describes the message novatrail.api.v1.GetWorkRequest.
71
+ * Use `create(GetWorkRequestSchema)` to create a new message.
72
+ */
73
+ export const GetWorkRequestSchema = /*@__PURE__*/
74
+ messageDesc(file_novatrail_api_v1_work, 7);
75
+
76
+ /**
77
+ * Describes the message novatrail.api.v1.GetWorkResponse.
78
+ * Use `create(GetWorkResponseSchema)` to create a new message.
79
+ */
80
+ export const GetWorkResponseSchema = /*@__PURE__*/
81
+ messageDesc(file_novatrail_api_v1_work, 8);
82
+
83
+ /**
84
+ * Describes the message novatrail.api.v1.DeleteWorkRequest.
85
+ * Use `create(DeleteWorkRequestSchema)` to create a new message.
86
+ */
87
+ export const DeleteWorkRequestSchema = /*@__PURE__*/
88
+ messageDesc(file_novatrail_api_v1_work, 9);
89
+
90
+ /**
91
+ * Describes the message novatrail.api.v1.DeleteWorkResponse.
92
+ * Use `create(DeleteWorkResponseSchema)` to create a new message.
93
+ */
94
+ export const DeleteWorkResponseSchema = /*@__PURE__*/
95
+ messageDesc(file_novatrail_api_v1_work, 10);
96
+
97
+ /**
98
+ * Describes the enum novatrail.api.v1.WorkKind.
99
+ */
100
+ export const WorkKindSchema = /*@__PURE__*/
101
+ enumDesc(file_novatrail_api_v1_work, 0);
102
+
103
+ /**
104
+ * What a stored work is, which `api` takes from the attempt's task.
105
+ *
106
+ * @generated from enum novatrail.api.v1.WorkKind
107
+ */
108
+ export const WorkKind = /*@__PURE__*/
109
+ tsEnum(WorkKindSchema);
110
+
111
+ /**
112
+ * The stored works of a profile. Every method carries the token of the sign-in service and may get
113
+ * the refusals of every request with a token, which the comment of `AccountService` names with
114
+ * what `app` does on each; a profile that is not the account's gets `CAUSE_NO_PROFILE`, an attempt
115
+ * that is not the profile's `CAUSE_NOT_FOUND`, a learning request of a profile whose consent is not
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.
121
+ *
122
+ * @generated from service novatrail.api.v1.WorkService
123
+ */
124
+ export const WorkService = /*@__PURE__*/
125
+ serviceDesc(file_novatrail_api_v1_work, 0);
126
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/contracts",
3
- "version": "0.16.7",
3
+ "version": "0.17.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": {
@@ -41,6 +41,10 @@
41
41
  "types": "./novatrail/api/v1/progress_pb.d.ts",
42
42
  "default": "./novatrail/api/v1/progress_pb.js"
43
43
  },
44
+ "./novatrail/api/v1/work_pb.js": {
45
+ "types": "./novatrail/api/v1/work_pb.d.ts",
46
+ "default": "./novatrail/api/v1/work_pb.js"
47
+ },
44
48
  "./novatrail/eval/v1/report_pb.js": {
45
49
  "types": "./novatrail/eval/v1/report_pb.d.ts",
46
50
  "default": "./novatrail/eval/v1/report_pb.js"