peachsim 0.1.2296 → 0.1.2298

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 (134) 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 +1153 -1070
  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 +2 -2
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +47 -24
  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 +121 -38
  31. package/dist-lib/host/fetch-proxy-handler.cjs +8 -6
  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 +2391 -4521
  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 +14 -2
  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 +4536 -6667
  47. package/dist-lib/native-app-identity-project.cjs +3 -3
  48. package/dist-lib/native-app-identity-project.mjs +3 -3
  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 +81 -85
  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 +122 -39
  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 +5 -4
  77. package/dist-lib/vite.cjs +8 -6
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +10 -8
  81. package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +0 -1
  82. package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
  83. package/dist-types/packages/peach-engine/src/settings/device-spec-bus.d.ts +5 -0
  84. package/kotlin/README.md +1 -1
  85. package/kotlin/sdk.tar.gz +0 -0
  86. package/kotlin/toolchain.json +5 -1
  87. package/package.json +1 -1
  88. package/runtime-companion.json +1 -1
  89. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAction.h +34 -0
  90. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXAnswerCallAction.h +20 -0
  91. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXBase.h +20 -0
  92. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCall.h +28 -0
  93. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallAction.h +23 -0
  94. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallController.h +53 -0
  95. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectory.h +16 -0
  96. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryExtensionContext.h +86 -0
  97. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryManager.h +29 -0
  98. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallDirectoryProvider.h +21 -0
  99. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallObserver.h +34 -0
  100. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXCallUpdate.h +43 -0
  101. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXEndCallAction.h +20 -0
  102. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXError.h +66 -0
  103. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXHandle.h +31 -0
  104. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXPlayDTMFCallAction.h +33 -0
  105. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProvider.h +127 -0
  106. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXProviderConfiguration.h +42 -0
  107. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetGroupCallAction.h +27 -0
  108. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetHeldCallAction.h +23 -0
  109. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetMutedCallAction.h +23 -0
  110. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXSetTranslatingCallAction.h +40 -0
  111. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXStartCallAction.h +33 -0
  112. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CXTransaction.h +34 -0
  113. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.apinotes +36 -0
  114. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Headers/CallKit.h +35 -0
  115. package/sdk/ios/System/Library/Frameworks/CallKit.framework/Modules/module.modulemap +6 -0
  116. package/sdk/ios/System/Library/Frameworks/React.framework/Headers/React.h +14 -0
  117. package/src/expo-autolinking.ts +1 -1
  118. package/src/expo-swift-host.ts +5 -5
  119. package/src/kotlin-toolchain.ts +16 -1
  120. package/src/kotlinSdkContract.ts +2 -1
  121. package/src/metro-plugin.ts +1 -4
  122. package/src/nitro-adapter.lock.json +284 -284
  123. package/src/nitro-compile.ts +69 -4
  124. package/src/nitro-superset.lock.json +4 -4
  125. package/src/one-sdk/source.ts +2 -1
  126. package/src/prepared-native-inventory.ts +8 -2
  127. package/src/react-native-autolinking.ts +28 -9
  128. package/src/swift-coverage/xcode-packages.ts +2 -1
  129. package/src/swift-distribution.lock.json +11 -11
  130. package/src/swift-host.ts +3 -1
  131. package/src/turbo-bundle.ts +14 -6
  132. package/src/turbo-codegen-intake.ts +3 -2
  133. package/src/turbo-runtime.lock.json +22 -22
  134. package/src/turbo-source.ts +2 -4
