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
//! # App Services
//!
//! Configure services provided by the app, like support for giving directions or using
//! game controllers.
//!
//! Add keys to your app’s Information Property List file that tell the system about
//! services that your app provides.
//!
//! ## Framework
//! * Bundle Resources

use super::DefaultDictionary;
use serde::{Deserialize, Serialize};

/// Car Play
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct CarPlay {
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(
        rename = "CPSupportsDashboardNavigationScene",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_dashboard_navigation_scene: Option<bool>,
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(
        rename = "CPTemplateApplicationDashboardSceneSessionRoleApplication",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub template_application_dashboard: Option<Vec<TemplateApplicationDashboard>>,
    /// ## Availability
    /// * iOS 13.0+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(
        rename = "CPTemplateApplicationSceneSessionRoleApplication",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub template_application_scene_session_role: Option<Vec<TemplateApplicationSceneSessionRole>>,
}

/// Template Application Dashboard
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct TemplateApplicationDashboard {
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneClassName")]
    pub scene_class_name: ClassName,
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneConfigurationName")]
    pub scene_configuration_name: String,
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneDelegateClassName")]
    pub scene_delegate_class_name: String,
}

/// Class Name
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ClassName {
    #[serde(rename = "CPTemplateApplicationDashboardScene")]
    TemplateApplicationDashboardScene,
}

impl Default for ClassName {
    fn default() -> Self {
        Self::TemplateApplicationDashboardScene
    }
}

/// Template Application Scene Session Role
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct TemplateApplicationSceneSessionRole {
    /// ## Availability
    /// * iOS 13.0+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneClassName")]
    pub scene_class_name: TemplateApplication,
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneConfigurationName")]
    pub scene_configuration_name: String,
    /// ## Availability
    /// * iOS 13.1+
    ///
    /// ## Framework
    /// * CarPlay
    #[serde(rename = "UISceneDelegateClassName")]
    pub scene_delegate_class_name: String,
}

/// Template Application
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum TemplateApplication {
    #[serde(rename = "CPTemplateApplicationScene")]
    Scene,
}

impl Default for TemplateApplication {
    fn default() -> Self {
        Self::Scene
    }
}

/// Exposure Notification
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct ExposureNotification {
    /// A number that specifies the version of the API to use.
    ///
    /// ### Important
    /// This type is available in iOS 12.5, and in iOS 13.7 and later.
    ///
    /// iOS 13.7 introduces a new method to calculate the user’s Exposure Risk Value,
    /// described in ENExposureConfiguration. Set this value to 2 to use this new
    /// version and its calculation method, or set this value to 1 to use the earlier API
    /// and its calculation method. If you don’t explicitly set this value, the
    /// default is 1.
    ///
    /// ## Availability
    /// * iOS 13.7+
    ///
    /// ## Framework
    /// * Exposure Notification
    #[serde(
        rename = "ENAPIVersion",
        skip_serializing_if = "Option::is_none",
        serialize_with = "crate::serialize_enum_option"
    )]
    pub version: Option<Version>,
    /// A string that specifies the region that the app supports.
    ///
    /// ### Important
    /// This type is available in iOS 12.5, and in iOS 13.7 and later.
    ///
    /// All ExposureNotification apps must specify the region for which they work by
    /// adding this key to the app’s Info.plist file. The value is a string that
    /// represents the app’s region. This value can be an ISO 3166-1 country code
    /// (e.g. “CA” for Canada), or the ISO 3166-1/3166-2 country code plus subdivision
    /// code (“US-CA” for California).
    ///
    /// ## Availability
    /// * iOS 13.7+
    ///
    /// ## Framework
    /// * Exposure Notification
    #[serde(
        rename = "ENDeveloperRegion",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub developer_region: Option<String>,
}

/// Version
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum Version {
    /// Use version 1 of the API.
    #[serde(rename = "1")]
    One,
    /// Use version 2 of the API.
    #[serde(rename = "2")]
    Two,
}

