@snap/camera-kit 0.20.0 → 0.21.0
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.
- package/README.md +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts +644 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js +320 -0
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts +10 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js +17 -0
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts +167 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js +423 -0
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts +34 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js +63 -0
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts +109 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js +192 -0
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +3203 -0
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js +290 -0
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js +54 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts +97 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts +277 -0
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js +39 -2
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.d.ts +11 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js +18 -0
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts +89 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js +108 -0
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts +27 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js +49 -0
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts +1184 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js +507 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts +30 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js +59 -0
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts +29 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js +49 -0
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts +35 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js +58 -0
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts +30 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js +56 -0
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts +24 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js +42 -0
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts +40 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js +71 -0
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts +14 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js +21 -0
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/asset.d.ts +51 -0
- package/dist/generated-proto/pb_schema/content/asset.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/asset.js +74 -0
- package/dist/generated-proto/pb_schema/content/asset.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts +103 -0
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_reference.js +183 -0
- package/dist/generated-proto/pb_schema/content/media_reference.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_source.d.ts +19 -0
- package/dist/generated-proto/pb_schema/content/media_source.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_source.js +26 -0
- package/dist/generated-proto/pb_schema/content/media_source.js.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_types.d.ts +63 -0
- package/dist/generated-proto/pb_schema/content/media_types.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/content/media_types.js +71 -0
- package/dist/generated-proto/pb_schema/content/media_types.js.map +1 -0
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts +3 -0
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js +20 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts +2983 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js +2107 -0
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts +27 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js +49 -0
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts +31 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js +56 -0
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts +703 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.js +992 -0
- package/dist/generated-proto/pb_schema/snapdoc/media.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts +27 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js +36 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts +8 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js +15 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts +24 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js +45 -0
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts +68 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js +66 -0
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js.map +1 -0
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/docs/html/classes/CameraKit.html +2 -2
- package/docs/html/classes/CameraKitSession.html +2 -2
- package/docs/html/classes/CameraKitSource.html +2 -2
- package/docs/html/classes/LensPerformanceMeasurement.html +2 -2
- package/docs/html/classes/LensPerformanceMetrics.html +2 -2
- package/docs/html/classes/LensRepository.html +2 -2
- package/docs/html/classes/Transform2D.html +2 -2
- package/docs/html/classes/TypedCustomEvent.html +2 -2
- package/docs/html/classes/TypedEventTarget.html +2 -2
- package/docs/html/enums/Lens_CameraFacing.html +2 -2
- package/docs/html/functions/ConcatInjectable.html +2 -2
- package/docs/html/functions/Injectable.html +2 -2
- package/docs/html/functions/bootstrapCameraKit.html +2 -2
- package/docs/html/functions/createExtension.html +2 -2
- package/docs/html/functions/createImageSource.html +2 -2
- package/docs/html/functions/createMediaStreamSource.html +2 -2
- package/docs/html/functions/createVideoSource.html +2 -2
- package/docs/html/functions/estimateLensPerformance.html +2 -2
- package/docs/html/functions/filePickerFactory.html +2 -2
- package/docs/html/functions/lensSourcesFactory.html +2 -2
- package/docs/html/functions/remoteApiServicesFactory.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +3 -3
- package/docs/html/interfaces/BitmojiUserInfo.html +2 -2
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +2 -2
- package/docs/html/interfaces/CameraKitDeviceOptions.html +2 -2
- package/docs/html/interfaces/CameraKitSourceInfo.html +2 -2
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +2 -2
- package/docs/html/interfaces/ComputedFrameMetrics.html +2 -2
- package/docs/html/interfaces/CreateSessionOptions.html +2 -2
- package/docs/html/interfaces/EstimatedLensPerformance.html +2 -2
- package/docs/html/interfaces/FriendUserInfo.html +2 -2
- package/docs/html/interfaces/FunctionSourceOptions.html +2 -2
- package/docs/html/interfaces/Lens.html +2 -2
- package/docs/html/interfaces/LensCreator.html +2 -2
- package/docs/html/interfaces/LensLaunchData.html +2 -2
- package/docs/html/interfaces/LensSource.html +2 -2
- package/docs/html/interfaces/LensUserData.html +2 -2
- package/docs/html/interfaces/LoadAssetRequest.html +2 -2
- package/docs/html/interfaces/MediaStreamSourceOptions.html +2 -2
- package/docs/html/interfaces/Preview.html +2 -2
- package/docs/html/interfaces/RemoteApiRequest.html +2 -2
- package/docs/html/interfaces/RemoteApiResponse.html +2 -2
- package/docs/html/interfaces/RemoteApiService.html +2 -2
- package/docs/html/interfaces/Snapcode.html +2 -2
- package/docs/html/interfaces/UriCancelRequest.html +2 -2
- package/docs/html/interfaces/UriRequest.html +2 -2
- package/docs/html/interfaces/UriResponse.html +2 -2
- package/docs/html/interfaces/VideoSourceOptions.html +2 -2
- package/docs/html/modules.html +2 -2
- package/docs/html/types/ArgumentValidationError.html +2 -2
- package/docs/html/types/AssetLoader.html +2 -2
- package/docs/html/types/AssetResponse.html +1 -1
- package/docs/html/types/AssetTiming.html +2 -2
- package/docs/html/types/BenchmarkError.html +1 -1
- package/docs/html/types/BootstrapError.html +2 -2
- package/docs/html/types/CacheKeyNotFoundError.html +1 -1
- package/docs/html/types/CameraKitSessionEventListener.html +2 -2
- package/docs/html/types/CameraKitSessionEvents.html +2 -2
- package/docs/html/types/CameraKitSourceError.html +1 -1
- package/docs/html/types/ConfigurationError.html +2 -2
- package/docs/html/types/FetchHandler.html +1 -1
- package/docs/html/types/FilePicker.html +2 -2
- package/docs/html/types/FilePickerOptions.html +2 -2
- package/docs/html/types/FilePickerResult.html +2 -2
- package/docs/html/types/Keyboard.html +2 -2
- package/docs/html/types/KeyboardEvents.html +2 -2
- package/docs/html/types/LegalError.html +1 -1
- package/docs/html/types/LensAbortError.html +2 -2
- package/docs/html/types/LensAssetError.html +2 -2
- package/docs/html/types/LensContentValidationError.html +1 -1
- package/docs/html/types/LensError.html +1 -1
- package/docs/html/types/LensExecutionError.html +2 -2
- package/docs/html/types/LensImagePickerError.html +2 -2
- package/docs/html/types/LensLaunchParams.html +2 -2
- package/docs/html/types/LensMetricsEvents.html +2 -2
- package/docs/html/types/LensPerformanceCluster.html +1 -1
- package/docs/html/types/LensView.html +2 -2
- package/docs/html/types/LensWait.html +2 -2
- package/docs/html/types/Matrix.html +2 -2
- package/docs/html/types/PersistentStoreError.html +2 -2
- package/docs/html/types/PlatformNotSupportedError.html +2 -2
- package/docs/html/types/PublicContainer.html +2 -2
- package/docs/html/types/PublicServices.html +2 -2
- package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiServices.html +1 -1
- package/docs/html/types/RemoteApiStatus.html +2 -2
- package/docs/html/types/RenderTarget.html +2 -2
- package/docs/html/types/Uri.html +1 -1
- package/docs/html/types/WebGLError.html +1 -1
- package/docs/html/types/Zodiac.html +1 -1
- package/docs/html/variables/extensionRequestContext.html +2 -2
- package/docs/md/README.md +1 -1
- package/docs/md/classes/CameraKit.md +1 -1
- package/docs/md/classes/CameraKitSession.md +1 -1
- package/docs/md/classes/CameraKitSource.md +1 -1
- package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
- package/docs/md/classes/LensPerformanceMetrics.md +1 -1
- package/docs/md/classes/LensRepository.md +1 -1
- package/docs/md/classes/Transform2D.md +1 -1
- package/docs/md/classes/TypedCustomEvent.md +1 -1
- package/docs/md/classes/TypedEventTarget.md +1 -1
- package/docs/md/enums/Lens_CameraFacing.md +1 -1
- package/docs/md/interfaces/BitmojiUserInfo.md +1 -1
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
- package/docs/md/interfaces/CameraKitDeviceOptions.md +1 -1
- package/docs/md/interfaces/CameraKitSourceInfo.md +1 -1
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
- package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
- package/docs/md/interfaces/CreateSessionOptions.md +1 -1
- package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
- package/docs/md/interfaces/FriendUserInfo.md +1 -1
- package/docs/md/interfaces/FunctionSourceOptions.md +1 -1
- package/docs/md/interfaces/Lens.md +1 -1
- package/docs/md/interfaces/LensCreator.md +1 -1
- package/docs/md/interfaces/LensLaunchData.md +1 -1
- package/docs/md/interfaces/LensSource.md +1 -1
- package/docs/md/interfaces/LensUserData.md +1 -1
- package/docs/md/interfaces/LoadAssetRequest.md +1 -1
- package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
- package/docs/md/interfaces/Preview.md +1 -1
- package/docs/md/interfaces/RemoteApiRequest.md +1 -1
- package/docs/md/interfaces/RemoteApiResponse.md +1 -1
- package/docs/md/interfaces/RemoteApiService.md +1 -1
- package/docs/md/interfaces/Snapcode.md +1 -1
- package/docs/md/interfaces/UriCancelRequest.md +1 -1
- package/docs/md/interfaces/UriRequest.md +1 -1
- package/docs/md/interfaces/UriResponse.md +1 -1
- package/docs/md/interfaces/VideoSourceOptions.md +1 -1
- package/docs/md/modules.md +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "snapchat.cdp.cof";
|
|
3
|
+
export declare enum CameraDirection {
|
|
4
|
+
UNKNOWN_CAMERA_DIRECTION = 0,
|
|
5
|
+
FRONT = 1,
|
|
6
|
+
BACK = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare enum CameraContext {
|
|
10
|
+
UNKNOWN_CAMERA_CONTEXT = 0,
|
|
11
|
+
MAIN = 1,
|
|
12
|
+
REPLY = 2,
|
|
13
|
+
PROFILE = 3,
|
|
14
|
+
UNRECOGNIZED = -1
|
|
15
|
+
}
|
|
16
|
+
export declare enum CameraApi {
|
|
17
|
+
UNKNOWN_CAMERA_API = 0,
|
|
18
|
+
CAMERA_1 = 1,
|
|
19
|
+
CAMERA_2 = 2,
|
|
20
|
+
ARCORE = 3,
|
|
21
|
+
UNRECOGNIZED = -1
|
|
22
|
+
}
|
|
23
|
+
export declare enum FlashState {
|
|
24
|
+
UNKNOWN_FLASH_STATE = 0,
|
|
25
|
+
FLASH_ON = 1,
|
|
26
|
+
FLASH_OFF = 2,
|
|
27
|
+
UNRECOGNIZED = -1
|
|
28
|
+
}
|
|
29
|
+
export declare enum NightModeState {
|
|
30
|
+
UNKNOWN_NIGHT_MODE_STATE = 0,
|
|
31
|
+
NIGHT_MODE_ON = 1,
|
|
32
|
+
NIGHT_MODE_OFF = 2,
|
|
33
|
+
UNRECOGNIZED = -1
|
|
34
|
+
}
|
|
35
|
+
export declare enum PictureMode {
|
|
36
|
+
UNKNOWN_PICTURE_MODE = 0,
|
|
37
|
+
JPEG_PICTURE_MODE = 1,
|
|
38
|
+
GPU_PICTURE_MODE = 2,
|
|
39
|
+
UNRECOGNIZED = -1
|
|
40
|
+
}
|
|
41
|
+
export declare enum CaptureMode {
|
|
42
|
+
UNKNOWN_CAPTURE_MODE = 0,
|
|
43
|
+
DEFAULT_CAPTURE_MODE = 1,
|
|
44
|
+
TIMELINE_CAPTURE_MODE = 2,
|
|
45
|
+
UNRECOGNIZED = -1
|
|
46
|
+
}
|
|
47
|
+
export declare enum Camera2Level {
|
|
48
|
+
UNKNOWN_CAMERA2_LEVEL = 0,
|
|
49
|
+
LEGACY = 1,
|
|
50
|
+
LIMITED = 2,
|
|
51
|
+
FULL = 3,
|
|
52
|
+
LEVEL_3 = 4,
|
|
53
|
+
UNRECOGNIZED = -1
|
|
54
|
+
}
|
|
55
|
+
export interface CameraSignals {
|
|
56
|
+
cameraDirection: CameraDirection;
|
|
57
|
+
cameraContext: CameraContext;
|
|
58
|
+
cameraApi: CameraApi;
|
|
59
|
+
flashState: FlashState;
|
|
60
|
+
camera2Level: Camera2Level;
|
|
61
|
+
nightModeState: NightModeState;
|
|
62
|
+
isFirstCapture: boolean;
|
|
63
|
+
pictureMode: PictureMode;
|
|
64
|
+
captureMode: CaptureMode;
|
|
65
|
+
hasLens: boolean;
|
|
66
|
+
isLowLight: boolean;
|
|
67
|
+
isConcurrentCameraSupported: boolean;
|
|
68
|
+
}
|
|
69
|
+
export declare const CameraSignals: {
|
|
70
|
+
encode(message: CameraSignals, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CameraSignals;
|
|
72
|
+
fromPartial<I extends {
|
|
73
|
+
cameraDirection?: CameraDirection | undefined;
|
|
74
|
+
cameraContext?: CameraContext | undefined;
|
|
75
|
+
cameraApi?: CameraApi | undefined;
|
|
76
|
+
flashState?: FlashState | undefined;
|
|
77
|
+
camera2Level?: Camera2Level | undefined;
|
|
78
|
+
nightModeState?: NightModeState | undefined;
|
|
79
|
+
isFirstCapture?: boolean | undefined;
|
|
80
|
+
pictureMode?: PictureMode | undefined;
|
|
81
|
+
captureMode?: CaptureMode | undefined;
|
|
82
|
+
hasLens?: boolean | undefined;
|
|
83
|
+
isLowLight?: boolean | undefined;
|
|
84
|
+
isConcurrentCameraSupported?: boolean | undefined;
|
|
85
|
+
} & {
|
|
86
|
+
cameraDirection?: CameraDirection | undefined;
|
|
87
|
+
cameraContext?: CameraContext | undefined;
|
|
88
|
+
cameraApi?: CameraApi | undefined;
|
|
89
|
+
flashState?: FlashState | undefined;
|
|
90
|
+
camera2Level?: Camera2Level | undefined;
|
|
91
|
+
nightModeState?: NightModeState | undefined;
|
|
92
|
+
isFirstCapture?: boolean | undefined;
|
|
93
|
+
pictureMode?: PictureMode | undefined;
|
|
94
|
+
captureMode?: CaptureMode | undefined;
|
|
95
|
+
hasLens?: boolean | undefined;
|
|
96
|
+
isLowLight?: boolean | undefined;
|
|
97
|
+
isConcurrentCameraSupported?: boolean | undefined;
|
|
98
|
+
} & Record<Exclude<keyof I, keyof CameraSignals>, never>>(object: I): CameraSignals;
|
|
99
|
+
};
|
|
100
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
101
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
102
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
103
|
+
} : Partial<T>;
|
|
104
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
105
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
106
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
107
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=camera_provided_signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera_provided_signals.d.ts","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/camera_provided_signals.ts"],"names":[],"mappings":"AACA,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,oBAAY,eAAe;IACvB,wBAAwB,IAAI;IAC5B,KAAK,IAAI;IACT,IAAI,IAAI;IACR,YAAY,KAAK;CACpB;AACD,oBAAY,aAAa;IACrB,sBAAsB,IAAI;IAC1B,IAAI,IAAI;IACR,KAAK,IAAI;IACT,OAAO,IAAI;IACX,YAAY,KAAK;CACpB;AACD,oBAAY,SAAS;IACjB,kBAAkB,IAAI;IACtB,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,YAAY,KAAK;CACpB;AACD,oBAAY,UAAU;IAClB,mBAAmB,IAAI;IACvB,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,YAAY,KAAK;CACpB;AACD,oBAAY,cAAc;IACtB,wBAAwB,IAAI;IAC5B,aAAa,IAAI;IACjB,cAAc,IAAI;IAClB,YAAY,KAAK;CACpB;AACD,oBAAY,WAAW;IACnB,oBAAoB,IAAI;IACxB,iBAAiB,IAAI;IACrB,gBAAgB,IAA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C,SAAS,EAAE,GAAG;KACrL,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACrC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AACf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG;KAC3D,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CACpC,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export const protobufPackage = "snapchat.cdp.cof";
|
|
4
|
+
export var CameraDirection;
|
|
5
|
+
(function (CameraDirection) {
|
|
6
|
+
CameraDirection[CameraDirection["UNKNOWN_CAMERA_DIRECTION"] = 0] = "UNKNOWN_CAMERA_DIRECTION";
|
|
7
|
+
CameraDirection[CameraDirection["FRONT"] = 1] = "FRONT";
|
|
8
|
+
CameraDirection[CameraDirection["BACK"] = 2] = "BACK";
|
|
9
|
+
CameraDirection[CameraDirection["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
10
|
+
})(CameraDirection || (CameraDirection = {}));
|
|
11
|
+
export var CameraContext;
|
|
12
|
+
(function (CameraContext) {
|
|
13
|
+
CameraContext[CameraContext["UNKNOWN_CAMERA_CONTEXT"] = 0] = "UNKNOWN_CAMERA_CONTEXT";
|
|
14
|
+
CameraContext[CameraContext["MAIN"] = 1] = "MAIN";
|
|
15
|
+
CameraContext[CameraContext["REPLY"] = 2] = "REPLY";
|
|
16
|
+
CameraContext[CameraContext["PROFILE"] = 3] = "PROFILE";
|
|
17
|
+
CameraContext[CameraContext["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(CameraContext || (CameraContext = {}));
|
|
19
|
+
export var CameraApi;
|
|
20
|
+
(function (CameraApi) {
|
|
21
|
+
CameraApi[CameraApi["UNKNOWN_CAMERA_API"] = 0] = "UNKNOWN_CAMERA_API";
|
|
22
|
+
CameraApi[CameraApi["CAMERA_1"] = 1] = "CAMERA_1";
|
|
23
|
+
CameraApi[CameraApi["CAMERA_2"] = 2] = "CAMERA_2";
|
|
24
|
+
CameraApi[CameraApi["ARCORE"] = 3] = "ARCORE";
|
|
25
|
+
CameraApi[CameraApi["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
26
|
+
})(CameraApi || (CameraApi = {}));
|
|
27
|
+
export var FlashState;
|
|
28
|
+
(function (FlashState) {
|
|
29
|
+
FlashState[FlashState["UNKNOWN_FLASH_STATE"] = 0] = "UNKNOWN_FLASH_STATE";
|
|
30
|
+
FlashState[FlashState["FLASH_ON"] = 1] = "FLASH_ON";
|
|
31
|
+
FlashState[FlashState["FLASH_OFF"] = 2] = "FLASH_OFF";
|
|
32
|
+
FlashState[FlashState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
33
|
+
})(FlashState || (FlashState = {}));
|
|
34
|
+
export var NightModeState;
|
|
35
|
+
(function (NightModeState) {
|
|
36
|
+
NightModeState[NightModeState["UNKNOWN_NIGHT_MODE_STATE"] = 0] = "UNKNOWN_NIGHT_MODE_STATE";
|
|
37
|
+
NightModeState[NightModeState["NIGHT_MODE_ON"] = 1] = "NIGHT_MODE_ON";
|
|
38
|
+
NightModeState[NightModeState["NIGHT_MODE_OFF"] = 2] = "NIGHT_MODE_OFF";
|
|
39
|
+
NightModeState[NightModeState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
40
|
+
})(NightModeState || (NightModeState = {}));
|
|
41
|
+
export var PictureMode;
|
|
42
|
+
(function (PictureMode) {
|
|
43
|
+
PictureMode[PictureMode["UNKNOWN_PICTURE_MODE"] = 0] = "UNKNOWN_PICTURE_MODE";
|
|
44
|
+
PictureMode[PictureMode["JPEG_PICTURE_MODE"] = 1] = "JPEG_PICTURE_MODE";
|
|
45
|
+
PictureMode[PictureMode["GPU_PICTURE_MODE"] = 2] = "GPU_PICTURE_MODE";
|
|
46
|
+
PictureMode[PictureMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
47
|
+
})(PictureMode || (PictureMode = {}));
|
|
48
|
+
export var CaptureMode;
|
|
49
|
+
(function (CaptureMode) {
|
|
50
|
+
CaptureMode[CaptureMode["UNKNOWN_CAPTURE_MODE"] = 0] = "UNKNOWN_CAPTURE_MODE";
|
|
51
|
+
CaptureMode[CaptureMode["DEFAULT_CAPTURE_MODE"] = 1] = "DEFAULT_CAPTURE_MODE";
|
|
52
|
+
CaptureMode[CaptureMode["TIMELINE_CAPTURE_MODE"] = 2] = "TIMELINE_CAPTURE_MODE";
|
|
53
|
+
CaptureMode[CaptureMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
54
|
+
})(CaptureMode || (CaptureMode = {}));
|
|
55
|
+
export var Camera2Level;
|
|
56
|
+
(function (Camera2Level) {
|
|
57
|
+
Camera2Level[Camera2Level["UNKNOWN_CAMERA2_LEVEL"] = 0] = "UNKNOWN_CAMERA2_LEVEL";
|
|
58
|
+
Camera2Level[Camera2Level["LEGACY"] = 1] = "LEGACY";
|
|
59
|
+
Camera2Level[Camera2Level["LIMITED"] = 2] = "LIMITED";
|
|
60
|
+
Camera2Level[Camera2Level["FULL"] = 3] = "FULL";
|
|
61
|
+
Camera2Level[Camera2Level["LEVEL_3"] = 4] = "LEVEL_3";
|
|
62
|
+
Camera2Level[Camera2Level["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
63
|
+
})(Camera2Level || (Camera2Level = {}));
|
|
64
|
+
function createBaseCameraSignals() {
|
|
65
|
+
return {
|
|
66
|
+
cameraDirection: 0,
|
|
67
|
+
cameraContext: 0,
|
|
68
|
+
cameraApi: 0,
|
|
69
|
+
flashState: 0,
|
|
70
|
+
camera2Level: 0,
|
|
71
|
+
nightModeState: 0,
|
|
72
|
+
isFirstCapture: false,
|
|
73
|
+
pictureMode: 0,
|
|
74
|
+
captureMode: 0,
|
|
75
|
+
hasLens: false,
|
|
76
|
+
isLowLight: false,
|
|
77
|
+
isConcurrentCameraSupported: false,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export const CameraSignals = {
|
|
81
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
82
|
+
if (message.cameraDirection !== 0) {
|
|
83
|
+
writer.uint32(8).int32(message.cameraDirection);
|
|
84
|
+
}
|
|
85
|
+
if (message.cameraContext !== 0) {
|
|
86
|
+
writer.uint32(16).int32(message.cameraContext);
|
|
87
|
+
}
|
|
88
|
+
if (message.cameraApi !== 0) {
|
|
89
|
+
writer.uint32(24).int32(message.cameraApi);
|
|
90
|
+
}
|
|
91
|
+
if (message.flashState !== 0) {
|
|
92
|
+
writer.uint32(32).int32(message.flashState);
|
|
93
|
+
}
|
|
94
|
+
if (message.camera2Level !== 0) {
|
|
95
|
+
writer.uint32(40).int32(message.camera2Level);
|
|
96
|
+
}
|
|
97
|
+
if (message.nightModeState !== 0) {
|
|
98
|
+
writer.uint32(48).int32(message.nightModeState);
|
|
99
|
+
}
|
|
100
|
+
if (message.isFirstCapture === true) {
|
|
101
|
+
writer.uint32(56).bool(message.isFirstCapture);
|
|
102
|
+
}
|
|
103
|
+
if (message.pictureMode !== 0) {
|
|
104
|
+
writer.uint32(64).int32(message.pictureMode);
|
|
105
|
+
}
|
|
106
|
+
if (message.captureMode !== 0) {
|
|
107
|
+
writer.uint32(72).int32(message.captureMode);
|
|
108
|
+
}
|
|
109
|
+
if (message.hasLens === true) {
|
|
110
|
+
writer.uint32(80).bool(message.hasLens);
|
|
111
|
+
}
|
|
112
|
+
if (message.isLowLight === true) {
|
|
113
|
+
writer.uint32(88).bool(message.isLowLight);
|
|
114
|
+
}
|
|
115
|
+
if (message.isConcurrentCameraSupported === true) {
|
|
116
|
+
writer.uint32(96).bool(message.isConcurrentCameraSupported);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input, length) {
|
|
121
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBaseCameraSignals();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
message.cameraDirection = reader.int32();
|
|
129
|
+
break;
|
|
130
|
+
case 2:
|
|
131
|
+
message.cameraContext = reader.int32();
|
|
132
|
+
break;
|
|
133
|
+
case 3:
|
|
134
|
+
message.cameraApi = reader.int32();
|
|
135
|
+
break;
|
|
136
|
+
case 4:
|
|
137
|
+
message.flashState = reader.int32();
|
|
138
|
+
break;
|
|
139
|
+
case 5:
|
|
140
|
+
message.camera2Level = reader.int32();
|
|
141
|
+
break;
|
|
142
|
+
case 6:
|
|
143
|
+
message.nightModeState = reader.int32();
|
|
144
|
+
break;
|
|
145
|
+
case 7:
|
|
146
|
+
message.isFirstCapture = reader.bool();
|
|
147
|
+
break;
|
|
148
|
+
case 8:
|
|
149
|
+
message.pictureMode = reader.int32();
|
|
150
|
+
break;
|
|
151
|
+
case 9:
|
|
152
|
+
message.captureMode = reader.int32();
|
|
153
|
+
break;
|
|
154
|
+
case 10:
|
|
155
|
+
message.hasLens = reader.bool();
|
|
156
|
+
break;
|
|
157
|
+
case 11:
|
|
158
|
+
message.isLowLight = reader.bool();
|
|
159
|
+
break;
|
|
160
|
+
case 12:
|
|
161
|
+
message.isConcurrentCameraSupported = reader.bool();
|
|
162
|
+
break;
|
|
163
|
+
default:
|
|
164
|
+
reader.skipType(tag & 7);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return message;
|
|
169
|
+
},
|
|
170
|
+
fromPartial(object) {
|
|
171
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
172
|
+
const message = createBaseCameraSignals();
|
|
173
|
+
message.cameraDirection = (_a = object.cameraDirection) !== null && _a !== void 0 ? _a : 0;
|
|
174
|
+
message.cameraContext = (_b = object.cameraContext) !== null && _b !== void 0 ? _b : 0;
|
|
175
|
+
message.cameraApi = (_c = object.cameraApi) !== null && _c !== void 0 ? _c : 0;
|
|
176
|
+
message.flashState = (_d = object.flashState) !== null && _d !== void 0 ? _d : 0;
|
|
177
|
+
message.camera2Level = (_e = object.camera2Level) !== null && _e !== void 0 ? _e : 0;
|
|
178
|
+
message.nightModeState = (_f = object.nightModeState) !== null && _f !== void 0 ? _f : 0;
|
|
179
|
+
message.isFirstCapture = (_g = object.isFirstCapture) !== null && _g !== void 0 ? _g : false;
|
|
180
|
+
message.pictureMode = (_h = object.pictureMode) !== null && _h !== void 0 ? _h : 0;
|
|
181
|
+
message.captureMode = (_j = object.captureMode) !== null && _j !== void 0 ? _j : 0;
|
|
182
|
+
message.hasLens = (_k = object.hasLens) !== null && _k !== void 0 ? _k : false;
|
|
183
|
+
message.isLowLight = (_l = object.isLowLight) !== null && _l !== void 0 ? _l : false;
|
|
184
|
+
message.isConcurrentCameraSupported = (_m = object.isConcurrentCameraSupported) !== null && _m !== void 0 ? _m : false;
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
if (_m0.util.Long !== Long) {
|
|
189
|
+
_m0.util.Long = Long;
|
|
190
|
+
_m0.configure();
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=camera_provided_signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camera_provided_signals.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/camera_provided_signals.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAClD,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,6FAA4B,CAAA;IAC5B,uDAAS,CAAA;IACT,qDAAQ,CAAA;IACR,sEAAiB,CAAA;AACrB,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AACD,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,qFAA0B,CAAA;IAC1B,iDAAQ,CAAA;IACR,mDAAS,CAAA;IACT,uDAAW,CAAA;IACX,kEAAiB,CAAA;AACrB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;AACD,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACjB,qEAAsB,CAAA;IACtB,iDAAY,CAAA;IACZ,iDAAY,CAAA;IACZ,6CAAU,CAAA;IACV,0DAAiB,CAAA;AACrB,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AACD,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,yEAAuB,CAAA;IACvB,mDAAY,CAAA;IACZ,qDAAa,CAAA;IACb,4DAAiB,CAAA;AACrB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AACD,MAAM,CAAN,IAAY,cAKX;AALD,WAAY,cAAc;IACtB,2FAA4B,CAAA;IAC5B,qEAAiB,CAAA;IACjB,uEAAkB,CAAA;IAClB,oEAAiB,CAAA;AACrB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AACD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,6EAAwB,CAAA;IACxB,uEAAqB,CAAA;IACrB,qEAAoB,CAAA;IACpB,8DAAiB,CAAA;AACrB,CAAC,EALW,WAAW,KAA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KAAK,CAAC;QACxD,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,CAAC,CAAC;QAC9C,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,KAAK,CAAC;QAC1C,OAAO,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,KAAK,CAAC;QAChD,OAAO,CAAC,2BAA2B,GAAG,MAAA,MAAM,CAAC,2BAA2B,mCAAI,KAAK,CAAC;QAClF,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC;AASF,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IACxB,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACnB","sourcesContent":["import Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\nexport const protobufPackage = \"snapchat.cdp.cof\";\nexport enum CameraDirection {\n UNKNOWN_CAMERA_DIRECTION = 0,\n FRONT = 1,\n BACK = 2,\n UNRECOGNIZED = -1\n}\nexport enum CameraContext {\n UNKNOWN_CAMERA_CONTEXT = 0,\n MAIN = 1,\n REPLY = 2,\n PROFILE = 3,\n UNRECOGNIZED = -1\n}\nexport enum CameraApi {\n UNKNOWN_CAMERA_API = 0,\n CAMERA_1 = 1,\n CAMERA_2 = 2,\n ARCORE = 3,\n UNRECOGNIZED = -1\n}\nexport enum FlashState {\n UNKNOWN_FLASH_STATE = 0,\n FLASH_ON = 1,\n FLASH_OFF = 2,\n UNRECOGNIZED = -1\n}\nexport enum NightModeState {\n UNKNOWN_NIGHT_MODE_STATE = 0,\n NIGHT_MODE_ON = 1,\n NIGHT_MODE_OFF = 2,\n UNRECOGNIZED = -1\n}\nexport enum PictureMode {\n UNKNOWN_PICTURE_MODE = 0,\n JPEG_PICTURE_MODE = 1,\n GPU_PICTURE_MODE = 2,\n UNRECOGNIZED = -1\n}\nexport enum CaptureMode {\n UNKNOWN_CAPTURE_MODE = 0,\n DEFAULT_CAPTURE_MODE = 1,\n TIMELINE_CAPTURE_MODE = 2,\n UNRECOGNIZED = -1\n}\nexport enum Camera2Level {\n UNKNOWN_CAMERA2_LEVEL = 0,\n LEGACY = 1,\n LIMITED = 2,\n FULL = 3,\n LEVEL_3 = 4,\n UNRECOGNIZED = -1\n}\nexport interface CameraSignals {\n cameraDirection: CameraDirection;\n cameraContext: CameraContext;\n cameraApi: CameraApi;\n flashState: FlashState;\n camera2Level: Camera2Level;\n nightModeState: NightModeState;\n isFirstCapture: boolean;\n pictureMode: PictureMode;\n captureMode: CaptureMode;\n hasLens: boolean;\n isLowLight: boolean;\n isConcurrentCameraSupported: boolean;\n}\nfunction createBaseCameraSignals(): CameraSignals {\n return {\n cameraDirection: 0,\n cameraContext: 0,\n cameraApi: 0,\n flashState: 0,\n camera2Level: 0,\n nightModeState: 0,\n isFirstCapture: false,\n pictureMode: 0,\n captureMode: 0,\n hasLens: false,\n isLowLight: false,\n isConcurrentCameraSupported: false,\n };\n}\nexport const CameraSignals = {\n encode(message: CameraSignals, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.cameraDirection !== 0) {\n writer.uint32(8).int32(message.cameraDirection);\n }\n if (message.cameraContext !== 0) {\n writer.uint32(16).int32(message.cameraContext);\n }\n if (message.cameraApi !== 0) {\n writer.uint32(24).int32(message.cameraApi);\n }\n if (message.flashState !== 0) {\n writer.uint32(32).int32(message.flashState);\n }\n if (message.camera2Level !== 0) {\n writer.uint32(40).int32(message.camera2Level);\n }\n if (message.nightModeState !== 0) {\n writer.uint32(48).int32(message.nightModeState);\n }\n if (message.isFirstCapture === true) {\n writer.uint32(56).bool(message.isFirstCapture);\n }\n if (message.pictureMode !== 0) {\n writer.uint32(64).int32(message.pictureMode);\n }\n if (message.captureMode !== 0) {\n writer.uint32(72).int32(message.captureMode);\n }\n if (message.hasLens === true) {\n writer.uint32(80).bool(message.hasLens);\n }\n if (message.isLowLight === true) {\n writer.uint32(88).bool(message.isLowLight);\n }\n if (message.isConcurrentCameraSupported === true) {\n writer.uint32(96).bool(message.isConcurrentCameraSupported);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): CameraSignals {\n const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseCameraSignals();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.cameraDirection = reader.int32() as any;\n break;\n case 2:\n message.cameraContext = reader.int32() as any;\n break;\n case 3:\n message.cameraApi = reader.int32() as any;\n break;\n case 4:\n message.flashState = reader.int32() as any;\n break;\n case 5:\n message.camera2Level = reader.int32() as any;\n break;\n case 6:\n message.nightModeState = reader.int32() as any;\n break;\n case 7:\n message.isFirstCapture = reader.bool();\n break;\n case 8:\n message.pictureMode = reader.int32() as any;\n break;\n case 9:\n message.captureMode = reader.int32() as any;\n break;\n case 10:\n message.hasLens = reader.bool();\n break;\n case 11:\n message.isLowLight = reader.bool();\n break;\n case 12:\n message.isConcurrentCameraSupported = reader.bool();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<CameraSignals>, I>>(object: I): CameraSignals {\n const message = createBaseCameraSignals();\n message.cameraDirection = object.cameraDirection ?? 0;\n message.cameraContext = object.cameraContext ?? 0;\n message.cameraApi = object.cameraApi ?? 0;\n message.flashState = object.flashState ?? 0;\n message.camera2Level = object.camera2Level ?? 0;\n message.nightModeState = object.nightModeState ?? 0;\n message.isFirstCapture = object.isFirstCapture ?? false;\n message.pictureMode = object.pictureMode ?? 0;\n message.captureMode = object.captureMode ?? 0;\n message.hasLens = object.hasLens ?? false;\n message.isLowLight = object.isLowLight ?? false;\n message.isConcurrentCameraSupported = object.isConcurrentCameraSupported ?? false;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|