-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathregistration.proto
662 lines (601 loc) · 14.9 KB
/
registration.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
syntax = "proto3";
package registration.core;
message Request {
oneof request {
registration.core.Register register = 1;
registration.core.Unregister unregister = 2;
registration.core.ChangeSeatType change_seat_type = 3;
registration.core.GetFreeBibles get_free_bibles = 4;
registration.core.GetPurchasedBibles get_purchased_bibles = 5;
registration.core.ActivateBible activate_bible = 6;
registration.core.DeactivateBible deactivate_bible = 7;
registration.core.DownloadBible download_bible = 8;
registration.core.RegistrationData registration_data = 9;
registration.core.ProductInformation product_information = 10;
registration.core.GetAvailableVersion get_upgrades_available = 11;
registration.core.GetAvailableVersion get_downgrade_available = 12;
registration.core.DownloadNewVersion download_new_version = 13;
registration.core.Refresh refresh = 14;
registration.core.ActivateLink activate_link = 15;
registration.core.UpdateToken update_token = 16;
registration.core.OldTokenData old_token_data = 17;
}
}
message Callback {
oneof callback {
registration.core.SetWatermark set_watermark = 1;
registration.core.DeactivationComplete deactivation_complete = 2;
registration.core.FreeBibles free_bibles = 3;
registration.core.PurchasedBibles purchased_bibles = 4;
registration.core.BibleActivationComplete bible_activation_complete = 5;
registration.core.BibleDeactivationComplete bible_deactivation_complete = 6;
registration.core.BibleDownloadProgress bible_download_progress = 7;
registration.core.HardExit hard_exit = 8;
registration.core.ReadRegistrationData read_registration_data = 9;
registration.core.WriteRegistrationData write_registration_data = 10;
registration.core.GetProductInformation get_product_information = 11;
registration.core.Log log = 12;
registration.core.UpgradesAvailable upgrades_available = 13;
registration.core.DowngradeAvailable downgrade_available = 14;
registration.core.DownloadProgress download_progress = 15;
registration.core.Alerts alerts = 16;
registration.core.ShowExpirationDialog show_expiration_dialog = 17;
registration.core.ReadOldToken read_old_token = 18;
registration.core.Token token = 19;
registration.core.VerificationComplete verification_complete = 20;
}
}
message Register {
string user_name = 1;
string registration_key = 2;
string display_name = 3;
enum SeatType {
Inactive = 0;
Basic = 1;
Advanced = 2;
}
SeatType seat_type = 4;
enum UpdateChannel {
Beta = 0;
Production = 1;
}
UpdateChannel channel = 5;
}
message ActivateLink {
string identifier = 1;
}
message Unregister {
}
message ChangeSeatType {
enum SeatType {
Inactive = 0;
Basic = 1;
Advanced = 2;
}
SeatType seat_type = 1;
enum UpdateChannel {
Beta = 0;
Production = 1;
}
UpdateChannel channel = 2;
}
message GetFreeBibles {
}
message GetPurchasedBibles {
}
message ActivateBible {
string bible_id = 1;
}
message DeactivateBible {
string bible_id = 1;
}
message DownloadBible {
string bible_id = 1;
string filename = 2;
}
message RegistrationData {
bytes data = 1;
enum UpdateChannel {
Beta = 0;
Production = 1;
}
UpdateChannel channel = 2;
}
message ProductInformation {
string product_name = 1;
string major_version = 2;
string minor_version = 3;
string patch_version = 4;
string build_number = 5;
int64 build_date = 6;
}
message GetAvailableVersion {
bool include_notes = 1;
string channel = 2;
string format = 3;
}
message DownloadNewVersion {
string url = 1;
string filename = 2;
}
message Refresh {
enum UpdateChannel {
Beta = 0;
Production = 1;
}
UpdateChannel channel = 1;
}
message UpdateToken {
registration.core.TokenMetadata token_metadata = 1;
}
message OldTokenData {
enum ReadTokenStatus {
ReadTokenSuccess = 0;
TokenNotPresent = 1;
}
ReadTokenStatus status = 1;
registration.core.TokenMetadata token = 2;
}
message Token {
registration.core.TokenMetadata token_metadata = 1;
}
message SetWatermark {
bool is_registered = 1;
bool active_seat = 2;
}
message ActivationComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status result = 1;
registration.core.RegistrationInfo registration_info = 2;
registration.core.Seats available_seats = 3;
registration.core.Seats total_seats = 4;
}
message DeactivationComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status result = 1;
}
message ChangeSeatTypeComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status result = 1;
registration.core.Seats available_seats = 2;
registration.core.Seats total_seats = 3;
enum SeatType {
Inactive = 0;
Basic = 1;
Advanced = 2;
}
SeatType seat_type = 4;
}
message FreeBibles {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
repeated registration.core.Bible bibles = 2;
}
message PurchasedBibles {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
repeated registration.core.PurchasedBible bibles = 2;
}
message BibleActivationComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
string bible_id = 2;
string download_link = 3;
repeated registration.core.PurchasedBible bibles = 4;
}
message BibleDeactivationComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
string bible_id = 2;
repeated registration.core.PurchasedBible bibles = 3;
}
message BibleDownloadProgress {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
bool complete = 2;
float progress = 3;
string bible_id = 4;
string file_name = 5;
string download_link = 6;
}
message HardExit {
enum Reason {
HostsFile = 0;
SystemTime = 1;
}
Reason reason = 1;
}
message ReadRegistrationData {
string fingerprint = 1;
string identifier = 2;
}
message ReadOldToken {
}
message WriteRegistrationData {
bytes data = 1;
}
message GetProductInformation {
}
message Log {
enum Level {
Debug = 0;
Info = 1;
Warning = 2;
Error = 3;
}
Level level = 1;
string message = 2;
}
message UpgradesAvailable {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
bool is_non_production_active = 2;
string active_channel = 3;
string release_notes = 4;
repeated registration.core.BuildInformation upgrades = 5;
}
message DowngradeAvailable {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
registration.core.BuildInformation downgrade = 2;
string release_notes = 3;
}
message DownloadProgress {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status status = 1;
bool complete = 2;
float progress = 3;
}
message Alerts {
repeated registration.core.Alert alerts = 1;
}
message ShowExpirationDialog {
int32 days = 1;
}
message LicenseInfo {
registration.core.RegistrationInfo registration_info = 1;
registration.core.Seats available_seats = 2;
registration.core.Seats total_seats = 3;
bool legacy = 4;
}
message VerificationComplete {
enum Status {
Success = 0;
ExpiredLicense = 1;
DeactivatedLicense = 2;
DisabledLicense = 3;
NoSeats = 4;
NoCopies = 5;
MissingLicense = 6;
TimeDiscrepancy = 7;
BibleMissing = 8;
BibleNotPurchased = 9;
BibleActivationMissing = 10;
BibleDeactivated = 11;
NetworkError = 12;
IOError = 13;
NotInitialized = 14;
UnknownError = 15;
}
Status result = 1;
registration.core.LicenseInfo license = 2;
registration.core.Bibles bibles = 3;
registration.core.TokenMetadata token = 4;
registration.core.SubscriptionInfo subscription_info = 5;
enum PopupAlertMessage {
NoPopupAlert = 0;
Activation = 1;
ActivationNoSeat = 2;
NotSignedIn = 3;
SignedInNoSubscription = 4;
}
PopupAlertMessage alert = 6;
enum BannerMessage {
NoBanner = 0;
ActivateProPresenter = 1;
}
BannerMessage banner = 7;
}
message Seats {
int32 basic = 1;
int32 advanced = 2;
}
message SupplementalInformation {
string download_link = 1;
}
message Bible {
string id = 1;
string name = 2;
string language = 3;
string publisher = 4;
string copyright = 5;
string display_abbreviation = 6;
string internal_abbreviation = 7;
string version = 8;
oneof additional {
registration.core.SupplementalInformation info = 9;
}
}
message PurchasedBible {
registration.core.Bible metadata = 1;
registration.core.LicensingInfo licensing_info = 2;
}
message LicensingInfo {
int32 available_copies = 1;
int32 total_copies = 2;
bool is_active_locally = 3;
repeated registration.core.ActiveCopy other_active_copies = 4;
}
message ActiveCopy {
string display_name = 1;
string hostname = 2;
}
message RegistrationInfo {
string user_name = 1;
string display_key = 2;
string display_name = 3;
int64 expiration_date = 4;
string activation_key = 5;
enum LicenseType {
Trial = 0;
Rental = 1;
Standard = 2;
Campus = 3;
}
LicenseType license_type = 6;
int64 registration_date = 7;
enum SeatType {
Inactive = 0;
Basic = 1;
Advanced = 2;
}
SeatType seat_type = 8;
uint32 latest_available_build_number = 9;
string latest_available_version = 10;
bool has_worship_house_media_subscription = 11;
int64 maintenance_expiration_date = 12;
int64 non_extended_maintenance_expiration_date = 13;
bool is_auto_renewal_active = 14;
}
message BuildInformation {
int32 build_number = 1;
string version = 2;
string min_os_version = 3;
int64 release_date = 4;
int64 registration_date = 5;
int64 download_size = 6;
string download_url = 7;
string channel = 8;
bool is_beta = 9;
bool is_available = 10;
}
message Alert {
enum AlertType {
Info = 0;
Feature = 1;
Warning = 2;
}
AlertType alert_type = 1;
string title = 2;
enum AlertContentType {
ContentType = 0;
Text = 1;
InternalLink = 2;
ExternalLink = 3;
}
AlertContentType content_type = 3;
string content = 4;
}
message TokenMetadata {
string access_token = 1;
string refresh_token = 2;
int64 expires_at = 3;
}
message SubscriptionInfo {
string organization_name = 1;
enum ProContentLicenseType {
Free = 0;
Premium = 1;
}
ProContentLicenseType procontent_license_type = 2;
int64 procontent_license_expiration = 3;
}
message DownloadLink {
string id = 1;
string url = 2;
}
message Bibles {
repeated registration.core.Bible free_bibles = 1;
repeated registration.core.PurchasedBible purchased_bibles = 2;
}
message FeatureFlags {
bool use_staging = 1;
bool use_subscription = 2;
}