/// Pointer Interactions
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct PointerInteractions {
    /// A Boolean value indicating that the app generally supports indirect input
    /// mechanisms.
    ///
    /// If this key is not present or returns NO:
    /// * When the user clicks an indirect pointing device, UIKit generates a UITouch of
    ///   type UITouch.TouchType.direct.
    /// * When pinching or rotating using an indirect touch surface, UIKit creates touches
    ///   a fixed distance apart that simulate the gesture on the indirect touch surface.
    /// * Because these are normal UITouch events, they may incidentally activate other
    ///   gesture recognizers
    ///
    /// If the key is present and returns YES:
    /// * When the user clicks an indirect pointing device, UIKit generates a UITouch of
    ///   type UITouch.TouchType.indirectPointer.
    /// * When pinching or rotating using an indirect touch surface, UIKit drives
    ///   UIPinchGestureRecognizer and UIRotationGestureRecognizer with an event of type
    ///   UIEvent.EventType.transform.
    /// * Currently, only certain prepackaged gestures in UIKit, like
    ///   UIPinchGestureRecognizer and UIRotationGestureRecognizer, are capable of
    ///   handling this event.
    /// Other gestures may be added to this list in future releases.
    /// * Gestures that may have worked previously with the simulated touches no longer
    ///   work.
    /// * Be careful with certain UIGestureRecognizer APIs when gestures are driven by
    ///   events of type UIEvent.EventType.scroll or
    ///   UIEvent.EventType.transform.numberOfTouches returns 0, andlocation(ofTouch:in:)
    ///   raises an exception because there are no touches driving these gestures with
    ///   those events.
    ///
    /// For the case when exceptions might be raised, use either shouldReceive(_:) or the
    /// delegate call of gestureRecognizer(_:shouldReceive:) to determine that gesture
    /// recognizers are acting on a non-touch-based event.
    ///
    /// ### Important
    /// UIApplicationSupportsIndirectInputEvents is a compatibility affordance to ease the
    /// adoption of indirect input for a UIKit application. In a future release, this
    /// new behavior will become the default and this key will no longer be consulted.
    ///
    /// ## Availability
    /// * iOS 13.4+
    ///
    /// ## Framework
    /// * UIKit
    #[serde(
        rename = "UIApplicationSupportsIndirectInputEvents",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub application_supports_indirect_input_events: Option<bool>,
}

/// Games
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Games {
    /// A Boolean value indicating whether GameKit can add badges to a turn-based game
    /// icon.
    ///
    /// ## Availability
    /// * iOS 7.0+
    ///
    /// ## Framework
    /// * GameKit
    #[serde(
        rename = "GKGameCenterBadgingDisabled",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub game_center_badging_disabled: Option<bool>,
    /// A Boolean value that indicates whether GameKit can display challenge banners in a
    /// game.
    ///
    /// ## Availability
    /// * iOS 7.0+
    ///
    /// ## Framework
    /// * GameKit
    #[serde(
        rename = "GKShowChallengeBanners",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub show_challenge_banners: Option<bool>,
    /// The types of game controllers allowed or required by the app.
    ///
    /// ## Availability
    /// * iOS 7.0+
    /// * macOS 10.9+
    /// * tvOS 9.0+
    ///
    /// ## Framework
    /// * Game Controller
    #[serde(
        rename = "GCSupportedGameControllers",
        skip_serializing_if = "Option::is_none",
        serialize_with = "crate::serialize_vec_enum_option"
    )]
    pub supported_game_controllers: Option<Vec<ProfileName>>,
    /// A Boolean value indicating whether the app supports a game controller.
    ///
    /// To add this key to the Information Property List, enable the Game Controllers
    /// capability in Xcode.
    ///
    /// ## Availability
    /// * iOS 7.0+
    /// * macOS 10.9+
    /// * tvOS 9.0+
    ///
    /// ## Framework
    /// * Game Controller
    #[serde(
        rename = "GCSupportsControllerUserInteraction",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_controller_user_interaction: Option<bool>,
    /// A Boolean value indicating whether the physical Apple TV Remote and the Apple TV
    /// Remote app operate as separate game controllers.
    ///
    /// ## Availability
    /// * tvOS 9.0+
    ///
    /// ## Framework
    /// * Game Controller
    #[serde(
        rename = "GCSupportsMultipleMicroGamepads",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_multiple_micro_gamepads: Option<bool>,
}

#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ProfileName {
    #[serde(rename = "ExtendedGamepad")]
    ExtendedGamepad,
    #[serde(rename = "MicroGamepad")]
    MicroGamepad,
}

