peachsim 0.1.2176 → 0.1.2179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +2205 -1861
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +837 -571
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +1732 -1396
  31. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +59 -54
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +2223 -1876
  68. package/dist-lib/swift-compile.cjs +2 -2
  69. package/dist-lib/swift-compile.mjs +2 -2
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +1587 -1319
  77. package/dist-lib/vite.cjs +2 -2
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryEvent.h +116 -0
  82. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNChangeHistoryFetchRequest.h +79 -0
  83. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact+NSItemProvider.h +13 -0
  84. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact+Predicates.h +60 -0
  85. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContact.h +169 -0
  86. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactFetchRequest.h +72 -0
  87. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactFormatter.h +136 -0
  88. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactProperty.h +47 -0
  89. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactRelation.h +287 -0
  90. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactStore.h +242 -0
  91. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactVCardSerialization.h +62 -0
  92. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContactsUserDefaults.h +29 -0
  93. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContainer+Predicates.h +29 -0
  94. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNContainer.h +44 -0
  95. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNError.h +64 -0
  96. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNFetchRequest.h +17 -0
  97. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNFetchResult.h +26 -0
  98. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNGroup+Predicates.h +28 -0
  99. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNGroup.h +34 -0
  100. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNInstantMessageAddress.h +52 -0
  101. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNLabeledValue.h +69 -0
  102. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutableContact.h +74 -0
  103. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutableGroup.h +25 -0
  104. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNMutablePostalAddress.h +35 -0
  105. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPhoneNumber.h +44 -0
  106. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddress.h +50 -0
  107. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNPostalAddressFormatter.h +91 -0
  108. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNSaveRequest.h +136 -0
  109. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/CNSocialProfile.h +55 -0
  110. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/Contacts.apinotes +28 -0
  111. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/Contacts.h +42 -0
  112. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Headers/ContactsDefines.h +14 -0
  113. package/sdk/ios/System/Library/Frameworks/Contacts.framework/Modules/module.modulemap +5 -0
  114. package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/CNContactPickerViewController.h +92 -0
  115. package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/CNContactViewController.h +157 -0
  116. package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/ContactsUI.h +10 -0
  117. package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Headers/UIApplicationShortcutIcon+Contacts.h +22 -0
  118. package/sdk/ios/System/Library/Frameworks/ContactsUI.framework/Modules/module.modulemap +5 -0
  119. package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +8 -0
  120. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKAlarm.h +114 -0
  121. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKCalendar.h +134 -0
  122. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKCalendarItem.h +129 -0
  123. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKError.h +105 -0
  124. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKEvent.h +205 -0
  125. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKEventStore.h +477 -0
  126. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKObject.h +34 -0
  127. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKParticipant.h +115 -0
  128. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceDayOfWeek.h +71 -0
  129. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceEnd.h +61 -0
  130. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKRecurrenceRule.h +193 -0
  131. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKReminder.h +80 -0
  132. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKSource.h +47 -0
  133. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKStructuredLocation.h +28 -0
  134. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKTypes.h +253 -0
  135. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKVirtualConferenceDescriptor.h +109 -0
  136. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EKVirtualConferenceProvider.h +63 -0
  137. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKit.apinotes +72 -0
  138. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKit.h +29 -0
  139. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Headers/EventKitDefines.h +30 -0
  140. package/sdk/ios/System/Library/Frameworks/EventKit.framework/Modules/module.modulemap +5 -0
  141. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKDefines.h +26 -0
  142. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushCredentials.h +37 -0
  143. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushPayload.h +36 -0
  144. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKPushRegistry.h +330 -0
  145. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PKVoIPPushMetadata.h +27 -0
  146. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PushKit.apinotes +43 -0
  147. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Headers/PushKit.h +12 -0
  148. package/sdk/ios/System/Library/Frameworks/PushKit.framework/Modules/module.modulemap +6 -0
  149. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/ARQuickLookPreviewItem.h +63 -0
  150. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLBase.h +34 -0
  151. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLFilePreviewRequest.h +32 -0
  152. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +174 -0
  153. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewItem.h +45 -0
  154. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewProvider.h +27 -0
  155. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewReply.h +106 -0
  156. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewSceneActivationConfiguration.h +41 -0
  157. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewingController.h +74 -0
  158. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailProvider.h +37 -0
  159. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailReply.h +67 -0
  160. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLThumbnailRequest.h +33 -0
  161. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLook.apinotes +35 -0
  162. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLook.h +30 -0
  163. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QuickLookUICore.h +12 -0
  164. package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Modules/module.modulemap +8 -0
  165. package/src/core-data-entity-classes.ts +316 -0
  166. package/src/swift-host.ts +12 -0
  167. package/src/turbo-source.ts +89 -11
