-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_api_config.go
2402 lines (2065 loc) · 74.4 KB
/
model_api_config.go
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
/*
VRChat API Documentation
![VRChat API Banner](https://vrchatapi.github.io/assets/img/api_banner_1500x400.png) # Welcome to the VRChat API Before we begin, we would like to state this is a **COMMUNITY DRIVEN PROJECT**. This means that everything you read on here was written by the community itself and is **not** officially supported by VRChat. The documentation is provided \"AS IS\", and any action you take towards VRChat is completely your own responsibility. The documentation and additional libraries SHALL ONLY be used for applications interacting with VRChat's API in accordance with their [Terms of Service](https://hello.vrchat.com/legal) and [Community Guidelines](https://hello.vrchat.com/community-guidelines), and MUST NOT be used for modifying the client, \"avatar ripping\", or other illegal activities. Malicious usage or spamming the API may result in account termination. Certain parts of the API are also more sensitive than others, for example moderation, so please tread extra carefully and read the warnings when present. ![Tupper Policy on API](https://i.imgur.com/yLlW7Ok.png) Finally, use of the API using applications other than the approved methods (website, VRChat application, Unity SDK) is not officially supported. VRChat provides no guarantee or support for external applications using the API. Access to API endpoints may break **at any time, without notice**. Therefore, please **do not ping** VRChat Staff in the VRChat Discord if you are having API problems, as they do not provide API support. We will make a best effort in keeping this documentation and associated language libraries up to date, but things might be outdated or missing. If you find that something is no longer valid, please contact us on Discord or [create an issue](https://github.com/vrchatapi/specification/issues) and tell us so we can fix it. # Getting Started The VRChat API can be used to programmatically retrieve or update information regarding your profile, friends, avatars, worlds and more. The API consists of two parts, \"Photon\" which is only used in-game, and the \"Web API\" which is used by both the game and the website. This documentation focuses only on the Web API. The API is designed around the REST ideology, providing semi-simple and usually predictable URIs to access and modify objects. Requests support standard HTTP methods like GET, PUT, POST, and DELETE and standard status codes. Response bodies are always UTF-8 encoded JSON objects, unless explicitly documented otherwise. <div class=\"callout callout-error\"> <strong>🛑 Warning! Do not touch Photon!</strong><br> Photon is only used by the in-game client and should <b>not</b> be touched. Doing so may result in permanent account termination. </div> <div class=\"callout callout-info\"> <strong>ℹ️ API Key and Authentication</strong><br> The API Key has always been the same and is currently <code>JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code>. Read <a href=\"#tag--authentication\">Authentication</a> for how to log in. </div> # Using the API For simply exploring what the API can do it is strongly recommended to download [Insomnia](https://insomnia.rest/download), a free and open-source API client that's great for sending requests to the API in an orderly fashion. Insomnia allows you to send data in the format that's required for VRChat's API. It is also possible to try out the API in your browser, by first logging in at [vrchat.com/home](https://vrchat.com/home/) and then going to [vrchat.com/api/1/auth/user](https://vrchat.com/api/1/auth/user), but the information will be much harder to work with. For more permanent operation such as software development it is instead recommended to use one of the existing language SDKs. This community project maintains API libraries in several languages, which allows you to interact with the API with simple function calls rather than having to implement the HTTP protocol yourself. Most of these libraries are automatically generated from the API specification, sometimes with additional helpful wrapper code to make usage easier. This allows them to be almost automatically updated and expanded upon as soon as a new feature is introduced in the specification itself. The libraries can be found on [GitHub](https://github.com/vrchatapi) or following: * [NodeJS (JavaScript)](https://www.npmjs.com/package/vrchat) * [Dart](https://pub.dev/packages/vrchat_dart) * [Rust](https://crates.io/crates/vrchatapi) * [C#](https://github.com/vrchatapi/vrchatapi-csharp) * [Python](https://github.com/vrchatapi/vrchatapi-python) # Pagination Most endpoints enforce pagination, meaning they will only return 10 entries by default, and never more than 100.<br> Using both the limit and offset parameters allows you to easily paginate through a large number of objects. | Query Parameter | Type | Description | | ----------|--|------- | | `n` | integer | The number of objects to return. This value often defaults to 10. Highest limit is always 100.| | `offset` | integer | A zero-based offset from the default object sorting.| If a request returns fewer objects than the `limit` parameter, there are no more items available to return. # Contribution Do you want to get involved in the documentation effort? Do you want to help improve one of the language API libraries? This project is an [OPEN Open Source Project](https://openopensource.org)! This means that individuals making significant and valuable contributions are given commit-access to the project. It also means we are very open and welcoming of new people making contributions, unlike some more guarded open-source projects. [![Discord](https://img.shields.io/static/v1?label=vrchatapi&message=discord&color=blueviolet&style=for-the-badge)](https://discord.gg/qjZE9C9fkB)
API version: 1.12.0
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package vrchatapi
import (
"encoding/json"
"time"
)
// checks if the APIConfig type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &APIConfig{}
// APIConfig
type APIConfig struct {
// Unknown, probably voice optimization testing
VoiceEnableDegradation bool `json:"VoiceEnableDegradation"`
// Unknown, probably voice optimization testing
VoiceEnableReceiverLimiting bool `json:"VoiceEnableReceiverLimiting"`
// VRChat's office address
Address string `json:"address"`
// Public Announcements
Announcements []APIConfigAnnouncement `json:"announcements"`
// Game name
// Deprecated
AppName string `json:"appName"`
// Build tag of the API server
BuildVersionTag string `json:"buildVersionTag"`
// apiKey to be used for all other requests
ClientApiKey string `json:"clientApiKey"`
// Unknown
ClientBPSCeiling int32 `json:"clientBPSCeiling"`
// Unknown
ClientDisconnectTimeout int32 `json:"clientDisconnectTimeout"`
// Unknown
ClientReservedPlayerBPS int32 `json:"clientReservedPlayerBPS"`
// Unknown
ClientSentCountAllowance int32 `json:"clientSentCountAllowance"`
// VRChat's contact email
ContactEmail string `json:"contactEmail"`
// VRChat's copyright-issues-related email
CopyrightEmail string `json:"copyrightEmail"`
// Current version number of the Terms of Service
CurrentTOSVersion int32 `json:"currentTOSVersion"`
DefaultAvatar string `json:"defaultAvatar"`
DeploymentGroup DeploymentGroup `json:"deploymentGroup"`
// Version number for game development build
// Deprecated
DevAppVersionStandalone string `json:"devAppVersionStandalone"`
// Developer Download link
// Deprecated
DevDownloadLinkWindows string `json:"devDownloadLinkWindows"`
// Link to download the development SDK, use downloadUrls instead
// Deprecated
DevSdkUrl string `json:"devSdkUrl"`
// Version of the development SDK
// Deprecated
DevSdkVersion string `json:"devSdkVersion"`
// Version number for server development build
// Deprecated
DevServerVersionStandalone string `json:"devServerVersionStandalone"`
// Unknown, \"dis\" maybe for disconnect?
DisCountdown time.Time `json:"dis-countdown"`
// Toggles if copying avatars should be disabled
DisableAvatarCopying bool `json:"disableAvatarCopying"`
// Toggles if avatar gating should be disabled. Avatar gating restricts uploading of avatars to people with the `system_avatar_access` Tag or `admin_avatar_access` Tag
DisableAvatarGating bool `json:"disableAvatarGating"`
// Toggles if the Community Labs should be disabled
DisableCommunityLabs bool `json:"disableCommunityLabs"`
// Toggles if promotion out of Community Labs should be disabled
DisableCommunityLabsPromotion bool `json:"disableCommunityLabsPromotion"`
// Unknown
DisableEmail bool `json:"disableEmail"`
// Toggles if Analytics should be disabled.
DisableEventStream bool `json:"disableEventStream"`
// Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag.
DisableFeedbackGating bool `json:"disableFeedbackGating"`
// Unknown, probably toggles compilation of frontend web builds? So internal flag?
DisableFrontendBuilds bool `json:"disableFrontendBuilds"`
// Unknown
DisableHello bool `json:"disableHello"`
// Toggles if signing up for Subscriptions in Oculus is disabled or not.
DisableOculusSubs bool `json:"disableOculusSubs"`
// Toggles if new user account registration should be disabled.
DisableRegistration bool `json:"disableRegistration"`
// Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead.
DisableSteamNetworking bool `json:"disableSteamNetworking"`
// Toggles if 2FA should be disabled.
// Deprecated
DisableTwoFactorAuth bool `json:"disableTwoFactorAuth"`
// Toggles if Udon should be universally disabled in-game.
DisableUdon bool `json:"disableUdon"`
// Toggles if account upgrading \"linking with Steam/Oculus\" should be disabled.
DisableUpgradeAccount bool `json:"disableUpgradeAccount"`
// Download link for game on the Oculus Rift website.
DownloadLinkWindows string `json:"downloadLinkWindows"`
DownloadUrls APIConfigDownloadURLList `json:"downloadUrls"`
// Array of DynamicWorldRow objects, used by the game to display the list of world rows
DynamicWorldRows []DynamicContentRow `json:"dynamicWorldRows"`
Events APIConfigEvents `json:"events"`
// Unknown
// Deprecated
GearDemoRoomId string `json:"gearDemoRoomId"`
// WorldID be \"offline\" on User profiles if you are not friends with that user.
HomeWorldId string `json:"homeWorldId"`
// Redirect target if you try to open the base API domain in your browser
HomepageRedirectTarget string `json:"homepageRedirectTarget"`
// WorldID be \"offline\" on User profiles if you are not friends with that user.
HubWorldId string `json:"hubWorldId"`
// VRChat's job application email
JobsEmail string `json:"jobsEmail"`
// MOTD
// Deprecated
MessageOfTheDay string `json:"messageOfTheDay"`
// VRChat's moderation related email
ModerationEmail string `json:"moderationEmail"`
// Unknown
ModerationQueryPeriod int32 `json:"moderationQueryPeriod"`
// Used in-game to notify a user they aren't allowed to select avatars in private worlds
NotAllowedToSelectAvatarInPrivateWorldMessage string `json:"notAllowedToSelectAvatarInPrivateWorldMessage"`
// Extra [plugin](https://doc.photonengine.com/en-us/server/current/plugins/manual) to run in each instance
Plugin string `json:"plugin"`
// Version number for game release build
// Deprecated
ReleaseAppVersionStandalone string `json:"releaseAppVersionStandalone"`
// Link to download the release SDK
// Deprecated
ReleaseSdkUrl string `json:"releaseSdkUrl"`
// Version of the release SDK
// Deprecated
ReleaseSdkVersion string `json:"releaseSdkVersion"`
// Version number for server release build
// Deprecated
ReleaseServerVersionStandalone string `json:"releaseServerVersionStandalone"`
// Link to the developer FAQ
SdkDeveloperFaqUrl string `json:"sdkDeveloperFaqUrl"`
// Link to the official VRChat Discord
SdkDiscordUrl string `json:"sdkDiscordUrl"`
// Used in the SDK to notify a user they aren't allowed to upload avatars/worlds yet
SdkNotAllowedToPublishMessage string `json:"sdkNotAllowedToPublishMessage"`
// Unity version supported by the SDK
SdkUnityVersion string `json:"sdkUnityVersion"`
// Server name of the API server currently responding
ServerName string `json:"serverName"`
// VRChat's support email
SupportEmail string `json:"supportEmail"`
// WorldID be \"offline\" on User profiles if you are not friends with that user.
TimeOutWorldId string `json:"timeOutWorldId"`
// WorldID be \"offline\" on User profiles if you are not friends with that user.
TutorialWorldId string `json:"tutorialWorldId"`
// Unknown
UpdateRateMsMaximum int32 `json:"updateRateMsMaximum"`
// Unknown
UpdateRateMsMinimum int32 `json:"updateRateMsMinimum"`
// Unknown
UpdateRateMsNormal int32 `json:"updateRateMsNormal"`
// Unknown
UpdateRateMsUdonManual int32 `json:"updateRateMsUdonManual"`
// Unknown
UploadAnalysisPercent int32 `json:"uploadAnalysisPercent"`
// List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game
UrlList []string `json:"urlList"`
// Unknown
UseReliableUdpForVoice bool `json:"useReliableUdpForVoice"`
// Unknown
UserUpdatePeriod int32 `json:"userUpdatePeriod"`
// Unknown
UserVerificationDelay int32 `json:"userVerificationDelay"`
// Unknown
UserVerificationRetry int32 `json:"userVerificationRetry"`
// Unknown
UserVerificationTimeout int32 `json:"userVerificationTimeout"`
// Download link for game on the Steam website.
ViveWindowsUrl string `json:"viveWindowsUrl"`
// List of allowed URLs that are allowed to host avatar assets
WhiteListedAssetUrls []string `json:"whiteListedAssetUrls"`
// Unknown
WorldUpdatePeriod int32 `json:"worldUpdatePeriod"`
// Currently used youtube-dl.exe hash in SHA-256-delimited format
PlayerUrlResolverHash string `json:"player-url-resolver-hash"`
// Currently used youtube-dl.exe version
PlayerUrlResolverVersion string `json:"player-url-resolver-version"`
}
// NewAPIConfig instantiates a new APIConfig object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewAPIConfig(voiceEnableDegradation bool, voiceEnableReceiverLimiting bool, address string, announcements []APIConfigAnnouncement, appName string, buildVersionTag string, clientApiKey string, clientBPSCeiling int32, clientDisconnectTimeout int32, clientReservedPlayerBPS int32, clientSentCountAllowance int32, contactEmail string, copyrightEmail string, currentTOSVersion int32, defaultAvatar string, deploymentGroup DeploymentGroup, devAppVersionStandalone string, devDownloadLinkWindows string, devSdkUrl string, devSdkVersion string, devServerVersionStandalone string, disCountdown time.Time, disableAvatarCopying bool, disableAvatarGating bool, disableCommunityLabs bool, disableCommunityLabsPromotion bool, disableEmail bool, disableEventStream bool, disableFeedbackGating bool, disableFrontendBuilds bool, disableHello bool, disableOculusSubs bool, disableRegistration bool, disableSteamNetworking bool, disableTwoFactorAuth bool, disableUdon bool, disableUpgradeAccount bool, downloadLinkWindows string, downloadUrls APIConfigDownloadURLList, dynamicWorldRows []DynamicContentRow, events APIConfigEvents, gearDemoRoomId string, homeWorldId string, homepageRedirectTarget string, hubWorldId string, jobsEmail string, messageOfTheDay string, moderationEmail string, moderationQueryPeriod int32, notAllowedToSelectAvatarInPrivateWorldMessage string, plugin string, releaseAppVersionStandalone string, releaseSdkUrl string, releaseSdkVersion string, releaseServerVersionStandalone string, sdkDeveloperFaqUrl string, sdkDiscordUrl string, sdkNotAllowedToPublishMessage string, sdkUnityVersion string, serverName string, supportEmail string, timeOutWorldId string, tutorialWorldId string, updateRateMsMaximum int32, updateRateMsMinimum int32, updateRateMsNormal int32, updateRateMsUdonManual int32, uploadAnalysisPercent int32, urlList []string, useReliableUdpForVoice bool, userUpdatePeriod int32, userVerificationDelay int32, userVerificationRetry int32, userVerificationTimeout int32, viveWindowsUrl string, whiteListedAssetUrls []string, worldUpdatePeriod int32, playerUrlResolverHash string, playerUrlResolverVersion string) *APIConfig {
this := APIConfig{}
this.VoiceEnableDegradation = voiceEnableDegradation
this.VoiceEnableReceiverLimiting = voiceEnableReceiverLimiting
this.Address = address
this.Announcements = announcements
this.AppName = appName
this.BuildVersionTag = buildVersionTag
this.ClientApiKey = clientApiKey
this.ClientBPSCeiling = clientBPSCeiling
this.ClientDisconnectTimeout = clientDisconnectTimeout
this.ClientReservedPlayerBPS = clientReservedPlayerBPS
this.ClientSentCountAllowance = clientSentCountAllowance
this.ContactEmail = contactEmail
this.CopyrightEmail = copyrightEmail
this.CurrentTOSVersion = currentTOSVersion
this.DefaultAvatar = defaultAvatar
this.DeploymentGroup = deploymentGroup
this.DevAppVersionStandalone = devAppVersionStandalone
this.DevDownloadLinkWindows = devDownloadLinkWindows
this.DevSdkUrl = devSdkUrl
this.DevSdkVersion = devSdkVersion
this.DevServerVersionStandalone = devServerVersionStandalone
this.DisCountdown = disCountdown
this.DisableAvatarCopying = disableAvatarCopying
this.DisableAvatarGating = disableAvatarGating
this.DisableCommunityLabs = disableCommunityLabs
this.DisableCommunityLabsPromotion = disableCommunityLabsPromotion
this.DisableEmail = disableEmail
this.DisableEventStream = disableEventStream
this.DisableFeedbackGating = disableFeedbackGating
this.DisableFrontendBuilds = disableFrontendBuilds
this.DisableHello = disableHello
this.DisableOculusSubs = disableOculusSubs
this.DisableRegistration = disableRegistration
this.DisableSteamNetworking = disableSteamNetworking
this.DisableTwoFactorAuth = disableTwoFactorAuth
this.DisableUdon = disableUdon
this.DisableUpgradeAccount = disableUpgradeAccount
this.DownloadLinkWindows = downloadLinkWindows
this.DownloadUrls = downloadUrls
this.DynamicWorldRows = dynamicWorldRows
this.Events = events
this.GearDemoRoomId = gearDemoRoomId
this.HomeWorldId = homeWorldId
this.HomepageRedirectTarget = homepageRedirectTarget
this.HubWorldId = hubWorldId
this.JobsEmail = jobsEmail
this.MessageOfTheDay = messageOfTheDay
this.ModerationEmail = moderationEmail
this.ModerationQueryPeriod = moderationQueryPeriod
this.NotAllowedToSelectAvatarInPrivateWorldMessage = notAllowedToSelectAvatarInPrivateWorldMessage
this.Plugin = plugin
this.ReleaseAppVersionStandalone = releaseAppVersionStandalone
this.ReleaseSdkUrl = releaseSdkUrl
this.ReleaseSdkVersion = releaseSdkVersion
this.ReleaseServerVersionStandalone = releaseServerVersionStandalone
this.SdkDeveloperFaqUrl = sdkDeveloperFaqUrl
this.SdkDiscordUrl = sdkDiscordUrl
this.SdkNotAllowedToPublishMessage = sdkNotAllowedToPublishMessage
this.SdkUnityVersion = sdkUnityVersion
this.ServerName = serverName
this.SupportEmail = supportEmail
this.TimeOutWorldId = timeOutWorldId
this.TutorialWorldId = tutorialWorldId
this.UpdateRateMsMaximum = updateRateMsMaximum
this.UpdateRateMsMinimum = updateRateMsMinimum
this.UpdateRateMsNormal = updateRateMsNormal
this.UpdateRateMsUdonManual = updateRateMsUdonManual
this.UploadAnalysisPercent = uploadAnalysisPercent
this.UrlList = urlList
this.UseReliableUdpForVoice = useReliableUdpForVoice
this.UserUpdatePeriod = userUpdatePeriod
this.UserVerificationDelay = userVerificationDelay
this.UserVerificationRetry = userVerificationRetry
this.UserVerificationTimeout = userVerificationTimeout
this.ViveWindowsUrl = viveWindowsUrl
this.WhiteListedAssetUrls = whiteListedAssetUrls
this.WorldUpdatePeriod = worldUpdatePeriod
this.PlayerUrlResolverHash = playerUrlResolverHash
this.PlayerUrlResolverVersion = playerUrlResolverVersion
return &this
}
// NewAPIConfigWithDefaults instantiates a new APIConfig object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewAPIConfigWithDefaults() *APIConfig {
this := APIConfig{}
var voiceEnableDegradation bool = false
this.VoiceEnableDegradation = voiceEnableDegradation
var voiceEnableReceiverLimiting bool = true
this.VoiceEnableReceiverLimiting = voiceEnableReceiverLimiting
var appName string = "VrChat"
this.AppName = appName
var clientBPSCeiling int32 = 18432
this.ClientBPSCeiling = clientBPSCeiling
var clientDisconnectTimeout int32 = 30000
this.ClientDisconnectTimeout = clientDisconnectTimeout
var clientReservedPlayerBPS int32 = 7168
this.ClientReservedPlayerBPS = clientReservedPlayerBPS
var clientSentCountAllowance int32 = 15
this.ClientSentCountAllowance = clientSentCountAllowance
var deploymentGroup DeploymentGroup = BLUE
this.DeploymentGroup = deploymentGroup
var disableAvatarCopying bool = false
this.DisableAvatarCopying = disableAvatarCopying
var disableAvatarGating bool = false
this.DisableAvatarGating = disableAvatarGating
var disableCommunityLabs bool = false
this.DisableCommunityLabs = disableCommunityLabs
var disableCommunityLabsPromotion bool = false
this.DisableCommunityLabsPromotion = disableCommunityLabsPromotion
var disableEmail bool = false
this.DisableEmail = disableEmail
var disableEventStream bool = false
this.DisableEventStream = disableEventStream
var disableFeedbackGating bool = false
this.DisableFeedbackGating = disableFeedbackGating
var disableFrontendBuilds bool = false
this.DisableFrontendBuilds = disableFrontendBuilds
var disableHello bool = false
this.DisableHello = disableHello
var disableOculusSubs bool = false
this.DisableOculusSubs = disableOculusSubs
var disableRegistration bool = false
this.DisableRegistration = disableRegistration
var disableSteamNetworking bool = true
this.DisableSteamNetworking = disableSteamNetworking
var disableTwoFactorAuth bool = false
this.DisableTwoFactorAuth = disableTwoFactorAuth
var disableUdon bool = false
this.DisableUdon = disableUdon
var disableUpgradeAccount bool = false
this.DisableUpgradeAccount = disableUpgradeAccount
var homepageRedirectTarget string = "https://hello.vrchat.com"
this.HomepageRedirectTarget = homepageRedirectTarget
var useReliableUdpForVoice bool = false
this.UseReliableUdpForVoice = useReliableUdpForVoice
return &this
}
// GetVoiceEnableDegradation returns the VoiceEnableDegradation field value
func (o *APIConfig) GetVoiceEnableDegradation() bool {
if o == nil {
var ret bool
return ret
}
return o.VoiceEnableDegradation
}
// GetVoiceEnableDegradationOk returns a tuple with the VoiceEnableDegradation field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetVoiceEnableDegradationOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.VoiceEnableDegradation, true
}
// SetVoiceEnableDegradation sets field value
func (o *APIConfig) SetVoiceEnableDegradation(v bool) {
o.VoiceEnableDegradation = v
}
// GetVoiceEnableReceiverLimiting returns the VoiceEnableReceiverLimiting field value
func (o *APIConfig) GetVoiceEnableReceiverLimiting() bool {
if o == nil {
var ret bool
return ret
}
return o.VoiceEnableReceiverLimiting
}
// GetVoiceEnableReceiverLimitingOk returns a tuple with the VoiceEnableReceiverLimiting field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetVoiceEnableReceiverLimitingOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.VoiceEnableReceiverLimiting, true
}
// SetVoiceEnableReceiverLimiting sets field value
func (o *APIConfig) SetVoiceEnableReceiverLimiting(v bool) {
o.VoiceEnableReceiverLimiting = v
}
// GetAddress returns the Address field value
func (o *APIConfig) GetAddress() string {
if o == nil {
var ret string
return ret
}
return o.Address
}
// GetAddressOk returns a tuple with the Address field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetAddressOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Address, true
}
// SetAddress sets field value
func (o *APIConfig) SetAddress(v string) {
o.Address = v
}
// GetAnnouncements returns the Announcements field value
func (o *APIConfig) GetAnnouncements() []APIConfigAnnouncement {
if o == nil {
var ret []APIConfigAnnouncement
return ret
}
return o.Announcements
}
// GetAnnouncementsOk returns a tuple with the Announcements field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetAnnouncementsOk() ([]APIConfigAnnouncement, bool) {
if o == nil {
return nil, false
}
return o.Announcements, true
}
// SetAnnouncements sets field value
func (o *APIConfig) SetAnnouncements(v []APIConfigAnnouncement) {
o.Announcements = v
}
// GetAppName returns the AppName field value
// Deprecated
func (o *APIConfig) GetAppName() string {
if o == nil {
var ret string
return ret
}
return o.AppName
}
// GetAppNameOk returns a tuple with the AppName field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetAppNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AppName, true
}
// SetAppName sets field value
// Deprecated
func (o *APIConfig) SetAppName(v string) {
o.AppName = v
}
// GetBuildVersionTag returns the BuildVersionTag field value
func (o *APIConfig) GetBuildVersionTag() string {
if o == nil {
var ret string
return ret
}
return o.BuildVersionTag
}
// GetBuildVersionTagOk returns a tuple with the BuildVersionTag field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetBuildVersionTagOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.BuildVersionTag, true
}
// SetBuildVersionTag sets field value
func (o *APIConfig) SetBuildVersionTag(v string) {
o.BuildVersionTag = v
}
// GetClientApiKey returns the ClientApiKey field value
func (o *APIConfig) GetClientApiKey() string {
if o == nil {
var ret string
return ret
}
return o.ClientApiKey
}
// GetClientApiKeyOk returns a tuple with the ClientApiKey field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetClientApiKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClientApiKey, true
}
// SetClientApiKey sets field value
func (o *APIConfig) SetClientApiKey(v string) {
o.ClientApiKey = v
}
// GetClientBPSCeiling returns the ClientBPSCeiling field value
func (o *APIConfig) GetClientBPSCeiling() int32 {
if o == nil {
var ret int32
return ret
}
return o.ClientBPSCeiling
}
// GetClientBPSCeilingOk returns a tuple with the ClientBPSCeiling field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetClientBPSCeilingOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ClientBPSCeiling, true
}
// SetClientBPSCeiling sets field value
func (o *APIConfig) SetClientBPSCeiling(v int32) {
o.ClientBPSCeiling = v
}
// GetClientDisconnectTimeout returns the ClientDisconnectTimeout field value
func (o *APIConfig) GetClientDisconnectTimeout() int32 {
if o == nil {
var ret int32
return ret
}
return o.ClientDisconnectTimeout
}
// GetClientDisconnectTimeoutOk returns a tuple with the ClientDisconnectTimeout field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetClientDisconnectTimeoutOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ClientDisconnectTimeout, true
}
// SetClientDisconnectTimeout sets field value
func (o *APIConfig) SetClientDisconnectTimeout(v int32) {
o.ClientDisconnectTimeout = v
}
// GetClientReservedPlayerBPS returns the ClientReservedPlayerBPS field value
func (o *APIConfig) GetClientReservedPlayerBPS() int32 {
if o == nil {
var ret int32
return ret
}
return o.ClientReservedPlayerBPS
}
// GetClientReservedPlayerBPSOk returns a tuple with the ClientReservedPlayerBPS field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetClientReservedPlayerBPSOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ClientReservedPlayerBPS, true
}
// SetClientReservedPlayerBPS sets field value
func (o *APIConfig) SetClientReservedPlayerBPS(v int32) {
o.ClientReservedPlayerBPS = v
}
// GetClientSentCountAllowance returns the ClientSentCountAllowance field value
func (o *APIConfig) GetClientSentCountAllowance() int32 {
if o == nil {
var ret int32
return ret
}
return o.ClientSentCountAllowance
}
// GetClientSentCountAllowanceOk returns a tuple with the ClientSentCountAllowance field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetClientSentCountAllowanceOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.ClientSentCountAllowance, true
}
// SetClientSentCountAllowance sets field value
func (o *APIConfig) SetClientSentCountAllowance(v int32) {
o.ClientSentCountAllowance = v
}
// GetContactEmail returns the ContactEmail field value
func (o *APIConfig) GetContactEmail() string {
if o == nil {
var ret string
return ret
}
return o.ContactEmail
}
// GetContactEmailOk returns a tuple with the ContactEmail field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetContactEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ContactEmail, true
}
// SetContactEmail sets field value
func (o *APIConfig) SetContactEmail(v string) {
o.ContactEmail = v
}
// GetCopyrightEmail returns the CopyrightEmail field value
func (o *APIConfig) GetCopyrightEmail() string {
if o == nil {
var ret string
return ret
}
return o.CopyrightEmail
}
// GetCopyrightEmailOk returns a tuple with the CopyrightEmail field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetCopyrightEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CopyrightEmail, true
}
// SetCopyrightEmail sets field value
func (o *APIConfig) SetCopyrightEmail(v string) {
o.CopyrightEmail = v
}
// GetCurrentTOSVersion returns the CurrentTOSVersion field value
func (o *APIConfig) GetCurrentTOSVersion() int32 {
if o == nil {
var ret int32
return ret
}
return o.CurrentTOSVersion
}
// GetCurrentTOSVersionOk returns a tuple with the CurrentTOSVersion field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetCurrentTOSVersionOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.CurrentTOSVersion, true
}
// SetCurrentTOSVersion sets field value
func (o *APIConfig) SetCurrentTOSVersion(v int32) {
o.CurrentTOSVersion = v
}
// GetDefaultAvatar returns the DefaultAvatar field value
func (o *APIConfig) GetDefaultAvatar() string {
if o == nil {
var ret string
return ret
}
return o.DefaultAvatar
}
// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDefaultAvatarOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DefaultAvatar, true
}
// SetDefaultAvatar sets field value
func (o *APIConfig) SetDefaultAvatar(v string) {
o.DefaultAvatar = v
}
// GetDeploymentGroup returns the DeploymentGroup field value
func (o *APIConfig) GetDeploymentGroup() DeploymentGroup {
if o == nil {
var ret DeploymentGroup
return ret
}
return o.DeploymentGroup
}
// GetDeploymentGroupOk returns a tuple with the DeploymentGroup field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDeploymentGroupOk() (*DeploymentGroup, bool) {
if o == nil {
return nil, false
}
return &o.DeploymentGroup, true
}
// SetDeploymentGroup sets field value
func (o *APIConfig) SetDeploymentGroup(v DeploymentGroup) {
o.DeploymentGroup = v
}
// GetDevAppVersionStandalone returns the DevAppVersionStandalone field value
// Deprecated
func (o *APIConfig) GetDevAppVersionStandalone() string {
if o == nil {
var ret string
return ret
}
return o.DevAppVersionStandalone
}
// GetDevAppVersionStandaloneOk returns a tuple with the DevAppVersionStandalone field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetDevAppVersionStandaloneOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DevAppVersionStandalone, true
}
// SetDevAppVersionStandalone sets field value
// Deprecated
func (o *APIConfig) SetDevAppVersionStandalone(v string) {
o.DevAppVersionStandalone = v
}
// GetDevDownloadLinkWindows returns the DevDownloadLinkWindows field value
// Deprecated
func (o *APIConfig) GetDevDownloadLinkWindows() string {
if o == nil {
var ret string
return ret
}
return o.DevDownloadLinkWindows
}
// GetDevDownloadLinkWindowsOk returns a tuple with the DevDownloadLinkWindows field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetDevDownloadLinkWindowsOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DevDownloadLinkWindows, true
}
// SetDevDownloadLinkWindows sets field value
// Deprecated
func (o *APIConfig) SetDevDownloadLinkWindows(v string) {
o.DevDownloadLinkWindows = v
}
// GetDevSdkUrl returns the DevSdkUrl field value
// Deprecated
func (o *APIConfig) GetDevSdkUrl() string {
if o == nil {
var ret string
return ret
}
return o.DevSdkUrl
}
// GetDevSdkUrlOk returns a tuple with the DevSdkUrl field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetDevSdkUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DevSdkUrl, true
}
// SetDevSdkUrl sets field value
// Deprecated
func (o *APIConfig) SetDevSdkUrl(v string) {
o.DevSdkUrl = v
}
// GetDevSdkVersion returns the DevSdkVersion field value
// Deprecated
func (o *APIConfig) GetDevSdkVersion() string {
if o == nil {
var ret string
return ret
}
return o.DevSdkVersion
}
// GetDevSdkVersionOk returns a tuple with the DevSdkVersion field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetDevSdkVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DevSdkVersion, true
}
// SetDevSdkVersion sets field value
// Deprecated
func (o *APIConfig) SetDevSdkVersion(v string) {
o.DevSdkVersion = v
}
// GetDevServerVersionStandalone returns the DevServerVersionStandalone field value
// Deprecated
func (o *APIConfig) GetDevServerVersionStandalone() string {
if o == nil {
var ret string
return ret
}
return o.DevServerVersionStandalone
}
// GetDevServerVersionStandaloneOk returns a tuple with the DevServerVersionStandalone field value
// and a boolean to check if the value has been set.
// Deprecated
func (o *APIConfig) GetDevServerVersionStandaloneOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DevServerVersionStandalone, true
}
// SetDevServerVersionStandalone sets field value
// Deprecated
func (o *APIConfig) SetDevServerVersionStandalone(v string) {
o.DevServerVersionStandalone = v
}
// GetDisCountdown returns the DisCountdown field value
func (o *APIConfig) GetDisCountdown() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.DisCountdown
}
// GetDisCountdownOk returns a tuple with the DisCountdown field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisCountdownOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.DisCountdown, true
}
// SetDisCountdown sets field value
func (o *APIConfig) SetDisCountdown(v time.Time) {
o.DisCountdown = v
}
// GetDisableAvatarCopying returns the DisableAvatarCopying field value
func (o *APIConfig) GetDisableAvatarCopying() bool {
if o == nil {
var ret bool
return ret
}
return o.DisableAvatarCopying
}
// GetDisableAvatarCopyingOk returns a tuple with the DisableAvatarCopying field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisableAvatarCopyingOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DisableAvatarCopying, true
}
// SetDisableAvatarCopying sets field value
func (o *APIConfig) SetDisableAvatarCopying(v bool) {
o.DisableAvatarCopying = v
}
// GetDisableAvatarGating returns the DisableAvatarGating field value
func (o *APIConfig) GetDisableAvatarGating() bool {
if o == nil {
var ret bool
return ret
}
return o.DisableAvatarGating
}
// GetDisableAvatarGatingOk returns a tuple with the DisableAvatarGating field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisableAvatarGatingOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DisableAvatarGating, true
}
// SetDisableAvatarGating sets field value
func (o *APIConfig) SetDisableAvatarGating(v bool) {
o.DisableAvatarGating = v
}
// GetDisableCommunityLabs returns the DisableCommunityLabs field value
func (o *APIConfig) GetDisableCommunityLabs() bool {
if o == nil {
var ret bool
return ret
}
return o.DisableCommunityLabs
}
// GetDisableCommunityLabsOk returns a tuple with the DisableCommunityLabs field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisableCommunityLabsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DisableCommunityLabs, true
}
// SetDisableCommunityLabs sets field value
func (o *APIConfig) SetDisableCommunityLabs(v bool) {
o.DisableCommunityLabs = v
}
// GetDisableCommunityLabsPromotion returns the DisableCommunityLabsPromotion field value
func (o *APIConfig) GetDisableCommunityLabsPromotion() bool {
if o == nil {
var ret bool
return ret
}
return o.DisableCommunityLabsPromotion
}
// GetDisableCommunityLabsPromotionOk returns a tuple with the DisableCommunityLabsPromotion field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisableCommunityLabsPromotionOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DisableCommunityLabsPromotion, true
}
// SetDisableCommunityLabsPromotion sets field value
func (o *APIConfig) SetDisableCommunityLabsPromotion(v bool) {
o.DisableCommunityLabsPromotion = v
}
// GetDisableEmail returns the DisableEmail field value
func (o *APIConfig) GetDisableEmail() bool {
if o == nil {
var ret bool
return ret
}
return o.DisableEmail
}
// GetDisableEmailOk returns a tuple with the DisableEmail field value
// and a boolean to check if the value has been set.
func (o *APIConfig) GetDisableEmailOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.DisableEmail, true
}
// SetDisableEmail sets field value