/// Intents
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Intents {
    /// The names of the intent classes your app handles directly.
    ///
    /// Provide the class name of each INIntent subclass your app can handle.
    /// To specify this information in Xcode, add the class names in the Supported Intents
    /// section of your app target in the Project Editor.
    ///
    /// For more information on handling intents in your app, see
    /// application(_:handlerFor:).
    ///
    /// ### Tip
    /// You can start handling an intent in your app even if you want to support the
    /// intent in iOS 13. List the intent in the Supported Intents sections for both
    /// the app target and the extension target. For an app running on iOS 13, the
    /// system routes the intent with handler(for:), and for later iOS versions, it routes
    /// the intent with application(_:handlerFor:).
    ///
    /// ## Availability
    /// * iOS 14.0+
    /// * tvOS 14.0+
    ///
    /// ## Framework
    /// * Intents
    #[serde(
        rename = "INIntentsSupported",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub intents_supported: Option<Vec<String>>,
    /// The names of the intent classes your app can’t handle when the user locks the
    /// device.
    ///
    /// To specify this information in Xcode, add the intent class name to your app
    /// target’s Supported Intents in the Project Editor. Then set the Authentication
    /// level to Restricted While Locked.
    ///
    /// ## Availability
    /// * iOS 14.0+
    /// * tvOS 14.0+
    ///
    /// ## Framework
    /// * Intents
    #[serde(
        rename = "INIntentsRestrictedWhileLocked",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub intents_restricted_while_locked: Option<Vec<String>>,
    /// The names of the intent classes your app can’t handle when the user locks the
    /// device or the system blocks access to protected data.
    ///
    /// To specify this information in Xcode, add the intent class name to your app
    /// target’s Supported Intents in the Project Editor. Then set the Authentication
    /// level to Restricted While Locked or Protected Data Unavailable.
    ///
    /// ## Availability
    /// * iOS 14.0+
    /// * tvOS 14.0+
    ///
    /// ## Framework
    /// * Intents
    #[serde(
        rename = "INIntentsRestrictedWhileProtectedDataUnavailable",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub intents_restricted_while_protected_data_unavailable: Option<Vec<String>>,
    /// Types of media supported by your app’s media-playing intents.
    ///
    /// Specify one or more media categories to allow Siri to invoke your app’s intent
    /// handling when a user asks to play media. Use INMediaCategoryGeneral for media
    /// that doesn’t fit into any of the other categories, like white noise or sound
    /// effects.
    ///
    /// To specify this information in Xcode, add INPlayMediaIntent to your app’s list of
    /// Supported Intents. Then select the relevant media types in the list that
    /// appears.
    ///
    /// ## Availability
    /// * iOS 14.0+
    /// * tvOS 14.0+
    ///
    /// ## Framework
    /// * Intents
    #[serde(
        rename = "INSupportedMediaCategories",
        skip_serializing_if = "Option::is_none",
        serialize_with = "crate::serialize_vec_enum_option"
    )]
    pub supported_media_categories: Option<Vec<SupportedMediaCategories>>,
}

/// Supported Media Categories
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum SupportedMediaCategories {
    /// Audiobooks
    #[serde(rename = "INMediaCategoryAudiobooks")]
    InMediaCategoryAudiobooks,
    /// Music
    #[serde(rename = "INMediaCategoryMusic")]
    InMediaCategoryMusic,
    /// General
    #[serde(rename = "INMediaCategoryGeneral")]
    InMediaCategoryGeneral,
    /// Podcasts
    #[serde(rename = "INMediaCategoryPodcasts")]
    InMediaCategoryPodcasts,
    /// Radio
    #[serde(rename = "INMediaCategoryRadio")]
    InMediaCategoryRadio,
}

/// Maps
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Maps {
    /// The modes of transportation for which the app is capable of giving directions.
    ///
    /// ## Availability
    /// * iOS 6.0+
    ///
    /// ## Framework
    /// * Intents
    #[serde(
        rename = "MKDirectionsApplicationSupportedModes",
        skip_serializing_if = "Option::is_none",
        serialize_with = "crate::serialize_vec_enum_option"
    )]
    pub directions_application_supported_modes: Option<Vec<DirectionsApplicationSupportedModes>>,
}

