@altnovatrail/contracts 0.8.1 → 0.8.2
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.
- package/novatrail/api/v1/account_pb.d.ts +1547 -0
- package/novatrail/api/v1/account_pb.js +405 -0
- package/novatrail/api/v1/attempt_pb.d.ts +4 -1
- package/novatrail/api/v1/attempt_pb.js +4 -1
- package/novatrail/api/v1/cause_pb.d.ts +100 -3
- package/novatrail/api/v1/cause_pb.js +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js"
|
|
2
|
+
// @generated from file novatrail/api/v1/account.proto (package novatrail.api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
// The account and its profiles in the contract between `app` and `api`: the account and the list
|
|
6
|
+
// of its profiles, by which `app` erases on the device what was deleted elsewhere; the profile of
|
|
7
|
+
// the account's owner and a child's profile, which a consent comes before; the PIN of the section
|
|
8
|
+
// for adults; the voicing a learner sets; the own key checked when it is connected; deletion and
|
|
9
|
+
// export. What each message means, and what `app` does on each refusal, are the rules of
|
|
10
|
+
// contracts/README.md, section 15.
|
|
11
|
+
|
|
12
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
14
|
+
import { file_novatrail_api_v1_attempt } from "./attempt_pb.js";
|
|
15
|
+
import { file_novatrail_api_v1_cause } from "./cause_pb.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Describes the file novatrail/api/v1/account.proto.
|
|
19
|
+
*/
|
|
20
|
+
export const file_novatrail_api_v1_account = /*@__PURE__*/
|
|
21
|
+
fileDesc("Ch5ub3ZhdHJhaWwvYXBpL3YxL2FjY291bnQucHJvdG8SEG5vdmF0cmFpbC5hcG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BpXFYx4gIcTm92YXRyYWlsXEFwaVxWMVxHUEJNZXRhZGF0YeoCEk5vdmF0cmFpbDo6QXBpOjpWMWIGcHJvdG8z", [file_google_protobuf_timestamp, file_novatrail_api_v1_attempt, file_novatrail_api_v1_cause]);
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Describes the message novatrail.api.v1.GetAccountRequest.
|
|
25
|
+
* Use `create(GetAccountRequestSchema)` to create a new message.
|
|
26
|
+
*/
|
|
27
|
+
export const GetAccountRequestSchema = /*@__PURE__*/
|
|
28
|
+
messageDesc(file_novatrail_api_v1_account, 0);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message novatrail.api.v1.GetAccountResponse.
|
|
32
|
+
* Use `create(GetAccountResponseSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export const GetAccountResponseSchema = /*@__PURE__*/
|
|
35
|
+
messageDesc(file_novatrail_api_v1_account, 1);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message novatrail.api.v1.CreateAccountRequest.
|
|
39
|
+
* Use `create(CreateAccountRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export const CreateAccountRequestSchema = /*@__PURE__*/
|
|
42
|
+
messageDesc(file_novatrail_api_v1_account, 2);
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Describes the message novatrail.api.v1.CreateAccountResponse.
|
|
46
|
+
* Use `create(CreateAccountResponseSchema)` to create a new message.
|
|
47
|
+
*/
|
|
48
|
+
export const CreateAccountResponseSchema = /*@__PURE__*/
|
|
49
|
+
messageDesc(file_novatrail_api_v1_account, 3);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Describes the message novatrail.api.v1.Account.
|
|
53
|
+
* Use `create(AccountSchema)` to create a new message.
|
|
54
|
+
*/
|
|
55
|
+
export const AccountSchema = /*@__PURE__*/
|
|
56
|
+
messageDesc(file_novatrail_api_v1_account, 4);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message novatrail.api.v1.Profile.
|
|
60
|
+
* Use `create(ProfileSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export const ProfileSchema = /*@__PURE__*/
|
|
63
|
+
messageDesc(file_novatrail_api_v1_account, 5);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Describes the message novatrail.api.v1.PresentationStyle.
|
|
67
|
+
* Use `create(PresentationStyleSchema)` to create a new message.
|
|
68
|
+
*/
|
|
69
|
+
export const PresentationStyleSchema = /*@__PURE__*/
|
|
70
|
+
messageDesc(file_novatrail_api_v1_account, 6);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Describes the message novatrail.api.v1.Voicing.
|
|
74
|
+
* Use `create(VoicingSchema)` to create a new message.
|
|
75
|
+
*/
|
|
76
|
+
export const VoicingSchema = /*@__PURE__*/
|
|
77
|
+
messageDesc(file_novatrail_api_v1_account, 7);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message novatrail.api.v1.ProfileSettings.
|
|
81
|
+
* Use `create(ProfileSettingsSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export const ProfileSettingsSchema = /*@__PURE__*/
|
|
84
|
+
messageDesc(file_novatrail_api_v1_account, 8);
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Describes the message novatrail.api.v1.ChildConsent.
|
|
88
|
+
* Use `create(ChildConsentSchema)` to create a new message.
|
|
89
|
+
*/
|
|
90
|
+
export const ChildConsentSchema = /*@__PURE__*/
|
|
91
|
+
messageDesc(file_novatrail_api_v1_account, 9);
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Describes the message novatrail.api.v1.SetPinRequest.
|
|
95
|
+
* Use `create(SetPinRequestSchema)` to create a new message.
|
|
96
|
+
*/
|
|
97
|
+
export const SetPinRequestSchema = /*@__PURE__*/
|
|
98
|
+
messageDesc(file_novatrail_api_v1_account, 10);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message novatrail.api.v1.SetPinResponse.
|
|
102
|
+
* Use `create(SetPinResponseSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export const SetPinResponseSchema = /*@__PURE__*/
|
|
105
|
+
messageDesc(file_novatrail_api_v1_account, 11);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Describes the message novatrail.api.v1.VerifyPinRequest.
|
|
109
|
+
* Use `create(VerifyPinRequestSchema)` to create a new message.
|
|
110
|
+
*/
|
|
111
|
+
export const VerifyPinRequestSchema = /*@__PURE__*/
|
|
112
|
+
messageDesc(file_novatrail_api_v1_account, 12);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Describes the message novatrail.api.v1.VerifyPinResponse.
|
|
116
|
+
* Use `create(VerifyPinResponseSchema)` to create a new message.
|
|
117
|
+
*/
|
|
118
|
+
export const VerifyPinResponseSchema = /*@__PURE__*/
|
|
119
|
+
messageDesc(file_novatrail_api_v1_account, 13);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Describes the message novatrail.api.v1.ChangePinRequest.
|
|
123
|
+
* Use `create(ChangePinRequestSchema)` to create a new message.
|
|
124
|
+
*/
|
|
125
|
+
export const ChangePinRequestSchema = /*@__PURE__*/
|
|
126
|
+
messageDesc(file_novatrail_api_v1_account, 14);
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Describes the message novatrail.api.v1.ChangePinResponse.
|
|
130
|
+
* Use `create(ChangePinResponseSchema)` to create a new message.
|
|
131
|
+
*/
|
|
132
|
+
export const ChangePinResponseSchema = /*@__PURE__*/
|
|
133
|
+
messageDesc(file_novatrail_api_v1_account, 15);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Describes the message novatrail.api.v1.PinCheck.
|
|
137
|
+
* Use `create(PinCheckSchema)` to create a new message.
|
|
138
|
+
*/
|
|
139
|
+
export const PinCheckSchema = /*@__PURE__*/
|
|
140
|
+
messageDesc(file_novatrail_api_v1_account, 16);
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Describes the message novatrail.api.v1.ResetPinRequest.
|
|
144
|
+
* Use `create(ResetPinRequestSchema)` to create a new message.
|
|
145
|
+
*/
|
|
146
|
+
export const ResetPinRequestSchema = /*@__PURE__*/
|
|
147
|
+
messageDesc(file_novatrail_api_v1_account, 17);
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message novatrail.api.v1.ResetPinResponse.
|
|
151
|
+
* Use `create(ResetPinResponseSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
export const ResetPinResponseSchema = /*@__PURE__*/
|
|
154
|
+
messageDesc(file_novatrail_api_v1_account, 18);
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Describes the message novatrail.api.v1.CreateOwnerProfileRequest.
|
|
158
|
+
* Use `create(CreateOwnerProfileRequestSchema)` to create a new message.
|
|
159
|
+
*/
|
|
160
|
+
export const CreateOwnerProfileRequestSchema = /*@__PURE__*/
|
|
161
|
+
messageDesc(file_novatrail_api_v1_account, 19);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Describes the message novatrail.api.v1.CreateOwnerProfileResponse.
|
|
165
|
+
* Use `create(CreateOwnerProfileResponseSchema)` to create a new message.
|
|
166
|
+
*/
|
|
167
|
+
export const CreateOwnerProfileResponseSchema = /*@__PURE__*/
|
|
168
|
+
messageDesc(file_novatrail_api_v1_account, 20);
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Describes the message novatrail.api.v1.RequestChildConsentRequest.
|
|
172
|
+
* Use `create(RequestChildConsentRequestSchema)` to create a new message.
|
|
173
|
+
*/
|
|
174
|
+
export const RequestChildConsentRequestSchema = /*@__PURE__*/
|
|
175
|
+
messageDesc(file_novatrail_api_v1_account, 21);
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Describes the message novatrail.api.v1.RequestChildConsentResponse.
|
|
179
|
+
* Use `create(RequestChildConsentResponseSchema)` to create a new message.
|
|
180
|
+
*/
|
|
181
|
+
export const RequestChildConsentResponseSchema = /*@__PURE__*/
|
|
182
|
+
messageDesc(file_novatrail_api_v1_account, 22);
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Describes the message novatrail.api.v1.CreateChildProfileRequest.
|
|
186
|
+
* Use `create(CreateChildProfileRequestSchema)` to create a new message.
|
|
187
|
+
*/
|
|
188
|
+
export const CreateChildProfileRequestSchema = /*@__PURE__*/
|
|
189
|
+
messageDesc(file_novatrail_api_v1_account, 23);
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Describes the message novatrail.api.v1.CreateChildProfileResponse.
|
|
193
|
+
* Use `create(CreateChildProfileResponseSchema)` to create a new message.
|
|
194
|
+
*/
|
|
195
|
+
export const CreateChildProfileResponseSchema = /*@__PURE__*/
|
|
196
|
+
messageDesc(file_novatrail_api_v1_account, 24);
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Describes the message novatrail.api.v1.UpdateProfileRequest.
|
|
200
|
+
* Use `create(UpdateProfileRequestSchema)` to create a new message.
|
|
201
|
+
*/
|
|
202
|
+
export const UpdateProfileRequestSchema = /*@__PURE__*/
|
|
203
|
+
messageDesc(file_novatrail_api_v1_account, 25);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message novatrail.api.v1.UpdateProfileResponse.
|
|
207
|
+
* Use `create(UpdateProfileResponseSchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export const UpdateProfileResponseSchema = /*@__PURE__*/
|
|
210
|
+
messageDesc(file_novatrail_api_v1_account, 26);
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Describes the message novatrail.api.v1.SetVoicingRequest.
|
|
214
|
+
* Use `create(SetVoicingRequestSchema)` to create a new message.
|
|
215
|
+
*/
|
|
216
|
+
export const SetVoicingRequestSchema = /*@__PURE__*/
|
|
217
|
+
messageDesc(file_novatrail_api_v1_account, 27);
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Describes the message novatrail.api.v1.SetVoicingResponse.
|
|
221
|
+
* Use `create(SetVoicingResponseSchema)` to create a new message.
|
|
222
|
+
*/
|
|
223
|
+
export const SetVoicingResponseSchema = /*@__PURE__*/
|
|
224
|
+
messageDesc(file_novatrail_api_v1_account, 28);
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Describes the message novatrail.api.v1.DeleteProfileRequest.
|
|
228
|
+
* Use `create(DeleteProfileRequestSchema)` to create a new message.
|
|
229
|
+
*/
|
|
230
|
+
export const DeleteProfileRequestSchema = /*@__PURE__*/
|
|
231
|
+
messageDesc(file_novatrail_api_v1_account, 29);
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Describes the message novatrail.api.v1.DeleteProfileResponse.
|
|
235
|
+
* Use `create(DeleteProfileResponseSchema)` to create a new message.
|
|
236
|
+
*/
|
|
237
|
+
export const DeleteProfileResponseSchema = /*@__PURE__*/
|
|
238
|
+
messageDesc(file_novatrail_api_v1_account, 30);
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Describes the message novatrail.api.v1.DeleteAccountRequest.
|
|
242
|
+
* Use `create(DeleteAccountRequestSchema)` to create a new message.
|
|
243
|
+
*/
|
|
244
|
+
export const DeleteAccountRequestSchema = /*@__PURE__*/
|
|
245
|
+
messageDesc(file_novatrail_api_v1_account, 31);
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Describes the message novatrail.api.v1.DeleteAccountResponse.
|
|
249
|
+
* Use `create(DeleteAccountResponseSchema)` to create a new message.
|
|
250
|
+
*/
|
|
251
|
+
export const DeleteAccountResponseSchema = /*@__PURE__*/
|
|
252
|
+
messageDesc(file_novatrail_api_v1_account, 32);
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Describes the message novatrail.api.v1.ExportProfileRequest.
|
|
256
|
+
* Use `create(ExportProfileRequestSchema)` to create a new message.
|
|
257
|
+
*/
|
|
258
|
+
export const ExportProfileRequestSchema = /*@__PURE__*/
|
|
259
|
+
messageDesc(file_novatrail_api_v1_account, 33);
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Describes the message novatrail.api.v1.ExportProfileResponse.
|
|
263
|
+
* Use `create(ExportProfileResponseSchema)` to create a new message.
|
|
264
|
+
*/
|
|
265
|
+
export const ExportProfileResponseSchema = /*@__PURE__*/
|
|
266
|
+
messageDesc(file_novatrail_api_v1_account, 34);
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Describes the message novatrail.api.v1.ExportAccountRequest.
|
|
270
|
+
* Use `create(ExportAccountRequestSchema)` to create a new message.
|
|
271
|
+
*/
|
|
272
|
+
export const ExportAccountRequestSchema = /*@__PURE__*/
|
|
273
|
+
messageDesc(file_novatrail_api_v1_account, 35);
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Describes the message novatrail.api.v1.ExportAccountResponse.
|
|
277
|
+
* Use `create(ExportAccountResponseSchema)` to create a new message.
|
|
278
|
+
*/
|
|
279
|
+
export const ExportAccountResponseSchema = /*@__PURE__*/
|
|
280
|
+
messageDesc(file_novatrail_api_v1_account, 36);
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Describes the message novatrail.api.v1.CheckOwnKeyRequest.
|
|
284
|
+
* Use `create(CheckOwnKeyRequestSchema)` to create a new message.
|
|
285
|
+
*/
|
|
286
|
+
export const CheckOwnKeyRequestSchema = /*@__PURE__*/
|
|
287
|
+
messageDesc(file_novatrail_api_v1_account, 37);
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Describes the message novatrail.api.v1.CheckOwnKeyResponse.
|
|
291
|
+
* Use `create(CheckOwnKeyResponseSchema)` to create a new message.
|
|
292
|
+
*/
|
|
293
|
+
export const CheckOwnKeyResponseSchema = /*@__PURE__*/
|
|
294
|
+
messageDesc(file_novatrail_api_v1_account, 38);
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Describes the message novatrail.api.v1.ListOwnKeyProvidersRequest.
|
|
298
|
+
* Use `create(ListOwnKeyProvidersRequestSchema)` to create a new message.
|
|
299
|
+
*/
|
|
300
|
+
export const ListOwnKeyProvidersRequestSchema = /*@__PURE__*/
|
|
301
|
+
messageDesc(file_novatrail_api_v1_account, 39);
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Describes the message novatrail.api.v1.ListOwnKeyProvidersResponse.
|
|
305
|
+
* Use `create(ListOwnKeyProvidersResponseSchema)` to create a new message.
|
|
306
|
+
*/
|
|
307
|
+
export const ListOwnKeyProvidersResponseSchema = /*@__PURE__*/
|
|
308
|
+
messageDesc(file_novatrail_api_v1_account, 40);
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Describes the message novatrail.api.v1.OwnKeyProvider.
|
|
312
|
+
* Use `create(OwnKeyProviderSchema)` to create a new message.
|
|
313
|
+
*/
|
|
314
|
+
export const OwnKeyProviderSchema = /*@__PURE__*/
|
|
315
|
+
messageDesc(file_novatrail_api_v1_account, 41);
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Describes the enum novatrail.api.v1.VoicingSpeed.
|
|
319
|
+
*/
|
|
320
|
+
export const VoicingSpeedSchema = /*@__PURE__*/
|
|
321
|
+
enumDesc(file_novatrail_api_v1_account, 0);
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The speed of the voicing. A speed its build does not know `app` reads as normal.
|
|
325
|
+
*
|
|
326
|
+
* @generated from enum novatrail.api.v1.VoicingSpeed
|
|
327
|
+
*/
|
|
328
|
+
export const VoicingSpeed = /*@__PURE__*/
|
|
329
|
+
tsEnum(VoicingSpeedSchema);
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Describes the enum novatrail.api.v1.Mode.
|
|
333
|
+
*/
|
|
334
|
+
export const ModeSchema = /*@__PURE__*/
|
|
335
|
+
enumDesc(file_novatrail_api_v1_account, 1);
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* A mode of the screen of a task (concepts 10). A mode its build does not know `app` reads as "by
|
|
339
|
+
* steps".
|
|
340
|
+
*
|
|
341
|
+
* @generated from enum novatrail.api.v1.Mode
|
|
342
|
+
*/
|
|
343
|
+
export const Mode = /*@__PURE__*/
|
|
344
|
+
tsEnum(ModeSchema);
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Describes the enum novatrail.api.v1.ConsentState.
|
|
348
|
+
*/
|
|
349
|
+
export const ConsentStateSchema = /*@__PURE__*/
|
|
350
|
+
enumDesc(file_novatrail_api_v1_account, 2);
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Where a consent for a child stands. A state its build does not know `app` reads as waiting.
|
|
354
|
+
*
|
|
355
|
+
* @generated from enum novatrail.api.v1.ConsentState
|
|
356
|
+
*/
|
|
357
|
+
export const ConsentState = /*@__PURE__*/
|
|
358
|
+
tsEnum(ConsentStateSchema);
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Describes the enum novatrail.api.v1.OwnKeyCheck.
|
|
362
|
+
*/
|
|
363
|
+
export const OwnKeyCheckSchema = /*@__PURE__*/
|
|
364
|
+
enumDesc(file_novatrail_api_v1_account, 3);
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* What the check of an own key gave (R84). A value its build does not know `app` words as a check
|
|
368
|
+
* that did not go through.
|
|
369
|
+
*
|
|
370
|
+
* @generated from enum novatrail.api.v1.OwnKeyCheck
|
|
371
|
+
*/
|
|
372
|
+
export const OwnKeyCheck = /*@__PURE__*/
|
|
373
|
+
tsEnum(OwnKeyCheckSchema);
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The requests on the account and its profiles, from the section for adults and from a learner's
|
|
377
|
+
* session. Every method carries the ID token of the sign-in service in the header `Authorization`,
|
|
378
|
+
* as `Bearer <token>`, and every one may get the refusals of every request with a token:
|
|
379
|
+
* `unauthenticated` with no `Refusal`, when the token has expired, is revoked or its user is
|
|
380
|
+
* disabled; `CAUSE_ACCOUNT_GONE`; `CAUSE_NO_ACCESS`, but for `CreateAccount`; and `unavailable`
|
|
381
|
+
* with no `Refusal`, when the token could not be checked. A method on a profile names the right it
|
|
382
|
+
* needs, `can_manage` or `can_learn`; a method on the account itself needs the account of the token
|
|
383
|
+
* alone: it is an action of an adult, and the PIN in front of it is a barrier of the interface
|
|
384
|
+
* (R04 api). A request without the right it needs
|
|
385
|
+
* gets the code `permission_denied` with no `Refusal`, and a request whose form the contract
|
|
386
|
+
* refuses the code `invalid_argument` with no `Refusal`. `app` reads the cause of a refusal before
|
|
387
|
+
* it refreshes any token:
|
|
388
|
+
* - `unauthenticated` with no `Refusal`: it refreshes the token and repeats the request, and opens
|
|
389
|
+
* the sign-in window only if the refresh failed. Signing in again is signing in as the same
|
|
390
|
+
* user, without signing out: signing out erases everything of the account on the device;
|
|
391
|
+
* - `CAUSE_FRESH_SIGN_IN_NEEDED`: it signs in again by the window, on a press, and repeats the
|
|
392
|
+
* action. Whether a sign-in is fresh it reads by the `authTime` of a token it has just
|
|
393
|
+
* refreshed, against that token's `issuedAtTime`, not against the clock of the device; on
|
|
394
|
+
* `auth/user-mismatch` it asks `GetAccount`;
|
|
395
|
+
* - `CAUSE_ACCOUNT_GONE`: it erases everything of the account and signs out, without refreshing
|
|
396
|
+
* the token;
|
|
397
|
+
* - `CAUSE_NO_ACCESS` while the registry of the device holds an account: another account has
|
|
398
|
+
* signed in, and `app` erases what is left of the one before it opens anything;
|
|
399
|
+
* - `unavailable`: it repeats the request after a growing pause, for a short while.
|
|
400
|
+
*
|
|
401
|
+
* @generated from service novatrail.api.v1.AccountService
|
|
402
|
+
*/
|
|
403
|
+
export const AccountService = /*@__PURE__*/
|
|
404
|
+
serviceDesc(file_novatrail_api_v1_account, 0);
|
|
405
|
+
|
|
@@ -1269,7 +1269,10 @@ export declare const MarkKindSchema: GenEnum<MarkKind>;
|
|
|
1269
1269
|
* the profile and the attempt; one of another profile, or none, gets `CAUSE_NOT_FOUND`, and a
|
|
1270
1270
|
* profile that is not the account's `CAUSE_NO_PROFILE`. A request whose form the contract refuses
|
|
1271
1271
|
* — a field it needs left out, a place the task does not have, a method the task's kind does not
|
|
1272
|
-
* take — gets the code `invalid_argument` with no `Refusal`.
|
|
1272
|
+
* take — gets the code `invalid_argument` with no `Refusal`. Every method carries the token of the
|
|
1273
|
+
* sign-in service and may get the refusals of every request with a token, which the comment of
|
|
1274
|
+
* `AccountService` names with what `app` does on each; a request of a profile whose consent is not
|
|
1275
|
+
* confirmed gets `CAUSE_NO_CONSENT`.
|
|
1273
1276
|
*
|
|
1274
1277
|
* @generated from service novatrail.api.v1.AttemptService
|
|
1275
1278
|
*/
|
|
@@ -281,7 +281,10 @@ export const MarkKind = /*@__PURE__*/
|
|
|
281
281
|
* the profile and the attempt; one of another profile, or none, gets `CAUSE_NOT_FOUND`, and a
|
|
282
282
|
* profile that is not the account's `CAUSE_NO_PROFILE`. A request whose form the contract refuses
|
|
283
283
|
* — a field it needs left out, a place the task does not have, a method the task's kind does not
|
|
284
|
-
* take — gets the code `invalid_argument` with no `Refusal`.
|
|
284
|
+
* take — gets the code `invalid_argument` with no `Refusal`. Every method carries the token of the
|
|
285
|
+
* sign-in service and may get the refusals of every request with a token, which the comment of
|
|
286
|
+
* `AccountService` names with what `app` does on each; a request of a profile whose consent is not
|
|
287
|
+
* confirmed gets `CAUSE_NO_CONSENT`.
|
|
285
288
|
*
|
|
286
289
|
* @generated from service novatrail.api.v1.AttemptService
|
|
287
290
|
*/
|
|
@@ -58,6 +58,22 @@ export declare type Refusal = Message<"novatrail.api.v1.Refusal"> & {
|
|
|
58
58
|
*/
|
|
59
59
|
value: number;
|
|
60
60
|
case: "wrongAnswers";
|
|
61
|
+
} | {
|
|
62
|
+
/**
|
|
63
|
+
* Beside `CAUSE_PIN_LOCKED`: when the input of the PIN opens.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: google.protobuf.Timestamp locked_until = 5;
|
|
66
|
+
*/
|
|
67
|
+
value: Timestamp;
|
|
68
|
+
case: "lockedUntil";
|
|
69
|
+
} | {
|
|
70
|
+
/**
|
|
71
|
+
* Beside `CAUSE_FRESH_SIGN_IN_NEEDED`: how old a sign-in may be, in seconds.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: int32 max_auth_age_seconds = 6;
|
|
74
|
+
*/
|
|
75
|
+
value: number;
|
|
76
|
+
case: "maxAuthAgeSeconds";
|
|
61
77
|
} | { case: undefined; value?: undefined };
|
|
62
78
|
};
|
|
63
79
|
|
|
@@ -150,14 +166,15 @@ export enum Cause {
|
|
|
150
166
|
|
|
151
167
|
/**
|
|
152
168
|
* The profile named is not one of the account's, or there is no such profile. Code `not_found`.
|
|
169
|
+
* On `DeleteProfile` it means that the profile is deleted already.
|
|
153
170
|
*
|
|
154
171
|
* @generated from enum value: CAUSE_NO_PROFILE = 1;
|
|
155
172
|
*/
|
|
156
173
|
NO_PROFILE = 1,
|
|
157
174
|
|
|
158
175
|
/**
|
|
159
|
-
* The profile has no attempt with the ID named
|
|
160
|
-
* `not_found`.
|
|
176
|
+
* The profile has no attempt with the ID named, or the account no consent with the ID named;
|
|
177
|
+
* another profile's, or another account's, is the same. Code `not_found`.
|
|
161
178
|
*
|
|
162
179
|
* @generated from enum value: CAUSE_NOT_FOUND = 2;
|
|
163
180
|
*/
|
|
@@ -173,7 +190,8 @@ export enum Cause {
|
|
|
173
190
|
ATTEMPT_CLOSED = 3,
|
|
174
191
|
|
|
175
192
|
/**
|
|
176
|
-
* The idempotency key was sent with another method or another
|
|
193
|
+
* The idempotency key was sent with another method, another attempt or another request. Code
|
|
194
|
+
* `invalid_argument`.
|
|
177
195
|
*
|
|
178
196
|
* @generated from enum value: CAUSE_KEY_ALREADY_USED = 4;
|
|
179
197
|
*/
|
|
@@ -312,6 +330,85 @@ export enum Cause {
|
|
|
312
330
|
* @generated from enum value: CAUSE_NOT_CURRENT = 21;
|
|
313
331
|
*/
|
|
314
332
|
NOT_CURRENT = 21,
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The user of the sign-in service has no account: no invite code was redeemed, and the account
|
|
336
|
+
* was not created. Such a user may only create the account. Code `permission_denied`.
|
|
337
|
+
*
|
|
338
|
+
* @generated from enum value: CAUSE_NO_ACCESS = 22;
|
|
339
|
+
*/
|
|
340
|
+
NO_ACCESS = 22,
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* The account is no longer there: it is being deleted or was deleted, or the sign-in service has
|
|
344
|
+
* no such user. `app` erases everything of the account on the device and signs out, without
|
|
345
|
+
* refreshing the token. Code `unauthenticated`.
|
|
346
|
+
*
|
|
347
|
+
* @generated from enum value: CAUSE_ACCOUNT_GONE = 23;
|
|
348
|
+
*/
|
|
349
|
+
ACCOUNT_GONE = 23,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The action needs a fresh sign-in, and the sign-in of the token is older than the refusal allows.
|
|
353
|
+
* The refusal holds how old a sign-in may be, in seconds. Code `unauthenticated`.
|
|
354
|
+
*
|
|
355
|
+
* @generated from enum value: CAUSE_FRESH_SIGN_IN_NEEDED = 24;
|
|
356
|
+
*/
|
|
357
|
+
FRESH_SIGN_IN_NEEDED = 24,
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* The invite code is not valid, or was redeemed already. Code `invalid_argument`.
|
|
361
|
+
*
|
|
362
|
+
* @generated from enum value: CAUSE_CODE_NOT_ACCEPTED = 25;
|
|
363
|
+
*/
|
|
364
|
+
CODE_NOT_ACCEPTED = 25,
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* What the request creates is there already: the account of the user, the owner's profile, or
|
|
368
|
+
* the profile of a consent. Code `already_exists`.
|
|
369
|
+
*
|
|
370
|
+
* @generated from enum value: CAUSE_ALREADY_EXISTS = 26;
|
|
371
|
+
*/
|
|
372
|
+
ALREADY_EXISTS = 26,
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* The deployment does not take learners from the country named (privacy 9, П-2). Code
|
|
376
|
+
* `failed_precondition`.
|
|
377
|
+
*
|
|
378
|
+
* @generated from enum value: CAUSE_COUNTRY_NOT_ACCEPTED = 27;
|
|
379
|
+
*/
|
|
380
|
+
COUNTRY_NOT_ACCEPTED = 27,
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* The consent is not confirmed: a child's profile asked for by a consent that still waits, or a
|
|
384
|
+
* learning request of a profile without consent. Code `failed_precondition`.
|
|
385
|
+
*
|
|
386
|
+
* @generated from enum value: CAUSE_NO_CONSENT = 28;
|
|
387
|
+
*/
|
|
388
|
+
NO_CONSENT = 28,
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* The input of the PIN is closed after too many wrong PINs. The refusal holds when it opens. Code
|
|
392
|
+
* `resource_exhausted`.
|
|
393
|
+
*
|
|
394
|
+
* @generated from enum value: CAUSE_PIN_LOCKED = 29;
|
|
395
|
+
*/
|
|
396
|
+
PIN_LOCKED = 29,
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* The PIN is set already: it is changed by the PIN before it, or by a fresh sign-in. Code
|
|
400
|
+
* `failed_precondition`.
|
|
401
|
+
*
|
|
402
|
+
* @generated from enum value: CAUSE_PIN_ALREADY_SET = 30;
|
|
403
|
+
*/
|
|
404
|
+
PIN_ALREADY_SET = 30,
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The account has no PIN yet: it is set first. Code `failed_precondition`.
|
|
408
|
+
*
|
|
409
|
+
* @generated from enum value: CAUSE_NO_PIN = 31;
|
|
410
|
+
*/
|
|
411
|
+
NO_PIN = 31,
|
|
315
412
|
}
|
|
316
413
|
|
|
317
414
|
/**
|
|
@@ -14,7 +14,7 @@ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
|
14
14
|
* Describes the file novatrail/api/v1/cause.proto.
|
|
15
15
|
*/
|
|
16
16
|
export const file_novatrail_api_v1_cause = /*@__PURE__*/
|
|
17
|
-
fileDesc("
|
|
17
|
+
fileDesc("Chxub3ZhdHJhaWwvY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U09OX1NPTFVUSU9OX1NIT1dOEAISFQoRQ0xPU0VfUkVBU09OX0xFRlQQAxIaChZDTE9TRV9SRUFTT05fQUJBTkRPTkVEEAQSGgoWQ0xPU0VfUkVBU09OX1VOQ0hFQ0tFRBAFEh0KGUNMT1NFX1JFQVNPTl9OT1RfU1VJVEFCTEUQBhIVChFDTE9TRV9SRUFTT05fRE9ORRAHQsMBChRjb20ubm92YXRyYWlsLmFwaS52MUIKQ2F1c2VQcm90b1ABWj1naXRodWIuY29tL2FsdG5vdmF0cmFpbC9zcGVjL2NvbnRyYWN0cy9ub3ZhdHJhaWwvYXBpL3YxO2FwaXYxogIDTkFYqgIQTm92YXRyYWlsLkFwaS5WMcoCEE5vdmF0cmFpbFxBcGlcVjHiAhxOb3ZhdHJhaWxcQXBpXFYxXEdQQk1ldGFkYXRh6gISTm92YXRyYWlsOjpBcGk6OlYxYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Describes the message novatrail.api.v1.Refusal.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/contracts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
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,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
|
+
"./novatrail/api/v1/account_pb.js": {
|
|
13
|
+
"types": "./novatrail/api/v1/account_pb.d.ts",
|
|
14
|
+
"default": "./novatrail/api/v1/account_pb.js"
|
|
15
|
+
},
|
|
12
16
|
"./novatrail/api/v1/attempt_pb.js": {
|
|
13
17
|
"types": "./novatrail/api/v1/attempt_pb.d.ts",
|
|
14
18
|
"default": "./novatrail/api/v1/attempt_pb.js"
|