@snap/camera-kit 0.7.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/LICENSE.md +6247 -0
- package/README.md +166 -0
- package/docs/html/.nojekyll +1 -0
- package/docs/html/assets/highlight.css +106 -0
- package/docs/html/assets/main.js +54 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1225 -0
- package/docs/html/assets/widgets.png +0 -0
- package/docs/html/assets/widgets@2x.png +0 -0
- package/docs/html/classes/CameraKit.html +121 -0
- package/docs/html/classes/CameraKitSession.html +347 -0
- package/docs/html/classes/CameraKitSource.html +152 -0
- package/docs/html/classes/LensPerformanceMeasurement.html +115 -0
- package/docs/html/classes/LensPerformanceMetrics.html +76 -0
- package/docs/html/classes/LensRepository.html +171 -0
- package/docs/html/classes/LensSources.html +82 -0
- package/docs/html/classes/Transform2D.html +99 -0
- package/docs/html/classes/TypedCustomEvent.html +109 -0
- package/docs/html/classes/TypedEventTarget.html +146 -0
- package/docs/html/functions/Injectable.html +193 -0
- package/docs/html/functions/bootstrapCameraKit.html +158 -0
- package/docs/html/functions/createExtension.html +127 -0
- package/docs/html/functions/createImageSource.html +123 -0
- package/docs/html/functions/createMediaStreamSource.html +123 -0
- package/docs/html/functions/createUserMediaSource.html +127 -0
- package/docs/html/functions/createVideoSource.html +124 -0
- package/docs/html/functions/estimateLensPerformance.html +116 -0
- package/docs/html/functions/getRequiredBootstrapURLs.html +124 -0
- package/docs/html/functions/lensSourcesFactory.html +116 -0
- package/docs/html/functions/uriHandlersFactory.html +118 -0
- package/docs/html/index.html +208 -0
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +132 -0
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +121 -0
- package/docs/html/interfaces/ComputedFrameMetrics.html +70 -0
- package/docs/html/interfaces/CreateSessionOptions.html +77 -0
- package/docs/html/interfaces/EstimatedLensPerformance.html +78 -0
- package/docs/html/interfaces/Lens.html +115 -0
- package/docs/html/interfaces/LensSource.html +113 -0
- package/docs/html/interfaces/MediaStreamSourceOptions.html +65 -0
- package/docs/html/interfaces/UriCancelRequest.html +65 -0
- package/docs/html/interfaces/UriHandler.html +128 -0
- package/docs/html/interfaces/UriRequest.html +80 -0
- package/docs/html/interfaces/UriResponse.html +80 -0
- package/docs/html/interfaces/VideoSourceOptions.html +60 -0
- package/docs/html/modules.html +198 -0
- package/docs/html/types/AssetLoader.html +126 -0
- package/docs/html/types/AssetTiming.html +116 -0
- package/docs/html/types/BenchmarkError.html +107 -0
- package/docs/html/types/BootstrapError.html +110 -0
- package/docs/html/types/CacheKeyNotFoundError.html +107 -0
- package/docs/html/types/CameraKitDeviceInfo.html +114 -0
- package/docs/html/types/CameraKitSessionEventListener.html +109 -0
- package/docs/html/types/CameraKitSessionEvents.html +118 -0
- package/docs/html/types/CameraKitSourceError.html +107 -0
- package/docs/html/types/CameraKitSourceInfo.html +107 -0
- package/docs/html/types/CameraKitSourceOptions.html +113 -0
- package/docs/html/types/ConfigurationError.html +109 -0
- package/docs/html/types/Keyboard.html +196 -0
- package/docs/html/types/KeyboardEvents.html +109 -0
- package/docs/html/types/LegalError.html +107 -0
- package/docs/html/types/LensAssetError.html +109 -0
- package/docs/html/types/LensContentValidationError.html +107 -0
- package/docs/html/types/LensError.html +107 -0
- package/docs/html/types/LensExecutionError.html +114 -0
- package/docs/html/types/LensImagePickerError.html +110 -0
- package/docs/html/types/LensLaunchParams.html +109 -0
- package/docs/html/types/LensMetricsEvents.html +110 -0
- package/docs/html/types/LensPerformanceCluster.html +107 -0
- package/docs/html/types/LensView.html +119 -0
- package/docs/html/types/LensWait.html +111 -0
- package/docs/html/types/PersistentStoreError.html +109 -0
- package/docs/html/types/PlatformNotSupportedError.html +110 -0
- package/docs/html/types/PublicContainer.html +110 -0
- package/docs/html/types/RenderTarget.html +111 -0
- package/docs/html/types/Uri.html +107 -0
- package/docs/html/types/UriHandlers.html +109 -0
- package/docs/html/types/WebGLError.html +107 -0
- package/docs/html/variables/extensionRequestContext.html +109 -0
- package/docs/md/.nojekyll +1 -0
- package/docs/md/README.md +168 -0
- package/docs/md/classes/CameraKit.md +94 -0
- package/docs/md/classes/CameraKitSession.md +359 -0
- package/docs/md/classes/CameraKitSource.md +110 -0
- package/docs/md/classes/LensPerformanceMeasurement.md +77 -0
- package/docs/md/classes/LensPerformanceMetrics.md +37 -0
- package/docs/md/classes/LensRepository.md +145 -0
- package/docs/md/classes/LensSources.md +29 -0
- package/docs/md/classes/Transform2D.md +55 -0
- package/docs/md/classes/TypedCustomEvent.md +65 -0
- package/docs/md/classes/TypedEventTarget.md +103 -0
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +106 -0
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +55 -0
- package/docs/md/interfaces/ComputedFrameMetrics.md +29 -0
- package/docs/md/interfaces/CreateSessionOptions.md +35 -0
- package/docs/md/interfaces/EstimatedLensPerformance.md +38 -0
- package/docs/md/interfaces/Lens.md +84 -0
- package/docs/md/interfaces/LensSource.md +68 -0
- package/docs/md/interfaces/MediaStreamSourceOptions.md +22 -0
- package/docs/md/interfaces/UriCancelRequest.md +22 -0
- package/docs/md/interfaces/UriHandler.md +63 -0
- package/docs/md/interfaces/UriRequest.md +43 -0
- package/docs/md/interfaces/UriResponse.md +43 -0
- package/docs/md/interfaces/VideoSourceOptions.md +15 -0
- package/docs/md/modules.md +827 -0
- package/lib/CameraKit.d.ts +170 -0
- package/lib/CameraKit.js +145 -0
- package/lib/CameraKit.js.map +1 -0
- package/lib/__tests__/data.d.ts +9 -0
- package/lib/__tests__/data.js +50 -0
- package/lib/__tests__/data.js.map +1 -0
- package/lib/__tests__/deferred.d.ts +16 -0
- package/lib/__tests__/deferred.js +29 -0
- package/lib/__tests__/deferred.js.map +1 -0
- package/lib/__tests__/jest.matchers.d.ts +17 -0
- package/lib/__tests__/jest.matchers.js +67 -0
- package/lib/__tests__/jest.matchers.js.map +1 -0
- package/lib/assertPlatformSupported.d.ts +4 -0
- package/lib/assertPlatformSupported.js +10 -0
- package/lib/assertPlatformSupported.js.map +1 -0
- package/lib/benchmark/benchmarkGflops.d.ts +16 -0
- package/lib/benchmark/benchmarkGflops.js +129 -0
- package/lib/benchmark/benchmarkGflops.js.map +1 -0
- package/lib/benchmark/estimateLensPerformanceCluster.d.ts +33 -0
- package/lib/benchmark/estimateLensPerformanceCluster.js +48 -0
- package/lib/benchmark/estimateLensPerformanceCluster.js.map +1 -0
- package/lib/benchmark/webglUtils.d.ts +7 -0
- package/lib/benchmark/webglUtils.js +87 -0
- package/lib/benchmark/webglUtils.js.map +1 -0
- package/lib/bootstrapCameraKit.d.ts +96 -0
- package/lib/bootstrapCameraKit.js +204 -0
- package/lib/bootstrapCameraKit.js.map +1 -0
- package/lib/common/__mocks__/loadScript.d.ts +1 -0
- package/lib/common/__mocks__/loadScript.js +10 -0
- package/lib/common/__mocks__/loadScript.js.map +1 -0
- package/lib/common/assertions.d.ts +27 -0
- package/lib/common/assertions.js +39 -0
- package/lib/common/assertions.js.map +1 -0
- package/lib/common/cameraKitUserAgent.d.ts +34 -0
- package/lib/common/cameraKitUserAgent.js +216 -0
- package/lib/common/cameraKitUserAgent.js.map +1 -0
- package/lib/common/copyDefinedProperties.d.ts +13 -0
- package/lib/common/copyDefinedProperties.js +16 -0
- package/lib/common/copyDefinedProperties.js.map +1 -0
- package/lib/common/entries.d.ts +3 -0
- package/lib/common/entries.js +3 -0
- package/lib/common/entries.js.map +1 -0
- package/lib/common/errorHelpers.d.ts +10 -0
- package/lib/common/errorHelpers.js +24 -0
- package/lib/common/errorHelpers.js.map +1 -0
- package/lib/common/getFilename.d.ts +1 -0
- package/lib/common/getFilename.js +4 -0
- package/lib/common/getFilename.js.map +1 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +3 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/loadScript.d.ts +1 -0
- package/lib/common/loadScript.js +11 -0
- package/lib/common/loadScript.js.map +1 -0
- package/lib/common/locale.d.ts +2 -0
- package/lib/common/locale.js +11 -0
- package/lib/common/locale.js.map +1 -0
- package/lib/common/localization.d.ts +43 -0
- package/lib/common/localization.js +43 -0
- package/lib/common/localization.js.map +1 -0
- package/lib/common/memoize.d.ts +8 -0
- package/lib/common/memoize.js +15 -0
- package/lib/common/memoize.js.map +1 -0
- package/lib/common/pageVisibility.d.ts +20 -0
- package/lib/common/pageVisibility.js +62 -0
- package/lib/common/pageVisibility.js.map +1 -0
- package/lib/common/time.d.ts +1 -0
- package/lib/common/time.js +2 -0
- package/lib/common/time.js.map +1 -0
- package/lib/common/typeguards.d.ts +53 -0
- package/lib/common/typeguards.js +92 -0
- package/lib/common/typeguards.js.map +1 -0
- package/lib/common/types.d.ts +10 -0
- package/lib/common/types.js +2 -0
- package/lib/common/types.js.map +1 -0
- package/lib/common/validate.d.ts +14 -0
- package/lib/common/validate.js +104 -0
- package/lib/common/validate.js.map +1 -0
- package/lib/configuration.d.ts +92 -0
- package/lib/configuration.js +36 -0
- package/lib/configuration.js.map +1 -0
- package/lib/configurationOverrides.d.ts +12 -0
- package/lib/configurationOverrides.js +41 -0
- package/lib/configurationOverrides.js.map +1 -0
- package/lib/dependency-injection/Container.d.ts +177 -0
- package/lib/dependency-injection/Container.js +160 -0
- package/lib/dependency-injection/Container.js.map +1 -0
- package/lib/dependency-injection/Injectable.d.ts +39 -0
- package/lib/dependency-injection/Injectable.js +18 -0
- package/lib/dependency-injection/Injectable.js.map +1 -0
- package/lib/dependency-injection/PartialContainer.d.ts +81 -0
- package/lib/dependency-injection/PartialContainer.js +85 -0
- package/lib/dependency-injection/PartialContainer.js.map +1 -0
- package/lib/dependency-injection/RootServices.d.ts +62 -0
- package/lib/dependency-injection/RootServices.js +2 -0
- package/lib/dependency-injection/RootServices.js.map +1 -0
- package/lib/dependency-injection/types.d.ts +56 -0
- package/lib/dependency-injection/types.js +2 -0
- package/lib/dependency-injection/types.js.map +1 -0
- package/lib/environment.json +1 -0
- package/lib/events/TypedCustomEvent.d.ts +10 -0
- package/lib/events/TypedCustomEvent.js +11 -0
- package/lib/events/TypedCustomEvent.js.map +1 -0
- package/lib/events/TypedEventTarget.d.ts +25 -0
- package/lib/events/TypedEventTarget.js +57 -0
- package/lib/events/TypedEventTarget.js.map +1 -0
- package/lib/events/scan.d.ts +15 -0
- package/lib/events/scan.js +46 -0
- package/lib/events/scan.js.map +1 -0
- package/lib/extensions/LensSources.d.ts +58 -0
- package/lib/extensions/LensSources.js +50 -0
- package/lib/extensions/LensSources.js.map +1 -0
- package/lib/extensions/UriHandlers.d.ts +54 -0
- package/lib/extensions/UriHandlers.js +93 -0
- package/lib/extensions/UriHandlers.js.map +1 -0
- package/lib/extensions/extensionRequestContext.d.ts +4 -0
- package/lib/extensions/extensionRequestContext.js +14 -0
- package/lib/extensions/extensionRequestContext.js.map +1 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +5603 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.js +522 -0
- package/lib/generated-proto/blizzard/cameraKitEvents.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +98 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +260 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +543 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +429 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +100 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +164 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +395 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +644 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +185 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +172 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +86 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +234 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +854 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +629 -0
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +86 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js +185 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.d.ts +95 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js +104 -0
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark_name.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +10212 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js +1300 -0
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +401 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.js +525 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +1287 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.js +135 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4208 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.js +1053 -0
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +102 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js +165 -0
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.js.map +1 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.d.ts +8 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.js +17 -0
- package/lib/generated-proto/pb_schema/cdp/cof/namespace.js.map +1 -0
- package/lib/generated-proto/pb_schema/common/ruid.d.ts +75 -0
- package/lib/generated-proto/pb_schema/common/ruid.js +96 -0
- package/lib/generated-proto/pb_schema/common/ruid.js.map +1 -0
- package/lib/generated-proto/pb_schema/common/value.d.ts +131 -0
- package/lib/generated-proto/pb_schema/common/value.js +204 -0
- package/lib/generated-proto/pb_schema/common/value.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.d.ts +1 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.js +9 -0
- package/lib/generated-proto/pb_schema/google/api/annotations.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/api/http.d.ts +3636 -0
- package/lib/generated-proto/pb_schema/google/api/http.js +271 -0
- package/lib/generated-proto/pb_schema/google/api/http.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +139 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.js +94 -0
- package/lib/generated-proto/pb_schema/google/protobuf/any.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +50968 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js +2962 -0
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +98 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js +82 -0
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +173 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js +332 -0
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.d.ts +42 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.js +52 -0
- package/lib/generated-proto/pb_schema/lenses/geocircle.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.d.ts +32 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.js +50 -0
- package/lib/generated-proto/pb_schema/lenses/geopoint.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.d.ts +29 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.js +43 -0
- package/lib/generated-proto/pb_schema/lenses/launch_params.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +365 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.js +216 -0
- package/lib/generated-proto/pb_schema/lenses/launchdata.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/lures.d.ts +113 -0
- package/lib/generated-proto/pb_schema/lenses/lures.js +64 -0
- package/lib/generated-proto/pb_schema/lenses/lures.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.d.ts +29 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.js +43 -0
- package/lib/generated-proto/pb_schema/lenses/persistent_store.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +921 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.js +954 -0
- package/lib/generated-proto/pb_schema/lenses/snappable.js.map +1 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +247 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.js +362 -0
- package/lib/generated-proto/pb_schema/lenses/user_data.js.map +1 -0
- package/lib/handlers/HandlerChainBuilder.d.ts +95 -0
- package/lib/handlers/HandlerChainBuilder.js +187 -0
- package/lib/handlers/HandlerChainBuilder.js.map +1 -0
- package/lib/handlers/arrayBufferParsingHandler.d.ts +10 -0
- package/lib/handlers/arrayBufferParsingHandler.js +18 -0
- package/lib/handlers/arrayBufferParsingHandler.js.map +1 -0
- package/lib/handlers/batchingHandler.d.ts +25 -0
- package/lib/handlers/batchingHandler.js +79 -0
- package/lib/handlers/batchingHandler.js.map +1 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.d.ts +12 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.js +19 -0
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.js.map +1 -0
- package/lib/handlers/debugHandler.d.ts +8 -0
- package/lib/handlers/debugHandler.js +27 -0
- package/lib/handlers/debugHandler.js.map +1 -0
- package/lib/handlers/defaultFetchHandler.d.ts +15 -0
- package/lib/handlers/defaultFetchHandler.js +29 -0
- package/lib/handlers/defaultFetchHandler.js.map +1 -0
- package/lib/handlers/headersModifyingFetchHandler.d.ts +8 -0
- package/lib/handlers/headersModifyingFetchHandler.js +13 -0
- package/lib/handlers/headersModifyingFetchHandler.js.map +1 -0
- package/lib/handlers/index.d.ts +2 -0
- package/lib/handlers/index.js +3 -0
- package/lib/handlers/index.js.map +1 -0
- package/lib/handlers/mappingHandler.d.ts +15 -0
- package/lib/handlers/mappingHandler.js +65 -0
- package/lib/handlers/mappingHandler.js.map +1 -0
- package/lib/handlers/noCorsRetryingFetchHandler.d.ts +48 -0
- package/lib/handlers/noCorsRetryingFetchHandler.js +94 -0
- package/lib/handlers/noCorsRetryingFetchHandler.js.map +1 -0
- package/lib/handlers/persistingHandler.d.ts +14 -0
- package/lib/handlers/persistingHandler.js +71 -0
- package/lib/handlers/persistingHandler.js.map +1 -0
- package/lib/handlers/rateLimitingHandler.d.ts +20 -0
- package/lib/handlers/rateLimitingHandler.js +43 -0
- package/lib/handlers/rateLimitingHandler.js.map +1 -0
- package/lib/handlers/requestStateEmittingHandler.d.ts +29 -0
- package/lib/handlers/requestStateEmittingHandler.js +43 -0
- package/lib/handlers/requestStateEmittingHandler.js.map +1 -0
- package/lib/handlers/responseCachingHandler.d.ts +27 -0
- package/lib/handlers/responseCachingHandler.js +94 -0
- package/lib/handlers/responseCachingHandler.js.map +1 -0
- package/lib/handlers/retryingHandler.d.ts +37 -0
- package/lib/handlers/retryingHandler.js +73 -0
- package/lib/handlers/retryingHandler.js.map +1 -0
- package/lib/handlers/timeoutHandler.d.ts +18 -0
- package/lib/handlers/timeoutHandler.js +30 -0
- package/lib/handlers/timeoutHandler.js.map +1 -0
- package/lib/index.d.ts +33 -0
- package/lib/index.js +32 -0
- package/lib/index.js.map +1 -0
- package/lib/legal/legalPrompt.d.ts +17 -0
- package/lib/legal/legalPrompt.js +144 -0
- package/lib/legal/legalPrompt.js.map +1 -0
- package/lib/legal/legalState.d.ts +50 -0
- package/lib/legal/legalState.js +149 -0
- package/lib/legal/legalState.js.map +1 -0
- package/lib/lens/Lens.d.ts +71 -0
- package/lib/lens/Lens.js +63 -0
- package/lib/lens/Lens.js.map +1 -0
- package/lib/lens/LensLaunchParams.d.ts +19 -0
- package/lib/lens/LensLaunchParams.js +38 -0
- package/lib/lens/LensLaunchParams.js.map +1 -0
- package/lib/lens/LensPersistenceStore.d.ts +7 -0
- package/lib/lens/LensPersistenceStore.js +20 -0
- package/lib/lens/LensPersistenceStore.js.map +1 -0
- package/lib/lens/LensRepository.d.ts +134 -0
- package/lib/lens/LensRepository.js +239 -0
- package/lib/lens/LensRepository.js.map +1 -0
- package/lib/lens/assets/LensAssetRepository.d.ts +66 -0
- package/lib/lens/assets/LensAssetRepository.js +179 -0
- package/lib/lens/assets/LensAssetRepository.js.map +1 -0
- package/lib/lens/assets/LensAssetsProvider.d.ts +21 -0
- package/lib/lens/assets/LensAssetsProvider.js +41 -0
- package/lib/lens/assets/LensAssetsProvider.js.map +1 -0
- package/lib/lens/assets/deviceDependentAssetLoader.d.ts +11 -0
- package/lib/lens/assets/deviceDependentAssetLoader.js +58 -0
- package/lib/lens/assets/deviceDependentAssetLoader.js.map +1 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.d.ts +10 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.js +26 -0
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -0
- package/lib/lens/assets/staticAssetLoader.d.ts +10 -0
- package/lib/lens/assets/staticAssetLoader.js +24 -0
- package/lib/lens/assets/staticAssetLoader.js.map +1 -0
- package/lib/lens/index.d.ts +7 -0
- package/lib/lens/index.js +7 -0
- package/lib/lens/index.js.map +1 -0
- package/lib/lens/lensEnvelopeUtil.d.ts +5 -0
- package/lib/lens/lensEnvelopeUtil.js +19 -0
- package/lib/lens/lensEnvelopeUtil.js.map +1 -0
- package/lib/lens/lensHttpUtil.d.ts +4 -0
- package/lib/lens/lensHttpUtil.js +30 -0
- package/lib/lens/lensHttpUtil.js.map +1 -0
- package/lib/lens-client-interface/exif.d.ts +20 -0
- package/lib/lens-client-interface/exif.js +61 -0
- package/lib/lens-client-interface/exif.js.map +1 -0
- package/lib/lens-client-interface/imagePicker.d.ts +7 -0
- package/lib/lens-client-interface/imagePicker.js +128 -0
- package/lib/lens-client-interface/imagePicker.js.map +1 -0
- package/lib/lens-client-interface/lensClientInterface.d.ts +13 -0
- package/lib/lens-client-interface/lensClientInterface.js +30 -0
- package/lib/lens-client-interface/lensClientInterface.js.map +1 -0
- package/lib/lens-core-module/generated-types.d.ts +426 -0
- package/lib/lens-core-module/generated-types.js +2 -0
- package/lib/lens-core-module/generated-types.js.map +1 -0
- package/lib/lens-core-module/index.d.ts +2 -0
- package/lib/lens-core-module/index.js +3 -0
- package/lib/lens-core-module/index.js.map +1 -0
- package/lib/lens-core-module/loader/index.d.ts +1 -0
- package/lib/lens-core-module/loader/index.js +2 -0
- package/lib/lens-core-module/loader/index.js.map +1 -0
- package/lib/lens-core-module/loader/lensCoreFactory.d.ts +30 -0
- package/lib/lens-core-module/loader/lensCoreFactory.js +121 -0
- package/lib/lens-core-module/loader/lensCoreFactory.js.map +1 -0
- package/lib/lensCoreWasmVersions.json +5 -0
- package/lib/logger/errorLoggingDecorator.d.ts +9 -0
- package/lib/logger/errorLoggingDecorator.js +32 -0
- package/lib/logger/errorLoggingDecorator.js.map +1 -0
- package/lib/logger/logEntries.d.ts +15 -0
- package/lib/logger/logEntries.js +14 -0
- package/lib/logger/logEntries.js.map +1 -0
- package/lib/logger/logger.d.ts +35 -0
- package/lib/logger/logger.js +48 -0
- package/lib/logger/logger.js.map +1 -0
- package/lib/logger/registerLogEntriesSubscriber.d.ts +14 -0
- package/lib/logger/registerLogEntriesSubscriber.js +23 -0
- package/lib/logger/registerLogEntriesSubscriber.js.map +1 -0
- package/lib/media-sources/CameraKitSource.d.ts +88 -0
- package/lib/media-sources/CameraKitSource.js +140 -0
- package/lib/media-sources/CameraKitSource.js.map +1 -0
- package/lib/media-sources/FunctionSource.d.ts +30 -0
- package/lib/media-sources/FunctionSource.js +132 -0
- package/lib/media-sources/FunctionSource.js.map +1 -0
- package/lib/media-sources/ImageSource.d.ts +13 -0
- package/lib/media-sources/ImageSource.js +28 -0
- package/lib/media-sources/ImageSource.js.map +1 -0
- package/lib/media-sources/MediaStreamSource.d.ts +41 -0
- package/lib/media-sources/MediaStreamSource.js +146 -0
- package/lib/media-sources/MediaStreamSource.js.map +1 -0
- package/lib/media-sources/VideoSource.d.ts +21 -0
- package/lib/media-sources/VideoSource.js +38 -0
- package/lib/media-sources/VideoSource.js.map +1 -0
- package/lib/metrics/businessEventsReporter.d.ts +37 -0
- package/lib/metrics/businessEventsReporter.js +160 -0
- package/lib/metrics/businessEventsReporter.js.map +1 -0
- package/lib/metrics/metricsEventTarget.d.ts +41 -0
- package/lib/metrics/metricsEventTarget.js +11 -0
- package/lib/metrics/metricsEventTarget.js.map +1 -0
- package/lib/metrics/metricsHandler.d.ts +9 -0
- package/lib/metrics/metricsHandler.js +13 -0
- package/lib/metrics/metricsHandler.js.map +1 -0
- package/lib/metrics/operationalMetricsReporter.d.ts +52 -0
- package/lib/metrics/operationalMetricsReporter.js +108 -0
- package/lib/metrics/operationalMetricsReporter.js.map +1 -0
- package/lib/metrics/reporters/reportBenchmarks.d.ts +10 -0
- package/lib/metrics/reporters/reportBenchmarks.js +29 -0
- package/lib/metrics/reporters/reportBenchmarks.js.map +1 -0
- package/lib/metrics/reporters/reportGlobalException.d.ts +19 -0
- package/lib/metrics/reporters/reportGlobalException.js +68 -0
- package/lib/metrics/reporters/reportGlobalException.js.map +1 -0
- package/lib/metrics/reporters/reportHttpMetrics.d.ts +17 -0
- package/lib/metrics/reporters/reportHttpMetrics.js +92 -0
- package/lib/metrics/reporters/reportHttpMetrics.js.map +1 -0
- package/lib/metrics/reporters/reportLegalState.d.ts +15 -0
- package/lib/metrics/reporters/reportLegalState.js +34 -0
- package/lib/metrics/reporters/reportLegalState.js.map +1 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +38 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.js +88 -0
- package/lib/metrics/reporters/reportLensAndAssetDownload.js.map +1 -0
- package/lib/metrics/reporters/reportLensValidationFailed.d.ts +20 -0
- package/lib/metrics/reporters/reportLensValidationFailed.js +24 -0
- package/lib/metrics/reporters/reportLensValidationFailed.js.map +1 -0
- package/lib/metrics/reporters/reportLensView.d.ts +36 -0
- package/lib/metrics/reporters/reportLensView.js +101 -0
- package/lib/metrics/reporters/reportLensView.js.map +1 -0
- package/lib/metrics/reporters/reportLensWait.d.ts +33 -0
- package/lib/metrics/reporters/reportLensWait.js +56 -0
- package/lib/metrics/reporters/reportLensWait.js.map +1 -0
- package/lib/metrics/reporters/reportSessionException.d.ts +17 -0
- package/lib/metrics/reporters/reportSessionException.js +12 -0
- package/lib/metrics/reporters/reportSessionException.js.map +1 -0
- package/lib/metrics/reporters/reportUserSession.d.ts +14 -0
- package/lib/metrics/reporters/reportUserSession.js +67 -0
- package/lib/metrics/reporters/reportUserSession.js.map +1 -0
- package/lib/metrics/reporters/reporters.d.ts +44 -0
- package/lib/metrics/reporters/reporters.js +33 -0
- package/lib/metrics/reporters/reporters.js.map +1 -0
- package/lib/namedErrors.d.ts +107 -0
- package/lib/namedErrors.js +56 -0
- package/lib/namedErrors.js.map +1 -0
- package/lib/persistence/ExpiringPersistence.d.ts +20 -0
- package/lib/persistence/ExpiringPersistence.js +58 -0
- package/lib/persistence/ExpiringPersistence.js.map +1 -0
- package/lib/persistence/IndexedDBPersistence.d.ts +47 -0
- package/lib/persistence/IndexedDBPersistence.js +180 -0
- package/lib/persistence/IndexedDBPersistence.js.map +1 -0
- package/lib/persistence/Persistence.d.ts +25 -0
- package/lib/persistence/Persistence.js +10 -0
- package/lib/persistence/Persistence.js.map +1 -0
- package/lib/remote-configuration/cofHandler.d.ts +21 -0
- package/lib/remote-configuration/cofHandler.js +75 -0
- package/lib/remote-configuration/cofHandler.js.map +1 -0
- package/lib/remote-configuration/remoteConfiguration.d.ts +13 -0
- package/lib/remote-configuration/remoteConfiguration.js +43 -0
- package/lib/remote-configuration/remoteConfiguration.js.map +1 -0
- package/lib/session/CameraKitSession.d.ts +252 -0
- package/lib/session/CameraKitSession.js +439 -0
- package/lib/session/CameraKitSession.js.map +1 -0
- package/lib/session/CameraKitSessionEvents.d.ts +33 -0
- package/lib/session/CameraKitSessionEvents.js +21 -0
- package/lib/session/CameraKitSessionEvents.js.map +1 -0
- package/lib/session/LensKeyboard.d.ts +89 -0
- package/lib/session/LensKeyboard.js +95 -0
- package/lib/session/LensKeyboard.js.map +1 -0
- package/lib/session/LensPerformanceMeasurement.d.ts +55 -0
- package/lib/session/LensPerformanceMeasurement.js +91 -0
- package/lib/session/LensPerformanceMeasurement.js.map +1 -0
- package/lib/session/LensPerformanceMetrics.d.ts +31 -0
- package/lib/session/LensPerformanceMetrics.js +58 -0
- package/lib/session/LensPerformanceMetrics.js.map +1 -0
- package/lib/session/index.d.ts +1 -0
- package/lib/session/index.js +2 -0
- package/lib/session/index.js.map +1 -0
- package/lib/session/lensState.d.ts +29 -0
- package/lib/session/lensState.js +160 -0
- package/lib/session/lensState.js.map +1 -0
- package/lib/session/sessionState.d.ts +10 -0
- package/lib/session/sessionState.js +12 -0
- package/lib/session/sessionState.js.map +1 -0
- package/lib/transforms/Transform2D.d.ts +17 -0
- package/lib/transforms/Transform2D.js +18 -0
- package/lib/transforms/Transform2D.js.map +1 -0
- package/lib/transforms/index.d.ts +1 -0
- package/lib/transforms/index.js +2 -0
- package/lib/transforms/index.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Lens } from "./lens";
|
|
5
|
+
export const protobufPackage = "com.snap.camerakit.v3";
|
|
6
|
+
/** Extension enum specifies list of supported extensions */
|
|
7
|
+
export var ExportLensesByIdRequest_Context_Extension_Name;
|
|
8
|
+
(function (ExportLensesByIdRequest_Context_Extension_Name) {
|
|
9
|
+
/** UNSET - UNSET value */
|
|
10
|
+
ExportLensesByIdRequest_Context_Extension_Name["UNSET"] = "UNSET";
|
|
11
|
+
/** SHOP_KIT - Shopkit */
|
|
12
|
+
ExportLensesByIdRequest_Context_Extension_Name["SHOP_KIT"] = "SHOP_KIT";
|
|
13
|
+
ExportLensesByIdRequest_Context_Extension_Name["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
14
|
+
})(ExportLensesByIdRequest_Context_Extension_Name || (ExportLensesByIdRequest_Context_Extension_Name = {}));
|
|
15
|
+
export function exportLensesByIdRequest_Context_Extension_NameFromJSON(object) {
|
|
16
|
+
switch (object) {
|
|
17
|
+
case 0:
|
|
18
|
+
case "UNSET":
|
|
19
|
+
return ExportLensesByIdRequest_Context_Extension_Name.UNSET;
|
|
20
|
+
case 1:
|
|
21
|
+
case "SHOP_KIT":
|
|
22
|
+
return ExportLensesByIdRequest_Context_Extension_Name.SHOP_KIT;
|
|
23
|
+
case -1:
|
|
24
|
+
case "UNRECOGNIZED":
|
|
25
|
+
default:
|
|
26
|
+
return ExportLensesByIdRequest_Context_Extension_Name.UNRECOGNIZED;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function exportLensesByIdRequest_Context_Extension_NameToNumber(object) {
|
|
30
|
+
switch (object) {
|
|
31
|
+
case ExportLensesByIdRequest_Context_Extension_Name.UNSET:
|
|
32
|
+
return 0;
|
|
33
|
+
case ExportLensesByIdRequest_Context_Extension_Name.SHOP_KIT:
|
|
34
|
+
return 1;
|
|
35
|
+
default:
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export var ExportLensesByIdResponse_ExcludedLens_Code;
|
|
40
|
+
(function (ExportLensesByIdResponse_ExcludedLens_Code) {
|
|
41
|
+
/** UNSET - for linter */
|
|
42
|
+
ExportLensesByIdResponse_ExcludedLens_Code["UNSET"] = "UNSET";
|
|
43
|
+
/** UNKNOWN - reason unknown */
|
|
44
|
+
ExportLensesByIdResponse_ExcludedLens_Code["UNKNOWN"] = "UNKNOWN";
|
|
45
|
+
/** NOT_FOUND - lens not found */
|
|
46
|
+
ExportLensesByIdResponse_ExcludedLens_Code["NOT_FOUND"] = "NOT_FOUND";
|
|
47
|
+
/** INCOMPATIBLE_LENS_CORE_VERSION - client has core version less than core version of the lens */
|
|
48
|
+
ExportLensesByIdResponse_ExcludedLens_Code["INCOMPATIBLE_LENS_CORE_VERSION"] = "INCOMPATIBLE_LENS_CORE_VERSION";
|
|
49
|
+
/** ARCHIVED_OR_INVISIBLE - Lens archived or excluded due to visibility */
|
|
50
|
+
ExportLensesByIdResponse_ExcludedLens_Code["ARCHIVED_OR_INVISIBLE"] = "ARCHIVED_OR_INVISIBLE";
|
|
51
|
+
/** CONTAINS_MUSIC - lens contains music and cannot be provided by CameraKit */
|
|
52
|
+
ExportLensesByIdResponse_ExcludedLens_Code["CONTAINS_MUSIC"] = "CONTAINS_MUSIC";
|
|
53
|
+
ExportLensesByIdResponse_ExcludedLens_Code["UNRECOGNIZED"] = "UNRECOGNIZED";
|
|
54
|
+
})(ExportLensesByIdResponse_ExcludedLens_Code || (ExportLensesByIdResponse_ExcludedLens_Code = {}));
|
|
55
|
+
export function exportLensesByIdResponse_ExcludedLens_CodeFromJSON(object) {
|
|
56
|
+
switch (object) {
|
|
57
|
+
case 0:
|
|
58
|
+
case "UNSET":
|
|
59
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.UNSET;
|
|
60
|
+
case 1:
|
|
61
|
+
case "UNKNOWN":
|
|
62
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.UNKNOWN;
|
|
63
|
+
case 2:
|
|
64
|
+
case "NOT_FOUND":
|
|
65
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.NOT_FOUND;
|
|
66
|
+
case 3:
|
|
67
|
+
case "INCOMPATIBLE_LENS_CORE_VERSION":
|
|
68
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.INCOMPATIBLE_LENS_CORE_VERSION;
|
|
69
|
+
case 4:
|
|
70
|
+
case "ARCHIVED_OR_INVISIBLE":
|
|
71
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.ARCHIVED_OR_INVISIBLE;
|
|
72
|
+
case 5:
|
|
73
|
+
case "CONTAINS_MUSIC":
|
|
74
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.CONTAINS_MUSIC;
|
|
75
|
+
case -1:
|
|
76
|
+
case "UNRECOGNIZED":
|
|
77
|
+
default:
|
|
78
|
+
return ExportLensesByIdResponse_ExcludedLens_Code.UNRECOGNIZED;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export function exportLensesByIdResponse_ExcludedLens_CodeToNumber(object) {
|
|
82
|
+
switch (object) {
|
|
83
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.UNSET:
|
|
84
|
+
return 0;
|
|
85
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.UNKNOWN:
|
|
86
|
+
return 1;
|
|
87
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.NOT_FOUND:
|
|
88
|
+
return 2;
|
|
89
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.INCOMPATIBLE_LENS_CORE_VERSION:
|
|
90
|
+
return 3;
|
|
91
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.ARCHIVED_OR_INVISIBLE:
|
|
92
|
+
return 4;
|
|
93
|
+
case ExportLensesByIdResponse_ExcludedLens_Code.CONTAINS_MUSIC:
|
|
94
|
+
return 5;
|
|
95
|
+
default:
|
|
96
|
+
return 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function createBaseExportLensesByIdRequest() {
|
|
100
|
+
return { unlockableIds: [], context: undefined };
|
|
101
|
+
}
|
|
102
|
+
export const ExportLensesByIdRequest = {
|
|
103
|
+
decode(input, length) {
|
|
104
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
105
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
106
|
+
const message = createBaseExportLensesByIdRequest();
|
|
107
|
+
while (reader.pos < end) {
|
|
108
|
+
const tag = reader.uint32();
|
|
109
|
+
switch (tag >>> 3) {
|
|
110
|
+
case 1:
|
|
111
|
+
if ((tag & 7) === 2) {
|
|
112
|
+
const end2 = reader.uint32() + reader.pos;
|
|
113
|
+
while (reader.pos < end2) {
|
|
114
|
+
message.unlockableIds.push(longToNumber(reader.int64()));
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
message.unlockableIds.push(longToNumber(reader.int64()));
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
case 2:
|
|
122
|
+
message.context = ExportLensesByIdRequest_Context.decode(reader, reader.uint32());
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipType(tag & 7);
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
fromPartial(object) {
|
|
132
|
+
var _a;
|
|
133
|
+
const message = createBaseExportLensesByIdRequest();
|
|
134
|
+
message.unlockableIds = ((_a = object.unlockableIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
135
|
+
message.context =
|
|
136
|
+
object.context !== undefined && object.context !== null
|
|
137
|
+
? ExportLensesByIdRequest_Context.fromPartial(object.context)
|
|
138
|
+
: undefined;
|
|
139
|
+
return message;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
function createBaseExportLensesByIdRequest_Context() {
|
|
143
|
+
return {
|
|
144
|
+
userAgent: "",
|
|
145
|
+
locale: "",
|
|
146
|
+
extention: undefined,
|
|
147
|
+
extension: undefined,
|
|
148
|
+
extensionRequestContext: new Uint8Array()
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export const ExportLensesByIdRequest_Context = {
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBaseExportLensesByIdRequest_Context();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
message.userAgent = reader.string();
|
|
161
|
+
break;
|
|
162
|
+
case 2:
|
|
163
|
+
message.locale = reader.string();
|
|
164
|
+
break;
|
|
165
|
+
case 3:
|
|
166
|
+
message.extention = ExportLensesByIdRequest_Context_Extension.decode(reader, reader.uint32());
|
|
167
|
+
break;
|
|
168
|
+
case 4:
|
|
169
|
+
message.extension = ExportLensesByIdRequest_Context_Extension.decode(reader, reader.uint32());
|
|
170
|
+
break;
|
|
171
|
+
case 5:
|
|
172
|
+
message.extensionRequestContext = reader.bytes();
|
|
173
|
+
break;
|
|
174
|
+
default:
|
|
175
|
+
reader.skipType(tag & 7);
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
fromPartial(object) {
|
|
182
|
+
var _a, _b, _c;
|
|
183
|
+
const message = createBaseExportLensesByIdRequest_Context();
|
|
184
|
+
message.userAgent = (_a = object.userAgent) !== null && _a !== void 0 ? _a : "";
|
|
185
|
+
message.locale = (_b = object.locale) !== null && _b !== void 0 ? _b : "";
|
|
186
|
+
message.extention =
|
|
187
|
+
object.extention !== undefined && object.extention !== null
|
|
188
|
+
? ExportLensesByIdRequest_Context_Extension.fromPartial(object.extention)
|
|
189
|
+
: undefined;
|
|
190
|
+
message.extension =
|
|
191
|
+
object.extension !== undefined && object.extension !== null
|
|
192
|
+
? ExportLensesByIdRequest_Context_Extension.fromPartial(object.extension)
|
|
193
|
+
: undefined;
|
|
194
|
+
message.extensionRequestContext = (_c = object.extensionRequestContext) !== null && _c !== void 0 ? _c : new Uint8Array();
|
|
195
|
+
return message;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
function createBaseExportLensesByIdRequest_Context_Extension() {
|
|
199
|
+
return { name: ExportLensesByIdRequest_Context_Extension_Name.UNSET, version: "" };
|
|
200
|
+
}
|
|
201
|
+
export const ExportLensesByIdRequest_Context_Extension = {
|
|
202
|
+
decode(input, length) {
|
|
203
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
204
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
205
|
+
const message = createBaseExportLensesByIdRequest_Context_Extension();
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
case 1:
|
|
210
|
+
message.name = exportLensesByIdRequest_Context_Extension_NameFromJSON(reader.int32());
|
|
211
|
+
break;
|
|
212
|
+
case 2:
|
|
213
|
+
message.version = reader.string();
|
|
214
|
+
break;
|
|
215
|
+
default:
|
|
216
|
+
reader.skipType(tag & 7);
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return message;
|
|
221
|
+
},
|
|
222
|
+
fromPartial(object) {
|
|
223
|
+
var _a, _b;
|
|
224
|
+
const message = createBaseExportLensesByIdRequest_Context_Extension();
|
|
225
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : ExportLensesByIdRequest_Context_Extension_Name.UNSET;
|
|
226
|
+
message.version = (_b = object.version) !== null && _b !== void 0 ? _b : "";
|
|
227
|
+
return message;
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
function createBaseExportLensesByIdResponse() {
|
|
231
|
+
return { lenses: {}, excludedLenses: [] };
|
|
232
|
+
}
|
|
233
|
+
export const ExportLensesByIdResponse = {
|
|
234
|
+
decode(input, length) {
|
|
235
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
236
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
237
|
+
const message = createBaseExportLensesByIdResponse();
|
|
238
|
+
while (reader.pos < end) {
|
|
239
|
+
const tag = reader.uint32();
|
|
240
|
+
switch (tag >>> 3) {
|
|
241
|
+
case 1:
|
|
242
|
+
const entry1 = ExportLensesByIdResponse_LensesEntry.decode(reader, reader.uint32());
|
|
243
|
+
if (entry1.value !== undefined) {
|
|
244
|
+
message.lenses[entry1.key] = entry1.value;
|
|
245
|
+
}
|
|
246
|
+
break;
|
|
247
|
+
case 2:
|
|
248
|
+
message.excludedLenses.push(ExportLensesByIdResponse_ExcludedLens.decode(reader, reader.uint32()));
|
|
249
|
+
break;
|
|
250
|
+
default:
|
|
251
|
+
reader.skipType(tag & 7);
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
fromPartial(object) {
|
|
258
|
+
var _a, _b;
|
|
259
|
+
const message = createBaseExportLensesByIdResponse();
|
|
260
|
+
message.lenses = Object.entries((_a = object.lenses) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
261
|
+
if (value !== undefined) {
|
|
262
|
+
acc[Number(key)] = value;
|
|
263
|
+
}
|
|
264
|
+
return acc;
|
|
265
|
+
}, {});
|
|
266
|
+
message.excludedLenses =
|
|
267
|
+
((_b = object.excludedLenses) === null || _b === void 0 ? void 0 : _b.map((e) => ExportLensesByIdResponse_ExcludedLens.fromPartial(e))) || [];
|
|
268
|
+
return message;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
function createBaseExportLensesByIdResponse_LensesEntry() {
|
|
272
|
+
return { key: 0, value: new Uint8Array() };
|
|
273
|
+
}
|
|
274
|
+
export const ExportLensesByIdResponse_LensesEntry = {
|
|
275
|
+
decode(input, length) {
|
|
276
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
277
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
278
|
+
const message = createBaseExportLensesByIdResponse_LensesEntry();
|
|
279
|
+
while (reader.pos < end) {
|
|
280
|
+
const tag = reader.uint32();
|
|
281
|
+
switch (tag >>> 3) {
|
|
282
|
+
case 1:
|
|
283
|
+
message.key = longToNumber(reader.int64());
|
|
284
|
+
break;
|
|
285
|
+
case 2:
|
|
286
|
+
message.value = reader.bytes();
|
|
287
|
+
break;
|
|
288
|
+
default:
|
|
289
|
+
reader.skipType(tag & 7);
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return message;
|
|
294
|
+
},
|
|
295
|
+
fromPartial(object) {
|
|
296
|
+
var _a, _b;
|
|
297
|
+
const message = createBaseExportLensesByIdResponse_LensesEntry();
|
|
298
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : 0;
|
|
299
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
300
|
+
return message;
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
function createBaseExportLensesByIdResponse_ExcludedLens() {
|
|
304
|
+
return { lensId: 0, code: ExportLensesByIdResponse_ExcludedLens_Code.UNSET, reason: "" };
|
|
305
|
+
}
|
|
306
|
+
export const ExportLensesByIdResponse_ExcludedLens = {
|
|
307
|
+
decode(input, length) {
|
|
308
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
309
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
310
|
+
const message = createBaseExportLensesByIdResponse_ExcludedLens();
|
|
311
|
+
while (reader.pos < end) {
|
|
312
|
+
const tag = reader.uint32();
|
|
313
|
+
switch (tag >>> 3) {
|
|
314
|
+
case 1:
|
|
315
|
+
message.lensId = longToNumber(reader.int64());
|
|
316
|
+
break;
|
|
317
|
+
case 2:
|
|
318
|
+
message.code = exportLensesByIdResponse_ExcludedLens_CodeFromJSON(reader.int32());
|
|
319
|
+
break;
|
|
320
|
+
case 3:
|
|
321
|
+
message.reason = reader.string();
|
|
322
|
+
break;
|
|
323
|
+
default:
|
|
324
|
+
reader.skipType(tag & 7);
|
|
325
|
+
break;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return message;
|
|
329
|
+
},
|
|
330
|
+
fromPartial(object) {
|
|
331
|
+
var _a, _b, _c;
|
|
332
|
+
const message = createBaseExportLensesByIdResponse_ExcludedLens();
|
|
333
|
+
message.lensId = (_a = object.lensId) !== null && _a !== void 0 ? _a : 0;
|
|
334
|
+
message.code = (_b = object.code) !== null && _b !== void 0 ? _b : ExportLensesByIdResponse_ExcludedLens_Code.UNSET;
|
|
335
|
+
message.reason = (_c = object.reason) !== null && _c !== void 0 ? _c : "";
|
|
336
|
+
return message;
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
function createBaseExtensionRequestContext() {
|
|
340
|
+
return { userAgent: "", locale: "" };
|
|
341
|
+
}
|
|
342
|
+
export const ExtensionRequestContext = {
|
|
343
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
344
|
+
if (message.userAgent !== "") {
|
|
345
|
+
writer.uint32(10).string(message.userAgent);
|
|
346
|
+
}
|
|
347
|
+
if (message.locale !== "") {
|
|
348
|
+
writer.uint32(18).string(message.locale);
|
|
349
|
+
}
|
|
350
|
+
return writer;
|
|
351
|
+
},
|
|
352
|
+
decode(input, length) {
|
|
353
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
354
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
355
|
+
const message = createBaseExtensionRequestContext();
|
|
356
|
+
while (reader.pos < end) {
|
|
357
|
+
const tag = reader.uint32();
|
|
358
|
+
switch (tag >>> 3) {
|
|
359
|
+
case 1:
|
|
360
|
+
message.userAgent = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
case 2:
|
|
363
|
+
message.locale = reader.string();
|
|
364
|
+
break;
|
|
365
|
+
default:
|
|
366
|
+
reader.skipType(tag & 7);
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
return message;
|
|
371
|
+
},
|
|
372
|
+
fromPartial(object) {
|
|
373
|
+
var _a, _b;
|
|
374
|
+
const message = createBaseExtensionRequestContext();
|
|
375
|
+
message.userAgent = (_a = object.userAgent) !== null && _a !== void 0 ? _a : "";
|
|
376
|
+
message.locale = (_b = object.locale) !== null && _b !== void 0 ? _b : "";
|
|
377
|
+
return message;
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
function createBaseEnvelope() {
|
|
381
|
+
return { lenses: [] };
|
|
382
|
+
}
|
|
383
|
+
export const Envelope = {
|
|
384
|
+
decode(input, length) {
|
|
385
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
386
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
+
const message = createBaseEnvelope();
|
|
388
|
+
while (reader.pos < end) {
|
|
389
|
+
const tag = reader.uint32();
|
|
390
|
+
switch (tag >>> 3) {
|
|
391
|
+
case 1:
|
|
392
|
+
message.lenses.push(Lens.decode(reader, reader.uint32()));
|
|
393
|
+
break;
|
|
394
|
+
default:
|
|
395
|
+
reader.skipType(tag & 7);
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return message;
|
|
400
|
+
},
|
|
401
|
+
fromPartial(object) {
|
|
402
|
+
var _a;
|
|
403
|
+
const message = createBaseEnvelope();
|
|
404
|
+
message.lenses = ((_a = object.lenses) === null || _a === void 0 ? void 0 : _a.map((e) => Lens.fromPartial(e))) || [];
|
|
405
|
+
return message;
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
var globalThis = (() => {
|
|
409
|
+
if (typeof globalThis !== "undefined")
|
|
410
|
+
return globalThis;
|
|
411
|
+
if (typeof self !== "undefined")
|
|
412
|
+
return self;
|
|
413
|
+
if (typeof window !== "undefined")
|
|
414
|
+
return window;
|
|
415
|
+
if (typeof global !== "undefined")
|
|
416
|
+
return global;
|
|
417
|
+
throw "Unable to locate global object";
|
|
418
|
+
})();
|
|
419
|
+
function longToNumber(long) {
|
|
420
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
421
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
422
|
+
}
|
|
423
|
+
return long.toNumber();
|
|
424
|
+
}
|
|
425
|
+
if (_m0.util.Long !== Long) {
|
|
426
|
+
_m0.util.Long = Long;
|
|
427
|
+
_m0.configure();
|
|
428
|
+
}
|
|
429
|
+
//# sourceMappingURL=export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/camera_kit/v3/export.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAuCvD,4DAA4D;AAC5D,MAAM,CAAN,IAAY,8CAMX;AAND,WAAY,8CAA8C;IACtD,0BAA0B;IAC1B,iEAAe,CAAA;IACf,yBAAyB;IACzB,uEAAqB,CAAA;IACrB,+EAA6B,CAAA;AACjC,CAA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OAAO,IAAI,CAAC;IAChB,IAAI,OAAO,MAAM,KAAK,WAAW;QAC7B,OAAO,MAAM,CAAC;IAClB,IAAI,OAAO,MAAM,KAAK,WAAW;QAC7B,OAAO,MAAM,CAAC;IAClB,MAAM,gCAAgC,CAAC;AAC3C,CAAC,CAAC,EAAE,CAAC;AAeL,SAAS,YAAY,CAAC,IAAU;IAC5B,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE;QAClC,MAAM,IAAI,UAAU,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;KAC9E;IACD,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC;AACD,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":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\nimport { Lens } from \"./lens\";\nexport const protobufPackage = \"com.snap.camerakit.v3\";\nexport interface ExportLensesByIdRequest {\n /** Unlockable ids to export */\n unlockableIds: number[];\n /** Request context */\n context: ExportLensesByIdRequest_Context | undefined;\n}\nexport interface ExportLensesByIdRequest_Context {\n /**\n * User agent string\n * For details link https://github.sc-corp.net/Snapchat/camera-kit-backend/blob/master/docs/useragent.md\n *\n * @deprecated\n */\n userAgent: string;\n /**\n * User locale\n * For details link https://github.sc-corp.net/Snapchat/camera-kit-backend/blob/master/docs/accept-language.md\n *\n * @deprecated\n */\n locale: string;\n /**\n * Misspelled field. Use `extension` field instead\n *\n * @deprecated\n */\n extention: ExportLensesByIdRequest_Context_Extension | undefined;\n /** Extension that called export endpoint */\n extension: ExportLensesByIdRequest_Context_Extension | undefined;\n /** Extension request context */\n extensionRequestContext: Uint8Array;\n}\nexport interface ExportLensesByIdRequest_Context_Extension {\n /** Extension name that called export endpoint */\n name: ExportLensesByIdRequest_Context_Extension_Name;\n /** Extension version (optional) that called export endpoint */\n version: string;\n}\n/** Extension enum specifies list of supported extensions */\nexport enum ExportLensesByIdRequest_Context_Extension_Name {\n /** UNSET - UNSET value */\n UNSET = \"UNSET\",\n /** SHOP_KIT - Shopkit */\n SHOP_KIT = \"SHOP_KIT\",\n UNRECOGNIZED = \"UNRECOGNIZED\"\n}\nexport function exportLensesByIdRequest_Context_Extension_NameFromJSON(object: any): ExportLensesByIdRequest_Context_Extension_Name {\n switch (object) {\n case 0:\n case \"UNSET\":\n return ExportLensesByIdRequest_Context_Extension_Name.UNSET;\n case 1:\n case \"SHOP_KIT\":\n return ExportLensesByIdRequest_Context_Extension_Name.SHOP_KIT;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return ExportLensesByIdRequest_Context_Extension_Name.UNRECOGNIZED;\n }\n}\nexport function exportLensesByIdRequest_Context_Extension_NameToNumber(object: ExportLensesByIdRequest_Context_Extension_Name): number {\n switch (object) {\n case ExportLensesByIdRequest_Context_Extension_Name.UNSET:\n return 0;\n case ExportLensesByIdRequest_Context_Extension_Name.SHOP_KIT:\n return 1;\n default:\n return 0;\n }\n}\nexport interface ExportLensesByIdResponse {\n /** Map between unlockable_id and exported lens object to pass in CameraKit SDK */\n lenses: {\n [key: number]: Uint8Array;\n };\n /** List of excluded lenses with code and reason */\n excludedLenses: ExportLensesByIdResponse_ExcludedLens[];\n}\nexport interface ExportLensesByIdResponse_LensesEntry {\n key: number;\n value: Uint8Array;\n}\nexport interface ExportLensesByIdResponse_ExcludedLens {\n /** lens id */\n lensId: number;\n /** code why this lens been excluded */\n code: ExportLensesByIdResponse_ExcludedLens_Code;\n /** text reason why this lens been excluded */\n reason: string;\n}\nexport enum ExportLensesByIdResponse_ExcludedLens_Code {\n /** UNSET - for linter */\n UNSET = \"UNSET\",\n /** UNKNOWN - reason unknown */\n UNKNOWN = \"UNKNOWN\",\n /** NOT_FOUND - lens not found */\n NOT_FOUND = \"NOT_FOUND\",\n /** INCOMPATIBLE_LENS_CORE_VERSION - client has core version less than core version of the lens */\n INCOMPATIBLE_LENS_CORE_VERSION = \"INCOMPATIBLE_LENS_CORE_VERSION\",\n /** ARCHIVED_OR_INVISIBLE - Lens archived or excluded due to visibility */\n ARCHIVED_OR_INVISIBLE = \"ARCHIVED_OR_INVISIBLE\",\n /** CONTAINS_MUSIC - lens contains music and cannot be provided by CameraKit */\n CONTAINS_MUSIC = \"CONTAINS_MUSIC\",\n UNRECOGNIZED = \"UNRECOGNIZED\"\n}\nexport function exportLensesByIdResponse_ExcludedLens_CodeFromJSON(object: any): ExportLensesByIdResponse_ExcludedLens_Code {\n switch (object) {\n case 0:\n case \"UNSET\":\n return ExportLensesByIdResponse_ExcludedLens_Code.UNSET;\n case 1:\n case \"UNKNOWN\":\n return ExportLensesByIdResponse_ExcludedLens_Code.UNKNOWN;\n case 2:\n case \"NOT_FOUND\":\n return ExportLensesByIdResponse_ExcludedLens_Code.NOT_FOUND;\n case 3:\n case \"INCOMPATIBLE_LENS_CORE_VERSION\":\n return ExportLensesByIdResponse_ExcludedLens_Code.INCOMPATIBLE_LENS_CORE_VERSION;\n case 4:\n case \"ARCHIVED_OR_INVISIBLE\":\n return ExportLensesByIdResponse_ExcludedLens_Code.ARCHIVED_OR_INVISIBLE;\n case 5:\n case \"CONTAINS_MUSIC\":\n return ExportLensesByIdResponse_ExcludedLens_Code.CONTAINS_MUSIC;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return ExportLensesByIdResponse_ExcludedLens_Code.UNRECOGNIZED;\n }\n}\nexport function exportLensesByIdResponse_ExcludedLens_CodeToNumber(object: ExportLensesByIdResponse_ExcludedLens_Code): number {\n switch (object) {\n case ExportLensesByIdResponse_ExcludedLens_Code.UNSET:\n return 0;\n case ExportLensesByIdResponse_ExcludedLens_Code.UNKNOWN:\n return 1;\n case ExportLensesByIdResponse_ExcludedLens_Code.NOT_FOUND:\n return 2;\n case ExportLensesByIdResponse_ExcludedLens_Code.INCOMPATIBLE_LENS_CORE_VERSION:\n return 3;\n case ExportLensesByIdResponse_ExcludedLens_Code.ARCHIVED_OR_INVISIBLE:\n return 4;\n case ExportLensesByIdResponse_ExcludedLens_Code.CONTAINS_MUSIC:\n return 5;\n default:\n return 0;\n }\n}\n/** ExtensionRequestContext message contains export context. */\nexport interface ExtensionRequestContext {\n /**\n * User agent string\n * For details link https://github.sc-corp.net/Snapchat/camera-kit-backend/blob/master/docs/useragent.md\n */\n userAgent: string;\n /**\n * User locale\n * For details link https://github.sc-corp.net/Snapchat/camera-kit-backend/blob/master/docs/accept-language.md\n */\n locale: string;\n}\n/**\n * This message contains any auxiliary data to the exported lenses.\n * ExportLensesByIdResponse returns this object in bytes representation to hide specific implementation from\n * the extension.\n * We expect that extension will simply pass through bytes to the\n * SDK and do not perform any modifications to the original object.\n */\nexport interface Envelope {\n /** Exported lenses */\n lenses: Lens[];\n}\nfunction createBaseExportLensesByIdRequest(): ExportLensesByIdRequest {\n return { unlockableIds: [], context: undefined };\n}\nexport const ExportLensesByIdRequest = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdRequest {\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 = createBaseExportLensesByIdRequest();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n if ((tag & 7) === 2) {\n const end2 = reader.uint32() + reader.pos;\n while (reader.pos < end2) {\n message.unlockableIds.push(longToNumber(reader.int64() as Long));\n }\n }\n else {\n message.unlockableIds.push(longToNumber(reader.int64() as Long));\n }\n break;\n case 2:\n message.context = ExportLensesByIdRequest_Context.decode(reader, reader.uint32());\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdRequest>, I>>(object: I): ExportLensesByIdRequest {\n const message = createBaseExportLensesByIdRequest();\n message.unlockableIds = object.unlockableIds?.map((e) => e) || [];\n message.context =\n object.context !== undefined && object.context !== null\n ? ExportLensesByIdRequest_Context.fromPartial(object.context)\n : undefined;\n return message;\n }\n};\nfunction createBaseExportLensesByIdRequest_Context(): ExportLensesByIdRequest_Context {\n return {\n userAgent: \"\",\n locale: \"\",\n extention: undefined,\n extension: undefined,\n extensionRequestContext: new Uint8Array()\n };\n}\nexport const ExportLensesByIdRequest_Context = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdRequest_Context {\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 = createBaseExportLensesByIdRequest_Context();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.userAgent = reader.string();\n break;\n case 2:\n message.locale = reader.string();\n break;\n case 3:\n message.extention = ExportLensesByIdRequest_Context_Extension.decode(reader, reader.uint32());\n break;\n case 4:\n message.extension = ExportLensesByIdRequest_Context_Extension.decode(reader, reader.uint32());\n break;\n case 5:\n message.extensionRequestContext = reader.bytes();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdRequest_Context>, I>>(object: I): ExportLensesByIdRequest_Context {\n const message = createBaseExportLensesByIdRequest_Context();\n message.userAgent = object.userAgent ?? \"\";\n message.locale = object.locale ?? \"\";\n message.extention =\n object.extention !== undefined && object.extention !== null\n ? ExportLensesByIdRequest_Context_Extension.fromPartial(object.extention)\n : undefined;\n message.extension =\n object.extension !== undefined && object.extension !== null\n ? ExportLensesByIdRequest_Context_Extension.fromPartial(object.extension)\n : undefined;\n message.extensionRequestContext = object.extensionRequestContext ?? new Uint8Array();\n return message;\n }\n};\nfunction createBaseExportLensesByIdRequest_Context_Extension(): ExportLensesByIdRequest_Context_Extension {\n return { name: ExportLensesByIdRequest_Context_Extension_Name.UNSET, version: \"\" };\n}\nexport const ExportLensesByIdRequest_Context_Extension = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdRequest_Context_Extension {\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 = createBaseExportLensesByIdRequest_Context_Extension();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.name = exportLensesByIdRequest_Context_Extension_NameFromJSON(reader.int32());\n break;\n case 2:\n message.version = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdRequest_Context_Extension>, I>>(object: I): ExportLensesByIdRequest_Context_Extension {\n const message = createBaseExportLensesByIdRequest_Context_Extension();\n message.name = object.name ?? ExportLensesByIdRequest_Context_Extension_Name.UNSET;\n message.version = object.version ?? \"\";\n return message;\n }\n};\nfunction createBaseExportLensesByIdResponse(): ExportLensesByIdResponse {\n return { lenses: {}, excludedLenses: [] };\n}\nexport const ExportLensesByIdResponse = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdResponse {\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 = createBaseExportLensesByIdResponse();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n const entry1 = ExportLensesByIdResponse_LensesEntry.decode(reader, reader.uint32());\n if (entry1.value !== undefined) {\n message.lenses[entry1.key] = entry1.value;\n }\n break;\n case 2:\n message.excludedLenses.push(ExportLensesByIdResponse_ExcludedLens.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdResponse>, I>>(object: I): ExportLensesByIdResponse {\n const message = createBaseExportLensesByIdResponse();\n message.lenses = Object.entries(object.lenses ?? {}).reduce<{\n [key: number]: Uint8Array;\n }>((acc, [key, value]) => {\n if (value !== undefined) {\n acc[Number(key)] = value;\n }\n return acc;\n }, {});\n message.excludedLenses =\n object.excludedLenses?.map((e) => ExportLensesByIdResponse_ExcludedLens.fromPartial(e)) || [];\n return message;\n }\n};\nfunction createBaseExportLensesByIdResponse_LensesEntry(): ExportLensesByIdResponse_LensesEntry {\n return { key: 0, value: new Uint8Array() };\n}\nexport const ExportLensesByIdResponse_LensesEntry = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdResponse_LensesEntry {\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 = createBaseExportLensesByIdResponse_LensesEntry();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.key = longToNumber(reader.int64() as Long);\n break;\n case 2:\n message.value = reader.bytes();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdResponse_LensesEntry>, I>>(object: I): ExportLensesByIdResponse_LensesEntry {\n const message = createBaseExportLensesByIdResponse_LensesEntry();\n message.key = object.key ?? 0;\n message.value = object.value ?? new Uint8Array();\n return message;\n }\n};\nfunction createBaseExportLensesByIdResponse_ExcludedLens(): ExportLensesByIdResponse_ExcludedLens {\n return { lensId: 0, code: ExportLensesByIdResponse_ExcludedLens_Code.UNSET, reason: \"\" };\n}\nexport const ExportLensesByIdResponse_ExcludedLens = {\n decode(input: _m0.Reader | Uint8Array, length?: number): ExportLensesByIdResponse_ExcludedLens {\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 = createBaseExportLensesByIdResponse_ExcludedLens();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.lensId = longToNumber(reader.int64() as Long);\n break;\n case 2:\n message.code = exportLensesByIdResponse_ExcludedLens_CodeFromJSON(reader.int32());\n break;\n case 3:\n message.reason = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExportLensesByIdResponse_ExcludedLens>, I>>(object: I): ExportLensesByIdResponse_ExcludedLens {\n const message = createBaseExportLensesByIdResponse_ExcludedLens();\n message.lensId = object.lensId ?? 0;\n message.code = object.code ?? ExportLensesByIdResponse_ExcludedLens_Code.UNSET;\n message.reason = object.reason ?? \"\";\n return message;\n }\n};\nfunction createBaseExtensionRequestContext(): ExtensionRequestContext {\n return { userAgent: \"\", locale: \"\" };\n}\nexport const ExtensionRequestContext = {\n encode(message: ExtensionRequestContext, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.userAgent !== \"\") {\n writer.uint32(10).string(message.userAgent);\n }\n if (message.locale !== \"\") {\n writer.uint32(18).string(message.locale);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRequestContext {\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 = createBaseExtensionRequestContext();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.userAgent = reader.string();\n break;\n case 2:\n message.locale = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<ExtensionRequestContext>, I>>(object: I): ExtensionRequestContext {\n const message = createBaseExtensionRequestContext();\n message.userAgent = object.userAgent ?? \"\";\n message.locale = object.locale ?? \"\";\n return message;\n }\n};\nfunction createBaseEnvelope(): Envelope {\n return { lenses: [] };\n}\nexport const Envelope = {\n decode(input: _m0.Reader | Uint8Array, length?: number): Envelope {\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 = createBaseEnvelope();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.lenses.push(Lens.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<Envelope>, I>>(object: I): Envelope {\n const message = createBaseEnvelope();\n message.lenses = object.lenses?.map((e) => Lens.fromPartial(e)) || [];\n return message;\n }\n};\n/** Export service exposes methods that relate to Export API */\nexport interface Export {\n /**\n * ExportLensesById exports CameraKit SDK compatible Lens data models\n * by given lens ids\n */\n ExportLensesById(request: ExportLensesByIdRequest): Promise<ExportLensesByIdResponse>;\n}\ndeclare var self: any | undefined;\ndeclare var window: any | undefined;\ndeclare var global: any | undefined;\nvar globalThis: any = (() => {\n if (typeof globalThis !== \"undefined\")\n return globalThis;\n if (typeof self !== \"undefined\")\n return self;\n if (typeof window !== \"undefined\")\n return window;\n if (typeof global !== \"undefined\")\n return global;\n throw \"Unable to locate global object\";\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 $case: string;\n} ? {\n [K in keyof Omit<T, \"$case\">]?: DeepPartial<T[K]>;\n} & {\n $case: T[\"$case\"];\n} : 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>;\nfunction longToNumber(long: Long): number {\n if (long.gt(Number.MAX_SAFE_INTEGER)) {\n throw new globalThis.Error(\"Value is larger than Number.MAX_SAFE_INTEGER\");\n }\n return long.toNumber();\n}\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "com.snap.camerakit.v3";
|
|
3
|
+
/** Legal information that should be presented to a user as a prompt each time its (doccument) contents change. */
|
|
4
|
+
export interface LegalPrompt {
|
|
5
|
+
/** A set of documents to present in a legal prompt for a user to agree, deny or ignore. */
|
|
6
|
+
documents: LegalDocument[];
|
|
7
|
+
/** True if the legal prompt should be disabled, false otherwise. */
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Reference to a legal and versioned document which content users can acccess by visiting a url. */
|
|
11
|
+
export interface LegalDocument {
|
|
12
|
+
/** The type of this legal document. */
|
|
13
|
+
type: LegalDocument_Type;
|
|
14
|
+
/** Web link to the full legal document, intented to be presented in a browser to retain Snap's branding and formatting. */
|
|
15
|
+
webUrl: string;
|
|
16
|
+
/** Version of this legal document. */
|
|
17
|
+
version: string;
|
|
18
|
+
/** Timestamp when this document was made available. */
|
|
19
|
+
timestamp: Date | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** All known types of legal documents that may be provided to a user. */
|
|
22
|
+
export declare enum LegalDocument_Type {
|
|
23
|
+
/** UNSET - Default unset field. */
|
|
24
|
+
UNSET = "UNSET",
|
|
25
|
+
/** TERMS_OF_SERVICE - Represents terms of service type of a document. */
|
|
26
|
+
TERMS_OF_SERVICE = "TERMS_OF_SERVICE",
|
|
27
|
+
/** PRIVACY_POLICY - Represents privacy policy type of a document. */
|
|
28
|
+
PRIVACY_POLICY = "PRIVACY_POLICY",
|
|
29
|
+
/** LEARN_MORE - Represents additional legal information type of a document. */
|
|
30
|
+
LEARN_MORE = "LEARN_MORE",
|
|
31
|
+
UNRECOGNIZED = "UNRECOGNIZED"
|
|
32
|
+
}
|
|
33
|
+
export declare function legalDocument_TypeFromJSON(object: any): LegalDocument_Type;
|
|
34
|
+
export declare function legalDocument_TypeToNumber(object: LegalDocument_Type): number;
|
|
35
|
+
export declare const LegalPrompt: {
|
|
36
|
+
encode(message: LegalPrompt, writer?: _m0.Writer): _m0.Writer;
|
|
37
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LegalPrompt;
|
|
38
|
+
fromPartial<I extends {
|
|
39
|
+
documents?: {
|
|
40
|
+
type?: LegalDocument_Type | undefined;
|
|
41
|
+
webUrl?: string | undefined;
|
|
42
|
+
version?: string | undefined;
|
|
43
|
+
timestamp?: Date | undefined;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
} & {
|
|
47
|
+
documents?: ({
|
|
48
|
+
type?: LegalDocument_Type | undefined;
|
|
49
|
+
webUrl?: string | undefined;
|
|
50
|
+
version?: string | undefined;
|
|
51
|
+
timestamp?: Date | undefined;
|
|
52
|
+
}[] & ({
|
|
53
|
+
type?: LegalDocument_Type | undefined;
|
|
54
|
+
webUrl?: string | undefined;
|
|
55
|
+
version?: string | undefined;
|
|
56
|
+
timestamp?: Date | undefined;
|
|
57
|
+
} & {
|
|
58
|
+
type?: LegalDocument_Type | undefined;
|
|
59
|
+
webUrl?: string | undefined;
|
|
60
|
+
version?: string | undefined;
|
|
61
|
+
timestamp?: Date | undefined;
|
|
62
|
+
} & Record<Exclude<keyof I["documents"][number], keyof LegalDocument>, never>)[] & Record<Exclude<keyof I["documents"], keyof {
|
|
63
|
+
type?: LegalDocument_Type | undefined;
|
|
64
|
+
webUrl?: string | undefined;
|
|
65
|
+
version?: string | undefined;
|
|
66
|
+
timestamp?: Date | undefined;
|
|
67
|
+
}[]>, never>) | undefined;
|
|
68
|
+
disabled?: boolean | undefined;
|
|
69
|
+
} & Record<Exclude<keyof I, keyof LegalPrompt>, never>>(object: I): LegalPrompt;
|
|
70
|
+
};
|
|
71
|
+
export declare const LegalDocument: {
|
|
72
|
+
encode(message: LegalDocument, writer?: _m0.Writer): _m0.Writer;
|
|
73
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LegalDocument;
|
|
74
|
+
fromPartial<I extends {
|
|
75
|
+
type?: LegalDocument_Type | undefined;
|
|
76
|
+
webUrl?: string | undefined;
|
|
77
|
+
version?: string | undefined;
|
|
78
|
+
timestamp?: Date | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
type?: LegalDocument_Type | undefined;
|
|
81
|
+
webUrl?: string | undefined;
|
|
82
|
+
version?: string | undefined;
|
|
83
|
+
timestamp?: Date | undefined;
|
|
84
|
+
} & Record<Exclude<keyof I, keyof LegalDocument>, never>>(object: I): LegalDocument;
|
|
85
|
+
};
|
|
86
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
87
|
+
export declare 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 {
|
|
88
|
+
$case: string;
|
|
89
|
+
} ? {
|
|
90
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
91
|
+
} & {
|
|
92
|
+
$case: T["$case"];
|
|
93
|
+
} : T extends {} ? {
|
|
94
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
95
|
+
} : Partial<T>;
|
|
96
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
97
|
+
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
98
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
99
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
100
|
+
export {};
|