/// Directions Application Supported Modes
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum DirectionsApplicationSupportedModes {
    #[serde(rename = "MKDirectionsModePlane")]
    MkDirectionsModePlane,
    #[serde(rename = "MKDirectionsModeBike")]
    MkDirectionsModeBike,
    #[serde(rename = "MKDirectionsModeBus")]
    MkDirectionsModeBus,
    #[serde(rename = "MKDirectionsModeCar")]
    MkDirectionsModeCar,
    #[serde(rename = "MKDirectionsModeFerry")]
    MkDirectionsModeFerry,
    #[serde(rename = "MKDirectionsModePedestrian")]
    MkDirectionsModePedestrian,
    #[serde(rename = "MKDirectionsModeRideShare")]
    MkDirectionsModeRideShare,
    #[serde(rename = "MKDirectionsModeStreetCar")]
    MkDirectionsModeStreetCar,
    #[serde(rename = "MKDirectionsModeSubway")]
    MkDirectionsModeSubway,
    #[serde(rename = "MKDirectionsModeTaxi")]
    MkDirectionsModeTaxi,
    #[serde(rename = "MKDirectionsModeTrain")]
    MkDirectionsModeTrain,
    #[serde(rename = "MKDirectionsModeOther")]
    MkDirectionsModeOther,
}

/// NFC
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct NfcAppServices {
    /// A list of FeliCa system codes that the app supports.
    ///
    /// Each system code must be a discrete value. The wild card value (0xFF) isn't
    /// allowed.
    ///
    /// ## Availability
    /// * iOS 13.0+
    ///
    /// ## Framework
    /// * Core NFC
    #[serde(
        rename = "com.apple.developer.nfc.readersession.felica.systemcodes",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub nfc_readersession_felica_systemcodes: Option<Vec<String>>,
    /// A list of application identifiers that the app supports.
    ///
    /// ## Availability
    /// * iOS 13.0+
    ///
    /// ## Framework
    /// * Core NFC
    #[serde(
        rename = "com.apple.developer.nfc.readersession.iso7816.select-identifiers",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub nfc_readersession_iso7816_select_identifiers: Option<Vec<String>>,
}

/// Authentication
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Authentication {
    /// A Boolean value that indicates the system shouldn’t show security recommendation
    /// prompts when users sign in using the app.
    ///
    /// Each system code must be a discrete value. The wild card value (0xFF) isn't
    /// allowed.
    ///
    /// ## Availability
    /// * iOS 14.0+
    ///
    /// ## Framework
    /// * Authentication Services
    #[serde(
        rename = "ASAccountAuthenticationModificationOptOutOfSecurityPromptsOnSignIn",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub account_authentication_modification_opt_out_of_security_prompts_on_sign_in: Option<bool>,
    /// A collection of keys that a browser app uses to declare its ability to handle
    /// authentication requests from other apps.
    ///
    /// Add a dictionary for this key to your app’s Information Property List if your app
    /// is a web browser and it supports web authentication. In the dictionary, include
    /// the keys IsSupported and EphemeralBrowserSessionIsSupported to indicate your
    /// browser app’s capabilities. For more information, see Supporting Single
    /// Sign-On in a Web Browser App.
    ///
    /// ## Availability
    /// * macOS 10.15+
    ///
    /// ## Framework
    /// * Authentication Services
    #[serde(
        rename = "ASWebAuthenticationSessionWebBrowserSupportCapabilities",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub web_authentication_session_web_browser_support_capabilities:
        Option<WebAuthenticationSession>,
}

/// Web Authentication Session
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct WebAuthenticationSession {
    /// A Boolean that indicates whether the app acts as a browser that supports
    /// authentication sessions.
    ///
    /// Set the corresponding value to YES to indicate that your browser app can handle
    /// authentication requests that other apps generate with ASWebAuthenticationSession.
    /// For details, see Supporting Single Sign-On in a Web Browser App.
    ///
    /// ## Availability
    /// * macOS 10.15+
    ///
    /// ## Framework
    /// * Authentication Services
    #[serde(
        rename = "IsSupported",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub is_supported: Option<bool>,
    /// A Boolean that indicates whether the app supports ephemeral browsing when
    /// conducting authentication sessions.
    ///
    /// Set the corresponding value to YES to indicate that your browser app, when
    /// handling authentication requests, offers ephemeral browsing.
    ///
    /// If you don’t provide the key, or if you set its value to NO and an app tries to
    /// conduct an ephemeral authentication session, the system warns the user.
    /// If do you declare support by setting the value to YES, be sure to respect the
    /// shouldUseEphemeralSession property on any incoming authentication requests, as
    /// described in Supporting Single Sign-On in a Web Browser App.
    ///
    /// ### Note
    /// It’s strongly recommended that your web browser support ephemeral sessions.
    /// Apps can specifically request this kind of session, and it’s important to honor
    /// the request.
    ///
    /// ## Availability
    /// * macOS 10.15+
    ///
    /// ## Framework
    /// * Authentication Services
    #[serde(
        rename = "EphemeralBrowserSessionIsSupported",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub ephemeral_browser_session_is_supported: Option<bool>,
}

