@altnovatrail/contracts 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/novatrail/api/v1/account_pb.d.ts +700 -36
- package/novatrail/api/v1/account_pb.js +184 -47
- package/novatrail/api/v1/attempt_pb.d.ts +226 -1
- package/novatrail/api/v1/attempt_pb.js +60 -16
- package/novatrail/api/v1/cause_pb.d.ts +45 -4
- package/novatrail/api/v1/cause_pb.js +1 -1
- package/novatrail/api/v1/learning_pb.d.ts +8 -7
- package/novatrail/api/v1/learning_pb.js +8 -7
- package/novatrail/api/v1/legal_pb.d.ts +53 -4
- package/novatrail/api/v1/legal_pb.js +8 -1
- package/novatrail/api/v1/module_pb.d.ts +4 -4
- package/novatrail/api/v1/module_pb.js +4 -4
- package/novatrail/api/v1/progress_pb.d.ts +2 -1
- package/novatrail/api/v1/progress_pb.js +2 -1
- package/package.json +1 -1
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
// @generated from file novatrail/api/v1/account.proto (package novatrail.api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
// The account and its profiles in the contract between `app` and `api`: the account and the list
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
5
|
+
// The account and its profiles in the contract between `app` and `api`: the account and the list of
|
|
6
|
+
// its profiles, by which `app` erases on the device what was deleted elsewhere; the profile of the
|
|
7
|
+
// account's owner and a child's profile, which a consent comes before; how a consent is given,
|
|
8
|
+
// confirmed by a parent's signed form, withdrawn and taken back, and the age given again; the PIN
|
|
9
|
+
// of the section for adults; the voicing a learner sets; the storage of works; the own key checked
|
|
10
|
+
// when it is connected; deletion and export. What each message means, and what `app` does on each
|
|
11
|
+
// refusal, are the rules of contracts/README.md, section 15.
|
|
11
12
|
|
|
12
13
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
13
14
|
import type { Message } from "@bufbuild/protobuf";
|
|
15
|
+
import type { LegalTextRef } from "./legal_pb.js";
|
|
14
16
|
import type { LessonRunRef, OpenAttemptRef } from "./learning_pb.js";
|
|
15
17
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
16
|
-
import type { OwnKey } from "./attempt_pb.js";
|
|
18
|
+
import type { Action, OwnKey } from "./attempt_pb.js";
|
|
17
19
|
import type { Outcome } from "./cause_pb.js";
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -75,6 +77,14 @@ export declare type CreateAccountRequest = Message<"novatrail.api.v1.CreateAccou
|
|
|
75
77
|
* @generated from field: bool adult_stated = 2;
|
|
76
78
|
*/
|
|
77
79
|
adultStated: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The versions of `privacy-policy` and `terms-of-use` that the owner accepted, as
|
|
83
|
+
* `GetLegalTexts` gave them: each of the two that has a version in force, and no other text.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: repeated novatrail.api.v1.LegalTextRef accepted_texts = 3;
|
|
86
|
+
*/
|
|
87
|
+
acceptedTexts: LegalTextRef[];
|
|
78
88
|
};
|
|
79
89
|
|
|
80
90
|
/**
|
|
@@ -134,7 +144,8 @@ export declare type Account = Message<"novatrail.api.v1.Account"> & {
|
|
|
134
144
|
|
|
135
145
|
/**
|
|
136
146
|
* The consents for a child that have no profile yet: waiting, or confirmed and waiting for the
|
|
137
|
-
* profile.
|
|
147
|
+
* profile. A consent taken back or withdrawn is not here: nothing of it is left but the minimal
|
|
148
|
+
* record, which names no account (R117).
|
|
138
149
|
*
|
|
139
150
|
* @generated from field: repeated novatrail.api.v1.ChildConsent child_consents = 4;
|
|
140
151
|
*/
|
|
@@ -250,6 +261,28 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
250
261
|
* @generated from field: repeated novatrail.api.v1.LessonRunRef open_lesson_runs = 13;
|
|
251
262
|
*/
|
|
252
263
|
openLessonRuns: LessonRunRef[];
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Whose consent the profile learns by, and what it waits for before its next work.
|
|
267
|
+
*
|
|
268
|
+
* @generated from field: novatrail.api.v1.ProfileConsent consent = 14;
|
|
269
|
+
*/
|
|
270
|
+
consent?: ProfileConsent | undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Whether a year has passed since the age was given: `app` asks the adult for the age again,
|
|
274
|
+
* `RestateAge`, and until then the category stays as it is (privacy 3.3).
|
|
275
|
+
*
|
|
276
|
+
* @generated from field: bool age_check_due = 15;
|
|
277
|
+
*/
|
|
278
|
+
ageCheckDue: boolean;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Whether the storage of the profile's works on the server is on (R113).
|
|
282
|
+
*
|
|
283
|
+
* @generated from field: bool work_storage = 16;
|
|
284
|
+
*/
|
|
285
|
+
workStorage: boolean;
|
|
253
286
|
};
|
|
254
287
|
|
|
255
288
|
/**
|
|
@@ -258,6 +291,41 @@ export declare type Profile = Message<"novatrail.api.v1.Profile"> & {
|
|
|
258
291
|
*/
|
|
259
292
|
export declare const ProfileSchema: GenMessage<Profile>;
|
|
260
293
|
|
|
294
|
+
/**
|
|
295
|
+
* The consent of a profile.
|
|
296
|
+
*
|
|
297
|
+
* @generated from message novatrail.api.v1.ProfileConsent
|
|
298
|
+
*/
|
|
299
|
+
export declare type ProfileConsent = Message<"novatrail.api.v1.ProfileConsent"> & {
|
|
300
|
+
/**
|
|
301
|
+
* Who gave it.
|
|
302
|
+
*
|
|
303
|
+
* @generated from field: novatrail.api.v1.ConsentGiver giver = 1;
|
|
304
|
+
*/
|
|
305
|
+
giver: ConsentGiver;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* What the profile waits for before its next work: `CONSENT_NEED_NONE` when it learns.
|
|
309
|
+
*
|
|
310
|
+
* @generated from field: novatrail.api.v1.ConsentNeed need = 2;
|
|
311
|
+
*/
|
|
312
|
+
need: ConsentNeed;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Beside `CONSENT_NEED_PARENT`: the parent's consent that the profile waits for, with the code
|
|
316
|
+
* of its request.
|
|
317
|
+
*
|
|
318
|
+
* @generated from field: novatrail.api.v1.ChildConsent waiting = 3;
|
|
319
|
+
*/
|
|
320
|
+
waiting?: ChildConsent | undefined;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Describes the message novatrail.api.v1.ProfileConsent.
|
|
325
|
+
* Use `create(ProfileConsentSchema)` to create a new message.
|
|
326
|
+
*/
|
|
327
|
+
export declare const ProfileConsentSchema: GenMessage<ProfileConsent>;
|
|
328
|
+
|
|
261
329
|
/**
|
|
262
330
|
* The presentation style of a profile. What else it holds comes with what a module may say of it
|
|
263
331
|
* (product 13, О-23).
|
|
@@ -413,6 +481,29 @@ export declare type ChildConsent = Message<"novatrail.api.v1.ChildConsent"> & {
|
|
|
413
481
|
* @generated from field: novatrail.api.v1.ConsentState state = 4;
|
|
414
482
|
*/
|
|
415
483
|
state: ConsentState;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Who gives it: a parent, or the learner themselves in their profile.
|
|
487
|
+
*
|
|
488
|
+
* @generated from field: novatrail.api.v1.ConsentGiver giver = 5;
|
|
489
|
+
*/
|
|
490
|
+
giver: ConsentGiver;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* The code of the request, which the parent writes on the signed form and the operator checks the
|
|
494
|
+
* scan by: ten characters of Crockford's base32 in two groups of five, as "ABCDE-FGHJK", unique
|
|
495
|
+
* among the consents that wait. Empty at a consent that the learner gives (R116).
|
|
496
|
+
*
|
|
497
|
+
* @generated from field: string request_code = 6;
|
|
498
|
+
*/
|
|
499
|
+
requestCode: string;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Where the parent's form stands; `FORM_STATE_UNSPECIFIED` at a consent that the learner gives.
|
|
503
|
+
*
|
|
504
|
+
* @generated from field: novatrail.api.v1.FormState form = 7;
|
|
505
|
+
*/
|
|
506
|
+
form: FormState;
|
|
416
507
|
};
|
|
417
508
|
|
|
418
509
|
/**
|
|
@@ -715,6 +806,15 @@ export declare type RequestChildConsentRequest = Message<"novatrail.api.v1.Reque
|
|
|
715
806
|
* @generated from field: string country = 3;
|
|
716
807
|
*/
|
|
717
808
|
country: string;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* The version of `parent-consent` that `app` shows with the form, as `GetLegalTexts` gave it:
|
|
812
|
+
* `app` sends it whenever the text has a version in force, whoever the category makes give the
|
|
813
|
+
* consent, since only `api` works it out; `api` records it with a parent's consent alone.
|
|
814
|
+
*
|
|
815
|
+
* @generated from field: novatrail.api.v1.LegalTextRef parent_consent_text = 4;
|
|
816
|
+
*/
|
|
817
|
+
parentConsentText?: LegalTextRef | undefined;
|
|
718
818
|
};
|
|
719
819
|
|
|
720
820
|
/**
|
|
@@ -743,6 +843,101 @@ export declare type RequestChildConsentResponse = Message<"novatrail.api.v1.Requ
|
|
|
743
843
|
*/
|
|
744
844
|
export declare const RequestChildConsentResponseSchema: GenMessage<RequestChildConsentResponse>;
|
|
745
845
|
|
|
846
|
+
/**
|
|
847
|
+
* The scan of a parent's signed form.
|
|
848
|
+
*
|
|
849
|
+
* @generated from message novatrail.api.v1.SendConsentFormRequest
|
|
850
|
+
*/
|
|
851
|
+
export declare type SendConsentFormRequest = Message<"novatrail.api.v1.SendConsentFormRequest"> & {
|
|
852
|
+
/**
|
|
853
|
+
* The consent, a parent's that waits: of the account, or one that a profile waits for.
|
|
854
|
+
*
|
|
855
|
+
* @generated from field: string consent_id = 1;
|
|
856
|
+
*/
|
|
857
|
+
consentId: string;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* The idempotency key of this action of the adult.
|
|
861
|
+
*
|
|
862
|
+
* @generated from field: string idempotency_key = 2;
|
|
863
|
+
*/
|
|
864
|
+
idempotencyKey: string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* The scan: up to 10 MiB.
|
|
868
|
+
*
|
|
869
|
+
* @generated from field: bytes form = 3;
|
|
870
|
+
*/
|
|
871
|
+
form: Uint8Array;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Its media type: "image/jpeg", "image/png" or "application/pdf".
|
|
875
|
+
*
|
|
876
|
+
* @generated from field: string media_type = 4;
|
|
877
|
+
*/
|
|
878
|
+
mediaType: string;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Describes the message novatrail.api.v1.SendConsentFormRequest.
|
|
883
|
+
* Use `create(SendConsentFormRequestSchema)` to create a new message.
|
|
884
|
+
*/
|
|
885
|
+
export declare const SendConsentFormRequestSchema: GenMessage<SendConsentFormRequest>;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* The form received.
|
|
889
|
+
*
|
|
890
|
+
* @generated from message novatrail.api.v1.SendConsentFormResponse
|
|
891
|
+
*/
|
|
892
|
+
export declare type SendConsentFormResponse = Message<"novatrail.api.v1.SendConsentFormResponse"> & {
|
|
893
|
+
/**
|
|
894
|
+
* The consent, with its form sent.
|
|
895
|
+
*
|
|
896
|
+
* @generated from field: novatrail.api.v1.ChildConsent consent = 1;
|
|
897
|
+
*/
|
|
898
|
+
consent?: ChildConsent | undefined;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Describes the message novatrail.api.v1.SendConsentFormResponse.
|
|
903
|
+
* Use `create(SendConsentFormResponseSchema)` to create a new message.
|
|
904
|
+
*/
|
|
905
|
+
export declare const SendConsentFormResponseSchema: GenMessage<SendConsentFormResponse>;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* A consent taken back.
|
|
909
|
+
*
|
|
910
|
+
* @generated from message novatrail.api.v1.CancelChildConsentRequest
|
|
911
|
+
*/
|
|
912
|
+
export declare type CancelChildConsentRequest = Message<"novatrail.api.v1.CancelChildConsentRequest"> & {
|
|
913
|
+
/**
|
|
914
|
+
* The consent, which has no profile: waiting or confirmed.
|
|
915
|
+
*
|
|
916
|
+
* @generated from field: string consent_id = 1;
|
|
917
|
+
*/
|
|
918
|
+
consentId: string;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Describes the message novatrail.api.v1.CancelChildConsentRequest.
|
|
923
|
+
* Use `create(CancelChildConsentRequestSchema)` to create a new message.
|
|
924
|
+
*/
|
|
925
|
+
export declare const CancelChildConsentRequestSchema: GenMessage<CancelChildConsentRequest>;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* "Taken back": nothing of the consent is left but, of one confirmed, its minimal record.
|
|
929
|
+
*
|
|
930
|
+
* @generated from message novatrail.api.v1.CancelChildConsentResponse
|
|
931
|
+
*/
|
|
932
|
+
export declare type CancelChildConsentResponse = Message<"novatrail.api.v1.CancelChildConsentResponse"> & {
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Describes the message novatrail.api.v1.CancelChildConsentResponse.
|
|
937
|
+
* Use `create(CancelChildConsentResponseSchema)` to create a new message.
|
|
938
|
+
*/
|
|
939
|
+
export declare const CancelChildConsentResponseSchema: GenMessage<CancelChildConsentResponse>;
|
|
940
|
+
|
|
746
941
|
/**
|
|
747
942
|
* The second step: a child's profile created by its consent.
|
|
748
943
|
*
|
|
@@ -790,6 +985,159 @@ export declare type CreateChildProfileResponse = Message<"novatrail.api.v1.Creat
|
|
|
790
985
|
*/
|
|
791
986
|
export declare const CreateChildProfileResponseSchema: GenMessage<CreateChildProfileResponse>;
|
|
792
987
|
|
|
988
|
+
/**
|
|
989
|
+
* The learner's own consent.
|
|
990
|
+
*
|
|
991
|
+
* @generated from message novatrail.api.v1.GiveOwnConsentRequest
|
|
992
|
+
*/
|
|
993
|
+
export declare type GiveOwnConsentRequest = Message<"novatrail.api.v1.GiveOwnConsentRequest"> & {
|
|
994
|
+
/**
|
|
995
|
+
* The learner's profile.
|
|
996
|
+
*
|
|
997
|
+
* @generated from field: string profile_id = 1;
|
|
998
|
+
*/
|
|
999
|
+
profileId: string;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* The version of `teen-consent` the learner read, as `GetLegalTexts` gave it: absent while the
|
|
1003
|
+
* text has no version in force, and needed once it has.
|
|
1004
|
+
*
|
|
1005
|
+
* @generated from field: novatrail.api.v1.LegalTextRef text = 2;
|
|
1006
|
+
*/
|
|
1007
|
+
text?: LegalTextRef | undefined;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Describes the message novatrail.api.v1.GiveOwnConsentRequest.
|
|
1012
|
+
* Use `create(GiveOwnConsentRequestSchema)` to create a new message.
|
|
1013
|
+
*/
|
|
1014
|
+
export declare const GiveOwnConsentRequestSchema: GenMessage<GiveOwnConsentRequest>;
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* The consent given.
|
|
1018
|
+
*
|
|
1019
|
+
* @generated from message novatrail.api.v1.GiveOwnConsentResponse
|
|
1020
|
+
*/
|
|
1021
|
+
export declare type GiveOwnConsentResponse = Message<"novatrail.api.v1.GiveOwnConsentResponse"> & {
|
|
1022
|
+
/**
|
|
1023
|
+
* The profile, whose consent is the learner's.
|
|
1024
|
+
*
|
|
1025
|
+
* @generated from field: novatrail.api.v1.Profile profile = 1;
|
|
1026
|
+
*/
|
|
1027
|
+
profile?: Profile | undefined;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Describes the message novatrail.api.v1.GiveOwnConsentResponse.
|
|
1032
|
+
* Use `create(GiveOwnConsentResponseSchema)` to create a new message.
|
|
1033
|
+
*/
|
|
1034
|
+
export declare const GiveOwnConsentResponseSchema: GenMessage<GiveOwnConsentResponse>;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* The withdrawal of the learner's own consent.
|
|
1038
|
+
*
|
|
1039
|
+
* @generated from message novatrail.api.v1.WithdrawOwnConsentRequest
|
|
1040
|
+
*/
|
|
1041
|
+
export declare type WithdrawOwnConsentRequest = Message<"novatrail.api.v1.WithdrawOwnConsentRequest"> & {
|
|
1042
|
+
/**
|
|
1043
|
+
* The learner's profile.
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from field: string profile_id = 1;
|
|
1046
|
+
*/
|
|
1047
|
+
profileId: string;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Describes the message novatrail.api.v1.WithdrawOwnConsentRequest.
|
|
1052
|
+
* Use `create(WithdrawOwnConsentRequestSchema)` to create a new message.
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const WithdrawOwnConsentRequestSchema: GenMessage<WithdrawOwnConsentRequest>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* "Withdrawn": the profile and everything of it are gone.
|
|
1058
|
+
*
|
|
1059
|
+
* @generated from message novatrail.api.v1.WithdrawOwnConsentResponse
|
|
1060
|
+
*/
|
|
1061
|
+
export declare type WithdrawOwnConsentResponse = Message<"novatrail.api.v1.WithdrawOwnConsentResponse"> & {
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Describes the message novatrail.api.v1.WithdrawOwnConsentResponse.
|
|
1066
|
+
* Use `create(WithdrawOwnConsentResponseSchema)` to create a new message.
|
|
1067
|
+
*/
|
|
1068
|
+
export declare const WithdrawOwnConsentResponseSchema: GenMessage<WithdrawOwnConsentResponse>;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* The age and the country given again.
|
|
1072
|
+
*
|
|
1073
|
+
* @generated from message novatrail.api.v1.RestateAgeRequest
|
|
1074
|
+
*/
|
|
1075
|
+
export declare type RestateAgeRequest = Message<"novatrail.api.v1.RestateAgeRequest"> & {
|
|
1076
|
+
/**
|
|
1077
|
+
* The profile.
|
|
1078
|
+
*
|
|
1079
|
+
* @generated from field: string profile_id = 1;
|
|
1080
|
+
*/
|
|
1081
|
+
profileId: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* The idempotency key of this action of the adult.
|
|
1085
|
+
*
|
|
1086
|
+
* @generated from field: string idempotency_key = 2;
|
|
1087
|
+
*/
|
|
1088
|
+
idempotencyKey: string;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* The learner's age in years, from 0 to 17, which `api` keeps nowhere: needed at a child's
|
|
1092
|
+
* profile, and absent at the owner's.
|
|
1093
|
+
*
|
|
1094
|
+
* @generated from field: optional int32 age_years = 3;
|
|
1095
|
+
*/
|
|
1096
|
+
ageYears?: number | undefined;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* The learner's country, ISO 3166-1 alpha-2.
|
|
1100
|
+
*
|
|
1101
|
+
* @generated from field: string country = 4;
|
|
1102
|
+
*/
|
|
1103
|
+
country: string;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* The version of `parent-consent` that `app` shows, sent as at `RequestChildConsent` whenever the
|
|
1107
|
+
* text has a version in force: `api` records it with a parent's consent that the new category
|
|
1108
|
+
* asks for.
|
|
1109
|
+
*
|
|
1110
|
+
* @generated from field: novatrail.api.v1.LegalTextRef parent_consent_text = 5;
|
|
1111
|
+
*/
|
|
1112
|
+
parentConsentText?: LegalTextRef | undefined;
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Describes the message novatrail.api.v1.RestateAgeRequest.
|
|
1117
|
+
* Use `create(RestateAgeRequestSchema)` to create a new message.
|
|
1118
|
+
*/
|
|
1119
|
+
export declare const RestateAgeRequestSchema: GenMessage<RestateAgeRequest>;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* The profile with its age given again.
|
|
1123
|
+
*
|
|
1124
|
+
* @generated from message novatrail.api.v1.RestateAgeResponse
|
|
1125
|
+
*/
|
|
1126
|
+
export declare type RestateAgeResponse = Message<"novatrail.api.v1.RestateAgeResponse"> & {
|
|
1127
|
+
/**
|
|
1128
|
+
* The profile, of its new category, and what its consent waits for.
|
|
1129
|
+
*
|
|
1130
|
+
* @generated from field: novatrail.api.v1.Profile profile = 1;
|
|
1131
|
+
*/
|
|
1132
|
+
profile?: Profile | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Describes the message novatrail.api.v1.RestateAgeResponse.
|
|
1137
|
+
* Use `create(RestateAgeResponseSchema)` to create a new message.
|
|
1138
|
+
*/
|
|
1139
|
+
export declare const RestateAgeResponseSchema: GenMessage<RestateAgeResponse>;
|
|
1140
|
+
|
|
793
1141
|
/**
|
|
794
1142
|
* A change of a profile's settings.
|
|
795
1143
|
*
|
|
@@ -884,6 +1232,69 @@ export declare type SetVoicingResponse = Message<"novatrail.api.v1.SetVoicingRes
|
|
|
884
1232
|
*/
|
|
885
1233
|
export declare const SetVoicingResponseSchema: GenMessage<SetVoicingResponse>;
|
|
886
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* The storage of works switched on or off.
|
|
1237
|
+
*
|
|
1238
|
+
* @generated from message novatrail.api.v1.SetWorkStorageRequest
|
|
1239
|
+
*/
|
|
1240
|
+
export declare type SetWorkStorageRequest = Message<"novatrail.api.v1.SetWorkStorageRequest"> & {
|
|
1241
|
+
/**
|
|
1242
|
+
* The profile.
|
|
1243
|
+
*
|
|
1244
|
+
* @generated from field: string profile_id = 1;
|
|
1245
|
+
*/
|
|
1246
|
+
profileId: string;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* Whose action it is: `ACTION_ADULT`, or `ACTION_LEARNING` at a profile whose learner gave their
|
|
1250
|
+
* own consent. `ACTION_UNSPECIFIED` is refused `invalid_argument`.
|
|
1251
|
+
*
|
|
1252
|
+
* @generated from field: novatrail.api.v1.Action action = 2;
|
|
1253
|
+
*/
|
|
1254
|
+
action: Action;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* Whether it is on.
|
|
1258
|
+
*
|
|
1259
|
+
* @generated from field: bool enabled = 3;
|
|
1260
|
+
*/
|
|
1261
|
+
enabled: boolean;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Beside switching on: the version of `storage-consent` that the person read, as
|
|
1265
|
+
* `GetLegalTexts` gave it; absent while the text has no version in force.
|
|
1266
|
+
*
|
|
1267
|
+
* @generated from field: novatrail.api.v1.LegalTextRef text = 4;
|
|
1268
|
+
*/
|
|
1269
|
+
text?: LegalTextRef | undefined;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Describes the message novatrail.api.v1.SetWorkStorageRequest.
|
|
1274
|
+
* Use `create(SetWorkStorageRequestSchema)` to create a new message.
|
|
1275
|
+
*/
|
|
1276
|
+
export declare const SetWorkStorageRequestSchema: GenMessage<SetWorkStorageRequest>;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* The profile with its storage of works.
|
|
1280
|
+
*
|
|
1281
|
+
* @generated from message novatrail.api.v1.SetWorkStorageResponse
|
|
1282
|
+
*/
|
|
1283
|
+
export declare type SetWorkStorageResponse = Message<"novatrail.api.v1.SetWorkStorageResponse"> & {
|
|
1284
|
+
/**
|
|
1285
|
+
* The profile.
|
|
1286
|
+
*
|
|
1287
|
+
* @generated from field: novatrail.api.v1.Profile profile = 1;
|
|
1288
|
+
*/
|
|
1289
|
+
profile?: Profile | undefined;
|
|
1290
|
+
};
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Describes the message novatrail.api.v1.SetWorkStorageResponse.
|
|
1294
|
+
* Use `create(SetWorkStorageResponseSchema)` to create a new message.
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const SetWorkStorageResponseSchema: GenMessage<SetWorkStorageResponse>;
|
|
1297
|
+
|
|
887
1298
|
/**
|
|
888
1299
|
* The deletion of a profile.
|
|
889
1300
|
*
|
|
@@ -958,6 +1369,15 @@ export declare type ExportProfileRequest = Message<"novatrail.api.v1.ExportProfi
|
|
|
958
1369
|
* @generated from field: string profile_id = 1;
|
|
959
1370
|
*/
|
|
960
1371
|
profileId: string;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Whose action it is: `ACTION_ADULT`, or `ACTION_LEARNING` at a profile whose learner gave their
|
|
1375
|
+
* own consent. `ACTION_UNSPECIFIED` is read as `ACTION_ADULT`: a request of a build before the
|
|
1376
|
+
* field was there names none.
|
|
1377
|
+
*
|
|
1378
|
+
* @generated from field: novatrail.api.v1.Action action = 2;
|
|
1379
|
+
*/
|
|
1380
|
+
action: Action;
|
|
961
1381
|
};
|
|
962
1382
|
|
|
963
1383
|
/**
|
|
@@ -973,15 +1393,16 @@ export declare const ExportProfileRequestSchema: GenMessage<ExportProfileRequest
|
|
|
973
1393
|
*/
|
|
974
1394
|
export declare type ExportProfileResponse = Message<"novatrail.api.v1.ExportProfileResponse"> & {
|
|
975
1395
|
/**
|
|
976
|
-
* The part,
|
|
977
|
-
*
|
|
1396
|
+
* The part, `api.zip` of the export format — `export/` of `spec` (R135) —, which `app` puts into
|
|
1397
|
+
* the file of the export as it is, without reading it.
|
|
978
1398
|
*
|
|
979
1399
|
* @generated from field: bytes part = 1;
|
|
980
1400
|
*/
|
|
981
1401
|
part: Uint8Array;
|
|
982
1402
|
|
|
983
1403
|
/**
|
|
984
|
-
* The version of the export format the part is written in
|
|
1404
|
+
* The version of the export format the part is written in: the integer of `export/VERSION`, in
|
|
1405
|
+
* decimal, such as "1".
|
|
985
1406
|
*
|
|
986
1407
|
* @generated from field: string export_format_version = 2;
|
|
987
1408
|
*/
|
|
@@ -1015,15 +1436,16 @@ export declare const ExportAccountRequestSchema: GenMessage<ExportAccountRequest
|
|
|
1015
1436
|
*/
|
|
1016
1437
|
export declare type ExportAccountResponse = Message<"novatrail.api.v1.ExportAccountResponse"> & {
|
|
1017
1438
|
/**
|
|
1018
|
-
* The part,
|
|
1019
|
-
*
|
|
1439
|
+
* The part, `api.zip` of the export format — `export/` of `spec` (R135) —, which `app` puts into
|
|
1440
|
+
* the file of the export as it is, without reading it.
|
|
1020
1441
|
*
|
|
1021
1442
|
* @generated from field: bytes part = 1;
|
|
1022
1443
|
*/
|
|
1023
1444
|
part: Uint8Array;
|
|
1024
1445
|
|
|
1025
1446
|
/**
|
|
1026
|
-
* The version of the export format the part is written in
|
|
1447
|
+
* The version of the export format the part is written in: the integer of `export/VERSION`, in
|
|
1448
|
+
* decimal, such as "1".
|
|
1027
1449
|
*
|
|
1028
1450
|
* @generated from field: string export_format_version = 2;
|
|
1029
1451
|
*/
|
|
@@ -1158,6 +1580,94 @@ export declare type OwnKeyProvider = Message<"novatrail.api.v1.OwnKeyProvider">
|
|
|
1158
1580
|
*/
|
|
1159
1581
|
export declare const OwnKeyProviderSchema: GenMessage<OwnKeyProvider>;
|
|
1160
1582
|
|
|
1583
|
+
/**
|
|
1584
|
+
* Who gave a consent. A giver its build does not know `app` reads as a parent.
|
|
1585
|
+
*
|
|
1586
|
+
* @generated from enum novatrail.api.v1.ConsentGiver
|
|
1587
|
+
*/
|
|
1588
|
+
export enum ConsentGiver {
|
|
1589
|
+
/**
|
|
1590
|
+
* Not named: never sent.
|
|
1591
|
+
*
|
|
1592
|
+
* @generated from enum value: CONSENT_GIVER_UNSPECIFIED = 0;
|
|
1593
|
+
*/
|
|
1594
|
+
UNSPECIFIED = 0,
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* The owner of the account, of their own profile, by the statement that they are 18 or older.
|
|
1598
|
+
*
|
|
1599
|
+
* @generated from enum value: CONSENT_GIVER_OWNER = 1;
|
|
1600
|
+
*/
|
|
1601
|
+
OWNER = 1,
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* A parent, by the signed form (R116).
|
|
1605
|
+
*
|
|
1606
|
+
* @generated from enum value: CONSENT_GIVER_PARENT = 2;
|
|
1607
|
+
*/
|
|
1608
|
+
PARENT = 2,
|
|
1609
|
+
|
|
1610
|
+
/**
|
|
1611
|
+
* The learner themselves, from the age of digital consent of their country (R116; R134).
|
|
1612
|
+
*
|
|
1613
|
+
* @generated from enum value: CONSENT_GIVER_LEARNER = 3;
|
|
1614
|
+
*/
|
|
1615
|
+
LEARNER = 3,
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Describes the enum novatrail.api.v1.ConsentGiver.
|
|
1620
|
+
*/
|
|
1621
|
+
export declare const ConsentGiverSchema: GenEnum<ConsentGiver>;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* What a profile waits for before its next work. A need its build does not know `app` reads as a
|
|
1625
|
+
* profile that may not learn now, and says so.
|
|
1626
|
+
*
|
|
1627
|
+
* @generated from enum novatrail.api.v1.ConsentNeed
|
|
1628
|
+
*/
|
|
1629
|
+
export enum ConsentNeed {
|
|
1630
|
+
/**
|
|
1631
|
+
* Not named: never sent.
|
|
1632
|
+
*
|
|
1633
|
+
* @generated from enum value: CONSENT_NEED_UNSPECIFIED = 0;
|
|
1634
|
+
*/
|
|
1635
|
+
UNSPECIFIED = 0,
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Nothing: the profile learns.
|
|
1639
|
+
*
|
|
1640
|
+
* @generated from enum value: CONSENT_NEED_NONE = 1;
|
|
1641
|
+
*/
|
|
1642
|
+
NONE = 1,
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* The learner's own consent, `GiveOwnConsent`.
|
|
1646
|
+
*
|
|
1647
|
+
* @generated from enum value: CONSENT_NEED_OWN = 2;
|
|
1648
|
+
*/
|
|
1649
|
+
OWN = 2,
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* A parent's consent, by a signed form for the code of the request.
|
|
1653
|
+
*
|
|
1654
|
+
* @generated from enum value: CONSENT_NEED_PARENT = 3;
|
|
1655
|
+
*/
|
|
1656
|
+
PARENT = 3,
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* The age given again, `RestateAge`: the country raised its age of digital consent.
|
|
1660
|
+
*
|
|
1661
|
+
* @generated from enum value: CONSENT_NEED_AGE = 4;
|
|
1662
|
+
*/
|
|
1663
|
+
AGE = 4,
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Describes the enum novatrail.api.v1.ConsentNeed.
|
|
1668
|
+
*/
|
|
1669
|
+
export declare const ConsentNeedSchema: GenEnum<ConsentNeed>;
|
|
1670
|
+
|
|
1161
1671
|
/**
|
|
1162
1672
|
* The speed of the voicing. A speed its build does not know `app` reads as normal.
|
|
1163
1673
|
*
|
|
@@ -1225,6 +1735,48 @@ export enum Mode {
|
|
|
1225
1735
|
*/
|
|
1226
1736
|
export declare const ModeSchema: GenEnum<Mode>;
|
|
1227
1737
|
|
|
1738
|
+
/**
|
|
1739
|
+
* Where the scan of a parent's signed form stands. A state its build does not know `app` reads as
|
|
1740
|
+
* a form sent.
|
|
1741
|
+
*
|
|
1742
|
+
* @generated from enum novatrail.api.v1.FormState
|
|
1743
|
+
*/
|
|
1744
|
+
export enum FormState {
|
|
1745
|
+
/**
|
|
1746
|
+
* Not named: a consent with no form.
|
|
1747
|
+
*
|
|
1748
|
+
* @generated from enum value: FORM_STATE_UNSPECIFIED = 0;
|
|
1749
|
+
*/
|
|
1750
|
+
UNSPECIFIED = 0,
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* No form is sent yet.
|
|
1754
|
+
*
|
|
1755
|
+
* @generated from enum value: FORM_STATE_NOT_SENT = 1;
|
|
1756
|
+
*/
|
|
1757
|
+
NOT_SENT = 1,
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* A form is sent: the operator checks it, or accepted it once the consent is confirmed.
|
|
1761
|
+
*
|
|
1762
|
+
* @generated from enum value: FORM_STATE_SENT = 2;
|
|
1763
|
+
*/
|
|
1764
|
+
SENT = 2,
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* The operator did not accept the form — it is not legible, or does not name the code of the
|
|
1768
|
+
* request —, and a new one is sent.
|
|
1769
|
+
*
|
|
1770
|
+
* @generated from enum value: FORM_STATE_NOT_ACCEPTED = 3;
|
|
1771
|
+
*/
|
|
1772
|
+
NOT_ACCEPTED = 3,
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Describes the enum novatrail.api.v1.FormState.
|
|
1777
|
+
*/
|
|
1778
|
+
export declare const FormStateSchema: GenEnum<FormState>;
|
|
1779
|
+
|
|
1228
1780
|
/**
|
|
1229
1781
|
* Where a consent for a child stands. A state its build does not know `app` reads as waiting.
|
|
1230
1782
|
*
|
|
@@ -1239,7 +1791,7 @@ export enum ConsentState {
|
|
|
1239
1791
|
UNSPECIFIED = 0,
|
|
1240
1792
|
|
|
1241
1793
|
/**
|
|
1242
|
-
* It waits:
|
|
1794
|
+
* It waits: the parent's form is not confirmed yet, or the learner has not given it yet.
|
|
1243
1795
|
*
|
|
1244
1796
|
* @generated from enum value: CONSENT_STATE_WAITING = 1;
|
|
1245
1797
|
*/
|
|
@@ -1352,11 +1904,12 @@ export declare const AccountService: GenService<{
|
|
|
1352
1904
|
output: typeof GetAccountResponseSchema;
|
|
1353
1905
|
},
|
|
1354
1906
|
/**
|
|
1355
|
-
* Creates the account of the user signed in, by an invite code
|
|
1356
|
-
*
|
|
1357
|
-
*
|
|
1358
|
-
* the
|
|
1359
|
-
*
|
|
1907
|
+
* Creates the account of the user signed in, by an invite code, the owner's statement that they
|
|
1908
|
+
* are 18 or older, and the versions of the privacy policy and the terms of use the owner
|
|
1909
|
+
* accepted. Refusals: `CAUSE_ALREADY_EXISTS`, when the user has an account already, checked
|
|
1910
|
+
* before the code, so that a repeat gets it rather than a code redeemed; `app` then reads the
|
|
1911
|
+
* account by `GetAccount`. And `CAUSE_CODE_NOT_ACCEPTED` and `CAUSE_TEXT_NOT_CURRENT`. It carries
|
|
1912
|
+
* no idempotency key: it repeats by the account's state.
|
|
1360
1913
|
*
|
|
1361
1914
|
* @generated from rpc novatrail.api.v1.AccountService.CreateAccount
|
|
1362
1915
|
*/
|
|
@@ -1435,9 +1988,12 @@ export declare const AccountService: GenService<{
|
|
|
1435
1988
|
* The first of a child's profile's two steps: the owner gives the child's age in years and the
|
|
1436
1989
|
* child's country, and `api` works out the age category and records a consent that waits, with
|
|
1437
1990
|
* the category and the country alone: no pseudonym and no other field of the profile. The age in
|
|
1438
|
-
* years `api` keeps nowhere.
|
|
1439
|
-
*
|
|
1440
|
-
*
|
|
1991
|
+
* years `api` keeps nowhere. Below the age of digital consent of the country the consent is a
|
|
1992
|
+
* parent's, with the code of the request that the signed form names; from it on, the learner's
|
|
1993
|
+
* own, which they give in their profile (R116; R136). Refusals: `CAUSE_COUNTRY_NOT_ACCEPTED`,
|
|
1994
|
+
* `CAUSE_TOO_MANY_CONSENTS`, checked after the key, `CAUSE_TEXT_NOT_CURRENT`,
|
|
1995
|
+
* `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency key gets
|
|
1996
|
+
* the same consent, at the limit too.
|
|
1441
1997
|
*
|
|
1442
1998
|
* @generated from rpc novatrail.api.v1.AccountService.RequestChildConsent
|
|
1443
1999
|
*/
|
|
@@ -1447,8 +2003,38 @@ export declare const AccountService: GenService<{
|
|
|
1447
2003
|
output: typeof RequestChildConsentResponseSchema;
|
|
1448
2004
|
},
|
|
1449
2005
|
/**
|
|
1450
|
-
*
|
|
1451
|
-
*
|
|
2006
|
+
* Sends the scan of a parent's signed form, a photo or a PDF, for a consent of a parent that
|
|
2007
|
+
* waits: `api` keeps it apart from its database, where the operator checks it against the code of
|
|
2008
|
+
* the request and confirms the consent or does not accept the form (R116). A form sent again
|
|
2009
|
+
* takes the place of the one before. Refusals: `CAUSE_NOT_FOUND`, `CAUSE_ALREADY_EXISTS` when
|
|
2010
|
+
* the consent is confirmed, `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the
|
|
2011
|
+
* same idempotency key gets the same consent.
|
|
2012
|
+
*
|
|
2013
|
+
* @generated from rpc novatrail.api.v1.AccountService.SendConsentForm
|
|
2014
|
+
*/
|
|
2015
|
+
sendConsentForm: {
|
|
2016
|
+
methodKind: "unary";
|
|
2017
|
+
input: typeof SendConsentFormRequestSchema;
|
|
2018
|
+
output: typeof SendConsentFormResponseSchema;
|
|
2019
|
+
},
|
|
2020
|
+
/**
|
|
2021
|
+
* Takes back a consent with no profile, waiting or confirmed: one that waits `api` erases with
|
|
2022
|
+
* its form, and keeps nothing of it; one confirmed leaves its minimal record and its form for
|
|
2023
|
+
* their term, as a withdrawal does (R117). Either no longer counts toward the limit. Refusals:
|
|
2024
|
+
* `CAUSE_NOT_FOUND`, which is the answer of a repeat too: `app` reads it as taken back already.
|
|
2025
|
+
* It carries no idempotency key: it repeats by the consent's state.
|
|
2026
|
+
*
|
|
2027
|
+
* @generated from rpc novatrail.api.v1.AccountService.CancelChildConsent
|
|
2028
|
+
*/
|
|
2029
|
+
cancelChildConsent: {
|
|
2030
|
+
methodKind: "unary";
|
|
2031
|
+
input: typeof CancelChildConsentRequestSchema;
|
|
2032
|
+
output: typeof CancelChildConsentResponseSchema;
|
|
2033
|
+
},
|
|
2034
|
+
/**
|
|
2035
|
+
* The second step: creates a child's profile by its consent, once a parent's consent is
|
|
2036
|
+
* confirmed, or at once by a consent that the learner gives themselves, which the profile then
|
|
2037
|
+
* waits for. Refusals: `CAUSE_NOT_FOUND`, `CAUSE_NO_CONSENT` while a parent's consent waits, and
|
|
1452
2038
|
* `CAUSE_ALREADY_EXISTS`, when the consent has its profile already; `app` then reads the account.
|
|
1453
2039
|
* It carries no idempotency key: it repeats by the consent's state.
|
|
1454
2040
|
*
|
|
@@ -1459,6 +2045,59 @@ export declare const AccountService: GenService<{
|
|
|
1459
2045
|
input: typeof CreateChildProfileRequestSchema;
|
|
1460
2046
|
output: typeof CreateChildProfileResponseSchema;
|
|
1461
2047
|
},
|
|
2048
|
+
/**
|
|
2049
|
+
* The learner's own consent, in their profile, before their first work: a learner from the age
|
|
2050
|
+
* of digital consent of their country gives it, and one who reached that age confirms by it the
|
|
2051
|
+
* consent a parent gave (R116). A learning request with the right `can_learn`, by the text
|
|
2052
|
+
* `teen-consent`. Refusals: `CAUSE_NO_PROFILE`, `CAUSE_ADULT_NEEDED` at a profile below that age,
|
|
2053
|
+
* and `CAUSE_TEXT_NOT_CURRENT`. It carries no idempotency key: it repeats by the profile's state,
|
|
2054
|
+
* and a consent given already is the answer.
|
|
2055
|
+
*
|
|
2056
|
+
* @generated from rpc novatrail.api.v1.AccountService.GiveOwnConsent
|
|
2057
|
+
*/
|
|
2058
|
+
giveOwnConsent: {
|
|
2059
|
+
methodKind: "unary";
|
|
2060
|
+
input: typeof GiveOwnConsentRequestSchema;
|
|
2061
|
+
output: typeof GiveOwnConsentResponseSchema;
|
|
2062
|
+
},
|
|
2063
|
+
/**
|
|
2064
|
+
* Withdraws the learner's own consent, as easily as it was given: a learning request with the
|
|
2065
|
+
* right `can_learn`, which deletes the profile and everything of it, as `DeleteProfile` does, and
|
|
2066
|
+
* leaves the minimal record of the consent and the reports of a problem, as `DeleteProfile` does
|
|
2067
|
+
* (R117; R132). `app` offers the export first. Neither `CAUSE_NO_CONSENT` nor `CAUSE_AGE_NEEDED`
|
|
2068
|
+
* refuses it, nor `GiveOwnConsent`, nor the learner's `ExportProfile`. A learner who reached the
|
|
2069
|
+
* age of digital consent of their country while a parent's consent stands, whose profile waits for
|
|
2070
|
+
* their own consent, withdraws that consent by it too, instead of confirming it (R116; R141).
|
|
2071
|
+
* Refusals: `CAUSE_ADULT_NEEDED` at a profile whose consent an adult gave and that waits for no
|
|
2072
|
+
* consent of the learner — the adult withdraws it by `DeleteProfile` —, and `CAUSE_NO_PROFILE`,
|
|
2073
|
+
* which is the answer of a repeat too. It carries no
|
|
2074
|
+
* idempotency key: it repeats by the profile's state.
|
|
2075
|
+
*
|
|
2076
|
+
* @generated from rpc novatrail.api.v1.AccountService.WithdrawOwnConsent
|
|
2077
|
+
*/
|
|
2078
|
+
withdrawOwnConsent: {
|
|
2079
|
+
methodKind: "unary";
|
|
2080
|
+
input: typeof WithdrawOwnConsentRequestSchema;
|
|
2081
|
+
output: typeof WithdrawOwnConsentResponseSchema;
|
|
2082
|
+
},
|
|
2083
|
+
/**
|
|
2084
|
+
* The age and the country of a profile given again, by an action of an adult with the right
|
|
2085
|
+
* `can_manage`: once the country raised its age of digital consent (`CAUSE_AGE_NEEDED`), at the
|
|
2086
|
+
* yearly refinement of the category, and with a new country (privacy 3.3; R134). The owner's
|
|
2087
|
+
* profile gives its country alone. `api` works out the category again, as `RequestChildConsent`
|
|
2088
|
+
* does, and keeps the age nowhere. A category that needs another consent leaves the profile
|
|
2089
|
+
* waiting for it: the learner's own, or a parent's, asked for with a new code of the request.
|
|
2090
|
+
* Refusals: `CAUSE_NO_PROFILE`, `CAUSE_COUNTRY_NOT_ACCEPTED`, `CAUSE_TEXT_NOT_CURRENT`,
|
|
2091
|
+
* `CAUSE_KEY_ALREADY_USED` and `CAUSE_STILL_GOING`. A repeat with the same idempotency key gets
|
|
2092
|
+
* the same profile.
|
|
2093
|
+
*
|
|
2094
|
+
* @generated from rpc novatrail.api.v1.AccountService.RestateAge
|
|
2095
|
+
*/
|
|
2096
|
+
restateAge: {
|
|
2097
|
+
methodKind: "unary";
|
|
2098
|
+
input: typeof RestateAgeRequestSchema;
|
|
2099
|
+
output: typeof RestateAgeResponseSchema;
|
|
2100
|
+
},
|
|
1462
2101
|
/**
|
|
1463
2102
|
* Changes a profile's settings, by an action of an adult with the right `can_manage`: the fields
|
|
1464
2103
|
* sent change, and the others stay as they are. Refusals: `CAUSE_NO_PROFILE`.
|
|
@@ -1482,13 +2121,35 @@ export declare const AccountService: GenService<{
|
|
|
1482
2121
|
input: typeof SetVoicingRequestSchema;
|
|
1483
2122
|
output: typeof SetVoicingResponseSchema;
|
|
1484
2123
|
},
|
|
2124
|
+
/**
|
|
2125
|
+
* Switches the storage of a profile's works on the server on or off (R113). Switching it on is a
|
|
2126
|
+
* consent by the text `storage-consent`, which the one who consents for the learner gives: an
|
|
2127
|
+
* action of an adult with the right `can_manage`, and at a profile whose learner gave their own
|
|
2128
|
+
* consent, the learner's learning request with the right `can_learn`. Switching it off records
|
|
2129
|
+
* when, and erases the copies on the server, and so goes while the profile waits for a consent
|
|
2130
|
+
* too; switching it on then gets `CAUSE_NO_CONSENT`. At a profile whose learner gave their own
|
|
2131
|
+
* consent, the learner switching on a storage that an adult switched on is no repeat: it records
|
|
2132
|
+
* the learner's own consent by `storage-consent`, the learner its giver, in place of the
|
|
2133
|
+
* adult's (R141). Refusals: `CAUSE_NO_PROFILE`, `CAUSE_TEXT_NOT_CURRENT`, `CAUSE_ADULT_NEEDED`
|
|
2134
|
+
* and `CAUSE_LEARNER_DECIDES`. It carries no idempotency key: it repeats by the profile's state.
|
|
2135
|
+
*
|
|
2136
|
+
* @generated from rpc novatrail.api.v1.AccountService.SetWorkStorage
|
|
2137
|
+
*/
|
|
2138
|
+
setWorkStorage: {
|
|
2139
|
+
methodKind: "unary";
|
|
2140
|
+
input: typeof SetWorkStorageRequestSchema;
|
|
2141
|
+
output: typeof SetWorkStorageResponseSchema;
|
|
2142
|
+
},
|
|
1485
2143
|
/**
|
|
1486
2144
|
* Deletes a profile and everything of it, by an action of an adult with the right `can_manage`
|
|
1487
|
-
* and a fresh sign-in, checked last.
|
|
1488
|
-
*
|
|
1489
|
-
* the profile
|
|
1490
|
-
*
|
|
1491
|
-
*
|
|
2145
|
+
* and a fresh sign-in, checked last. For a child it is the withdrawal of the parent's consent,
|
|
2146
|
+
* and leaves its minimal record (R117; R132). The reports of a problem stay to their term without
|
|
2147
|
+
* the IDs of the account, the profile and the attempt (R123). It deletes a profile whose learner
|
|
2148
|
+
* gave their own consent too: the owner holds the account (R21 api). The profile of the owner is
|
|
2149
|
+
* deleted the same way, and the last profile leaves the account without profiles. The answer is
|
|
2150
|
+
* "deleted", and `app` erases the profile's database. Refusals: `CAUSE_FRESH_SIGN_IN_NEEDED`, and
|
|
2151
|
+
* `CAUSE_NO_PROFILE`, which is the answer of a repeat too: `app` reads it as deleted already. It
|
|
2152
|
+
* carries no idempotency key: it repeats by the profile's state.
|
|
1492
2153
|
*
|
|
1493
2154
|
* @generated from rpc novatrail.api.v1.AccountService.DeleteProfile
|
|
1494
2155
|
*/
|
|
@@ -1499,10 +2160,11 @@ export declare const AccountService: GenService<{
|
|
|
1499
2160
|
},
|
|
1500
2161
|
/**
|
|
1501
2162
|
* Deletes the account and everything of it, with the user of the sign-in service, by a fresh
|
|
1502
|
-
* sign-in, checked last
|
|
1503
|
-
* the
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
2163
|
+
* sign-in, checked last; the reports of a problem stay to their term without the IDs of the
|
|
2164
|
+
* account, the profile and the attempt (R123). The answer is "deleted", and `app` erases
|
|
2165
|
+
* everything of the account on the device and signs out, without refreshing the token. Other
|
|
2166
|
+
* devices learn of it by `CAUSE_ACCOUNT_GONE`. Refusals: `CAUSE_FRESH_SIGN_IN_NEEDED`; a repeat
|
|
2167
|
+
* gets `CAUSE_ACCOUNT_GONE`. It carries no idempotency key: it repeats by the account's state.
|
|
1506
2168
|
*
|
|
1507
2169
|
* @generated from rpc novatrail.api.v1.AccountService.DeleteAccount
|
|
1508
2170
|
*/
|
|
@@ -1513,8 +2175,10 @@ export declare const AccountService: GenService<{
|
|
|
1513
2175
|
},
|
|
1514
2176
|
/**
|
|
1515
2177
|
* The part of a profile's export that `api` holds, by an action of an adult with the right
|
|
1516
|
-
* `can_manage`, with no fresh sign-in
|
|
1517
|
-
*
|
|
2178
|
+
* `can_manage`, with no fresh sign-in, and at a profile whose learner gave their own consent, by
|
|
2179
|
+
* the learner's learning request with the right `can_learn` too (R136). `app` makes the file of
|
|
2180
|
+
* the export of it and of what the device holds. Refusals: `CAUSE_NO_PROFILE` and
|
|
2181
|
+
* `CAUSE_ADULT_NEEDED`.
|
|
1518
2182
|
*
|
|
1519
2183
|
* @generated from rpc novatrail.api.v1.AccountService.ExportProfile
|
|
1520
2184
|
*/
|