-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathteam_log.stone
More file actions
14533 lines (11839 loc) · 486 KB
/
Copy pathteam_log.stone
File metadata and controls
14533 lines (11839 loc) · 486 KB
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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace team_log
import common
import file_requests
import files
import sharing
import team
import team_common
import team_policies
import users_common
alias TeamEventList = List(TeamEvent)
union GetTeamEventsError
"Errors that can be raised when calling :route:`get_events`."
account_id_not_found
"No user found matching the provided account_id."
invalid_time_range
"Invalid time range."
invalid_filters
"Invalid filters. Do not specify both event_type and category parameters for the same call."
example default
account_id_not_found = null
union GetTeamEventsContinueError
"Errors that can be raised when calling :route:`get_events/continue`."
bad_cursor
"Bad cursor."
reset common.DropboxTimestamp
"Cursors are intended to be used quickly. Individual cursor values are normally valid for days,
but in rare cases may be reset sooner.
Cursor reset errors should be handled by fetching a new cursor from :route:`get_events`.
The associated value is the approximate timestamp of the most recent event returned by the cursor.
This should be used as a resumption point when calling :route:`get_events` to obtain a new cursor."
example default
bad_cursor = null
struct GetTeamEventsArg
limit UInt32(max_value=1000, min_value=1) = 1000
"The maximal number of results to return per call. Note that some calls may not return
:field:`limit` number of events, and may even return no events, even with `has_more` set to true.
In this case, callers should fetch again using :route:`get_events/continue`."
account_id users_common.AccountId?
"Filter the events by account ID. Return only events with this account_id as either
Actor, Context, or Participants."
time team_common.TimeRange?
"Filter by time range."
category EventCategory?
"Filter the returned events to a single category. Note that category shouldn't be provided
together with event_type."
event_type EventTypeArg?
"Filter the returned events to a single event type. Note that event_type shouldn't be provided
together with category."
example default
limit = 50
category = groups
struct GetTeamEventsResult
events List(TeamEvent)
"List of events. Note that events are not guaranteed to be sorted by their timestamp value."
cursor String
"Pass the cursor into :route:`get_events/continue` to obtain additional events.
The value of :field:`cursor` may change for each response from :route:`get_events/continue`,
regardless of the value of :field:`has_more`; older cursor strings may expire.
Thus, callers should ensure that they update their cursor based on the latest value of
:field:`cursor` after each call, and poll regularly if they wish to poll for new events.
Callers should handle reset exceptions for expired cursors."
has_more Boolean
"Is true if there may be additional events that have not been returned yet.
An additional call to :route:`get_events/continue` can retrieve them.
Note that :field:`has_more` may be :val:`true`, even if :field:`events` is empty."
example default
events = [default]
cursor = "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu"
has_more = false
struct GetTeamEventsContinueArg
cursor String
"Indicates from what point to get the next set of events."
example default
cursor = "ZtkX9_EHj3x7PMkVuFIhwKYXEpwpLwyxp9vMKomUhllil9q7eWiAu"
route get_events (GetTeamEventsArg, GetTeamEventsResult, GetTeamEventsError)
"Retrieves team events. If the result's :field:`GetTeamEventsResult.has_more` field is
:val:`true`, call :route:`get_events/continue` with the returned cursor to retrieve
more entries. If end_time is not specified in your request, you may use the returned cursor to
poll :route:`get_events/continue` for new events.
Many attributes note 'may be missing due to historical data gap'.
Note that the file_operations category and & analogous paper events are not available on all
Dropbox Business :link:`plans /business/plans-comparison`.
Use :link:`features/get_values /developers/documentation/http/teams#team-features-get_values`
to check for this feature.
Permission : Team Auditing."
attrs
auth = "team"
scope = "events.read"
route get_events/continue (GetTeamEventsContinueArg, GetTeamEventsResult, GetTeamEventsContinueError)
"Once a cursor has been retrieved from :route:`get_events`, use this to paginate through all events.
Permission : Team Auditing."
attrs
auth = "team"
scope = "events.read"
alias FilePath = String
alias NamespaceId = String
alias EmailAddress = String(max_length=255)
alias AppId = String
alias IpAddress = String
alias RequestId = String
union QuickActionType
"Quick action type."
delete_shared_link
reset_password
restore_file_or_folder
unlink_app
unlink_device
unlink_session
example default
delete_shared_link = null
union TeamMembershipType
free
full
guest
union AccountCaptureAvailability
available
unavailable
union AccountCaptureNotificationType
actionable_notification
proactive_warning_notification
union AccountCapturePolicy
all_users
disabled
invited_users
union AccountState
locked
unlocked
union AdminAlertCategoryEnum
"Alert category"
account_takeover
data_loss_protection
information_governance
malware_sharing
massive_file_operation
na
threat_management
union AdminAlertGeneralStateEnum
"Alert state"
active
dismissed
in_progress
na
resolved
union AdminAlertSeverityEnum
"Alert severity"
high
info
low
medium
na
union AdminAlertingAlertSensitivity
"Alert sensitivity"
high
highest
invalid
low
lowest
medium
union AdminAlertingAlertStatePolicy
"Policy for controlling whether an alert can be triggered or not"
off
on
union AdminConsoleAppPermission
default_for_listed_apps
default_for_unlisted_apps
union AdminConsoleAppPolicy
allow
block
default
union AdminEmailRemindersPolicy
"Policy for deciding whether team admins receive reminder emails for requests to join the team"
default
disabled
enabled
union AdminRole
billing_admin
compliance_admin
content_admin
deprecated_freemium_team_member
freemium_team_creator
limited_admin
member_only
reporting_admin
security_admin
support_admin
team_admin
user_management_admin
union AiThirdPartySharingDropboxBasePolicy
"Policy for deciding whether team users can use third party AI services"
admins_only
default
disabled
enabled
union AlertRecipientsSettingType
"Alert recipients setting type"
custom_list
invalid
none
team_admins
union AppleLoginPolicy
"Apple login policy"
default
disabled
enabled
union BackupStatus
"Backup status"
disabled
enabled
union CameraUploadsPolicy
"Policy for controlling if team members can activate camera uploads"
disabled
enabled
union CaptureTeamSpacePolicy
"Policy for deciding whether team users have access to the Capture team space"
disabled
enabled
union CaptureTranscriptPolicy
"Policy for deciding whether team users can transcription in Capture"
default
disabled
enabled
union ChangeLinkExpirationPolicy
"Policy for deciding whether the team's default expiration days policy must be enforced when an externally shared link is updated"
allowed
not_allowed
union ClassificationPolicyEnumWrapper
"Policy for controlling team access to the classification feature"
disabled
enabled
member_and_team_folders
team_folders
union ClassificationType
"The type of classification (currently only personal information)"
personal_information
pii
union ComputerBackupPolicy
"Policy for controlling team access to computer backup feature"
default
disabled
enabled
union ContentDeletionProtectionPolicy
"Content deletion protection policy"
off
on_above_threshold
on_all_files
union ContentPermanentDeletePolicy
"Policy for pemanent content deletion"
disabled
enabled
union DashConnectorStatus
"The status of the Connector"
fail
success
union DashExternalSharingPolicy
"Policy for deciding whether team users can share Dash content externally"
default
disabled
enabled
union DashPreviewOptOutStatus
"The new preview opt-out status"
opted_in
opted_out
union DashStackSharingScope
"The stack sharing scope"
invited
public
team
unknown
union DashStackType
"The type of stack backend"
cypress
reference_container
unknown
union DefaultLinkExpirationDaysPolicy
"Policy for the default number of days until an externally shared link expires"
day_1
day_180
day_3
day_30
day_7
day_90
none
year_1
union DeviceApprovalsPolicy
limited
unlimited
union DeviceType
desktop
mobile
union DeviceUnlinkPolicy
keep
remove
union DispositionActionType
automatic_delete
automatic_permanently_delete
union DownloadPolicyType
"Shared content downloads policy"
allow
disallow
union DropboxPasswordsPolicy
"Policy for deciding whether team users can use Dropbox Passwords"
default
disabled
enabled
union EmailIngestPolicy
"Policy for deciding whether a team can use Email to Dropbox feature"
disabled
enabled
union EnforceLinkPasswordPolicy
"Policy for deciding whether password must be enforced when an externally shared link is updated"
optional
required
union ExtendedVersionHistoryPolicy
explicitly_limited
explicitly_unlimited
implicitly_limited
implicitly_unlimited
union ExternalDriveBackupEligibilityStatus
"External Drive Backup eligibility status"
exceed_license_cap
skip
success
union ExternalDriveBackupPolicy
"Policy for controlling team access to external drive backup feature"
default
disabled
enabled
union ExternalDriveBackupStatus
"External Drive Backup status"
broken
created
created_or_broken
deleted
empty
unknown
union ExternalSharingSetting
"External sharing setting"
allow
forbid
unset
union FedAdminRole
enterprise_admin
not_enterprise_admin
union FedHandshakeAction
accepted_invite
canceled_invite
invite_expired
invited
rejected_invite
removed_team
union FileCommentNotificationPolicy
"Enable or disable file comments notifications"
disabled
enabled
union FileCommentsPolicy
"File comments policy"
disabled
enabled
union FileRequestsPolicy
"File requests policy"
disabled
enabled
union FileTransfersPolicy
"File transfers policy"
disabled
enabled
union FlexibleFileNamesPolicy
"Flexible file names policy"
off
off_default
optional
optional_default
required
required_default
union FolderLinkRestrictionPolicy
"Policy for deciding whether applying link restrictions on all team owned folders"
disabled
enabled
union GoogleSsoPolicy
"Google SSO policy"
disabled
enabled
union GroupJoinPolicy
open
request_to_join
union IdentifierType
email
facebook_profile_name
union IntegrationPolicy
"Policy for controlling whether a service integration is enabled for the team."
disabled
enabled
union InviteAcceptanceEmailPolicy
"Policy for deciding whether team admins receive email when an invitation to join the team is accepted"
disabled
enabled
union InviteMethod
auto_approve
invite_link
member_invite
moved_from_another_team
union LabelType
"Label type"
personal_information
test_only
user_defined_tag
union LockStatus
"File lock status"
locked
unlocked
union LoginMethod
apple_oauth
first_party_token_exchange
google_oauth
kakao_oauth
lenovo_oauth
passkey
password
qr_code
saml
two_factor_authentication
web_session
microsoft_oauth
union MemberRemoveActionType
delete
leave
offboard
offboard_and_retain_team_folders
union MemberRequestsPolicy
auto_accept
disabled
require_approval
union MemberSendInvitePolicy
"Policy for controlling whether team members can send team invites"
disabled
everyone
specific_members
union MemberStatus
active
invited
moved_to_another_team
not_joined
removed
suspended
union MemberSuggestionsPolicy
"Member suggestions policy"
disabled
enabled
union MicrosoftLoginPolicy
"Microsoft login policy"
default
disabled
enabled
union MicrosoftOfficeAddinPolicy
"Microsoft Office addin policy"
disabled
enabled
union NetworkControlPolicy
"Network control policy"
disabled
enabled
union PaperAccessType
commenter
editor
viewer
union PaperDefaultFolderPolicy
"Policy to set default access for newly created Paper folders."
everyone_in_team
invite_only
union PaperDesktopPolicy
"Policy for controlling if team members can use Paper Desktop"
disabled
enabled
union PaperDownloadFormat
docx
html
markdown
pdf
union PaperMemberPolicy
"Policy for controlling if team members can share Paper documents externally."
anyone_with_link
only_team
team_and_explicitly_shared
union PassPolicy
allow
disabled
enabled
union PasskeyLoginPolicy
"Passkey login policy"
default
disabled
enabled
union PlacementRestriction
australia_only
canada_only
europe_only
japan_only
none
uk_only
us_s3_only
union PolicyType
disposition
retention
union PreviewsAiPolicy
"Policy for deciding whether team users can use Previews AI"
default
disabled
enabled
union ReplayAddingPeoplePolicy
"Policy for deciding who can be added to Replay content"
anyone
team_and_allowlist
team_only
union ReplayLinkAccess
"Who can access this Replay link"
anyone_logged_in
no_login_required
team_and_approved
team_only
union ReplaySharingPolicy
"Policy for deciding who Replay content can be shared with through links"
anyone
team_and_allowlist
team_only
union ResellerRole
not_reseller
reseller_admin
union ResellerSupportPolicy
"Policy for controlling if reseller can access the admin console as administrator"
disabled
enabled
union RewindPolicy
"Policy for controlling whether team members can rewind"
admins_only
everyone
union SecondaryMailsPolicy
disabled
enabled
union SendAndTrackPolicy
"Policy for deciding whether team users can use Send and Track"
default
disabled
enabled
union SendExternalSharingPolicy
"Policy for deciding whether team users can share Send content externally"
default
disabled
enabled
union SendForSignaturePolicy
"Policy for controlling team access to send for signature feature"
disabled
enabled
union SharedFolderMembersInheritancePolicy
"Specifies if a shared folder inherits its members from the parent folder."
dont_inherit_members
inherit_members
union SharedLinkAccessLevel
"Shared link access level."
none
reader
writer
union SharedLinkDefaultPermissionsPolicy
"Policy for deciding the default permissions granted through shared links"
default
edit
view
union SharedLinkVisibility
"Defines who has access to a shared link."
no_one
password
public
team_only
union SharingFolderJoinPolicy
"Policy for controlling if team members can join shared folders owned by non team members."
from_anyone
from_team_only
union SharingLinkPolicy
"Policy for controlling if team members can share links externally"
default_no_one
default_private
default_public
only_private
union SharingMemberPolicy
"External sharing policy"
allow
forbid
forbid_with_exclusions
union ShowcaseDownloadPolicy
"Policy for controlling if files can be downloaded from Showcases by team members"
disabled
enabled
union ShowcaseEnabledPolicy
"Policy for controlling whether Showcase is enabled."
disabled
enabled
union ShowcaseExternalSharingPolicy
"Policy for controlling if team members can share Showcases externally."
disabled
enabled
union SignExternalSharingPolicy
"Policy for deciding whether team users can share Sign content externally"
default
disabled
enabled
union SignTemplateCreationPermissionPolicy
"Policy for controlling if team members can create templates"
disabled
enabled
union SmartSyncOptOutPolicy
default
opted_out
union SpaceCapsType
"Space limit alert policy"
hard
off
soft
union SpaceLimitsStatus
near_quota
over_quota
within_quota
union StackCrossTeamAccessPolicy
"Policy for whether a team's content can be reached via Stacks owned by other teams"
allowed
default
disallowed
union TeamBrandingPolicy
"Policy for controlling team access to setting up branding feature"
disabled
enabled
union TeamExtensionsPolicy
"Policy for controlling whether App Integrations are enabled for the team."
disabled
enabled
union TeamFolderNotificationTarget
"Team folder space limit notification target"
admins
both
editors
silent
union TeamFolderSpaceCapsType
"Team folder space limit enforcement type"
hard
off
soft
union TeamMemberStorageRequestPolicy
"Policy for deciding whether team members can request increased storage limits from admins"
default
disabled
enabled
union TeamSelectiveSyncPolicy
"Policy for controlling whether team selective sync is enabled for team."
disabled
enabled
union TfaConfiguration
"Two factor authentication configuration. Note: the enabled option is deprecated."
authenticator
disabled
enabled
sms
union TimeUnit
days
hours
milliseconds
minutes
months
seconds
weeks
years
union TopLevelContentPolicy
"Policy for deciding whether members can edit team folders at the top level of the team space"
admins_only
everyone
union TrustedNonTeamMemberType
enterprise_admin
multi_instance_admin
union TrustedTeamsRequestAction
accepted
declined
expired
invited
revoked
union TrustedTeamsRequestState
invited
linked
unlinked
union TwoAccountPolicy
"Policy for pairing personal account to work account"
disabled
enabled
union WatermarkingPolicy
"Policy for controlling team access to watermarking feature"
disabled
enabled
union ActionDetails
"Additional information indicating the action taken that caused status change."
remove_action MemberRemoveActionType
"Define how the user was removed from the team."
team_invite_details TeamInviteDetails
"Additional information relevant when someone is invited to the team"
team_join_details JoinTeamDetails
"Additional information relevant when a new member joins the team."
example default
team_join_details = default
example default2
team_join_details = default2
union AssetLogInfo
"Asset details."
file FileLogInfo
"File's details."
folder FolderLogInfo
"Folder's details."
paper_document PaperDocumentLogInfo
"Paper document's details."
paper_folder PaperFolderLogInfo
"Paper folder's details."
showcase_document ShowcaseDocumentLogInfo
"Showcase document's details."
example default
file = default
example default2
file = default2
union FedExtraDetails
"More details about the organization or team."
organization OrganizationDetails
"More details about the organization."
team TeamDetails
"More details about the team."
example default
team = default
example default2
team = default2
union FederationStatusChangeAdditionalInfo
"Additional information about the organization or connected team"
connected_team_name ConnectedTeamName
"The name of the team"
non_trusted_team_details NonTrustedTeamDetails
"The email to which the request was sent"
organization_name OrganizationName
"The name of the organization"
example default
connected_team_name = default
example default2
connected_team_name = default2
union LinkedDeviceLogInfo
"The device sessions that user is linked to."
desktop_device_session DesktopDeviceSessionLogInfo
"desktop device session's details."
legacy_device_session LegacyDeviceSessionLogInfo
"legacy device session's details."
mobile_device_session MobileDeviceSessionLogInfo
"mobile device session's details."
web_device_session WebDeviceSessionLogInfo
"web device session's details."
example default
mobile_device_session = default
example default2
mobile_device_session = default2
union ParticipantLogInfo
"A user or group"
group GroupLogInfo
"Group details."
user UserLogInfo
"A user with a Dropbox account."
example default
user = default
example default2
user = default2
union TeamMergeRequestAcceptedExtraDetails
"Team merge request acceptance details"
primary_team PrimaryTeamRequestAcceptedDetails
"Team merge request accepted details shown to the primary team"
secondary_team SecondaryTeamRequestAcceptedDetails
"Team merge request accepted details shown to the secondary team"
example default
primary_team = default
example default2
primary_team = default2
union TeamMergeRequestCanceledExtraDetails
"Team merge request cancellation details"
primary_team PrimaryTeamRequestCanceledDetails
"Team merge request cancellation details shown to the primary team"
secondary_team SecondaryTeamRequestCanceledDetails
"Team merge request cancellation details shown to the secondary team"
example default
primary_team = default
example default2
primary_team = default2
union TeamMergeRequestExpiredExtraDetails
"Team merge request expiration details"
primary_team PrimaryTeamRequestExpiredDetails
"Team merge request canceled details shown to the primary team"
secondary_team SecondaryTeamRequestExpiredDetails
"Team merge request canceled details shown to the secondary team"
example default
primary_team = default
example default2
primary_team = default2
union TeamMergeRequestReminderExtraDetails
"Team merge request reminder details"
primary_team PrimaryTeamRequestReminderDetails
"Team merge request reminder details shown to the primary team"
secondary_team SecondaryTeamRequestReminderDetails
"Team merge request reminder details shown to the secondary team"
example default
primary_team = default
example default2
primary_team = default2
union WebSessionsFixedLengthPolicy
"Web sessions fixed length policy."
defined DurationLogInfo
"Defined fixed session length."
undefined
"Undefined fixed session length."
example default
defined = default
example default2
defined = default2
union WebSessionsIdleLengthPolicy
"Web sessions idle length policy."
defined DurationLogInfo