/// External Accessories
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct ExternalAccessories {
    /// The protocols that the app uses to communicate with external accessory hardware.
    ///
    /// Add this key to your app’s Info.plist file, and set the value to the names of the
    /// hardware protocols your app supports. You format protocol names as reverse-DNS
    /// strings. For example, the string "com.apple.myProtocol" might represent a
    /// custom protocol that Apple defines. Manufacturers can define custom protocols
    /// for their accessories or work with other manufacturers and organizations to define
    /// standard protocols for different accessory types.
    ///
    /// ## Availability
    /// * iOS 3.0+
    ///
    /// ## Framework
    /// * UIKit
    #[serde(
        rename = "UISupportedExternalAccessoryProtocols",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub supported_external_accessory_protocols: Option<Vec<String>>,
}

/// Service Management
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct ServiceManagement {
    /// The Service Management clients authorized to add and remove tools.
    ///
    /// ## Availability
    /// * iOS 12.1+
    /// * macOS 10.6+
    /// * tvOS 12.1+
    /// * watchOS 5.1+
    ///
    /// ## Framework
    /// * Service Management
    #[serde(
        rename = "SMAuthorizedClients",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub authorized_clients: Option<Vec<String>>,
    /// The Service Management tools owned by the app.
    ///
    /// ## Availability
    /// * iOS 12.1+
    /// * macOS 10.6+
    /// * tvOS 12.1+
    /// * watchOS 5.1+
    ///
    /// ## Framework
    /// * Service Management
    #[serde(
        rename = "SMPrivilegedExecutables",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub privileged_executables: Option<DefaultDictionary>,
}

/// Interprocess Communication
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct InterprocessCommunication {
    /// ## Availability
    /// * iOS 6.0+
    /// * macOS 10.8+
    /// * tvOS 9.0+
    /// * watchOS 2.0+
    ///
    /// ## Framework
    /// * Foundation
    #[serde(
        rename = "XPCService",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub service: Option<Service>,
}

/// Service
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Service {
    #[serde(
        rename = "EnvironmentVariables",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub environment_variables: Option<DefaultDictionary>,
    #[serde(
        rename = "JoinExistingSession",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub join_existing_session: Option<bool>,
    #[serde(
        rename = "RunLoopType",
        serialize_with = "crate::serialize_enum_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub run_loop_type: Option<RunLoopType>,
    #[serde(
        rename = "ServiceType",
        serialize_with = "crate::serialize_enum_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub service_type: Option<ServiceType>,
}

/// Run Loop Type
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum RunLoopType {
    #[serde(rename = "dispatch_main")]
    DispatchMain,
    #[serde(rename = "NSRunLoop")]
    RunLoop,
}

/// Service Type
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
pub enum ServiceType {
    #[serde(rename = "Application")]
    Application,
}

/// Store
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct Store {
    /// An array of dictionaries containing a list of ad network identifiers.
    ///
    /// Apps that display ads and initiate install validation information shared with ad
    /// networks, must include the ad network identifiers in this key.
    ///
    /// Each dictionary contains one SKAdNetworkIdentifier.
    /// Provide one dictionary for each ad network with which you work.
    ///
    /// ### Important
    /// Ad network identifiers are case-sensitive, and are in lowercase.
    ///
    /// ## Availability
    /// * iOS 11.3+
    ///
    /// ## Framework
    /// * StoreKit
    #[serde(
        rename = "SKAdNetworkItems",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub ad_network_items: Option<Vec<AdNetworkItems>>,
}

/// Ad Network Items
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq, Default)]
pub struct AdNetworkItems {
    /// A string that contains an ad network identifier.
    ///
    /// Contact the ad network to learn their ad network identifier.
    ///
    /// Include this key, and the value of the ad network identifier as a string, as a
    /// dictionary in the SKAdNetworkItems key.
    ///
    /// ## Availability
    /// * iOS 11.3+
    ///
    /// ## Framework
    /// * StoreKit
    #[serde(
        rename = "SKAdNetworkIdentifier",
        serialize_with = "crate::serialize_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub ad_network_identifier: Option<String>,
}