-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
anvil.yaml
696 lines (696 loc) · 18.3 KB
/
anvil.yaml
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
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
scheduled_tasks:
- task_name: prune_old_exchanges
time_spec:
n: 1
every: hour
at: {minute: 53}
job_id: CTIKZHRE
dependencies:
- app_id: C6ZZPAPN4YYF5NVJ
version: {version_tag: v2.5.3}
services:
- source: /runtime/services/tables.yml
client_config: {enable_v2: true}
server_config: {auto_create_missing_columns: false}
- source: /runtime/services/anvil/email.yml
client_config: {}
server_config: {test_mode: false}
- source: /runtime/services/anvil/secrets.yml
client_config: {}
server_config: {}
- source: /runtime/services/google.yml
client_config: {}
server_config: {client_id: 241428580212-4q2brrbaghlmsgq4brfn9ulnp7tmlnlj.apps.googleusercontent.com, client_secret: null, app_origin_redirect: true, client_secret_enc: mQQmzSBf12Qu+dxUHfy4VEqjfsBKTcnF9rRRag7Qklxtm6sfnKRYx0znOt7Ly04WEaGwC3cJJmG5TCqHW0pw9V1zG/1my6IqiyYgRZ/BAXeczm2Z4i9zb4/cFOOHLtWWqx4+hC5QLfEYEAmB1khJiAPIbtQ2FlYDXZ5XUsR881Mj+yv8f+MTLxIsDWL0l5BBbIiGr/R+B19xk67c9A==}
- source: /runtime/services/anvil/users.yml
client_config: {require_secure_passwords: true, use_token: false, use_email: true, allow_remember_me: true, allow_signup: true, enable_automatically: true, confirm_email: false, remember_me_days: 30, use_google: true}
server_config:
user_table: users
email_content:
confirm_address: {html: '<p>Thanks for registering your account with empathy.chat. Please click the following link to confirm that this is your account:</p><p><br></p><p>{{confirm_link}}</p><p><br></p><p>Thanks,</p><p>Tim</p><p>empathy.chat</p>', subject: empathy.chat - Confirm your email address}
reset_password: {html: '<p>To set (or reset) the password for your empathy.chat account {{email}}, click the link below:</p><p>{{reset_link}}</p><p>This link will expire in ten minutes.</p>', subject: empathy.chat - (re)set your password}
token_login: {html: '<p>To log in to empathy.chat, click the link below:</p><p>{{login_link}}</p><p>This link will expire in ten minutes.</p><p><em>p.s. Logging in this way can save you from having to manage yet another password. If you check the "Remember me" box when requesting this login link, you should only need to login this way once per month (per device). For more info:</em> https://anvil.works/blog/magic-link-sign-in</p>', subject: empathy.chat - Login}
startup: {type: module, module: startup}
package_name: empathy_chat
allow_embedding: false
name: empathy.chat
runtime_options: {version: 2, server_version: python3-full, client_version: '3', server_spec: null}
metadata: {description: A place to exchange NVC empathy., logo_img: 'asset:child-large.PNG', title: empathy.chat}
startup_form: null
native_deps:
head_html: |-
<script src='https://8x8.vc/external_api.js'></script>
<style>
#loadingSpinner {
display: none;
}
</style>
db_schema:
group_members:
title: Group Members
client: none
server: full
columns:
- name: user
admin_ui: {width: 200}
type: link_single
target: users
- name: group
admin_ui: {width: 200}
type: link_single
target: groups
- name: invite
admin_ui: {width: 200}
type: link_single
target: group_invites
- name: guest_allowed
admin_ui: {width: 200}
type: bool
group_invites:
title: Group Invites
client: none
server: full
columns:
- name: link_key
admin_ui: {width: 200}
type: string
- name: group
admin_ui: {width: 200}
type: link_single
target: groups
- name: created
admin_ui: {width: 200}
type: datetime
- name: expire_date
admin_ui: {width: 200}
type: datetime
- name: spec
admin_ui: {width: 200}
type: simpleObject
- name: current
admin_ui: {width: 200}
type: bool
participants:
title: Participants
client: none
server: full
columns:
- name: entered_dt
admin_ui: {order: 0.75, width: 200}
type: datetime
- name: user
admin_ui: {width: 200}
type: link_single
target: users
- name: complete_dt
admin_ui: {width: 200}
type: datetime
- name: appearances
admin_ui: {width: 200}
type: link_multiple
target: appearances
- name: late_notified
admin_ui: {width: 200}
type: bool
- name: slider_value
admin_ui: {width: 200}
type: number
- name: video_external
admin_ui: {width: 200}
type: bool
- name: request
admin_ui: {width: 200}
type: link_single
target: requests
exchange_messages:
client: none
server: full
columns:
- name: exchange
admin_ui: {width: 200, order: 0}
type: link_single
target: exchanges
- name: user
admin_ui: {width: 200, order: 1}
type: link_single
target: users
- name: message
admin_ui: {width: 200, order: 2}
type: string
- name: time_stamp
admin_ui: {width: 200, order: 3}
type: datetime
title: Exchange Messages
codes:
title: Codes
client: none
server: full
columns:
- name: type
admin_ui: {width: 200}
type: string
- name: address
admin_ui: {width: 200}
type: string
- name: code
admin_ui: {width: 200}
type: string
- name: user
admin_ui: {width: 200}
type: link_single
target: users
- name: date
admin_ui: {width: 200}
type: datetime
appearances:
title: Appearances
client: none
server: full
columns:
- name: start_dt
admin_ui: {width: 200}
type: datetime
- name: end_dt
admin_ui: {width: 200}
type: datetime
chat:
title: Chat
client: none
server: full
columns:
- name: match
admin_ui: {width: 200}
type: link_single
target: matches
- name: user
admin_ui: {width: 200}
type: link_single
target: users
- name: message
admin_ui: {width: 200}
type: string
- name: time_stamp
admin_ui: {width: 200}
type: datetime
files:
title: Files
client: none
server: full
columns:
- name: name
admin_ui: {width: 200}
type: string
- name: file
admin_ui: {width: 200}
type: media
invites:
title: Invites
client: none
server: full
columns:
- name: origin
admin_ui: {width: 77.015872}
type: bool
- name: user1
admin_ui: {width: 200}
type: link_single
target: users
- name: user2
admin_ui: {width: 200}
type: link_single
target: users
- name: date
admin_ui: {width: 200}
type: datetime
- name: relationship2to1
admin_ui: {width: 200}
type: string
- name: date_described
admin_ui: {width: 200}
type: datetime
- name: distance
admin_ui: {width: 95.021872}
type: number
- name: guess
admin_ui: {width: 86.015872}
type: string
- name: link_key
admin_ui: {width: 99.015872}
type: string
- name: proposal
admin_ui: {width: 200}
type: link_single
target: proposals
- name: current
admin_ui: {width: 78.015872}
type: bool
prompts:
title: Prompts
client: none
server: full
columns:
- name: date
admin_ui: {width: 200}
type: datetime
- name: user
admin_ui: {width: 200}
type: link_single
target: users
- name: spec
admin_ui: {width: 622}
type: simpleObject
- name: dismissed
admin_ui: {width: 200}
type: bool
users:
title: Users
client: none
server: full
columns:
- name: email
admin_ui: {width: 171}
type: string
- name: first_name
admin_ui: {width: 92}
type: string
- name: last_name
admin_ui: {width: 103}
type: string
- name: enabled
admin_ui: {width: 86}
type: bool
- name: signed_up
admin_ui: {width: 131}
type: datetime
- name: confirmed_email
admin_ui: {width: 139}
type: bool
- name: trust_level
admin_ui: {width: 86}
type: number
- name: status
admin_ui: {width: 70.6}
type: string
- name: phone
admin_ui: {width: 118}
type: string
- name: last_login
admin_ui: {width: 123}
type: datetime
- name: contributor
admin_ui: {width: 104}
type: bool
- name: profile_url
admin_ui: {width: 123}
type: string
- name: url_confirmed_date
admin_ui: {width: 159}
type: datetime
- name: init_date
admin_ui: {width: 95}
type: datetime
- name: time_zone
admin_ui: {width: 147}
type: string
- name: password_hash
admin_ui: {width: 99}
type: string
- name: email_confirmation_key
admin_ui: {width: 186}
type: string
- name: notif_settings
admin_ui: {width: 1368.2}
type: simpleObject
- name: default_request
admin_ui: {order: 7.4375, width: 822}
type: simpleObject
- name: seeking_buddy
admin_ui: {order: 7.625, width: 96}
type: bool
- name: how_empathy
admin_ui: {width: 115}
type: string
- name: profile
admin_ui: {width: 124}
type: string
- name: profile_updated
admin_ui: {width: 137}
type: datetime
- name: last_request_em
admin_ui: {width: 144}
type: datetime
- name: remembered_logins
admin_ui: {width: 171}
type: simpleObject
- name: n_password_failures
admin_ui: {width: 178}
type: number
- name: update_needed
admin_ui: {width: 132}
type: bool
- name: last_invite
admin_ui: {width: 144}
type: datetime
proposal_times:
title: Proposal Times
client: none
server: full
columns:
- name: expire_date
admin_ui: {width: 195.667}
type: datetime
- name: current
admin_ui: {width: 91}
type: bool
- name: cancelled
admin_ui: {width: 200}
type: bool
- name: proposal
admin_ui: {width: 159}
type: link_single
target: proposals
- name: start_date
admin_ui: {width: 252}
type: datetime
- name: start_now
admin_ui: {width: 112}
type: bool
- name: duration
admin_ui: {width: 98}
type: number
- name: users_accepting
admin_ui: {width: 158}
type: link_multiple
target: users
- name: fully_accepted
admin_ui: {width: 200}
type: bool
- name: accept_date
admin_ui: {width: 200}
type: datetime
- name: jitsi_code
admin_ui: {width: 132.667}
type: string
- name: missed_pings
admin_ui: {width: 142}
type: number
exchanges:
title: Exchanges
client: none
server: full
columns:
- name: room_code
admin_ui: {width: 200}
type: string
- name: start_dt
admin_ui: {width: 200}
type: datetime
- name: current
admin_ui: {width: 200}
type: bool
- name: start_now
admin_ui: {width: 200}
type: bool
- name: users
admin_ui: {width: 200}
type: link_multiple
target: users
- name: participants
admin_ui: {width: 200}
type: link_multiple
target: participants
- name: exchange_format
admin_ui: {width: 200}
type: link_single
target: exchange_formats
stars:
title: Stars
client: none
server: full
columns:
- name: user1
admin_ui: {width: 200}
type: link_single
target: users
- name: user2
admin_ui: {width: 200}
type: link_single
target: users
proposals:
title: Proposals
client: none
server: full
columns:
- name: created
admin_ui: {width: 200}
type: datetime
- name: current
admin_ui: {width: 95}
type: bool
- name: user
admin_ui: {width: 161}
type: link_single
target: users
- name: last_edited
admin_ui: {width: 200}
type: datetime
- name: eligible
admin_ui: {width: 98}
type: number
- name: eligible_users
admin_ui: {width: 200}
type: link_multiple
target: users
- name: eligible_groups
admin_ui: {width: 200}
type: link_multiple
target: groups
- name: eligible_starred
admin_ui: {width: 200}
type: bool
- name: min_size
admin_ui: {width: 200}
type: number
- name: max_size
admin_ui: {width: 200}
type: number
matches:
title: Matches
client: none
server: full
columns:
- name: users
admin_ui: {width: 200}
type: link_multiple
target: users
- name: proposal_time
admin_ui: {width: 200}
type: link_single
target: proposal_times
- name: match_commence
admin_ui: {width: 200}
type: datetime
- name: present
admin_ui: {width: 200}
type: simpleObject
- name: complete
admin_ui: {width: 200}
type: simpleObject
- name: slider_values
admin_ui: {width: 200}
type: simpleObject
- name: late_notified
admin_ui: {width: 200}
type: simpleObject
- name: external
admin_ui: {width: 200}
type: simpleObject
exchange_prospects:
title: Exchange Prospects
client: none
server: full
columns:
- name: requests
admin_ui: {width: 200}
type: link_multiple
target: requests
- name: distances
type: simpleObject
admin_ui: {width: 200, order: 1}
- name: create_dt
admin_ui: {width: 200, order: 2}
type: datetime
exchange_formats:
title: Exchange Formats
client: none
server: full
columns:
- name: duration
admin_ui: {width: 200}
type: number
- name: spec
admin_ui: {width: 200}
type: simpleObject
messages:
title: Messages
client: none
server: full
columns:
- name: from_user
admin_ui: {width: 200}
type: link_single
target: users
- name: to_user
admin_ui: {width: 200}
type: link_single
target: users
- name: message
admin_ui: {width: 200}
type: string
- name: time_stamp
admin_ui: {width: 200}
type: datetime
test_data:
title: Test Data
client: none
server: full
columns:
- name: test_users
admin_ui: {width: 200}
type: link_multiple
target: users
- name: test_times
admin_ui: {width: 200}
type: link_multiple
target: proposal_times
- name: test_proposals
admin_ui: {width: 200}
type: link_multiple
target: proposals
groups:
title: Groups
client: none
server: full
columns:
- name: name
admin_ui: {width: 200}
type: string
- name: hosts
admin_ui: {width: 200}
type: link_multiple
target: users
- name: created
admin_ui: {width: 200}
type: datetime
- name: current
admin_ui: {width: 200}
type: bool
requests:
title: Requests
client: none
server: full
columns:
- name: user
admin_ui: {order: 0, width: 142.02}
type: link_single
target: users
- name: or_group_id
admin_ui: {width: 130.015872}
type: string
- name: pref_order
admin_ui: {width: 200}
type: number
- name: current
admin_ui: {width: 90.015872}
type: bool
- name: exchange_format
admin_ui: {width: 103.0119}
type: link_single
target: exchange_formats
- name: start_dt
admin_ui: {width: 200}
type: datetime
- name: expire_dt
admin_ui: {width: 200}
type: datetime
- name: create_dt
admin_ui: {width: 200}
type: datetime
- name: edit_dt
admin_ui: {width: 117.0119}
type: datetime
- name: min_size
admin_ui: {width: 89.015872}
type: number
- name: max_size
admin_ui: {width: 100.015872}
type: number
- name: with_users
admin_ui: {width: 200}
type: link_multiple
target: users
- name: eligible
admin_ui: {width: 87.015872}
type: number
- name: eligible_users
admin_ui: {width: 112.015872}
type: link_multiple
target: users
- name: eligible_groups
admin_ui: {width: 121.0119}
type: link_multiple
target: groups
- name: eligible_starred
admin_ui: {width: 200}
type: bool
- name: eligible_invites
admin_ui: {width: 200}
type: link_multiple
target: invites
- name: eligible_all
admin_ui: {order: 7.75, width: 81}
type: bool
connections:
title: Connections
client: none
server: full
columns:
- name: user1
admin_ui: {width: 200}
type: link_single
target: users
- name: user2
admin_ui: {width: 200}
type: link_single
target: users
- name: date
admin_ui: {width: 200}
type: datetime
- name: relationship2to1
admin_ui: {width: 200}
type: string
- name: date_described
admin_ui: {width: 200}
type: datetime
- name: distance
admin_ui: {width: 200}
type: number
- name: current
admin_ui: {width: 200}
type: bool
secrets:
admin_email:
value: {? '' : BaoOfWcRFCExgZgnpZo6Q1myXzC8OZttbYZlDm72n8sdiEWiEHt9QcpphUYClBnVAc71E3dV66KUcXjuwLviqv3b3lq2Q7LRoa/V2tbgSaEEi4q4tzBVHu5hTNXAriwCobmYr5F7IZIGOeQPmbxDSQ==, RADLAS5MQEOV4K2C: fVY8pLuWZp8T+41jtaOP15qjfjGwEw6W3MDa/1XnaKaH+AsxTNjpSD7ov8NYSprx+XPwM1QiTDkIi9ig6LmMNVWUMIhGLYN9HnTcMNCc2GAYFYZL0zU9X3TbbplrFImqCe1ESqEYUZUzjBWKKe+XabyX47A=}
type: secret
test_user_email:
value: {? '' : KRmISsoT+2dK0u/8K3fsrPUGHVeZmp9ebh/JAQW/kg1UITdnMVxlJwM07wyGRdUuwAz2DiUUJ7dh8mavtiIrfgFUTWSeChYDkGXzQ2nTJNtJx5rNeM0q5Rd8USdUsi/YmXgro0A5r8BNgbdzc0zdlPn2tXX5nw==, RADLAS5MQEOV4K2C: wb+KUxYaQXiVgMx4TrsIxRe5Zltgh5mKWL20tf3NOXWRxKKqQeeffAzxf//XDGgzaVFRleqZxvKtOqQX8Mv45ASGJVpqmPACS5ba9zLGitrYyauBShVvlTs6Pl3jTCIuNpmSwuBYgPWqKfHfQ9U41OSwbkrPqw==}
type: secret
twilio_account_sid:
value: {? '' : bWq00BbgXmb0c/iJxuHL+RX8fZP98HELTlq64XzGktqCtF3y1QUti6urAcCeueTpiPC5Cyyn89pHCryXrPKqXdnCsmK2ESPLzylH9MEvfQJhV5iFsnYGiUj6MbazoYdDyBIyIAfvTYO8kdq9v2JQGDvIE2AsMydw9hiexQh1Jclk}
type: secret
encryption_key:
value: {? '' : owBRTMfdGiFcg6OrOwAFHxPUqiPdepcLs5NxphK+FaMTvAlm10Ve9ei9/rAwTOa2dHqUtiqBOuaI34DSz0VM1x4jN2nL89oYeuAFHU6yxxPbAvUaf6D6q8vc0t9lT5Enr42Nm8G1MV2qdn1l2A0fUACeoaoaj00=}
type: key
twilio_auth_token:
value: {? '' : vVlLhTVrGHiNzj7nigFhvn0W+1z4cm/256c1I0ZPJJf6ZXRcvXLQaKqbWUA/Ej4t1p1uXyFFBD5FKWaIf9j+iQzd8oThVTvV4BhQi3j5GRHFqTz0zi9HKBf/aPkmDYWV/F/yWSw1OEVwbSaojhuHkuvKydSUq6dye0JLDqBJzA==}
type: secret
renamed: true