@altnovatrail/contracts 0.8.0 → 0.8.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.
@@ -0,0 +1,438 @@
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file novatrail/api/v1/cause.proto (package novatrail.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ // The causes of the contract between `app` and `api`: one list for its refusals and for the
6
+ // outcomes of its calls of AI, the refusal that a method's error carries, and the outcome that its
7
+ // answer carries. What they mean, and how `app` reads a cause it does not know, are the rules of
8
+ // contracts/README.md, section 15.
9
+
10
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
11
+ import type { Message } from "@bufbuild/protobuf";
12
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
13
+
14
+ /**
15
+ * Describes the file novatrail/api/v1/cause.proto.
16
+ */
17
+ export declare const file_novatrail_api_v1_cause: GenFile;
18
+
19
+ /**
20
+ * A refusal: the detail of an error of Connect when the request was not done.
21
+ *
22
+ * @generated from message novatrail.api.v1.Refusal
23
+ */
24
+ export declare type Refusal = Message<"novatrail.api.v1.Refusal"> & {
25
+ /**
26
+ * Why the request was refused.
27
+ *
28
+ * @generated from field: novatrail.api.v1.Cause cause = 1;
29
+ */
30
+ cause: Cause;
31
+
32
+ /**
33
+ * What the cause tells beside it, when it tells anything.
34
+ *
35
+ * @generated from oneof novatrail.api.v1.Refusal.data
36
+ */
37
+ data: {
38
+ /**
39
+ * Beside `CAUSE_ATTEMPT_CLOSED`: the close reason of the attempt.
40
+ *
41
+ * @generated from field: novatrail.api.v1.CloseReason close_reason = 2;
42
+ */
43
+ value: CloseReason;
44
+ case: "closeReason";
45
+ } | {
46
+ /**
47
+ * Beside `CAUSE_QUOTA`: when the next family day begins.
48
+ *
49
+ * @generated from field: google.protobuf.Timestamp next_family_day = 3;
50
+ */
51
+ value: Timestamp;
52
+ case: "nextFamilyDay";
53
+ } | {
54
+ /**
55
+ * Beside `CAUSE_NOT_CURRENT`: how many wrong answers the attempt has.
56
+ *
57
+ * @generated from field: int32 wrong_answers = 4;
58
+ */
59
+ value: number;
60
+ case: "wrongAnswers";
61
+ } | { case: undefined; value?: undefined };
62
+ };
63
+
64
+ /**
65
+ * Describes the message novatrail.api.v1.Refusal.
66
+ * Use `create(RefusalSchema)` to create a new message.
67
+ */
68
+ export declare const RefusalSchema: GenMessage<Refusal>;
69
+
70
+ /**
71
+ * An outcome: what a call of AI came to when the answer holds no reading, or no words, of AI.
72
+ *
73
+ * @generated from message novatrail.api.v1.Outcome
74
+ */
75
+ export declare type Outcome = Message<"novatrail.api.v1.Outcome"> & {
76
+ /**
77
+ * The outcome: `CAUSE_AI_FAILURE`, `CAUSE_QUOTA`, `CAUSE_PLATFORM_LIMIT`,
78
+ * `CAUSE_NOT_ADMITTED`, `CAUSE_LIMIT_REACHED`, `CAUSE_KEY_REFUSED` or `CAUSE_NO_OTHER_WORDS`.
79
+ * "Explain differently" makes no call without the reserve of the quota: there the quota, the limit
80
+ * of platform AI and no admission are refusals, and the right to it on the rung stays.
81
+ *
82
+ * @generated from field: novatrail.api.v1.Cause cause = 1;
83
+ */
84
+ cause: Cause;
85
+
86
+ /**
87
+ * Beside `CAUSE_QUOTA`: when the next family day begins.
88
+ *
89
+ * @generated from field: google.protobuf.Timestamp next_family_day = 2;
90
+ */
91
+ nextFamilyDay?: Timestamp | undefined;
92
+
93
+ /**
94
+ * Beside `CAUSE_LIMIT_REACHED`: which limit of the own key ran out.
95
+ *
96
+ * @generated from field: novatrail.api.v1.OwnKeyLimit own_key_limit = 3;
97
+ */
98
+ ownKeyLimit?: OwnKeyLimit | undefined;
99
+ };
100
+
101
+ /**
102
+ * Describes the message novatrail.api.v1.Outcome.
103
+ * Use `create(OutcomeSchema)` to create a new message.
104
+ */
105
+ export declare const OutcomeSchema: GenMessage<Outcome>;
106
+
107
+ /**
108
+ * The limit of the learner's own key that ran out at its provider (R55 tutor).
109
+ *
110
+ * @generated from message novatrail.api.v1.OwnKeyLimit
111
+ */
112
+ export declare type OwnKeyLimit = Message<"novatrail.api.v1.OwnKeyLimit"> & {
113
+ /**
114
+ * Which limit ran out.
115
+ *
116
+ * @generated from field: novatrail.api.v1.LimitCause cause = 1;
117
+ */
118
+ cause: LimitCause;
119
+
120
+ /**
121
+ * When access comes back: only when the provider says so.
122
+ *
123
+ * @generated from field: google.protobuf.Timestamp access_returns = 2;
124
+ */
125
+ accessReturns?: Timestamp | undefined;
126
+ };
127
+
128
+ /**
129
+ * Describes the message novatrail.api.v1.OwnKeyLimit.
130
+ * Use `create(OwnKeyLimitSchema)` to create a new message.
131
+ */
132
+ export declare const OwnKeyLimitSchema: GenMessage<OwnKeyLimit>;
133
+
134
+ /**
135
+ * Why a request was refused, or what a call of AI in it came to: one list for the whole contract
136
+ * (R17 api). A refusal comes as the detail `Refusal` of an error of Connect, with the code that the
137
+ * comment of each method gives it; an outcome comes in the answer, as `Outcome`. A cause that the
138
+ * build of `app` does not know it reads by the code of the error, or as a call of AI that gave
139
+ * nothing. A verdict's reason is no cause: it is the module format's and the observation's.
140
+ *
141
+ * @generated from enum novatrail.api.v1.Cause
142
+ */
143
+ export enum Cause {
144
+ /**
145
+ * No cause: never sent.
146
+ *
147
+ * @generated from enum value: CAUSE_UNSPECIFIED = 0;
148
+ */
149
+ UNSPECIFIED = 0,
150
+
151
+ /**
152
+ * The profile named is not one of the account's, or there is no such profile. Code `not_found`.
153
+ *
154
+ * @generated from enum value: CAUSE_NO_PROFILE = 1;
155
+ */
156
+ NO_PROFILE = 1,
157
+
158
+ /**
159
+ * The profile has no attempt with the ID named; another profile's is the same. Code
160
+ * `not_found`.
161
+ *
162
+ * @generated from enum value: CAUSE_NOT_FOUND = 2;
163
+ */
164
+ NOT_FOUND = 2,
165
+
166
+ /**
167
+ * The attempt is closed, and the request acts on an open one. The refusal holds the close reason
168
+ * of the attempt. Code `failed_precondition`. An essay whose attempt was closed while its
169
+ * submission went is no refusal: its answer says so by a field of its own.
170
+ *
171
+ * @generated from enum value: CAUSE_ATTEMPT_CLOSED = 3;
172
+ */
173
+ ATTEMPT_CLOSED = 3,
174
+
175
+ /**
176
+ * The idempotency key was sent with another method or another attempt. Code `invalid_argument`.
177
+ *
178
+ * @generated from enum value: CAUSE_KEY_ALREADY_USED = 4;
179
+ */
180
+ KEY_ALREADY_USED = 4,
181
+
182
+ /**
183
+ * The request with this idempotency key is still going; its repeat waits for it. Code
184
+ * `unavailable`.
185
+ *
186
+ * @generated from enum value: CAUSE_STILL_GOING = 5;
187
+ */
188
+ STILL_GOING = 5,
189
+
190
+ /**
191
+ * The learner's own key came with a profile whose age category is not `adult`. Code
192
+ * `invalid_argument`.
193
+ *
194
+ * @generated from enum value: CAUSE_KEY_NOT_FOR_PROFILE = 6;
195
+ */
196
+ KEY_NOT_FOR_PROFILE = 6,
197
+
198
+ /**
199
+ * The quota of platform AI for the family day is spent. A refusal holds when the next family day
200
+ * begins; so does an outcome. Code `resource_exhausted`.
201
+ *
202
+ * @generated from enum value: CAUSE_QUOTA = 7;
203
+ */
204
+ QUOTA = 7,
205
+
206
+ /**
207
+ * Platform AI is out of what its provider allows the platform. Code `resource_exhausted`.
208
+ *
209
+ * @generated from enum value: CAUSE_PLATFORM_LIMIT = 8;
210
+ */
211
+ PLATFORM_LIMIT = 8,
212
+
213
+ /**
214
+ * The admission function admits no call of AI for this learner and this capability of AI. Code
215
+ * `failed_precondition`.
216
+ *
217
+ * @generated from enum value: CAUSE_NOT_ADMITTED = 9;
218
+ */
219
+ NOT_ADMITTED = 9,
220
+
221
+ /**
222
+ * AI failed: an error, a refusal of the provider, a timeout. An outcome alone.
223
+ *
224
+ * @generated from enum value: CAUSE_AI_FAILURE = 10;
225
+ */
226
+ AI_FAILURE = 10,
227
+
228
+ /**
229
+ * The limit of the learner's own key ran out at its provider. The outcome holds why, and when
230
+ * access comes back if the provider says so. An outcome alone: the call does not move to
231
+ * platform AI.
232
+ *
233
+ * @generated from enum value: CAUSE_LIMIT_REACHED = 11;
234
+ */
235
+ LIMIT_REACHED = 11,
236
+
237
+ /**
238
+ * The provider refused the learner's own key: it is not valid, or it was revoked. An outcome
239
+ * alone: the call does not move to platform AI.
240
+ *
241
+ * @generated from enum value: CAUSE_KEY_REFUSED = 12;
242
+ */
243
+ KEY_REFUSED = 12,
244
+
245
+ /**
246
+ * A learning request to show the solution, while the child's setting "ask before showing" is on:
247
+ * the solution is shown by an action of an adult. Code `permission_denied`.
248
+ *
249
+ * @generated from enum value: CAUSE_ADULT_NEEDED = 13;
250
+ */
251
+ ADULT_NEEDED = 13,
252
+
253
+ /**
254
+ * A child asks for the solution before the fourth wrong answer. Code `failed_precondition`.
255
+ *
256
+ * @generated from enum value: CAUSE_LADDER_NOT_PASSED = 14;
257
+ */
258
+ LADDER_NOT_PASSED = 14,
259
+
260
+ /**
261
+ * The task has nothing to show by this request: a task with a rubric, which "Done" ends. Code
262
+ * `failed_precondition`.
263
+ *
264
+ * @generated from enum value: CAUSE_NO_SHOWING = 15;
265
+ */
266
+ NO_SHOWING = 15,
267
+
268
+ /**
269
+ * The attempt has no rung: no wrong answer yet, or a task with a rubric. Code
270
+ * `failed_precondition`.
271
+ *
272
+ * @generated from enum value: CAUSE_NO_RUNG = 16;
273
+ */
274
+ NO_RUNG = 16,
275
+
276
+ /**
277
+ * "Explain differently" was asked for once on this rung already. Code `failed_precondition`.
278
+ *
279
+ * @generated from enum value: CAUSE_ALREADY_ASKED = 17;
280
+ */
281
+ ALREADY_ASKED = 17,
282
+
283
+ /**
284
+ * "Explain differently" was called and gave the words the learner reads already: the right to it
285
+ * on this rung is spent. An outcome alone.
286
+ *
287
+ * @generated from enum value: CAUSE_NO_OTHER_WORDS = 18;
288
+ */
289
+ NO_OTHER_WORDS = 18,
290
+
291
+ /**
292
+ * The words asked for are not given: the words after a correct answer on an attempt that no
293
+ * correct answer closed, a second time, or once the profile began another attempt; the words of a
294
+ * rung from the fourth wrong answer on, where no rung is new. Code `failed_precondition`.
295
+ *
296
+ * @generated from enum value: CAUSE_NO_MORE_WORDS = 19;
297
+ */
298
+ NO_MORE_WORDS = 19,
299
+
300
+ /**
301
+ * "Done" before the attempt's first submission. Code `failed_precondition`.
302
+ *
303
+ * @generated from enum value: CAUSE_NO_SUBMISSION = 20;
304
+ */
305
+ NO_SUBMISSION = 20,
306
+
307
+ /**
308
+ * The words of a rung, or "explain differently", asked for a wrong answer that is not the
309
+ * attempt's last: another submission came meanwhile. The refusal holds how many wrong answers the attempt has. Code
310
+ * `failed_precondition`.
311
+ *
312
+ * @generated from enum value: CAUSE_NOT_CURRENT = 21;
313
+ */
314
+ NOT_CURRENT = 21,
315
+ }
316
+
317
+ /**
318
+ * Describes the enum novatrail.api.v1.Cause.
319
+ */
320
+ export declare const CauseSchema: GenEnum<Cause>;
321
+
322
+ /**
323
+ * Which limit of the learner's own key ran out at its provider.
324
+ *
325
+ * @generated from enum novatrail.api.v1.LimitCause
326
+ */
327
+ export enum LimitCause {
328
+ /**
329
+ * Not named: the provider said no more than that a limit ran out.
330
+ *
331
+ * @generated from enum value: LIMIT_CAUSE_UNSPECIFIED = 0;
332
+ */
333
+ UNSPECIFIED = 0,
334
+
335
+ /**
336
+ * The limit of spending that the owner of the key set at the provider.
337
+ *
338
+ * @generated from enum value: LIMIT_CAUSE_LIMIT = 1;
339
+ */
340
+ LIMIT = 1,
341
+
342
+ /**
343
+ * The ceiling of the provider's tier that the key's account is on.
344
+ *
345
+ * @generated from enum value: LIMIT_CAUSE_TIER = 2;
346
+ */
347
+ TIER = 2,
348
+
349
+ /**
350
+ * The balance of the key's account is spent.
351
+ *
352
+ * @generated from enum value: LIMIT_CAUSE_BALANCE = 3;
353
+ */
354
+ BALANCE = 3,
355
+
356
+ /**
357
+ * A payment of the key's account did not go through.
358
+ *
359
+ * @generated from enum value: LIMIT_CAUSE_PAYMENT = 4;
360
+ */
361
+ PAYMENT = 4,
362
+ }
363
+
364
+ /**
365
+ * Describes the enum novatrail.api.v1.LimitCause.
366
+ */
367
+ export declare const LimitCauseSchema: GenEnum<LimitCause>;
368
+
369
+ /**
370
+ * Why an attempt was closed (architecture 3.5 api). An attempt that is not closed waits, whatever
371
+ * its submissions came to.
372
+ *
373
+ * @generated from enum novatrail.api.v1.CloseReason
374
+ */
375
+ export enum CloseReason {
376
+ /**
377
+ * Not closed: the attempt is open.
378
+ *
379
+ * @generated from enum value: CLOSE_REASON_UNSPECIFIED = 0;
380
+ */
381
+ UNSPECIFIED = 0,
382
+
383
+ /**
384
+ * A submission whose every item is correct.
385
+ *
386
+ * @generated from enum value: CLOSE_REASON_CORRECT = 1;
387
+ */
388
+ CORRECT = 1,
389
+
390
+ /**
391
+ * The solution was shown.
392
+ *
393
+ * @generated from enum value: CLOSE_REASON_SOLUTION_SHOWN = 2;
394
+ */
395
+ SOLUTION_SHOWN = 2,
396
+
397
+ /**
398
+ * The learner left it, beginning another attempt.
399
+ *
400
+ * @generated from enum value: CLOSE_REASON_LEFT = 3;
401
+ */
402
+ LEFT = 3,
403
+
404
+ /**
405
+ * The attempt was abandoned: no action on it for 7 days.
406
+ *
407
+ * @generated from enum value: CLOSE_REASON_ABANDONED = 4;
408
+ */
409
+ ABANDONED = 4,
410
+
411
+ /**
412
+ * Its version of the module is no longer given: withdrawn, or out of the window of formats that
413
+ * `api` reads.
414
+ *
415
+ * @generated from enum value: CLOSE_REASON_UNCHECKED = 5;
416
+ */
417
+ UNCHECKED = 5,
418
+
419
+ /**
420
+ * The run of the lesson the attempt was in ended as not suitable while the attempt was open.
421
+ *
422
+ * @generated from enum value: CLOSE_REASON_NOT_SUITABLE = 6;
423
+ */
424
+ NOT_SUITABLE = 6,
425
+
426
+ /**
427
+ * The learner pressed "Done" on a task with a rubric.
428
+ *
429
+ * @generated from enum value: CLOSE_REASON_DONE = 7;
430
+ */
431
+ DONE = 7,
432
+ }
433
+
434
+ /**
435
+ * Describes the enum novatrail.api.v1.CloseReason.
436
+ */
437
+ export declare const CloseReasonSchema: GenEnum<CloseReason>;
438
+
@@ -0,0 +1,86 @@
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js"
2
+ // @generated from file novatrail/api/v1/cause.proto (package novatrail.api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ // The causes of the contract between `app` and `api`: one list for its refusals and for the
6
+ // outcomes of its calls of AI, the refusal that a method's error carries, and the outcome that its
7
+ // answer carries. What they mean, and how `app` reads a cause it does not know, are the rules of
8
+ // contracts/README.md, section 15.
9
+
10
+ import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
11
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
12
+
13
+ /**
14
+ * Describes the file novatrail/api/v1/cause.proto.
15
+ */
16
+ export const file_novatrail_api_v1_cause = /*@__PURE__*/
17
+ fileDesc("Chxub3ZhdHJhaWwvYXBpL3YxL2NhdXNlLnByb3RvEhBub3ZhdHJhaWwuYXBpLnYxIsABCgdSZWZ1c2FsEiYKBWNhdXNlGAEgASgOMhcubm92YXRyYWlsLmFwaS52MS5DYXVzZRI1CgxjbG9zZV9yZWFzb24YAiABKA4yHS5ub3ZhdHJhaWwuYXBpLnYxLkNsb3NlUmVhc29uSAASNQoPbmV4dF9mYW1pbHlfZGF5GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEgAEhcKDXdyb25nX2Fuc3dlcnMYBCABKAVIAEIGCgRkYXRhIpwBCgdPdXRjb21lEiYKBWNhdXNlGAEgASgOMhcubm92YXRyYWlsLmFwaS52MS5DYXVzZRIzCg9uZXh0X2ZhbWlseV9kYXkYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKDW93bl9rZXlfbGltaXQYAyABKAsyHS5ub3ZhdHJhaWwuYXBpLnYxLk93bktleUxpbWl0Im4KC093bktleUxpbWl0EisKBWNhdXNlGAEgASgOMhwubm92YXRyYWlsLmFwaS52MS5MaW1pdENhdXNlEjIKDmFjY2Vzc19yZXR1cm5zGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCqYBAoFQ2F1c2USFQoRQ0FVU0VfVU5TUEVDSUZJRUQQABIUChBDQVVTRV9OT19QUk9GSUxFEAESEwoPQ0FVU0VfTk9UX0ZPVU5EEAISGAoUQ0FVU0VfQVRURU1QVF9DTE9TRUQQAxIaChZDQVVTRV9LRVlfQUxSRUFEWV9VU0VEEAQSFQoRQ0FVU0VfU1RJTExfR09JTkcQBRIdChlDQVVTRV9LRVlfTk9UX0ZPUl9QUk9GSUxFEAYSDwoLQ0FVU0VfUVVPVEEQBxIYChRDQVVTRV9QTEFURk9STV9MSU1JVBAIEhYKEkNBVVNFX05PVF9BRE1JVFRFRBAJEhQKEENBVVNFX0FJX0ZBSUxVUkUQChIXChNDQVVTRV9MSU1JVF9SRUFDSEVEEAsSFQoRQ0FVU0VfS0VZX1JFRlVTRUQQDBIWChJDQVVTRV9BRFVMVF9ORUVERUQQDRIbChdDQVVTRV9MQURERVJfTk9UX1BBU1NFRBAOEhQKEENBVVNFX05PX1NIT1dJTkcQDxIRCg1DQVVTRV9OT19SVU5HEBASFwoTQ0FVU0VfQUxSRUFEWV9BU0tFRBAREhgKFENBVVNFX05PX09USEVSX1dPUkRTEBISFwoTQ0FVU0VfTk9fTU9SRV9XT1JEUxATEhcKE0NBVVNFX05PX1NVQk1JU1NJT04QFBIVChFDQVVTRV9OT1RfQ1VSUkVOVBAVKogBCgpMaW1pdENhdXNlEhsKF0xJTUlUX0NBVVNFX1VOU1BFQ0lGSUVEEAASFQoRTElNSVRfQ0FVU0VfTElNSVQQARIUChBMSU1JVF9DQVVTRV9USUVSEAISFwoTTElNSVRfQ0FVU0VfQkFMQU5DRRADEhcKE0xJTUlUX0NBVVNFX1BBWU1FTlQQBCrrAQoLQ2xvc2VSZWFzb24SHAoYQ0xPU0VfUkVBU09OX1VOU1BFQ0lGSUVEEAASGAoUQ0xPU0VfUkVBU09OX0NPUlJFQ1QQARIfChtDTE9TRV9SRUFTT05fU09MVVRJT05fU0hPV04QAhIVChFDTE9TRV9SRUFTT05fTEVGVBADEhoKFkNMT1NFX1JFQVNPTl9BQkFORE9ORUQQBBIaChZDTE9TRV9SRUFTT05fVU5DSEVDS0VEEAUSHQoZQ0xPU0VfUkVBU09OX05PVF9TVUlUQUJMRRAGEhUKEUNMT1NFX1JFQVNPTl9ET05FEAdCwwEKFGNvbS5ub3ZhdHJhaWwuYXBpLnYxQgpDYXVzZVByb3RvUAFaPWdpdGh1Yi5jb20vYWx0bm92YXRyYWlsL3NwZWMvY29udHJhY3RzL25vdmF0cmFpbC9hcGkvdjE7YXBpdjGiAgNOQViqAhBOb3ZhdHJhaWwuQXBpLlYxygIQTm92YXRyYWlsXEFwaVxWMeICHE5vdmF0cmFpbFxBcGlcVjFcR1BCTWV0YWRhdGHqAhJOb3ZhdHJhaWw6OkFwaTo6VjFiBnByb3RvMw", [file_google_protobuf_timestamp]);
18
+
19
+ /**
20
+ * Describes the message novatrail.api.v1.Refusal.
21
+ * Use `create(RefusalSchema)` to create a new message.
22
+ */
23
+ export const RefusalSchema = /*@__PURE__*/
24
+ messageDesc(file_novatrail_api_v1_cause, 0);
25
+
26
+ /**
27
+ * Describes the message novatrail.api.v1.Outcome.
28
+ * Use `create(OutcomeSchema)` to create a new message.
29
+ */
30
+ export const OutcomeSchema = /*@__PURE__*/
31
+ messageDesc(file_novatrail_api_v1_cause, 1);
32
+
33
+ /**
34
+ * Describes the message novatrail.api.v1.OwnKeyLimit.
35
+ * Use `create(OwnKeyLimitSchema)` to create a new message.
36
+ */
37
+ export const OwnKeyLimitSchema = /*@__PURE__*/
38
+ messageDesc(file_novatrail_api_v1_cause, 2);
39
+
40
+ /**
41
+ * Describes the enum novatrail.api.v1.Cause.
42
+ */
43
+ export const CauseSchema = /*@__PURE__*/
44
+ enumDesc(file_novatrail_api_v1_cause, 0);
45
+
46
+ /**
47
+ * Why a request was refused, or what a call of AI in it came to: one list for the whole contract
48
+ * (R17 api). A refusal comes as the detail `Refusal` of an error of Connect, with the code that the
49
+ * comment of each method gives it; an outcome comes in the answer, as `Outcome`. A cause that the
50
+ * build of `app` does not know it reads by the code of the error, or as a call of AI that gave
51
+ * nothing. A verdict's reason is no cause: it is the module format's and the observation's.
52
+ *
53
+ * @generated from enum novatrail.api.v1.Cause
54
+ */
55
+ export const Cause = /*@__PURE__*/
56
+ tsEnum(CauseSchema);
57
+
58
+ /**
59
+ * Describes the enum novatrail.api.v1.LimitCause.
60
+ */
61
+ export const LimitCauseSchema = /*@__PURE__*/
62
+ enumDesc(file_novatrail_api_v1_cause, 1);
63
+
64
+ /**
65
+ * Which limit of the learner's own key ran out at its provider.
66
+ *
67
+ * @generated from enum novatrail.api.v1.LimitCause
68
+ */
69
+ export const LimitCause = /*@__PURE__*/
70
+ tsEnum(LimitCauseSchema);
71
+
72
+ /**
73
+ * Describes the enum novatrail.api.v1.CloseReason.
74
+ */
75
+ export const CloseReasonSchema = /*@__PURE__*/
76
+ enumDesc(file_novatrail_api_v1_cause, 2);
77
+
78
+ /**
79
+ * Why an attempt was closed (architecture 3.5 api). An attempt that is not closed waits, whatever
80
+ * its submissions came to.
81
+ *
82
+ * @generated from enum novatrail.api.v1.CloseReason
83
+ */
84
+ export const CloseReason = /*@__PURE__*/
85
+ tsEnum(CloseReasonSchema);
86
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/contracts",
3
- "version": "0.8.0",
3
+ "version": "0.8.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": {
@@ -9,6 +9,14 @@
9
9
  },
10
10
  "type": "module",
11
11
  "exports": {
12
+ "./novatrail/api/v1/attempt_pb.js": {
13
+ "types": "./novatrail/api/v1/attempt_pb.d.ts",
14
+ "default": "./novatrail/api/v1/attempt_pb.js"
15
+ },
16
+ "./novatrail/api/v1/cause_pb.js": {
17
+ "types": "./novatrail/api/v1/cause_pb.d.ts",
18
+ "default": "./novatrail/api/v1/cause_pb.js"
19
+ },
12
20
  "./novatrail/eval/v1/report_pb.js": {
13
21
  "types": "./novatrail/eval/v1/report_pb.d.ts",
14
22
  "default": "./novatrail/eval/v1/report_pb.js"