@@ -0,0 +1,29 @@
1
+ //
2
+ // CXCallDirectoryManager.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ typedef NS_ENUM(NSInteger, CXCallDirectoryEnabledStatus) {
13
+ CXCallDirectoryEnabledStatusUnknown = 0,
14
+ CXCallDirectoryEnabledStatusDisabled = 1,
15
+ CXCallDirectoryEnabledStatusEnabled = 2,
16
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos);
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
19
+ @interface CXCallDirectoryManager : NSObject
20
+
21
+ @property (readonly, class) CXCallDirectoryManager *sharedInstance;
22
+
23
+ - (void)reloadExtensionWithIdentifier:(NSString *)identifier completionHandler:(nullable void (^)(NSError *_Nullable error))completion;
24
+ - (void)getEnabledStatusForExtensionWithIdentifier:(NSString *)identifier completionHandler:(void (^)(CXCallDirectoryEnabledStatus enabledStatus, NSError *_Nullable error))completion;
25
+ - (void)openSettingsWithCompletionHandler:(nullable void (^)(NSError *_Nullable error))completion API_AVAILABLE(ios(13.4), macCatalyst(14.0)) API_UNAVAILABLE( macos, watchos, tvos);
26
+
27
+ @end
28
+
29
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,21 @@
1
+ //
2
+ // CXCallDirectoryProvider.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXCallDirectoryExtensionContext;
13
+
14
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0)) API_UNAVAILABLE(macos, watchos, tvos)
15
+ @interface CXCallDirectoryProvider : NSObject <NSExtensionRequestHandling>
16
+
17
+ - (void)beginRequestWithExtensionContext:(CXCallDirectoryExtensionContext *)context;
18
+
19
+ @end
20
+
21
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+ //
2
+ // CXCallObserver.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXCall;
13
+ @class CXCallObserver;
14
+
15
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
16
+ @protocol CXCallObserverDelegate <NSObject>
17
+
18
+ - (void)callObserver:(CXCallObserver *)callObserver callChanged:(CXCall *)call;
19
+
20
+ @end
21
+
22
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
23
+ @interface CXCallObserver : NSObject
24
+
25
+ /// Retrieve the current call list, blocking on initial state retrieval if necessary
26
+ @property (nonatomic, readonly, copy) NSArray<CXCall *> *calls;
27
+
28
+ /// Set delegate and optional queue for delegate callbacks to be performed on.
29
+ /// A nil queue implies that delegate callbacks should happen on the main queue. The delegate is stored weakly
30
+ - (void)setDelegate:(nullable id<CXCallObserverDelegate>)delegate queue:(nullable dispatch_queue_t)queue;
31
+
32
+ @end
33
+
34
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,43 @@
1
+ //
2
+ // CXCallUpdate.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXHandle;
13
+
14
+ // Any property that is not set will be ignored
15
+
16
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
17
+ @interface CXCallUpdate : NSObject <NSCopying>
18
+
19
+ /// Handle for the remote party (for an incoming call, the caller; for an outgoing call, the callee).
20
+ @property (nonatomic, copy, nullable) CXHandle *remoteHandle;
21
+
22
+ /// Override the computed caller name to a provider-defined value.
23
+ /// Normally the system will determine the appropriate caller name to display (e.g. using the user's contacts) based on the supplied caller identifier. Set this property to customize.
24
+ @property (nonatomic, copy, nullable) NSString *localizedCallerName;
25
+
26
+ /// Whether the call can be held on its own or swapped with another call
27
+ @property (nonatomic) BOOL supportsHolding;
28
+
29
+ /// Whether the call can be grouped (merged) with other calls when it is ungrouped
30
+ @property (nonatomic) BOOL supportsGrouping;
31
+
32
+ /// The call can be ungrouped (taken private) when it is grouped
33
+ @property (nonatomic) BOOL supportsUngrouping;
34
+
35
+ /// The call can send DTMF tones via hard pause digits or in-call keypad entries
36
+ @property (nonatomic) BOOL supportsDTMF;
37
+
38
+ /// The call includes video in addition to audio.
39
+ @property (nonatomic) BOOL hasVideo;
40
+
41
+ @end
42
+
43
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,20 @@
1
+ //
2
+ // CXEndCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXEndCallAction : CXCallAction
14
+
15
+ /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call ended.
16
+ - (void)fulfillWithDateEnded:(NSDate *)dateEnded;
17
+
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,66 @@
1
+ //
2
+ // CXError.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN NSErrorDomain const CXErrorDomain API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
13
+ CX_EXTERN NSErrorDomain const CXErrorDomainIncomingCall API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
14
+ CX_EXTERN NSErrorDomain const CXErrorDomainRequestTransaction API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
15
+ CX_EXTERN NSErrorDomain const CXErrorDomainCallDirectoryManager API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
16
+ CX_EXTERN NSErrorDomain const CXErrorDomainNotificationServiceExtension API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos);
17
+
18
+ typedef NS_ERROR_ENUM(CXErrorDomain, CXErrorCode) {
19
+ CXErrorCodeUnknownError = 0,
20
+ CXErrorCodeUnentitled API_AVAILABLE(ios(13.2), macCatalyst(13.2), watchos(9.0)) API_UNAVAILABLE(macos) = 1,
21
+ CXErrorCodeInvalidArgument API_AVAILABLE(ios(13.2), macCatalyst(13.2), watchos(9.0)) API_UNAVAILABLE(macos) = 2,
22
+ CXErrorCodeMissingVoIPBackgroundMode API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos) = 3,
23
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
24
+
25
+ typedef NS_ERROR_ENUM(CXErrorDomainIncomingCall, CXErrorCodeIncomingCallError) {
26
+ CXErrorCodeIncomingCallErrorUnknown = 0,
27
+ CXErrorCodeIncomingCallErrorUnentitled = 1,
28
+ CXErrorCodeIncomingCallErrorCallUUIDAlreadyExists = 2,
29
+ CXErrorCodeIncomingCallErrorFilteredByDoNotDisturb = 3,
30
+ CXErrorCodeIncomingCallErrorFilteredByBlockList = 4,
31
+ CXErrorCodeIncomingCallErrorFilteredDuringRestrictedSharingMode = 5,
32
+ CXErrorCodeIncomingCallErrorCallIsProtected = 6,
33
+ CXErrorCodeIncomingCallErrorFilteredBySensitiveParticipants = 7,
34
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
35
+
36
+ typedef NS_ERROR_ENUM(CXErrorDomainRequestTransaction, CXErrorCodeRequestTransactionError) {
37
+ CXErrorCodeRequestTransactionErrorUnknown = 0,
38
+ CXErrorCodeRequestTransactionErrorUnentitled = 1,
39
+ CXErrorCodeRequestTransactionErrorUnknownCallProvider = 2,
40
+ CXErrorCodeRequestTransactionErrorEmptyTransaction = 3,
41
+ CXErrorCodeRequestTransactionErrorUnknownCallUUID = 4,
42
+ CXErrorCodeRequestTransactionErrorCallUUIDAlreadyExists = 5,
43
+ CXErrorCodeRequestTransactionErrorInvalidAction = 6,
44
+ CXErrorCodeRequestTransactionErrorMaximumCallGroupsReached = 7,
45
+ CXErrorCodeRequestTransactionErrorCallIsProtected = 8,
46
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
47
+
48
+ typedef NS_ERROR_ENUM(CXErrorDomainCallDirectoryManager, CXErrorCodeCallDirectoryManagerError) {
49
+ CXErrorCodeCallDirectoryManagerErrorUnknown = 0,
50
+ CXErrorCodeCallDirectoryManagerErrorNoExtensionFound = 1,
51
+ CXErrorCodeCallDirectoryManagerErrorLoadingInterrupted = 2,
52
+ CXErrorCodeCallDirectoryManagerErrorEntriesOutOfOrder = 3,
53
+ CXErrorCodeCallDirectoryManagerErrorDuplicateEntries = 4,
54
+ CXErrorCodeCallDirectoryManagerErrorMaximumEntriesExceeded = 5,
55
+ CXErrorCodeCallDirectoryManagerErrorExtensionDisabled = 6,
56
+ CXErrorCodeCallDirectoryManagerErrorCurrentlyLoading API_AVAILABLE(ios(10.3), macCatalyst(13.0)) = 7,
57
+ CXErrorCodeCallDirectoryManagerErrorUnexpectedIncrementalRemoval API_AVAILABLE(ios(11.0), macCatalyst(13.0)) = 8,
58
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
59
+
60
+ typedef NS_ERROR_ENUM(CXErrorDomainNotificationServiceExtension, CXErrorCodeNotificationServiceExtensionError) {
61
+ CXErrorCodeNotificationServiceExtensionErrorUnknown = 0,
62
+ CXErrorCodeNotificationServiceExtensionErrorInvalidClientProcess = 1,
63
+ CXErrorCodeNotificationServiceExtensionErrorMissingNotificationFilteringEntitlement = 2,
64
+ } API_AVAILABLE(ios(14.5), macCatalyst(14.5), watchos(9.0)) API_UNAVAILABLE(tvos, macos);
65
+
66
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,31 @@
1
+ //
2
+ // CXHandle.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ typedef NS_ENUM(NSInteger, CXHandleType) {
13
+ CXHandleTypeGeneric = 1,
14
+ CXHandleTypePhoneNumber = 2,
15
+ CXHandleTypeEmailAddress = 3,
16
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
19
+ @interface CXHandle : NSObject <NSCopying, NSSecureCoding>
20
+
21
+ @property (nonatomic, readonly) CXHandleType type;
22
+ @property (nonatomic, readonly, copy) NSString *value;
23
+
24
+ - (instancetype)initWithType:(CXHandleType)type value:(NSString *)value NS_DESIGNATED_INITIALIZER;
25
+ - (instancetype)init NS_UNAVAILABLE;
26
+
27
+ - (BOOL)isEqualToHandle:(CXHandle *)handle;
28
+
29
+ @end
30
+
31
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // CXPlayDTMFCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ typedef NS_ENUM(NSInteger, CXPlayDTMFCallActionType) {
11
+ CXPlayDTMFCallActionTypeSingleTone = 1, // The user tapped a digit on the in-call keypad
12
+ CXPlayDTMFCallActionTypeSoftPause = 2, // The user included digits after a soft pause in their dial string
13
+ CXPlayDTMFCallActionTypeHardPause = 3, // The user included digits after a hard pause in their dial string
14
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
19
+ @interface CXPlayDTMFCallAction : CXCallAction
20
+
21
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID digits:(NSString *)digits type:(CXPlayDTMFCallActionType)type NS_DESIGNATED_INITIALIZER;
22
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
23
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
24
+
25
+ // The string representation of the digits that should be played as DTMF tones
26
+ @property (nonatomic, copy) NSString *digits;
27
+
28
+ // Whether or not the string of digits represents tones following a hard or soft pause
29
+ @property (nonatomic) CXPlayDTMFCallActionType type;
30
+
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,127 @@
1
+ //
2
+ // CXProvider.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXAction;
13
+ @class CXCallAction;
14
+ @class CXCallUpdate;
15
+ @class CXProvider;
16
+ @class CXProviderConfiguration;
17
+ @class CXTransaction;
18
+ @class CXAction;
19
+ @class CXCallAction;
20
+ @class CXStartCallAction;
21
+ @class CXAnswerCallAction;
22
+ @class CXEndCallAction;
23
+ @class CXSetHeldCallAction;
24
+ @class CXSetMutedCallAction;
25
+ @class CXSetGroupCallAction;
26
+ @class CXPlayDTMFCallAction;
27
+ #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
28
+ @class CXSetTranslatingCallAction;
29
+ #endif
30
+ @class AVAudioSession;
31
+
32
+ typedef NS_ENUM(NSInteger, CXCallEndedReason) {
33
+ CXCallEndedReasonFailed = 1, // An error occurred while trying to service the call
34
+ CXCallEndedReasonRemoteEnded = 2, // The remote party explicitly ended the call
35
+ CXCallEndedReasonUnanswered = 3, // The call never started connecting and was never explicitly ended (e.g. outgoing/incoming call timeout)
36
+ CXCallEndedReasonAnsweredElsewhere = 4, // The call was answered on another device
37
+ CXCallEndedReasonDeclinedElsewhere = 5, // The call was declined on another device
38
+ } API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos);
39
+
40
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
41
+ @protocol CXProviderDelegate <NSObject>
42
+
43
+ /// Called when the provider has been reset. Delegates must respond to this callback by cleaning up all internal call state (disconnecting communication channels, releasing network resources, etc.). This callback can be treated as a request to end all calls without the need to respond to any actions
44
+ - (void)providerDidReset:(CXProvider *)provider;
45
+
46
+ @optional
47
+
48
+ /// Called when the provider has been fully created and is ready to send actions and receive updates
49
+ - (void)providerDidBegin:(CXProvider *)provider;
50
+
51
+ /// Called whenever a new transaction should be executed. Return whether or not the transaction was handled:
52
+ ///
53
+ /// - NO: the transaction was not handled indicating that the perform*CallAction methods should be called sequentially for each action in the transaction
54
+ /// - YES: the transaction was handled and the perform*CallAction methods should not be called sequentially
55
+ ///
56
+ /// If the method is not implemented, NO is assumed.
57
+ - (BOOL)provider:(CXProvider *)provider executeTransaction:(CXTransaction *)transaction;
58
+
59
+ // If provider:executeTransaction:error: returned NO, each perform*CallAction method is called sequentially for each action in the transaction
60
+ - (void)provider:(CXProvider *)provider performStartCallAction:(CXStartCallAction *)action;
61
+ - (void)provider:(CXProvider *)provider performAnswerCallAction:(CXAnswerCallAction *)action;
62
+ - (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action;
63
+ - (void)provider:(CXProvider *)provider performSetHeldCallAction:(CXSetHeldCallAction *)action;
64
+ - (void)provider:(CXProvider *)provider performSetMutedCallAction:(CXSetMutedCallAction *)action;
65
+ - (void)provider:(CXProvider *)provider performSetGroupCallAction:(CXSetGroupCallAction *)action;
66
+ - (void)provider:(CXProvider *)provider performPlayDTMFCallAction:(CXPlayDTMFCallAction *)action;
67
+ #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && !TARGET_OS_VISION
68
+ - (void)provider:(CXProvider *)provider performSetTranslatingCallAction:(CXSetTranslatingCallAction *)action;
69
+ #endif
70
+ /// Called when an action was not performed in time and has been inherently failed. Depending on the action, this timeout may also force the call to end. An action that has already timed out should not be fulfilled or failed by the provider delegate
71
+ - (void)provider:(CXProvider *)provider timedOutPerformingAction:(CXAction *)action;
72
+
73
+ /// Called when the provider's audio session activation state changes.
74
+ - (void)provider:(CXProvider *)provider didActivateAudioSession:(AVAudioSession *)audioSession;
75
+ - (void)provider:(CXProvider *)provider didDeactivateAudioSession:(AVAudioSession *)audioSession;
76
+
77
+ @end
78
+
79
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
80
+ @interface CXProvider : NSObject
81
+
82
+ /// Initialize a new provider instance with the supplied configuration
83
+ - (instancetype)initWithConfiguration:(CXProviderConfiguration *)configuration NS_DESIGNATED_INITIALIZER;
84
+ + (instancetype)new NS_UNAVAILABLE;
85
+ - (instancetype)init NS_UNAVAILABLE;
86
+
87
+ /// Set delegate and optional queue for delegate callbacks to be performed on.
88
+ /// A nil queue implies that delegate callbacks should happen on the main queue. The delegate is stored weakly
89
+ - (void)setDelegate:(nullable id<CXProviderDelegate>)delegate queue:(nullable dispatch_queue_t)queue;
90
+
91
+ /// Report a new incoming call to the system.
92
+ ///
93
+ /// If completion is invoked with a non-nil `error`, the incoming call has been disallowed by the system and will not be displayed, so the provider should not proceed with the call.
94
+ ///
95
+ /// Completion block will be called on delegate queue, if specified, otherwise on a private serial queue.
96
+ - (void)reportNewIncomingCallWithUUID:(NSUUID *)UUID update:(CXCallUpdate *)update completion:(void (^)(NSError *_Nullable error))completion;
97
+
98
+ /// Report an update to call information.
99
+ - (void)reportCallWithUUID:(NSUUID *)UUID updated:(CXCallUpdate *)update;
100
+
101
+ /// Report that a call ended. A nil value for `dateEnded` results in the ended date being set to now.
102
+ - (void)reportCallWithUUID:(NSUUID *)UUID endedAtDate:(nullable NSDate *)dateEnded reason:(CXCallEndedReason)endedReason;
103
+
104
+ /// Report that an outgoing call started connecting. A nil value for `dateStartedConnecting` results in the started connecting date being set to now.
105
+ - (void)reportOutgoingCallWithUUID:(NSUUID *)UUID startedConnectingAtDate:(nullable NSDate *)dateStartedConnecting;
106
+
107
+ /// Report that an outgoing call connected. A nil value for `dateConnected` results in the connected date being set to now.
108
+ - (void)reportOutgoingCallWithUUID:(NSUUID *)UUID connectedAtDate:(nullable NSDate *)dateConnected;
109
+
110
+ /// From within a Notification Service Extension, request the containing application be launched to handle an incoming VoIP call. The application's PKPushRegistryDelegate must handle the push upon launch.
111
+ + (void)reportNewIncomingVoIPPushPayload:(NSDictionary *)dictionaryPayload completion:(nullable void (^)(NSError *_Nullable))completion API_UNAVAILABLE( tvos, watchos, macos) API_AVAILABLE(ios(14.5), macCatalyst(14.5));
112
+
113
+ /// The receiver's current configuration.
114
+ @property (nonatomic, readwrite, copy) CXProviderConfiguration *configuration;
115
+
116
+ /// Invalidate the receiver. All existing calls will be marked as ended in failure. The provider must be invalidated before it is deallocated.
117
+ - (void)invalidate;
118
+
119
+ /// List of all transactions that are incomplete.
120
+ @property (nonatomic, readonly, copy) NSArray<CXTransaction *> *pendingTransactions;
121
+
122
+ /// Returns subset of call actions contained in any transaction in -pendingTransactions of the specified class and with the specified call UUID.
123
+ - (NSArray<__kindof CXCallAction *> *)pendingCallActionsOfClass:(Class)callActionClass withCallUUID:(NSUUID *)callUUID;
124
+
125
+ @end
126
+
127
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,42 @@
1
+ //
2
+ // CXProviderConfiguration.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), macos(11.0), watchos(9.0)) API_UNAVAILABLE(tvos)
13
+ @interface CXProviderConfiguration : NSObject <NSCopying>
14
+
15
+ /// Localized name of the provider
16
+ @property (nonatomic, readonly, copy, nullable) NSString *localizedName API_DEPRECATED("No longer supported", ios(10.0, 14.0), macCatalyst(13.0, 14.0), macos(11.0, 11.0)) API_UNAVAILABLE(tvos, watchos);
17
+
18
+ /// Name of resource in app's bundle to play as ringtone for incoming call
19
+ @property (nonatomic, strong, nullable) NSString *ringtoneSound;
20
+
21
+ @property (nonatomic, copy, nullable) NSData *iconTemplateImageData; // Image should be a square with side length of 40 points
22
+ @property (nonatomic) NSUInteger maximumCallGroups; // Default 2
23
+ @property (nonatomic) NSUInteger maximumCallsPerCallGroup; // Default 5
24
+
25
+ /// Whether this provider's calls should be included in the system's Recents list at the end of each call.
26
+ /// Default: YES
27
+ @property (nonatomic) BOOL includesCallsInRecents API_AVAILABLE(ios(11.0), macCatalyst(13.0), macos(11.0), watchos(9.0));
28
+
29
+ @property (nonatomic) BOOL supportsVideo; // Default NO
30
+
31
+ @property (nonatomic) BOOL supportsAudioTranslation API_AVAILABLE(ios(26.0));
32
+
33
+ // Numbers are of type CXHandleType
34
+ @property (nonatomic, copy) NSSet<NSNumber *> *supportedHandleTypes;
35
+
36
+ - (instancetype)init NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(14.0), macCatalyst(14.0), macos(11.0), watchos(9.0)) API_UNAVAILABLE(tvos);
37
+ - (instancetype)initWithLocalizedName:(NSString *)localizedName API_DEPRECATED_WITH_REPLACEMENT("init", ios(10.0, 14.0), macCatalyst(13.0, 14.0), macos(11.0, 11.0)) API_UNAVAILABLE(tvos, watchos);
38
+
39
+
40
+ @end
41
+
42
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,27 @@
1
+ //
2
+ // CXSetGroupCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXSetGroupCallAction : CXCallAction
14
+
15
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID callUUIDToGroupWith:(nullable NSUUID *)callUUIDToGroupWith NS_DESIGNATED_INITIALIZER;
16
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
18
+
19
+ /// The UUID of another call to group with.
20
+ ///
21
+ /// - If the call for this action's UUID is already in a group, it should leave that group if necessary.
22
+ /// - If nil, leave any group the call is currently in.
23
+ @property (nonatomic, copy, nullable) NSUUID *callUUIDToGroupWith;
24
+
25
+ @end
26
+
27
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // CXSetHeldCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXSetHeldCallAction : CXCallAction
14
+
15
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID onHold:(BOOL)onHold NS_DESIGNATED_INITIALIZER;
16
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
18
+
19
+ @property (nonatomic, getter=isOnHold) BOOL onHold;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,23 @@
1
+ //
2
+ // CXSetMutedCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2016 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
13
+ @interface CXSetMutedCallAction : CXCallAction
14
+
15
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID muted:(BOOL)muted;
16
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
18
+
19
+ @property (nonatomic, getter=isMuted) BOOL muted;
20
+
21
+ @end
22
+
23
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,40 @@
1
+ //
2
+ // CXSetTranslatingCallAction.h
3
+ // CallKit
4
+ //
5
+ // Created by David Evans on 2/27/25.
6
+ // Copyright © 2025 Apple Inc. All rights reserved.
7
+ //
8
+
9
+ #import <CallKit/CXBase.h>
10
+ #import <CallKit/CXCallAction.h>
11
+
12
+ NS_SWIFT_SENDABLE
13
+ typedef NS_ENUM(NSInteger, CXTranslationEngine) {
14
+ CXTranslationEngineDefault,
15
+ CXTranslationEngineCustom,
16
+ };
17
+
18
+ NS_ASSUME_NONNULL_BEGIN
19
+ /**
20
+ CXSetTranslatingCallAction is supported after call is connected.
21
+ System offered translation is only supported when using Apple's VoiceProcessor for call IO
22
+ */
23
+ NS_SWIFT_SENDABLE
24
+ CX_EXTERN
25
+ API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(macCatalyst, macos, tvos, watchos, visionos)
26
+ @interface CXSetTranslatingCallAction : CXCallAction <NSSecureCoding>
27
+
28
+ @property (nonatomic, readonly) BOOL isTranslating;
29
+ @property (nonatomic, readonly, strong) NSString * localLanguage;
30
+ @property (nonatomic, readonly, strong) NSString * remoteLanguage;
31
+
32
+ - (instancetype)initWithCallUUID:(NSUUID *)uuid isTranslating:(BOOL)isTranslating localLanguage:(NSString *)localLanguage remoteLanguage:(NSString *)remoteLanguage NS_DESIGNATED_INITIALIZER;
33
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
34
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
35
+
36
+ - (void)fulfillUsingTranslationEngine:(CXTranslationEngine)translationEngine;
37
+
38
+ @end
39
+
40
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // CXStartCallAction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXCallAction.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXHandle;
13
+
14
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
15
+ @interface CXStartCallAction : CXCallAction
16
+
17
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID handle:(CXHandle *)handle NS_DESIGNATED_INITIALIZER;
18
+ - (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
19
+ - (instancetype)initWithCallUUID:(NSUUID *)callUUID NS_UNAVAILABLE;
20
+
21
+ /// Handle for the party to call
22
+ @property (nonatomic, copy) CXHandle *handle;
23
+
24
+ @property (nonatomic, copy, nullable) NSString *contactIdentifier;
25
+
26
+ @property (nonatomic, getter=isVideo) BOOL video;
27
+
28
+ /// Normally, providers can just call -[CXAction fulfill] to indicate action fulfillment. Use this method to note a specific date that the call started if it is different from [NSDate date]. A call is considered started when its invitation has been sent to the remote callee.
29
+ - (void)fulfillWithDateStarted:(NSDate *)dateStarted;
30
+
31
+ @end
32
+
33
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,34 @@
1
+ //
2
+ // CXTransaction.h
3
+ // CallKit
4
+ //
5
+ // Copyright © 2015 Apple. All rights reserved.
6
+ //
7
+
8
+ #import <CallKit/CXBase.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @class CXAction;
13
+
14
+ CX_EXTERN API_AVAILABLE(ios(10.0), macCatalyst(13.0), watchos(9.0)) API_UNAVAILABLE(macos, tvos)
15
+ @interface CXTransaction : NSObject <NSCopying, NSSecureCoding>
16
+
17
+ /// Unique ID
18
+ @property (nonatomic, readonly, copy) NSUUID *UUID;
19
+
20
+ /// Whether all actions have been completed
21
+ @property (nonatomic, readonly, assign, getter=isComplete) BOOL complete;
22
+
23
+ /// The list of actions contained by the receiver
24
+ @property (nonatomic, readonly, copy) NSArray<__kindof CXAction *> *actions;
25
+
26
+ - (instancetype)initWithActions:(NSArray<CXAction *> *)actions NS_DESIGNATED_INITIALIZER;
27
+ - (instancetype)initWithAction:(CXAction *)action;
28
+
29
+ /// Add the provided action to the receiver's list of actions
30
+ - (void)addAction:(CXAction *)action;
31
+
32
+ @end
33
+
34
+ NS_ASSUME_NONNULL_END