@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,96 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export const protobufPackage = "snapchat.common";
|
|
5
|
+
/** Randomization units supported for allocation */
|
|
6
|
+
export var Ruid_Type;
|
|
7
|
+
(function (Ruid_Type) {
|
|
8
|
+
/** UNSET - Unknown type */
|
|
9
|
+
Ruid_Type[Ruid_Type["UNSET"] = 0] = "UNSET";
|
|
10
|
+
/** USER - Snapchat user ID */
|
|
11
|
+
Ruid_Type[Ruid_Type["USER"] = 1] = "USER";
|
|
12
|
+
/** DEVICE - Config device ID */
|
|
13
|
+
Ruid_Type[Ruid_Type["DEVICE"] = 2] = "DEVICE";
|
|
14
|
+
/** WEB_CLIENT - Web client ID */
|
|
15
|
+
Ruid_Type[Ruid_Type["WEB_CLIENT"] = 3] = "WEB_CLIENT";
|
|
16
|
+
/** AD_ACCOUNT - Ad account ID */
|
|
17
|
+
Ruid_Type[Ruid_Type["AD_ACCOUNT"] = 4] = "AD_ACCOUNT";
|
|
18
|
+
/** USERNAME - Snapchat username (legacy only) */
|
|
19
|
+
Ruid_Type[Ruid_Type["USERNAME"] = 5] = "USERNAME";
|
|
20
|
+
/** AD_MODERATION_AD - Ad Id used by Ad Moderation backend. */
|
|
21
|
+
Ruid_Type[Ruid_Type["AD_MODERATION_AD"] = 6] = "AD_MODERATION_AD";
|
|
22
|
+
/** WEB_SNAPCHAT_USER - Snapchat user id used on web. */
|
|
23
|
+
Ruid_Type[Ruid_Type["WEB_SNAPCHAT_USER"] = 7] = "WEB_SNAPCHAT_USER";
|
|
24
|
+
/** INTERNAL - Internal test RUID, internal use only and no analysis. */
|
|
25
|
+
Ruid_Type[Ruid_Type["INTERNAL"] = 8] = "INTERNAL";
|
|
26
|
+
/** AM_ORGANIZATION - Ads Manager organization ID */
|
|
27
|
+
Ruid_Type[Ruid_Type["AM_ORGANIZATION"] = 9] = "AM_ORGANIZATION";
|
|
28
|
+
/** AM_MEMBER - Ads Manager member ID */
|
|
29
|
+
Ruid_Type[Ruid_Type["AM_MEMBER"] = 10] = "AM_MEMBER";
|
|
30
|
+
/** AM_SESSION - Ads Manager session ID */
|
|
31
|
+
Ruid_Type[Ruid_Type["AM_SESSION"] = 11] = "AM_SESSION";
|
|
32
|
+
/** AM_PROFILE - Ads Manager profile ID */
|
|
33
|
+
Ruid_Type[Ruid_Type["AM_PROFILE"] = 12] = "AM_PROFILE";
|
|
34
|
+
/** AM_SNAPCHAT_USER - Snapchat user ID on Ads Manager */
|
|
35
|
+
Ruid_Type[Ruid_Type["AM_SNAPCHAT_USER"] = 13] = "AM_SNAPCHAT_USER";
|
|
36
|
+
/** SNAPCHAT_ADVERTISING - Snapchat Advertising ID for Budget A/B */
|
|
37
|
+
Ruid_Type[Ruid_Type["SNAPCHAT_ADVERTISING"] = 14] = "SNAPCHAT_ADVERTISING";
|
|
38
|
+
/** AM_CLIENT - Ads Manager client ID */
|
|
39
|
+
Ruid_Type[Ruid_Type["AM_CLIENT"] = 15] = "AM_CLIENT";
|
|
40
|
+
/** MISCHIEF - Mischief id for group chat */
|
|
41
|
+
Ruid_Type[Ruid_Type["MISCHIEF"] = 16] = "MISCHIEF";
|
|
42
|
+
Ruid_Type[Ruid_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
43
|
+
})(Ruid_Type || (Ruid_Type = {}));
|
|
44
|
+
function createBaseRuid() {
|
|
45
|
+
return { type: 0, stringValue: "", loggingIdValue: "" };
|
|
46
|
+
}
|
|
47
|
+
export const Ruid = {
|
|
48
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
49
|
+
if (message.type !== 0) {
|
|
50
|
+
writer.uint32(8).int32(message.type);
|
|
51
|
+
}
|
|
52
|
+
if (message.stringValue !== "") {
|
|
53
|
+
writer.uint32(18).string(message.stringValue);
|
|
54
|
+
}
|
|
55
|
+
if (message.loggingIdValue !== "") {
|
|
56
|
+
writer.uint32(26).string(message.loggingIdValue);
|
|
57
|
+
}
|
|
58
|
+
return writer;
|
|
59
|
+
},
|
|
60
|
+
decode(input, length) {
|
|
61
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
62
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
63
|
+
const message = createBaseRuid();
|
|
64
|
+
while (reader.pos < end) {
|
|
65
|
+
const tag = reader.uint32();
|
|
66
|
+
switch (tag >>> 3) {
|
|
67
|
+
case 1:
|
|
68
|
+
message.type = reader.int32();
|
|
69
|
+
break;
|
|
70
|
+
case 2:
|
|
71
|
+
message.stringValue = reader.string();
|
|
72
|
+
break;
|
|
73
|
+
case 3:
|
|
74
|
+
message.loggingIdValue = reader.string();
|
|
75
|
+
break;
|
|
76
|
+
default:
|
|
77
|
+
reader.skipType(tag & 7);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromPartial(object) {
|
|
84
|
+
var _a, _b, _c;
|
|
85
|
+
const message = createBaseRuid();
|
|
86
|
+
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : 0;
|
|
87
|
+
message.stringValue = (_b = object.stringValue) !== null && _b !== void 0 ? _b : "";
|
|
88
|
+
message.loggingIdValue = (_c = object.loggingIdValue) !== null && _c !== void 0 ? _c : "";
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
if (_m0.util.Long !== Long) {
|
|
93
|
+
_m0.util.Long = Long;
|
|
94
|
+
_m0.configure();
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=ruid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruid.js","sourceRoot":"","sources":["../../../../src/generated-proto/pb_schema/common/ruid.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAgBjD,mDAAmD;AACnD,MAAM,CAAN,IAAY,SAoCX;AApCD,WAAY,SAAS;IACnB,2BAA2B;IAC3B,2CAAS,CAAA;IACT,8BAA8B;IAC9B,yCAAQ,CAAA;IACR,gCAAgC;IAChC,6CAAU,CAAA;IACV,iCAAiC;IACjC,qDAAc,CAAA;IACd,iCAAiC;IACjC,qDAAc,CAAA;IACd,iDAAiD;IACjD,iDAAY,CAAA;IACZ,8DAA8D;IAC9D,iEAAoB,CAAA;IACpB,wDAAwD;IACxD,mEAAqB,CAAA;IACrB,wEAAwE;IACxE,iDAAY,CAAA;IACZ,oDAAoD;IACpD,+DAAmB,CAAA;IACnB,wCAAwC;IACxC,oDAAc,CAAA;IACd,0CAA0C;IAC1C,sDAAe,CAAA;IACf,0CAA0C;IAC1C,sDAAe,CAAA;IACf,yDAAyD;IACzD,kEAAqB,CAAA;IACrB,oEAAoE;IACpE,0EAAyB,CAAA;IACzB,wCAAwC;IACxC,oDAAc,CAAA;IACd,4CAA4C;IAC5C,kDAAa,CAAA;IACb,0DAAiB,CAAA;AACnB,CAAC,EApCW,SAAS,KAAT,SAAS,QAoCpB;AAED,SAAS,cAAc;IACrB,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC;AAC1D,CAAC;AAED,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,CAAC,OAAa,EAAE,SAAqB,GAAG,C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AAM,CAAC,MAAM,EAAE,CAAC;oBACzC,MAAM;gBACR;oBACE,MAAM,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;oBACzB,MAAM;aACT;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,WAAW,CAAwC,MAAS;;QAC1D,MAAM,OAAO,GAAG,cAAc,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,GAAG,MAAA,MAAM,CAAC,IAAI,mCAAI,CAAC,CAAC;QAChC,OAAO,CAAC,WAAW,GAAG,MAAA,MAAM,CAAC,WAAW,mCAAI,EAAE,CAAC;QAC/C,OAAO,CAAC,cAAc,GAAG,MAAA,MAAM,CAAC,cAAc,mCAAI,EAAE,CAAC;QACrD,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC;AAmBF,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IAC1B,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"snapchat.common\";\n\n/** Randomization unit ID */\nexport interface Ruid {\n /** Type of ID for request */\n type: Ruid_Type;\n /** String value of ID */\n stringValue: string;\n /**\n * When specifying a privacy-sensitive RUID (such as device_id), a logging ID should be used instead of the RUID for logging.\n * Each privacy-sensitive RUID type maps to a replacement logging ID type (for example: device_id -> client_id).\n * Note: this is suffixed with `_value` both to indicate it's a value and to avoid conflict with the LoggingId DTO.\n */\n loggingIdValue: string;\n}\n\n/** Randomization units supported for allocation */\nexport enum Ruid_Type {\n /** UNSET - Unknown type */\n UNSET = 0,\n /** USER - Snapchat user ID */\n USER = 1,\n /** DEVICE - Config device ID */\n DEVICE = 2,\n /** WEB_CLIENT - Web client ID */\n WEB_CLIENT = 3,\n /** AD_ACCOUNT - Ad account ID */\n AD_ACCOUNT = 4,\n /** USERNAME - Snapchat username (legacy only) */\n USERNAME = 5,\n /** AD_MODERATION_AD - Ad Id used by Ad Moderation backend. */\n AD_MODERATION_AD = 6,\n /** WEB_SNAPCHAT_USER - Snapchat user id used on web. */\n WEB_SNAPCHAT_USER = 7,\n /** INTERNAL - Internal test RUID, internal use only and no analysis. */\n INTERNAL = 8,\n /** AM_ORGANIZATION - Ads Manager organization ID */\n AM_ORGANIZATION = 9,\n /** AM_MEMBER - Ads Manager member ID */\n AM_MEMBER = 10,\n /** AM_SESSION - Ads Manager session ID */\n AM_SESSION = 11,\n /** AM_PROFILE - Ads Manager profile ID */\n AM_PROFILE = 12,\n /** AM_SNAPCHAT_USER - Snapchat user ID on Ads Manager */\n AM_SNAPCHAT_USER = 13,\n /** SNAPCHAT_ADVERTISING - Snapchat Advertising ID for Budget A/B */\n SNAPCHAT_ADVERTISING = 14,\n /** AM_CLIENT - Ads Manager client ID */\n AM_CLIENT = 15,\n /** MISCHIEF - Mischief id for group chat */\n MISCHIEF = 16,\n UNRECOGNIZED = -1,\n}\n\nfunction createBaseRuid(): Ruid {\n return { type: 0, stringValue: \"\", loggingIdValue: \"\" };\n}\n\nexport const Ruid = {\n encode(message: Ruid, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.type !== 0) {\n writer.uint32(8).int32(message.type);\n }\n if (message.stringValue !== \"\") {\n writer.uint32(18).string(message.stringValue);\n }\n if (message.loggingIdValue !== \"\") {\n writer.uint32(26).string(message.loggingIdValue);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Ruid {\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 = createBaseRuid();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.type = reader.int32() as any;\n break;\n case 2:\n message.stringValue = reader.string();\n break;\n case 3:\n message.loggingIdValue = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Ruid>, I>>(object: I): Ruid {\n const message = createBaseRuid();\n message.type = object.type ?? 0;\n message.stringValue = object.stringValue ?? \"\";\n message.loggingIdValue = object.loggingIdValue ?? \"\";\n return message;\n },\n};\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin\n ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
import { Any } from "../google/protobuf/any";
|
|
3
|
+
export declare const protobufPackage = "snapchat.common";
|
|
4
|
+
export interface MapRecord {
|
|
5
|
+
key: string;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export interface MapRecords {
|
|
9
|
+
records: MapRecord[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `Value` represents a dynamically typed value which can be one of int, long, float, bool,
|
|
13
|
+
* string or Any which represents a serialized proto.
|
|
14
|
+
*/
|
|
15
|
+
export interface Value {
|
|
16
|
+
intValue: number | undefined;
|
|
17
|
+
longValue: number | undefined;
|
|
18
|
+
floatValue: number | undefined;
|
|
19
|
+
doubleValue: number | undefined;
|
|
20
|
+
boolValue: boolean | undefined;
|
|
21
|
+
stringValue: string | undefined;
|
|
22
|
+
anyValue: Any | undefined;
|
|
23
|
+
mapValue: MapRecords | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Because resolution is used so often we pack it into a long.
|
|
26
|
+
* We add this type here to help us identify when a long is a resolution.
|
|
27
|
+
*/
|
|
28
|
+
intPairValue: number | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare const MapRecord: {
|
|
31
|
+
encode(message: MapRecord, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MapRecord;
|
|
33
|
+
fromPartial<I extends {
|
|
34
|
+
key?: string | undefined;
|
|
35
|
+
value?: string | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
key?: string | undefined;
|
|
38
|
+
value?: string | undefined;
|
|
39
|
+
} & Record<Exclude<keyof I, keyof MapRecord>, never>>(object: I): MapRecord;
|
|
40
|
+
};
|
|
41
|
+
export declare const MapRecords: {
|
|
42
|
+
encode(message: MapRecords, writer?: _m0.Writer): _m0.Writer;
|
|
43
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MapRecords;
|
|
44
|
+
fromPartial<I extends {
|
|
45
|
+
records?: {
|
|
46
|
+
key?: string | undefined;
|
|
47
|
+
value?: string | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
records?: ({
|
|
51
|
+
key?: string | undefined;
|
|
52
|
+
value?: string | undefined;
|
|
53
|
+
}[] & ({
|
|
54
|
+
key?: string | undefined;
|
|
55
|
+
value?: string | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
key?: string | undefined;
|
|
58
|
+
value?: string | undefined;
|
|
59
|
+
} & Record<Exclude<keyof I["records"][number], keyof MapRecord>, never>)[] & Record<Exclude<keyof I["records"], keyof {
|
|
60
|
+
key?: string | undefined;
|
|
61
|
+
value?: string | undefined;
|
|
62
|
+
}[]>, never>) | undefined;
|
|
63
|
+
} & Record<Exclude<keyof I, "records">, never>>(object: I): MapRecords;
|
|
64
|
+
};
|
|
65
|
+
export declare const Value: {
|
|
66
|
+
encode(message: Value, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Value;
|
|
68
|
+
fromPartial<I extends {
|
|
69
|
+
intValue?: number | undefined;
|
|
70
|
+
longValue?: number | undefined;
|
|
71
|
+
floatValue?: number | undefined;
|
|
72
|
+
doubleValue?: number | undefined;
|
|
73
|
+
boolValue?: boolean | undefined;
|
|
74
|
+
stringValue?: string | undefined;
|
|
75
|
+
anyValue?: {
|
|
76
|
+
typeUrl?: string | undefined;
|
|
77
|
+
value?: Uint8Array | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
mapValue?: {
|
|
80
|
+
records?: {
|
|
81
|
+
key?: string | undefined;
|
|
82
|
+
value?: string | undefined;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
intPairValue?: number | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
intValue?: number | undefined;
|
|
88
|
+
longValue?: number | undefined;
|
|
89
|
+
floatValue?: number | undefined;
|
|
90
|
+
doubleValue?: number | undefined;
|
|
91
|
+
boolValue?: boolean | undefined;
|
|
92
|
+
stringValue?: string | undefined;
|
|
93
|
+
anyValue?: ({
|
|
94
|
+
typeUrl?: string | undefined;
|
|
95
|
+
value?: Uint8Array | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
typeUrl?: string | undefined;
|
|
98
|
+
value?: Uint8Array | undefined;
|
|
99
|
+
} & Record<Exclude<keyof I["anyValue"], keyof Any>, never>) | undefined;
|
|
100
|
+
mapValue?: ({
|
|
101
|
+
records?: {
|
|
102
|
+
key?: string | undefined;
|
|
103
|
+
value?: string | undefined;
|
|
104
|
+
}[] | undefined;
|
|
105
|
+
} & {
|
|
106
|
+
records?: ({
|
|
107
|
+
key?: string | undefined;
|
|
108
|
+
value?: string | undefined;
|
|
109
|
+
}[] & ({
|
|
110
|
+
key?: string | undefined;
|
|
111
|
+
value?: string | undefined;
|
|
112
|
+
} & {
|
|
113
|
+
key?: string | undefined;
|
|
114
|
+
value?: string | undefined;
|
|
115
|
+
} & Record<Exclude<keyof I["mapValue"]["records"][number], keyof MapRecord>, never>)[] & Record<Exclude<keyof I["mapValue"]["records"], keyof {
|
|
116
|
+
key?: string | undefined;
|
|
117
|
+
value?: string | undefined;
|
|
118
|
+
}[]>, never>) | undefined;
|
|
119
|
+
} & Record<Exclude<keyof I["mapValue"], "records">, never>) | undefined;
|
|
120
|
+
intPairValue?: number | undefined;
|
|
121
|
+
} & Record<Exclude<keyof I, keyof Value>, never>>(object: I): Value;
|
|
122
|
+
};
|
|
123
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
124
|
+
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 {} ? {
|
|
125
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
126
|
+
} : Partial<T>;
|
|
127
|
+
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
128
|
+
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
129
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
130
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
131
|
+
export {};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Any } from "../google/protobuf/any";
|
|
5
|
+
export const protobufPackage = "snapchat.common";
|
|
6
|
+
function createBaseMapRecord() {
|
|
7
|
+
return { key: "", value: "" };
|
|
8
|
+
}
|
|
9
|
+
export const MapRecord = {
|
|
10
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
11
|
+
if (message.key !== "") {
|
|
12
|
+
writer.uint32(10).string(message.key);
|
|
13
|
+
}
|
|
14
|
+
if (message.value !== "") {
|
|
15
|
+
writer.uint32(18).string(message.value);
|
|
16
|
+
}
|
|
17
|
+
return writer;
|
|
18
|
+
},
|
|
19
|
+
decode(input, length) {
|
|
20
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseMapRecord();
|
|
23
|
+
while (reader.pos < end) {
|
|
24
|
+
const tag = reader.uint32();
|
|
25
|
+
switch (tag >>> 3) {
|
|
26
|
+
case 1:
|
|
27
|
+
message.key = reader.string();
|
|
28
|
+
break;
|
|
29
|
+
case 2:
|
|
30
|
+
message.value = reader.string();
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return message;
|
|
38
|
+
},
|
|
39
|
+
fromPartial(object) {
|
|
40
|
+
var _a, _b;
|
|
41
|
+
const message = createBaseMapRecord();
|
|
42
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
43
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
function createBaseMapRecords() {
|
|
48
|
+
return { records: [] };
|
|
49
|
+
}
|
|
50
|
+
export const MapRecords = {
|
|
51
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
52
|
+
for (const v of message.records) {
|
|
53
|
+
MapRecord.encode(v, writer.uint32(10).fork()).ldelim();
|
|
54
|
+
}
|
|
55
|
+
return writer;
|
|
56
|
+
},
|
|
57
|
+
decode(input, length) {
|
|
58
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
59
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBaseMapRecords();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
case 1:
|
|
65
|
+
message.records.push(MapRecord.decode(reader, reader.uint32()));
|
|
66
|
+
break;
|
|
67
|
+
default:
|
|
68
|
+
reader.skipType(tag & 7);
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return message;
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
var _a;
|
|
76
|
+
const message = createBaseMapRecords();
|
|
77
|
+
message.records = ((_a = object.records) === null || _a === void 0 ? void 0 : _a.map((e) => MapRecord.fromPartial(e))) || [];
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseValue() {
|
|
82
|
+
return {
|
|
83
|
+
intValue: undefined,
|
|
84
|
+
longValue: undefined,
|
|
85
|
+
floatValue: undefined,
|
|
86
|
+
doubleValue: undefined,
|
|
87
|
+
boolValue: undefined,
|
|
88
|
+
stringValue: undefined,
|
|
89
|
+
anyValue: undefined,
|
|
90
|
+
mapValue: undefined,
|
|
91
|
+
intPairValue: undefined,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export const Value = {
|
|
95
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
96
|
+
if (message.intValue !== undefined) {
|
|
97
|
+
writer.uint32(8).int32(message.intValue);
|
|
98
|
+
}
|
|
99
|
+
if (message.longValue !== undefined) {
|
|
100
|
+
writer.uint32(16).int64(message.longValue);
|
|
101
|
+
}
|
|
102
|
+
if (message.floatValue !== undefined) {
|
|
103
|
+
writer.uint32(29).float(message.floatValue);
|
|
104
|
+
}
|
|
105
|
+
if (message.doubleValue !== undefined) {
|
|
106
|
+
writer.uint32(73).double(message.doubleValue);
|
|
107
|
+
}
|
|
108
|
+
if (message.boolValue !== undefined) {
|
|
109
|
+
writer.uint32(32).bool(message.boolValue);
|
|
110
|
+
}
|
|
111
|
+
if (message.stringValue !== undefined) {
|
|
112
|
+
writer.uint32(42).string(message.stringValue);
|
|
113
|
+
}
|
|
114
|
+
if (message.anyValue !== undefined) {
|
|
115
|
+
Any.encode(message.anyValue, writer.uint32(50).fork()).ldelim();
|
|
116
|
+
}
|
|
117
|
+
if (message.mapValue !== undefined) {
|
|
118
|
+
MapRecords.encode(message.mapValue, writer.uint32(58).fork()).ldelim();
|
|
119
|
+
}
|
|
120
|
+
if (message.intPairValue !== undefined) {
|
|
121
|
+
writer.uint32(65).fixed64(message.intPairValue);
|
|
122
|
+
}
|
|
123
|
+
return writer;
|
|
124
|
+
},
|
|
125
|
+
decode(input, length) {
|
|
126
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
127
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
128
|
+
const message = createBaseValue();
|
|
129
|
+
while (reader.pos < end) {
|
|
130
|
+
const tag = reader.uint32();
|
|
131
|
+
switch (tag >>> 3) {
|
|
132
|
+
case 1:
|
|
133
|
+
message.intValue = reader.int32();
|
|
134
|
+
break;
|
|
135
|
+
case 2:
|
|
136
|
+
message.longValue = longToNumber(reader.int64());
|
|
137
|
+
break;
|
|
138
|
+
case 3:
|
|
139
|
+
message.floatValue = reader.float();
|
|
140
|
+
break;
|
|
141
|
+
case 9:
|
|
142
|
+
message.doubleValue = reader.double();
|
|
143
|
+
break;
|
|
144
|
+
case 4:
|
|
145
|
+
message.boolValue = reader.bool();
|
|
146
|
+
break;
|
|
147
|
+
case 5:
|
|
148
|
+
message.stringValue = reader.string();
|
|
149
|
+
break;
|
|
150
|
+
case 6:
|
|
151
|
+
message.anyValue = Any.decode(reader, reader.uint32());
|
|
152
|
+
break;
|
|
153
|
+
case 7:
|
|
154
|
+
message.mapValue = MapRecords.decode(reader, reader.uint32());
|
|
155
|
+
break;
|
|
156
|
+
case 8:
|
|
157
|
+
message.intPairValue = longToNumber(reader.fixed64());
|
|
158
|
+
break;
|
|
159
|
+
default:
|
|
160
|
+
reader.skipType(tag & 7);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return message;
|
|
165
|
+
},
|
|
166
|
+
fromPartial(object) {
|
|
167
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
168
|
+
const message = createBaseValue();
|
|
169
|
+
message.intValue = (_a = object.intValue) !== null && _a !== void 0 ? _a : undefined;
|
|
170
|
+
message.longValue = (_b = object.longValue) !== null && _b !== void 0 ? _b : undefined;
|
|
171
|
+
message.floatValue = (_c = object.floatValue) !== null && _c !== void 0 ? _c : undefined;
|
|
172
|
+
message.doubleValue = (_d = object.doubleValue) !== null && _d !== void 0 ? _d : undefined;
|
|
173
|
+
message.boolValue = (_e = object.boolValue) !== null && _e !== void 0 ? _e : undefined;
|
|
174
|
+
message.stringValue = (_f = object.stringValue) !== null && _f !== void 0 ? _f : undefined;
|
|
175
|
+
message.anyValue =
|
|
176
|
+
object.anyValue !== undefined && object.anyValue !== null ? Any.fromPartial(object.anyValue) : undefined;
|
|
177
|
+
message.mapValue =
|
|
178
|
+
object.mapValue !== undefined && object.mapValue !== null ? MapRecords.fromPartial(object.mapValue) : undefined;
|
|
179
|
+
message.intPairValue = (_g = object.intPairValue) !== null && _g !== void 0 ? _g : undefined;
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
var globalThis = (() => {
|
|
184
|
+
if (typeof globalThis !== "undefined")
|
|
185
|
+
return globalThis;
|
|
186
|
+
if (typeof self !== "undefined")
|
|
187
|
+
return self;
|
|
188
|
+
if (typeof window !== "undefined")
|
|
189
|
+
return window;
|
|
190
|
+
if (typeof global !== "undefined")
|
|
191
|
+
return global;
|
|
192
|
+
throw "Unable to locate global object";
|
|
193
|
+
})();
|
|
194
|
+
function longToNumber(long) {
|
|
195
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
196
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
197
|
+
}
|
|
198
|
+
return long.toNumber();
|
|
199
|
+
}
|
|
200
|
+
if (_m0.util.Long !== Long) {
|
|
201
|
+
_m0.util.Long = Long;
|
|
202
|
+
_m0.configure();
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value.js","sourceRoot":"","sources":["../../../../src/generated-proto/pb_schema/common/value.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE7C,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AA+BjD,SAAS,mBAAmB;IAC1B,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,CAAC,OAAkB,EAAE,SAAqB,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE;QACjE,IAAI,OAAO,CAAC,GAAG,KAAK,EAAE,EAAE;YACtB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACvC;QACD,IAAI,OAAO,CAAC,KAAK,KAAK,EAAE,EAAE;YACxB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAA8B,EAAE,MAAe;QACpD,MAAM,MAAM,GAAG,KAAK,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3E,IAAI,GAAG,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;QAClE,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAA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port _m0 from \"protobufjs/minimal\";\nimport { Any } from \"../google/protobuf/any\";\n\nexport const protobufPackage = \"snapchat.common\";\n\nexport interface MapRecord {\n key: string;\n value: string;\n}\n\nexport interface MapRecords {\n records: MapRecord[];\n}\n\n/**\n * `Value` represents a dynamically typed value which can be one of int, long, float, bool,\n * string or Any which represents a serialized proto.\n */\nexport interface Value {\n intValue: number | undefined;\n longValue: number | undefined;\n floatValue: number | undefined;\n doubleValue: number | undefined;\n boolValue: boolean | undefined;\n stringValue: string | undefined;\n anyValue: Any | undefined;\n mapValue: MapRecords | undefined;\n /**\n * Because resolution is used so often we pack it into a long.\n * We add this type here to help us identify when a long is a resolution.\n */\n intPairValue: number | undefined;\n}\n\nfunction createBaseMapRecord(): MapRecord {\n return { key: \"\", value: \"\" };\n}\n\nexport const MapRecord = {\n encode(message: MapRecord, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.key !== \"\") {\n writer.uint32(10).string(message.key);\n }\n if (message.value !== \"\") {\n writer.uint32(18).string(message.value);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): MapRecord {\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 = createBaseMapRecord();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.key = reader.string();\n break;\n case 2:\n message.value = reader.string();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<MapRecord>, I>>(object: I): MapRecord {\n const message = createBaseMapRecord();\n message.key = object.key ?? \"\";\n message.value = object.value ?? \"\";\n return message;\n },\n};\n\nfunction createBaseMapRecords(): MapRecords {\n return { records: [] };\n}\n\nexport const MapRecords = {\n encode(message: MapRecords, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.records) {\n MapRecord.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): MapRecords {\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 = createBaseMapRecords();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.records.push(MapRecord.decode(reader, reader.uint32()));\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<MapRecords>, I>>(object: I): MapRecords {\n const message = createBaseMapRecords();\n message.records = object.records?.map((e) => MapRecord.fromPartial(e)) || [];\n return message;\n },\n};\n\nfunction createBaseValue(): Value {\n return {\n intValue: undefined,\n longValue: undefined,\n floatValue: undefined,\n doubleValue: undefined,\n boolValue: undefined,\n stringValue: undefined,\n anyValue: undefined,\n mapValue: undefined,\n intPairValue: undefined,\n };\n}\n\nexport const Value = {\n encode(message: Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.intValue !== undefined) {\n writer.uint32(8).int32(message.intValue);\n }\n if (message.longValue !== undefined) {\n writer.uint32(16).int64(message.longValue);\n }\n if (message.floatValue !== undefined) {\n writer.uint32(29).float(message.floatValue);\n }\n if (message.doubleValue !== undefined) {\n writer.uint32(73).double(message.doubleValue);\n }\n if (message.boolValue !== undefined) {\n writer.uint32(32).bool(message.boolValue);\n }\n if (message.stringValue !== undefined) {\n writer.uint32(42).string(message.stringValue);\n }\n if (message.anyValue !== undefined) {\n Any.encode(message.anyValue, writer.uint32(50).fork()).ldelim();\n }\n if (message.mapValue !== undefined) {\n MapRecords.encode(message.mapValue, writer.uint32(58).fork()).ldelim();\n }\n if (message.intPairValue !== undefined) {\n writer.uint32(65).fixed64(message.intPairValue);\n }\n return writer;\n },\n\n decode(input: _m0.Reader | Uint8Array, length?: number): Value {\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 = createBaseValue();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.intValue = reader.int32();\n break;\n case 2:\n message.longValue = longToNumber(reader.int64() as Long);\n break;\n case 3:\n message.floatValue = reader.float();\n break;\n case 9:\n message.doubleValue = reader.double();\n break;\n case 4:\n message.boolValue = reader.bool();\n break;\n case 5:\n message.stringValue = reader.string();\n break;\n case 6:\n message.anyValue = Any.decode(reader, reader.uint32());\n break;\n case 7:\n message.mapValue = MapRecords.decode(reader, reader.uint32());\n break;\n case 8:\n message.intPairValue = longToNumber(reader.fixed64() as Long);\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n\n fromPartial<I extends Exact<DeepPartial<Value>, I>>(object: I): Value {\n const message = createBaseValue();\n message.intValue = object.intValue ?? undefined;\n message.longValue = object.longValue ?? undefined;\n message.floatValue = object.floatValue ?? undefined;\n message.doubleValue = object.doubleValue ?? undefined;\n message.boolValue = object.boolValue ?? undefined;\n message.stringValue = object.stringValue ?? undefined;\n message.anyValue =\n object.anyValue !== undefined && object.anyValue !== null ? Any.fromPartial(object.anyValue) : undefined;\n message.mapValue =\n object.mapValue !== undefined && object.mapValue !== null ? MapRecords.fromPartial(object.mapValue) : undefined;\n message.intPairValue = object.intPairValue ?? undefined;\n return message;\n },\n};\n\ndeclare var self: any | undefined;\ndeclare var window: any | undefined;\ndeclare var global: any | undefined;\nvar globalThis: any = (() => {\n if (typeof globalThis !== \"undefined\") return globalThis;\n if (typeof self !== \"undefined\") return self;\n if (typeof window !== \"undefined\") return window;\n if (typeof global !== \"undefined\") return global;\n throw \"Unable to locate global object\";\n})();\n\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\n\nexport type DeepPartial<T> = T extends Builtin\n ? T\n : T extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T extends ReadonlyArray<infer U>\n ? ReadonlyArray<DeepPartial<U>>\n : T extends {}\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : Partial<T>;\n\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin\n ? P\n : P & { [K in keyof P]: Exact<P[K], I[K]> } & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\n\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}\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const protobufPackage = "google.api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/google/api/annotations.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,YAAY,CAAC;AAE5C,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,EAAE;IAC1B,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;IAC5B,GAAG,CAAC,SAAS,EAAE,CAAC;CACjB","sourcesContent":["/* eslint-disable */\nimport Long from \"long\";\nimport _m0 from \"protobufjs/minimal\";\n\nexport const protobufPackage = \"google.api\";\n\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|