@@ -0,0 +1,253 @@
1
+ //
2
+ // EKTypes.h
3
+ // EventKit
4
+ //
5
+ // Copyright 2011 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/NSObjCRuntime.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ /*!
13
+ @enum EKAuthorizationStatus
14
+ @abstract This enumerated type is used to indicate the currently granted authorization status for a specific
15
+ entity type.
16
+ @constant EKAuthorizationStatusNotDetermined The user has not yet made a choice regarding whether this application
17
+ may access the service.
18
+ @constant EKAuthorizationStatusRestricted This application is not authorized to access the service.
19
+ The user cannot change this application’s status, possibly due to
20
+ active restrictions such as parental controls being in place.
21
+ @constant EKAuthorizationStatusDenied The user explicitly denied access to the service for this application.
22
+
23
+ @constant EKAuthorizationStatusWriteOnly This application is authorized to save new items.
24
+ @constant EKAuthorizationStatusFullAccess This application is authorized to read or modify all data for the service.
25
+ @constant EKAuthorizationStatusAuthorized (Deprecated) This application is authorized to access the service.
26
+ */
27
+ typedef NS_ENUM(NSInteger, EKAuthorizationStatus) {
28
+ EKAuthorizationStatusNotDetermined = 0,
29
+ EKAuthorizationStatusRestricted,
30
+ EKAuthorizationStatusDenied,
31
+ EKAuthorizationStatusFullAccess NS_ENUM_AVAILABLE(14_0, 17_0),
32
+ EKAuthorizationStatusWriteOnly NS_ENUM_AVAILABLE(14_0, 17_0),
33
+
34
+ EKAuthorizationStatusAuthorized NS_ENUM_DEPRECATED(10_0, 14_0, 6_0, 17_0, "Check for full access or write only access") = EKAuthorizationStatusFullAccess,
35
+ } NS_AVAILABLE(10_9, 6_0);
36
+
37
+
38
+ typedef NS_ENUM(NSInteger, EKWeekday) {
39
+ EKWeekdaySunday = 1,
40
+ EKWeekdayMonday,
41
+ EKWeekdayTuesday,
42
+ EKWeekdayWednesday,
43
+ EKWeekdayThursday,
44
+ EKWeekdayFriday,
45
+ EKWeekdaySaturday,
46
+
47
+ EKSunday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdaySunday instead") = EKWeekdaySunday,
48
+ EKMonday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdayMonday instead") = EKWeekdayMonday,
49
+ EKTuesday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdayTuesday instead") = EKWeekdayTuesday,
50
+ EKWednesday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdayWednesday instead") = EKWeekdayWednesday,
51
+ EKThursday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdayThursday instead") = EKWeekdayThursday,
52
+ EKFriday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdayFriday instead") = EKWeekdayFriday,
53
+ EKSaturday NS_ENUM_DEPRECATED(10_8, 10_11, 4_0, 9_0, "Use EKWeekdaySaturday instead") = EKWeekdaySaturday,
54
+ };
55
+
56
+ /*!
57
+ @enum EKRecurrenceFrequency
58
+ @abstract The frequency of a recurrence
59
+ @discussion EKRecurrenceFrequency designates the unit of time used to describe the recurrence.
60
+ It has four possible values, which correspond to recurrence rules that are defined
61
+ in terms of days, weeks, months, and years.
62
+ */
63
+ typedef NS_ENUM(NSInteger, EKRecurrenceFrequency) {
64
+ EKRecurrenceFrequencyDaily,
65
+ EKRecurrenceFrequencyWeekly,
66
+ EKRecurrenceFrequencyMonthly,
67
+ EKRecurrenceFrequencyYearly
68
+ };
69
+
70
+ /*!
71
+ @enum EKParticipantType
72
+ @abstract Value representing the type of attendee.
73
+ */
74
+ typedef NS_ENUM(NSInteger, EKParticipantType) {
75
+ EKParticipantTypeUnknown,
76
+ EKParticipantTypePerson,
77
+ EKParticipantTypeRoom,
78
+ EKParticipantTypeResource,
79
+ EKParticipantTypeGroup
80
+ };
81
+
82
+ /*!
83
+ @enum EKParticipantRole
84
+ @abstract Value representing the role of a meeting participant.
85
+ */
86
+ typedef NS_ENUM(NSInteger, EKParticipantRole) {
87
+ EKParticipantRoleUnknown,
88
+ EKParticipantRoleRequired,
89
+ EKParticipantRoleOptional,
90
+ EKParticipantRoleChair,
91
+ EKParticipantRoleNonParticipant
92
+ };
93
+
94
+ /*!
95
+ @enum EKParticipantScheduleStatus
96
+ @abstract Value representing the status of a meeting invite.
97
+
98
+ @constant EKParticipantScheduleStatusNone Default value. Indicates that no
99
+ invitation has been sent yet.
100
+ @constant EKParticipantScheduleStatusPending The invitation is in the process of being
101
+ sent.
102
+ @constant EKParticipantScheduleStatusSent The invitation has been sent, but we have
103
+ no way of determing if it was successfully
104
+ delivered.
105
+ @constant EKParticipantScheduleStatusDelivered The invitation has been sent and
106
+ successfully delivered.
107
+ @constant EKParticipantScheduleStatusRecipientNotRecognized The invitation wasn't delivered because we
108
+ source doesn't recognize the recipient.
109
+ @constant EKParticipantScheduleStatusNoPrivileges The invitation wasn't delivered because of
110
+ insufficient privileges.
111
+ @constant EKParticipantScheduleStatusDeliveryFailed The invitation wasn't delivered most
112
+ likely due to a temporary failure.
113
+ @constant EKParticipantScheduleStatusCannotDeliver The invitation wasn't delivered because
114
+ we're unsure how to deliver it. This is a
115
+ permanent failure.
116
+ @constant EKParticipantScheduleStatusRecipientNotAllowed The invitation wasn't delivered because
117
+ scheduling with the participant isn't
118
+ allowed. This is a permanent failure.
119
+ */
120
+ typedef NS_ENUM(NSInteger, EKParticipantScheduleStatus) {
121
+ EKParticipantScheduleStatusNone,
122
+ EKParticipantScheduleStatusPending,
123
+ EKParticipantScheduleStatusSent,
124
+ EKParticipantScheduleStatusDelivered,
125
+ EKParticipantScheduleStatusRecipientNotRecognized,
126
+ EKParticipantScheduleStatusNoPrivileges,
127
+ EKParticipantScheduleStatusDeliveryFailed,
128
+ EKParticipantScheduleStatusCannotDeliver,
129
+ EKParticipantScheduleStatusRecipientNotAllowed,
130
+ };
131
+
132
+ /*!
133
+ @enum EKParticipantStatus
134
+ @abstract Value representing the status of a meeting participant.
135
+ */
136
+ typedef NS_ENUM(NSInteger, EKParticipantStatus) {
137
+ EKParticipantStatusUnknown,
138
+ EKParticipantStatusPending,
139
+ EKParticipantStatusAccepted,
140
+ EKParticipantStatusDeclined,
141
+ EKParticipantStatusTentative,
142
+ EKParticipantStatusDelegated,
143
+ EKParticipantStatusCompleted,
144
+ EKParticipantStatusInProcess
145
+ };
146
+
147
+ /*!
148
+ @enum EKCalendarType
149
+ @abstract An enum representing the type of a calendar.
150
+
151
+ @constant EKCalendarTypeLocal This calendar is sync'd from either Mobile Me or tethered.
152
+ @constant EKCalendarTypeCalDAV This calendar is from a CalDAV server.
153
+ @constant EKCalendarTypeExchange This calendar comes from an Exchange server.
154
+ @constant EKCalendarTypeSubscription This is a locally subscribed calendar.
155
+ @constant EKCalendarTypeBirthday This is the built-in birthday calendar.
156
+ */
157
+
158
+ typedef NS_ENUM(NSInteger, EKCalendarType) {
159
+ EKCalendarTypeLocal,
160
+ EKCalendarTypeCalDAV,
161
+ EKCalendarTypeExchange,
162
+ EKCalendarTypeSubscription,
163
+ EKCalendarTypeBirthday
164
+ };
165
+
166
+ // Event availability support (free/busy)
167
+ typedef NS_OPTIONS(NSUInteger, EKCalendarEventAvailabilityMask) {
168
+ EKCalendarEventAvailabilityNone = 0, // calendar doesn't support event availability
169
+
170
+ EKCalendarEventAvailabilityBusy = (1 << 0),
171
+ EKCalendarEventAvailabilityFree = (1 << 1),
172
+ EKCalendarEventAvailabilityTentative = (1 << 2),
173
+ EKCalendarEventAvailabilityUnavailable = (1 << 3),
174
+ };
175
+
176
+ typedef NS_ENUM(NSInteger, EKSourceType) {
177
+ EKSourceTypeLocal,
178
+ EKSourceTypeExchange,
179
+ EKSourceTypeCalDAV,
180
+ EKSourceTypeMobileMe,
181
+ EKSourceTypeSubscribed,
182
+ EKSourceTypeBirthdays
183
+ };
184
+
185
+ /*!
186
+ @enum EKEntityType
187
+ @abstract A value which specifies an entity type of event or reminder.
188
+ */
189
+ typedef NS_ENUM(NSUInteger, EKEntityType) {
190
+ EKEntityTypeEvent,
191
+ EKEntityTypeReminder
192
+ };
193
+
194
+ /*!
195
+ @enum EKEntityMask
196
+ @abstract A bitmask based on EKEntityType that can be used to specify multiple entities at once.
197
+ */
198
+ typedef NS_OPTIONS(NSUInteger, EKEntityMask) {
199
+ EKEntityMaskEvent = (1 << EKEntityTypeEvent),
200
+ EKEntityMaskReminder = (1 << EKEntityTypeReminder)
201
+ };
202
+
203
+ /*!
204
+ @enum EKAlarmProximity
205
+ @abstract A value indicating whether an alarm is triggered by entering or exiting a geofence.
206
+
207
+ @constant EKAlarmProximityNone The alarm has no proximity trigger.
208
+ @constant EKAlarmProximityEnter The alarm is set to fire when entering a region (geofence).
209
+ @constant EKAlarmProximityLeave The alarm is set to fire when leaving a region (geofence).
210
+ */
211
+ typedef NS_ENUM(NSInteger, EKAlarmProximity) {
212
+ EKAlarmProximityNone,
213
+ EKAlarmProximityEnter,
214
+ EKAlarmProximityLeave
215
+ };
216
+
217
+ /*!
218
+ @enum EKAlarmType
219
+ @abstract A value which specifies the action that occurs when the alarm is triggered.
220
+
221
+ @constant EKAlarmTypeDisplay The alarm displays a message.
222
+ @constant EKAlarmTypeAudio The alarm plays a sound.
223
+ @constant EKAlarmTypeProcedure The alarm opens a URL.
224
+ @constant EKAlarmTypeEmail The alarm sends an email.
225
+ */
226
+ typedef NS_ENUM(NSInteger, EKAlarmType) {
227
+ EKAlarmTypeDisplay,
228
+ EKAlarmTypeAudio,
229
+ EKAlarmTypeProcedure,
230
+ EKAlarmTypeEmail
231
+ };
232
+
233
+ /*!
234
+ @enum EKReminderPriority
235
+ @abstract A priority for a reminder.
236
+ @discussion RFC 5545 allows priority to be specified with an integer in the range of 0-9,
237
+ with 0 representing an undefined priority, 1 the highest priority, and 9 the lowest priority.
238
+ Clients are encouraged to use these values when setting a reminders's priority,
239
+ but is is possible to specify any integer value from 0 to 9.
240
+
241
+ @constant EKReminderPriorityNone The reminder has no priority set.
242
+ @constant EKReminderPriorityHigh The reminder is high priority.
243
+ @constant EKReminderPriorityMedium The reminder is medium priority.
244
+ @constant EKReminderPriorityLow The reminder is low priority.
245
+ */
246
+ typedef NS_ENUM(NSUInteger, EKReminderPriority) {
247
+ EKReminderPriorityNone = 0,
248
+ EKReminderPriorityHigh = 1,
249
+ EKReminderPriorityMedium = 5,
250
+ EKReminderPriorityLow = 9
251
+ };
252
+
253
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,109 @@
1
+ //
2
+ // EKVirtualConferenceDescriptor.h
3
+ // EventKit
4
+ //
5
+ // Copyright © 2021 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+
13
+ typedef NSString * EKVirtualConferenceRoomTypeIdentifier NS_SWIFT_BRIDGED_TYPEDEF API_AVAILABLE(macos(12.0), ios(15.0));
14
+
15
+
16
+ /*!
17
+ @class EKVirtualConferenceRoomTypeDescriptor
18
+ @abstract Describes a virtual conference room type.
19
+ */
20
+ API_AVAILABLE(macos(12.0), ios(15.0))
21
+ @interface EKVirtualConferenceRoomTypeDescriptor : NSObject
22
+
23
+ /*!
24
+ @method initWithTitle:identifier:
25
+ @abstract Initializes an instance of EKVirtualConferenceRoomTypeDescriptor.
26
+ @param title A user-readable title describing this room type. This string will be
27
+ displayed in UI.
28
+ @param identifier An EKVirtualConferenceRoomTypeIdentifier that your extension can use to
29
+ distinguish this room type from the other room types that your extension
30
+ provides. This is chosen by your extension and is passed back to your
31
+ extension if the user chooses to create a virtual conference of the
32
+ associated room type.
33
+ */
34
+ - (instancetype)initWithTitle:(NSString *)title identifier:(EKVirtualConferenceRoomTypeIdentifier)identifier NS_DESIGNATED_INITIALIZER;
35
+
36
+ @property (readonly, nonatomic, copy) NSString *title;
37
+ @property (readonly, nonatomic, copy) EKVirtualConferenceRoomTypeIdentifier identifier;
38
+
39
+ - (instancetype)init NS_UNAVAILABLE;
40
+ + (instancetype)new NS_UNAVAILABLE;
41
+
42
+ @end
43
+
44
+
45
+ /*!
46
+ @class EKVirtualConferenceURLDescriptor
47
+ @abstract Describes a URL that can be used to join a virtual conference.
48
+ */
49
+ API_AVAILABLE(macos(12.0), ios(15.0))
50
+ @interface EKVirtualConferenceURLDescriptor : NSObject
51
+
52
+ /*!
53
+ @method initWithTitle:URL:
54
+ @abstract Initializes an instance of EKVirtualConferenceURLDescriptor.
55
+ @param title A user-readable title describing this URL. This string may be displayed
56
+ in the UI. This string is optional and may be left nil. If your virtual
57
+ conference only has one way to join it, then you can probably leave this
58
+ nil. However, if your virtual conference has multiple ways to join it,
59
+ you should have a title for each URL so that users can better understand
60
+ what each URL represents.
61
+ @param URL A URL that, when opened, will join the virtual conference.
62
+ */
63
+ - (instancetype)initWithTitle:(nullable NSString *)title URL:(NSURL *)URL NS_DESIGNATED_INITIALIZER;
64
+
65
+ @property (readonly, nonatomic, copy, nullable) NSString *title;
66
+ @property (readonly, nonatomic, copy) NSURL *URL;
67
+
68
+ - (instancetype)init NS_UNAVAILABLE;
69
+ + (instancetype)new NS_UNAVAILABLE;
70
+
71
+ @end
72
+
73
+
74
+ /*!
75
+ @class EKVirtualConferenceDescriptor
76
+ @abstract Describes a virtual conference.
77
+ */
78
+ API_AVAILABLE(macos(12.0), ios(15.0))
79
+ @interface EKVirtualConferenceDescriptor : NSObject
80
+
81
+ /*!
82
+ @method initWithTitle:URLDescriptors:conferenceDetails:
83
+ @abstract Initializes an instance of EKVirtualConferenceDescriptor.
84
+ @param title A user-readable title describing this virtual conference. This string
85
+ may be displayed in the UI. This string is optional and may be left nil.
86
+ @param URLDescriptors An array of EKVirtualConferenceURLDescriptors, representing the various
87
+ ways to join your virtual conference. Do not pass an empty array. Your
88
+ array should be ordered such that the most preferred method of joining
89
+ the virtual conference comes first in the array, with subsequent methods
90
+ of joining appearing in descending priority.
91
+ @param conferenceDetails A user-readable string containing any other information you wish to
92
+ communicate to the user about this virtual conference. This string will
93
+ be displayed in the UI. This argument is optional and may be left nil.
94
+ */
95
+ - (instancetype)initWithTitle:(nullable NSString *)title
96
+ URLDescriptors:(NSArray<EKVirtualConferenceURLDescriptor *> *)URLDescriptors
97
+ conferenceDetails:(nullable NSString *)conferenceDetails NS_DESIGNATED_INITIALIZER;
98
+
99
+ @property (readonly, nonatomic, copy, nullable) NSString *title;
100
+ @property (readonly, nonatomic, copy) NSArray<EKVirtualConferenceURLDescriptor *> *URLDescriptors;
101
+ @property (readonly, nonatomic, copy, nullable) NSString *conferenceDetails;
102
+
103
+ - (instancetype)init NS_UNAVAILABLE;
104
+ + (instancetype)new NS_UNAVAILABLE;
105
+
106
+ @end
107
+
108
+
109
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,63 @@
1
+ //
2
+ // EKVirtualConferenceProvider.h
3
+ // EventKit
4
+ //
5
+ // Copyright © 2021 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <EventKit/EKVirtualConferenceDescriptor.h>
10
+
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+
15
+ /*!
16
+ @class EKVirtualConferenceProvider
17
+ @abstract Provides virtual conferences to Calendar.
18
+ @discussion Subclass this class in your extension and override the below two methods.
19
+ */
20
+
21
+ API_AVAILABLE(macos(12.0), ios(15.0))
22
+ @interface EKVirtualConferenceProvider : NSObject <NSExtensionRequestHandling>
23
+
24
+ /*!
25
+ @method fetchAvailableRoomTypesWithCompletionHandler:
26
+ @abstract Called to determine the available virtual conference room types that the user can add to a calendar event.
27
+ @discussion Your extension must override this method in order to present virtual conference options in Calendar's UI.
28
+ When your extension has finished determining what room types are available, call the completion handler with
29
+ an array of EKVirtualConferenceRoomTypeDescriptors. Most extensions will only need to provide one room type.
30
+ @param completionHandler A block to call when your extension has finished retrieving available room types. If
31
+ your extension is unable to provide any room types at this time, call this block with nil
32
+ for the first argument and an appropriate NSError object for the second argument. Do not
33
+ call this block with nil for both arguments. Similarly, do not call this block with both
34
+ a non-nil array and a non-nil NSError. This block must be called when your extension has
35
+ finished its work.
36
+ */
37
+
38
+ - (void)fetchAvailableRoomTypesWithCompletionHandler:(void(^)(NSArray<EKVirtualConferenceRoomTypeDescriptor *> * _Nullable, NSError * _Nullable))completionHandler;
39
+
40
+ /*!
41
+ @method fetchVirtualConferenceForIdentifier:completionHandler:
42
+ @abstract Called to fetch the specific virtual conference details to add to an event.
43
+ @discussion Your extension must override this method in order to add virtual conferences to calendar events.
44
+ When your extension has finished retrieving the requested virtual conference details, create an
45
+ EKVirtualConferenceDescriptor object containing the virtual conference details and call the completion handler
46
+ with the EKVirtualConferenceDescriptor object as the first argument.
47
+ @param identifier Represents the room type that the user chose. This is the same identifier that your extension
48
+ chose for this EKVirtualConferenceRoomTypeDescriptor in an earlier call to
49
+ fetchAvailableRoomTypesWithCompletionHandler:.
50
+ @param completionHandler A block to call when your extension has finished retrieving the virtual conference details.
51
+ If your extension is unable to retrieve virtual conference details at this time (for example,
52
+ because network access is not available), call this block with nil for the first argument and
53
+ an appropriate NSError object for the second argument. Do not call this block with nil for
54
+ both arguments. Similarly, do not call this block with both a non-nil
55
+ EKVirtualConferenceDescriptor and a non-nil NSError. This block must be called when your
56
+ extension has finished its work.
57
+ */
58
+ - (void)fetchVirtualConferenceForIdentifier:(EKVirtualConferenceRoomTypeIdentifier)identifier completionHandler:(void(^)(EKVirtualConferenceDescriptor * _Nullable, NSError * _Nullable))completionHandler;
59
+
60
+ @end
61
+
62
+
63
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,72 @@
1
+ ---
2
+ Name: EventKit
3
+ Tags:
4
+ - Name: EKErrorCode
5
+ NSErrorDomain: EKErrorDomain
6
+ - Name: EKWeekday
7
+ EnumKind: NSClosedEnum
8
+ Classes:
9
+ - Name: EKVirtualConferenceProvider
10
+ Methods:
11
+ - Selector: 'fetchVirtualConferenceForIdentifier:completionHandler:'
12
+ MethodKind: Instance
13
+ SwiftName: 'fetchVirtualConference(identifier:completionHandler:)'
14
+ SwiftVersions:
15
+ - Version: 3
16
+ Classes:
17
+ - Name: EKCalendar
18
+ Properties:
19
+ - Name: source
20
+ PropertyKind: Instance
21
+ Nullability: N
22
+ - Name: color
23
+ PropertyKind: Instance
24
+ Nullability: N
25
+ - Name: CGColor
26
+ PropertyKind: Instance
27
+ Nullability: N
28
+ - Name: EKCalendarItem
29
+ Properties:
30
+ - Name: calendar
31
+ PropertyKind: Instance
32
+ Nullability: N
33
+ - Name: calendarItemExternalIdentifier
34
+ PropertyKind: Instance
35
+ Nullability: N
36
+ - Name: title
37
+ PropertyKind: Instance
38
+ Nullability: N
39
+ - Name: EKEvent
40
+ Properties:
41
+ - Name: eventIdentifier
42
+ PropertyKind: Instance
43
+ Nullability: N
44
+ - Name: startDate
45
+ PropertyKind: Instance
46
+ Nullability: N
47
+ - Name: endDate
48
+ PropertyKind: Instance
49
+ Nullability: N
50
+ - Name: occurrenceDate
51
+ PropertyKind: Instance
52
+ Nullability: N
53
+ - Name: EKEventStore
54
+ Methods:
55
+ - Selector: 'sourceWithIdentifier:'
56
+ MethodKind: Instance
57
+ NullabilityOfRet: N
58
+ - Selector: 'defaultCalendarForNewReminders'
59
+ MethodKind: Instance
60
+ NullabilityOfRet: N
61
+ - Selector: 'calendarItemWithIdentifier:'
62
+ MethodKind: Instance
63
+ NullabilityOfRet: N
64
+ Properties:
65
+ - Name: defaultCalendarForNewEvents
66
+ PropertyKind: Instance
67
+ Nullability: N
68
+ - Name: EKStructuredLocation
69
+ Properties:
70
+ - Name: title
71
+ PropertyKind: Instance
72
+ Nullability: N
@@ -0,0 +1,29 @@
1
+ /*
2
+ * EventKit.h
3
+ * EventKit
4
+ *
5
+ * Copyright 2010 Apple Inc. All rights reserved.
6
+ *
7
+ */
8
+
9
+ #import <TargetConditionals.h>
10
+ #import <Availability.h>
11
+
12
+ #if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED || !TARGET_OS_IPHONE
13
+
14
+ #import <EventKit/EventKitDefines.h>
15
+ #import <EventKit/EKTypes.h>
16
+ #import <EventKit/EKAlarm.h>
17
+ #import <EventKit/EKEventStore.h>
18
+ #import <EventKit/EKCalendar.h>
19
+ #import <EventKit/EKError.h>
20
+ #import <EventKit/EKEvent.h>
21
+ #import <EventKit/EKParticipant.h>
22
+ #import <EventKit/EKRecurrenceRule.h>
23
+ #import <EventKit/EKReminder.h>
24
+ #import <EventKit/EKSource.h>
25
+ #import <EventKit/EKStructuredLocation.h>
26
+ #import <EventKit/EKVirtualConferenceProvider.h>
27
+
28
+ #endif //#if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
29
+
@@ -0,0 +1,30 @@
1
+ //
2
+ // EventKitDefines.h
3
+ // EventKit
4
+ //
5
+ // Copyright 2010 Apple Inc. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #ifdef __cplusplus
11
+ #define EVENTKIT_EXTERN extern "C" __attribute__((visibility ("default")))
12
+ #else
13
+ #define EVENTKIT_EXTERN extern __attribute__((visibility ("default")))
14
+ #endif
15
+
16
+ #if !TARGET_OS_IPHONE
17
+
18
+ static inline void NS_DEPRECATED(10_8, 10_10, NA, NA) EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE (void) { ; }
19
+ // an NSDate with no fractional seconds will use a tagged pointer, which is much more efficient to create/store
20
+ #define EK_LOSE_FRACTIONAL_SECONDS(date) ({EK_LOSE_FRACTIONAL_SECONDS_DO_NOT_USE(); __typeof__(date) __datevalue = (date); (__datevalue ? [NSDate dateWithTimeIntervalSinceReferenceDate:floor([__datevalue timeIntervalSinceReferenceDate])] : nil); })
21
+
22
+ static inline void NS_DEPRECATED(10_8, 10_10, NA, NA) DATE_COMPONENTS_DO_NOT_USE (void) { ; }
23
+ #define DATE_COMPONENTS ({DATE_COMPONENTS_DO_NOT_USE(); (NSCalendarUnitEra | NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay); })
24
+
25
+ static inline void NS_DEPRECATED(10_8, 10_10, NA, NA) DATETIME_COMPONENTS_DO_NOT_USE (void) { ; }
26
+ #define DATETIME_COMPONENTS ({DATETIME_COMPONENTS_DO_NOT_USE(); (DATE_COMPONENTS | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond); })
27
+
28
+ #endif
29
+
30
+
@@ -0,0 +1,5 @@
1
+ framework module EventKit [system] {
2
+ umbrella header "EventKit.h"
3
+ export *
4
+ module * { export * }
5
+ }
@@ -0,0 +1,26 @@
1
+ //
2
+ // PKDefines.h
3
+ // PushKit
4
+ //
5
+ // Copyright (c) 2014 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ #ifdef __cplusplus
11
+ #define PK_EXPORT extern "C" __attribute__((visibility("default")))
12
+ #else
13
+ #define PK_EXPORT extern __attribute__((visibility("default")))
14
+ #endif
15
+ /// Constants reflecting the push types you want to support.
16
+ ///
17
+ /// ## Topics
18
+ ///
19
+ /// ### Notification Types
20
+ ///
21
+ /// - ``PushKit/PKPushTypeComplication``
22
+ /// - ``PushKit/PKPushTypeFileProvider``
23
+ /// - ``PushKit/PKPushTypeVoIP``
24
+ ///
25
+ ///
26
+ typedef NSString *PKPushType NS_STRING_ENUM;
@@ -0,0 +1,37 @@
1
+ //
2
+ // PKPushCredentials.h
3
+ // PushKit
4
+ //
5
+ // Copyright (c) 2014 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <PushKit/PKDefines.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ /// An object that encapsulates the device token you use to deliver push notifications
14
+ /// to your app.
15
+ ///
16
+ /// When registering your app's push types, PushKit creates a ``PushKit/PKPushCredentials``
17
+ /// object for each type your app supports and delivers it to your delegate's ``PushKit/PKPushRegistryDelegate/pushRegistry:didUpdatePushCredentials:forType:``
18
+ /// method. Don't create ``PushKit/PKPushCredentials`` objects yourself.
19
+ ///
20
+ API_AVAILABLE(macos(10.15), macCatalyst(13.0), ios(8.0), watchos(6.0), tvos(13.0), visionos(1.0))
21
+ @interface PKPushCredentials : NSObject
22
+
23
+ /// The push type constant associated with the token.
24
+ ///
25
+ /// For possible values, see ``PushKit/PKPushType``.
26
+ @property (readonly,copy) PKPushType type;
27
+ /// A unique device token to use when sending push notifications to the current device.
28
+ ///
29
+ /// Forward this token to the server you use to generate push notifications. When preparing
30
+ /// to deliver a push notification to the current device, include the token in the HTTP
31
+ /// request you send to Apple Push Notification service (APNs).
32
+ ///
33
+ @property (readonly,copy) NSData *token;
34
+
35
+ @end
36
+
37
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,36 @@
1
+ //
2
+ // PKPushPayload.h
3
+ // PushKit
4
+ //
5
+ // Copyright (c) 2014 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <PushKit/PKDefines.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+ /// An object that contains information about a received PushKit notification.
13
+ ///
14
+ /// ## Topics
15
+ ///
16
+ /// ### Payload Data
17
+ ///
18
+ /// - ``PushKit/PKPushPayload/dictionaryPayload``
19
+ /// - ``PushKit/PKPushPayload/type``
20
+ ///
21
+ API_AVAILABLE(macos(10.15), macCatalyst(13.0), ios(8.0), watchos(6.0), tvos(13.0), visionos(1.0))
22
+ @interface PKPushPayload : NSObject
23
+
24
+ /// The type value indicating how to interpret the payload.
25
+ ///
26
+ /// For possible values, see ``PushKit/PKPushType``.
27
+ @property (readonly,copy) PKPushType type;
28
+ /// The contents of the received payload.
29
+ ///
30
+ /// For VoIP pushes, the sender is free to specify any fields for the contained data
31
+ /// as long as it is provided in a text-encodable JSON format.
32
+ @property (readonly,copy) NSDictionary *dictionaryPayload;
33
+
34
+ @end
35
+
36
+ NS_ASSUME_NONNULL_END