@snap/camera-kit 0.8.0 → 0.9.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/docs/html/assets/main.js +57 -53
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +504 -362
- package/docs/html/classes/CameraKit.html +113 -47
- package/docs/html/classes/CameraKitSession.html +202 -142
- package/docs/html/classes/CameraKitSource.html +124 -60
- package/docs/html/classes/LensPerformanceMeasurement.html +112 -46
- package/docs/html/classes/LensPerformanceMetrics.html +97 -32
- package/docs/html/classes/LensRepository.html +130 -66
- package/docs/html/classes/LensSources.html +98 -32
- package/docs/html/classes/Transform2D.html +111 -43
- package/docs/html/classes/TypedCustomEvent.html +109 -47
- package/docs/html/classes/TypedEventTarget.html +125 -65
- package/docs/html/functions/Injectable.html +113 -120
- package/docs/html/functions/bootstrapCameraKit.html +100 -104
- package/docs/html/functions/createExtension.html +90 -94
- package/docs/html/functions/createImageSource.html +90 -93
- package/docs/html/functions/createMediaStreamSource.html +90 -93
- package/docs/html/functions/createUserMediaSource.html +92 -96
- package/docs/html/functions/createVideoSource.html +90 -93
- package/docs/html/functions/estimateLensPerformance.html +88 -92
- package/docs/html/functions/getRequiredBootstrapURLs.html +90 -94
- package/docs/html/functions/lensSourcesFactory.html +88 -91
- package/docs/html/functions/uriHandlersFactory.html +88 -91
- package/docs/html/index.html +134 -170
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +115 -49
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +111 -45
- package/docs/html/interfaces/ComputedFrameMetrics.html +98 -32
- package/docs/html/interfaces/CreateSessionOptions.html +95 -29
- package/docs/html/interfaces/EstimatedLensPerformance.html +98 -32
- package/docs/html/interfaces/Lens.html +115 -49
- package/docs/html/interfaces/LensSource.html +107 -41
- package/docs/html/interfaces/MediaStreamSourceOptions.html +94 -28
- package/docs/html/interfaces/UriCancelRequest.html +94 -28
- package/docs/html/interfaces/UriHandler.html +108 -42
- package/docs/html/interfaces/UriRequest.html +106 -40
- package/docs/html/interfaces/UriResponse.html +106 -40
- package/docs/html/interfaces/VideoSourceOptions.html +90 -24
- package/docs/html/modules.html +161 -164
- package/docs/html/types/AssetLoader.html +91 -94
- package/docs/html/types/AssetTiming.html +85 -88
- package/docs/html/types/BenchmarkError.html +85 -88
- package/docs/html/types/BootstrapError.html +86 -89
- package/docs/html/types/CacheKeyNotFoundError.html +85 -88
- package/docs/html/types/CameraKitDeviceInfo.html +87 -90
- package/docs/html/types/CameraKitSessionEventListener.html +86 -89
- package/docs/html/types/CameraKitSessionEvents.html +88 -91
- package/docs/html/types/CameraKitSourceError.html +85 -88
- package/docs/html/types/CameraKitSourceInfo.html +85 -88
- package/docs/html/types/CameraKitSourceOptions.html +88 -92
- package/docs/html/types/ConfigurationError.html +86 -89
- package/docs/html/types/Keyboard.html +108 -111
- package/docs/html/types/KeyboardEvents.html +86 -89
- package/docs/html/types/LegalError.html +85 -88
- package/docs/html/types/LensAssetError.html +85 -88
- package/docs/html/types/LensContentValidationError.html +85 -88
- package/docs/html/types/LensError.html +85 -88
- package/docs/html/types/LensExecutionError.html +86 -89
- package/docs/html/types/LensImagePickerError.html +85 -88
- package/docs/html/types/LensLaunchParams.html +85 -88
- package/docs/html/types/LensMetricsEvents.html +86 -89
- package/docs/html/types/LensPerformanceCluster.html +85 -88
- package/docs/html/types/LensView.html +85 -88
- package/docs/html/types/LensWait.html +85 -88
- package/docs/html/types/PersistentStoreError.html +85 -88
- package/docs/html/types/PlatformNotSupportedError.html +86 -89
- package/docs/html/types/PublicContainer.html +85 -88
- package/docs/html/types/RenderTarget.html +85 -88
- package/docs/html/types/Uri.html +85 -88
- package/docs/html/types/UriHandlers.html +86 -89
- package/docs/html/types/WebGLError.html +85 -88
- package/docs/html/variables/extensionRequestContext.html +85 -88
- package/docs/md/README.md +1 -1
- package/docs/md/classes/CameraKit.md +1 -1
- package/docs/md/classes/CameraKitSession.md +1 -1
- package/docs/md/classes/CameraKitSource.md +1 -1
- package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
- package/docs/md/classes/LensPerformanceMetrics.md +1 -1
- package/docs/md/classes/LensRepository.md +3 -3
- package/docs/md/classes/LensSources.md +1 -1
- package/docs/md/classes/Transform2D.md +3 -1
- package/docs/md/classes/TypedCustomEvent.md +1 -1
- package/docs/md/classes/TypedEventTarget.md +3 -3
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
- package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
- package/docs/md/interfaces/CreateSessionOptions.md +1 -1
- package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
- package/docs/md/interfaces/Lens.md +1 -1
- package/docs/md/interfaces/LensSource.md +1 -1
- package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
- package/docs/md/interfaces/UriCancelRequest.md +1 -1
- package/docs/md/interfaces/UriHandler.md +1 -1
- package/docs/md/interfaces/UriRequest.md +1 -1
- package/docs/md/interfaces/UriResponse.md +1 -1
- package/docs/md/interfaces/VideoSourceOptions.md +1 -1
- package/docs/md/modules.md +3 -3
- package/lib/CameraKit.d.ts +7 -7
- package/lib/__tests__/data.d.ts +1 -1
- package/lib/__tests__/deferred.d.ts +1 -1
- package/lib/__tests__/jest.matchers.d.ts +1 -1
- package/lib/benchmark/estimateLensPerformanceCluster.d.ts +2 -2
- package/lib/bootstrapCameraKit.d.ts +1 -1
- package/lib/common/cameraKitUserAgent.d.ts +1 -1
- package/lib/common/localization.d.ts +8 -4
- package/lib/common/localization.js.map +1 -1
- package/lib/common/memoize.d.ts +2 -2
- package/lib/common/pageVisibility.js +1 -1
- package/lib/common/pageVisibility.js.map +1 -1
- package/lib/common/typeguards.d.ts +2 -2
- package/lib/common/types.d.ts +2 -2
- package/lib/common/validate.js +20 -12
- package/lib/common/validate.js.map +1 -1
- package/lib/configuration.d.ts +1 -1
- package/lib/configuration.js.map +1 -1
- package/lib/configurationOverrides.d.ts +1 -1
- package/lib/dependency-injection/Container.d.ts +5 -6
- package/lib/dependency-injection/Container.js +1 -1
- package/lib/dependency-injection/Container.js.map +1 -1
- package/lib/dependency-injection/PartialContainer.d.ts +10 -6
- package/lib/dependency-injection/PartialContainer.js.map +1 -1
- package/lib/dependency-injection/RootServices.d.ts +2 -2
- package/lib/dependency-injection/types.d.ts +9 -9
- package/lib/dependency-injection/types.js.map +1 -1
- package/lib/environment.json +1 -1
- package/lib/events/TypedCustomEvent.d.ts +1 -1
- package/lib/events/TypedEventTarget.d.ts +2 -2
- package/lib/events/scan.d.ts +1 -1
- package/lib/events/scan.js +3 -3
- package/lib/events/scan.js.map +1 -1
- package/lib/extensions/UriHandlers.d.ts +1 -1
- package/lib/generated-proto/blizzard/cameraKitEvents.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js +3 -3
- package/lib/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js +9 -9
- package/lib/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +2 -2
- package/lib/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js +17 -17
- package/lib/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js +3 -3
- package/lib/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.d.ts +4 -4
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js +25 -25
- package/lib/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
- package/lib/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +4 -4
- package/lib/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +4533 -333
- package/lib/generated-proto/pb_schema/cdp/cof/config_request.d.ts +4 -4
- package/lib/generated-proto/pb_schema/cdp/cof/config_response.d.ts +572 -32
- package/lib/generated-proto/pb_schema/cdp/cof/config_result.d.ts +4 -4
- package/lib/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +4 -4
- package/lib/generated-proto/pb_schema/common/ruid.d.ts +4 -4
- package/lib/generated-proto/pb_schema/common/value.d.ts +4 -4
- package/lib/generated-proto/pb_schema/google/api/http.d.ts +4 -4
- package/lib/generated-proto/pb_schema/google/protobuf/any.d.ts +4 -4
- package/lib/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +4 -4
- package/lib/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +4 -4
- package/lib/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/geocircle.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/geopoint.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/launch_params.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/launchdata.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/lures.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/persistent_store.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/snappable.d.ts +4 -4
- package/lib/generated-proto/pb_schema/lenses/user_data.d.ts +4 -4
- package/lib/handlers/HandlerChainBuilder.d.ts +3 -3
- package/lib/handlers/arrayBufferParsingHandler.d.ts +2 -2
- package/lib/handlers/arrayBufferParsingHandler.js.map +1 -1
- package/lib/handlers/cameraKitServiceFetchHandlerFactory.d.ts +1 -1
- package/lib/handlers/defaultFetchHandler.d.ts +1 -1
- package/lib/handlers/headersModifyingFetchHandler.js +5 -1
- package/lib/handlers/headersModifyingFetchHandler.js.map +1 -1
- package/lib/handlers/noCorsRetryingFetchHandler.js +4 -3
- package/lib/handlers/noCorsRetryingFetchHandler.js.map +1 -1
- package/lib/handlers/requestStateEmittingHandler.d.ts +2 -2
- package/lib/handlers/requestStateEmittingHandler.js.map +1 -1
- package/lib/handlers/responseCachingHandler.d.ts +1 -1
- package/lib/handlers/responseCachingHandler.js.map +1 -1
- package/lib/handlers/retryingHandler.d.ts +7 -0
- package/lib/handlers/retryingHandler.js +14 -5
- package/lib/handlers/retryingHandler.js.map +1 -1
- package/lib/legal/legalPrompt.d.ts +1 -1
- package/lib/legal/legalPrompt.js.map +1 -1
- package/lib/legal/legalState.d.ts +1 -1
- package/lib/legal/legalState.js.map +1 -1
- package/lib/lens/Lens.d.ts +1 -1
- package/lib/lens/LensLaunchParams.d.ts +2 -2
- package/lib/lens/LensRepository.d.ts +7 -8
- package/lib/lens/LensRepository.js.map +1 -1
- package/lib/lens/assets/LensAssetRepository.d.ts +2 -2
- package/lib/lens/assets/LensAssetsProvider.d.ts +1 -1
- package/lib/lens/assets/deviceDependentAssetLoader.d.ts +1 -1
- package/lib/lens/assets/remoteMediaAssetLoaderFactory.d.ts +1 -1
- package/lib/lens/assets/staticAssetLoader.d.ts +1 -1
- package/lib/lens-core-module/generated-types.d.ts +29 -29
- package/lib/lens-core-module/loader/lensCoreFactory.d.ts +1 -1
- package/lib/lensCoreWasmVersions.json +3 -3
- package/lib/logger/logger.d.ts +2 -2
- package/lib/media-sources/CameraKitSource.d.ts +3 -3
- package/lib/media-sources/CameraKitSource.js.map +1 -1
- package/lib/media-sources/FunctionSource.d.ts +1 -1
- package/lib/metrics/businessEventsReporter.d.ts +4 -4
- package/lib/metrics/businessEventsReporter.js.map +1 -1
- package/lib/metrics/metricsEventTarget.d.ts +5 -5
- package/lib/metrics/metricsHandler.d.ts +1 -1
- package/lib/metrics/operationalMetricsReporter.d.ts +2 -2
- package/lib/metrics/reporters/reportBenchmarks.d.ts +1 -1
- package/lib/metrics/reporters/reportLegalState.d.ts +1 -1
- package/lib/metrics/reporters/reportLensAndAssetDownload.d.ts +4 -4
- package/lib/metrics/reporters/reportLensValidationFailed.d.ts +1 -1
- package/lib/metrics/reporters/reportLensView.d.ts +1 -1
- package/lib/metrics/reporters/reportLensView.js +1 -1
- package/lib/metrics/reporters/reportLensView.js.map +1 -1
- package/lib/metrics/reporters/reportLensWait.d.ts +1 -1
- package/lib/metrics/reporters/reportUserSession.d.ts +1 -1
- package/lib/namedErrors.d.ts +17 -17
- package/lib/persistence/Persistence.d.ts +1 -1
- package/lib/remote-configuration/cofHandler.d.ts +1 -1
- package/lib/remote-configuration/cofHandler.js +7 -2
- package/lib/remote-configuration/cofHandler.js.map +1 -1
- package/lib/session/CameraKitSession.d.ts +1 -1
- package/lib/session/CameraKitSession.js.map +1 -1
- package/lib/session/CameraKitSessionEvents.d.ts +3 -3
- package/lib/session/LensKeyboard.d.ts +2 -2
- package/lib/session/LensPerformanceMetrics.js.map +1 -1
- package/lib/session/lensState.d.ts +2 -2
- package/lib/session/lensState.js.map +1 -1
- package/lib/session/sessionState.d.ts +1 -1
- package/lib/transforms/Transform2D.js +2 -1
- package/lib/transforms/Transform2D.js.map +1 -1
- package/package.json +14 -14
- package/docs/html/assets/widgets.png +0 -0
- package/docs/html/assets/widgets@2x.png +0 -0
|
@@ -1 +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,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M,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAI,EAAE,CAAC;QACtE,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC;AAYF,IAAI,UAAU,GAAQ,CAAC,GAAG,EAAE;IACxB,IAAI,OAAO,UAAU,KAAK,WAAW;QACjC,OAAO,UAAU,CAAC;IACtB,IAAI,OAAO,IAAI,KAAK,WAAW;QAC3B,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"]}
|
|
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,CAAC,EANW,8CAA8C,KAA9C,8CAA8C,QAMzD;AACD,MAAM,UAAU,sDAAsD,CAAC,MAAW;IAC9E,QAAQ,MAAM,EAAE;QACZ,KAAK,CAAC,CAAC;QACP,KAAK,OAAO;YACR,OAAO,8CAA8C,CAAC,KAAK,CAAC;QAChE,KAAK,CAAC,CAAC;QACP,KAAK,UAAU;YACX,OAAO,8CAA8C,CAAC,QAAQ,CAAC;QACnE,KAAK,CAAC,CAAC,CAAC;QACR,KAAK,cAAc,CAAC;QACpB;YACI,OAAO,8CAA8C,CAAC,YAAY,CAAC;KAC1E;AACL,CAAC;AACD,MAAM,UAAU,sDAAsD,CAAC,MAAsD;IACzH,QAAQ,MAAM,EAAE;QACZ,KAAK,8CAA8C,CAAC,KAAK;YACrD,OAAO,CAAC,CAAC;QACb,KAAK,8CAA8C,CAAC,QAAQ;YACxD,OAAO,CAAC,CAAC;QACb;YACI,OAAO,CAAC,CA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ACnB","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"]}
|
|
@@ -83,8 +83,8 @@ export declare const LegalDocument: {
|
|
|
83
83
|
timestamp?: Date | undefined;
|
|
84
84
|
} & Record<Exclude<keyof I, keyof LegalDocument>, never>>(object: I): LegalDocument;
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
export
|
|
86
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
87
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
88
88
|
$case: string;
|
|
89
89
|
} ? {
|
|
90
90
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -93,8 +93,8 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<inf
|
|
|
93
93
|
} : T extends {} ? {
|
|
94
94
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
95
95
|
} : Partial<T>;
|
|
96
|
-
|
|
97
|
-
export
|
|
96
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
97
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
98
98
|
[K in keyof P]: Exact<P[K], I[K]>;
|
|
99
99
|
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
100
100
|
export {};
|
|
@@ -89,7 +89,7 @@ export const LegalPrompt = {
|
|
|
89
89
|
message.documents = ((_a = object.documents) === null || _a === void 0 ? void 0 : _a.map((e) => LegalDocument.fromPartial(e))) || [];
|
|
90
90
|
message.disabled = (_b = object.disabled) !== null && _b !== void 0 ? _b : false;
|
|
91
91
|
return message;
|
|
92
|
-
}
|
|
92
|
+
},
|
|
93
93
|
};
|
|
94
94
|
function createBaseLegalDocument() {
|
|
95
95
|
return { type: LegalDocument_Type.UNSET, webUrl: "", version: "", timestamp: undefined };
|
|
@@ -144,7 +144,7 @@ export const LegalDocument = {
|
|
|
144
144
|
message.version = (_c = object.version) !== null && _c !== void 0 ? _c : "";
|
|
145
145
|
message.timestamp = (_d = object.timestamp) !== null && _d !== void 0 ? _d : undefined;
|
|
146
146
|
return message;
|
|
147
|
-
}
|
|
147
|
+
},
|
|
148
148
|
};
|
|
149
149
|
// @ts-ignore
|
|
150
150
|
function toTimestamp(date) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal_prompt.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/camera_kit/v3/legal_prompt.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAAC;AAmBvD,yEAAyE;AACzE,MAAM,CAAN,IAAY,kBAUX;AAVD,WAAY,kBAAkB;IAC1B,mCAAmC;IACnC,qCAAe,CAAA;IACf,yEAAyE;IACzE,2DAAqC,CAAA;IACrC,qEAAqE;IACrE,uDAAiC,CAAA;IACjC,+EAA+E;IAC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CAAC,IAAI,mCAAI,kBAAkB,CAAC,KAAK,CAAC;QACvD,OAAO,CAAC,MAAM,GAAG,MAAA,MAAM,CAAC,MAAM,mCAAI,EAAE,CAAC;QACrC,OAAO,CAAC,OAAO,GAAG,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;QACvC,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,SAAS,CAAC;QAClD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC;AAeF,aAAa;AACb,SAAS,WAAW,CAAC,IAAU;IAC3B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC;IAChD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AACD,SAAS,aAAa,CAAC,CAAY;IAC/B,IAAI,MAAM,GAAG,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC;IAC9B,MAAM,IAAI,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC;IAC5B,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5B,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 { Timestamp } from \"../../google/protobuf/timestamp\";\nexport const protobufPackage = \"com.snap.camerakit.v3\";\n/** Legal information that should be presented to a user as a prompt each time its (doccument) contents change. */\nexport interface LegalPrompt {\n /** A set of documents to present in a legal prompt for a user to agree, deny or ignore. */\n documents: LegalDocument[];\n /** True if the legal prompt should be disabled, false otherwise. */\n disabled: boolean;\n}\n/** Reference to a legal and versioned document which content users can acccess by visiting a url. */\nexport interface LegalDocument {\n /** The type of this legal document. */\n type: LegalDocument_Type;\n /** Web link to the full legal document, intented to be presented in a browser to retain Snap's branding and formatting. */\n webUrl: string;\n /** Version of this legal document. */\n version: string;\n /** Timestamp when this document was made available. */\n timestamp: Date | undefined;\n}\n/** All known types of legal documents that may be provided to a user. */\nexport enum LegalDocument_Type {\n /** UNSET - Default unset field. */\n UNSET = \"UNSET\",\n /** TERMS_OF_SERVICE - Represents terms of service type of a document. */\n TERMS_OF_SERVICE = \"TERMS_OF_SERVICE\",\n /** PRIVACY_POLICY - Represents privacy policy type of a document. */\n PRIVACY_POLICY = \"PRIVACY_POLICY\",\n /** LEARN_MORE - Represents additional legal information type of a document. */\n LEARN_MORE = \"LEARN_MORE\",\n UNRECOGNIZED = \"UNRECOGNIZED\"\n}\nexport function legalDocument_TypeFromJSON(object: any): LegalDocument_Type {\n switch (object) {\n case 0:\n case \"UNSET\":\n return LegalDocument_Type.UNSET;\n case 1:\n case \"TERMS_OF_SERVICE\":\n return LegalDocument_Type.TERMS_OF_SERVICE;\n case 2:\n case \"PRIVACY_POLICY\":\n return LegalDocument_Type.PRIVACY_POLICY;\n case 3:\n case \"LEARN_MORE\":\n return LegalDocument_Type.LEARN_MORE;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return LegalDocument_Type.UNRECOGNIZED;\n }\n}\nexport function legalDocument_TypeToNumber(object: LegalDocument_Type): number {\n switch (object) {\n case LegalDocument_Type.UNSET:\n return 0;\n case LegalDocument_Type.TERMS_OF_SERVICE:\n return 1;\n case LegalDocument_Type.PRIVACY_POLICY:\n return 2;\n case LegalDocument_Type.LEARN_MORE:\n return 3;\n default:\n return 0;\n }\n}\nfunction createBaseLegalPrompt(): LegalPrompt {\n return { documents: [], disabled: false };\n}\nexport const LegalPrompt = {\n encode(message: LegalPrompt, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.documents) {\n LegalDocument.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n if (message.disabled === true) {\n writer.uint32(16).bool(message.disabled);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): LegalPrompt {\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 = createBaseLegalPrompt();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.documents.push(LegalDocument.decode(reader, reader.uint32()));\n break;\n case 2:\n message.disabled = reader.bool();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<LegalPrompt>, I>>(object: I): LegalPrompt {\n const message = createBaseLegalPrompt();\n message.documents = object.documents?.map((e) => LegalDocument.fromPartial(e)) || [];\n message.disabled = object.disabled ?? false;\n return message;\n }\n};\nfunction createBaseLegalDocument(): LegalDocument {\n return { type: LegalDocument_Type.UNSET, webUrl: \"\", version: \"\", timestamp: undefined };\n}\nexport const LegalDocument = {\n encode(message: LegalDocument, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.type !== LegalDocument_Type.UNSET) {\n writer.uint32(8).int32(legalDocument_TypeToNumber(message.type));\n }\n if (message.webUrl !== \"\") {\n writer.uint32(18).string(message.webUrl);\n }\n if (message.version !== \"\") {\n writer.uint32(26).string(message.version);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(34).fork()).ldelim();\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): LegalDocument {\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 = createBaseLegalDocument();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.type = legalDocument_TypeFromJSON(reader.int32());\n break;\n case 2:\n message.webUrl = reader.string();\n break;\n case 3:\n message.version = reader.string();\n break;\n case 4:\n message.timestamp = fromTimestamp(Timestamp.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<LegalDocument>, I>>(object: I): LegalDocument {\n const message = createBaseLegalDocument();\n message.type = object.type ?? LegalDocument_Type.UNSET;\n message.webUrl = object.webUrl ?? \"\";\n message.version = object.version ?? \"\";\n message.timestamp = object.timestamp ?? undefined;\n return message;\n }\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {\n $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>;\n// @ts-ignore\nfunction toTimestamp(date: Date): Timestamp {\n const seconds = date.getTime() / 1000;\n const nanos = (date.getTime() % 1000) * 1000000;\n return { seconds, nanos };\n}\nfunction fromTimestamp(t: Timestamp): Date {\n let millis = t.seconds * 1000;\n millis += t.nanos / 1000000;\n return new Date(millis);\n}\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
1
|
+
{"version":3,"file":"legal_prompt.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/camera_kit/v3/legal_prompt.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,MAAM,C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{ Timestamp } from \"../../google/protobuf/timestamp\";\nexport const protobufPackage = \"com.snap.camerakit.v3\";\n/** Legal information that should be presented to a user as a prompt each time its (doccument) contents change. */\nexport interface LegalPrompt {\n /** A set of documents to present in a legal prompt for a user to agree, deny or ignore. */\n documents: LegalDocument[];\n /** True if the legal prompt should be disabled, false otherwise. */\n disabled: boolean;\n}\n/** Reference to a legal and versioned document which content users can acccess by visiting a url. */\nexport interface LegalDocument {\n /** The type of this legal document. */\n type: LegalDocument_Type;\n /** Web link to the full legal document, intented to be presented in a browser to retain Snap's branding and formatting. */\n webUrl: string;\n /** Version of this legal document. */\n version: string;\n /** Timestamp when this document was made available. */\n timestamp: Date | undefined;\n}\n/** All known types of legal documents that may be provided to a user. */\nexport enum LegalDocument_Type {\n /** UNSET - Default unset field. */\n UNSET = \"UNSET\",\n /** TERMS_OF_SERVICE - Represents terms of service type of a document. */\n TERMS_OF_SERVICE = \"TERMS_OF_SERVICE\",\n /** PRIVACY_POLICY - Represents privacy policy type of a document. */\n PRIVACY_POLICY = \"PRIVACY_POLICY\",\n /** LEARN_MORE - Represents additional legal information type of a document. */\n LEARN_MORE = \"LEARN_MORE\",\n UNRECOGNIZED = \"UNRECOGNIZED\"\n}\nexport function legalDocument_TypeFromJSON(object: any): LegalDocument_Type {\n switch (object) {\n case 0:\n case \"UNSET\":\n return LegalDocument_Type.UNSET;\n case 1:\n case \"TERMS_OF_SERVICE\":\n return LegalDocument_Type.TERMS_OF_SERVICE;\n case 2:\n case \"PRIVACY_POLICY\":\n return LegalDocument_Type.PRIVACY_POLICY;\n case 3:\n case \"LEARN_MORE\":\n return LegalDocument_Type.LEARN_MORE;\n case -1:\n case \"UNRECOGNIZED\":\n default:\n return LegalDocument_Type.UNRECOGNIZED;\n }\n}\nexport function legalDocument_TypeToNumber(object: LegalDocument_Type): number {\n switch (object) {\n case LegalDocument_Type.UNSET:\n return 0;\n case LegalDocument_Type.TERMS_OF_SERVICE:\n return 1;\n case LegalDocument_Type.PRIVACY_POLICY:\n return 2;\n case LegalDocument_Type.LEARN_MORE:\n return 3;\n default:\n return 0;\n }\n}\nfunction createBaseLegalPrompt(): LegalPrompt {\n return { documents: [], disabled: false };\n}\nexport const LegalPrompt = {\n encode(message: LegalPrompt, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n for (const v of message.documents) {\n LegalDocument.encode(v!, writer.uint32(10).fork()).ldelim();\n }\n if (message.disabled === true) {\n writer.uint32(16).bool(message.disabled);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): LegalPrompt {\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 = createBaseLegalPrompt();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.documents.push(LegalDocument.decode(reader, reader.uint32()));\n break;\n case 2:\n message.disabled = reader.bool();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n },\n fromPartial<I extends Exact<DeepPartial<LegalPrompt>, I>>(object: I): LegalPrompt {\n const message = createBaseLegalPrompt();\n message.documents = object.documents?.map((e) => LegalDocument.fromPartial(e)) || [];\n message.disabled = object.disabled ?? false;\n return message;\n },\n};\nfunction createBaseLegalDocument(): LegalDocument {\n return { type: LegalDocument_Type.UNSET, webUrl: \"\", version: \"\", timestamp: undefined };\n}\nexport const LegalDocument = {\n encode(message: LegalDocument, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.type !== LegalDocument_Type.UNSET) {\n writer.uint32(8).int32(legalDocument_TypeToNumber(message.type));\n }\n if (message.webUrl !== \"\") {\n writer.uint32(18).string(message.webUrl);\n }\n if (message.version !== \"\") {\n writer.uint32(26).string(message.version);\n }\n if (message.timestamp !== undefined) {\n Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(34).fork()).ldelim();\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): LegalDocument {\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 = createBaseLegalDocument();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.type = legalDocument_TypeFromJSON(reader.int32());\n break;\n case 2:\n message.webUrl = reader.string();\n break;\n case 3:\n message.version = reader.string();\n break;\n case 4:\n message.timestamp = fromTimestamp(Timestamp.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<LegalDocument>, I>>(object: I): LegalDocument {\n const message = createBaseLegalDocument();\n message.type = object.type ?? LegalDocument_Type.UNSET;\n message.webUrl = object.webUrl ?? \"\";\n message.version = object.version ?? \"\";\n message.timestamp = object.timestamp ?? undefined;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {\n $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>;\n// @ts-ignore\nfunction toTimestamp(date: Date): Timestamp {\n const seconds = date.getTime() / 1000;\n const nanos = (date.getTime() % 1000) * 1000000;\n return { seconds, nanos };\n}\nfunction fromTimestamp(t: Timestamp): Date {\n let millis = t.seconds * 1000;\n millis += t.nanos / 1000000;\n return new Date(millis);\n}\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
@@ -378,8 +378,8 @@ export declare const LensCreator: {
|
|
|
378
378
|
displayName?: string | undefined;
|
|
379
379
|
} & Record<Exclude<keyof I, "displayName">, never>>(object: I): LensCreator;
|
|
380
380
|
};
|
|
381
|
-
|
|
382
|
-
export
|
|
381
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
382
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
383
383
|
$case: string;
|
|
384
384
|
} ? {
|
|
385
385
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -388,8 +388,8 @@ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<inf
|
|
|
388
388
|
} : T extends {} ? {
|
|
389
389
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
390
390
|
} : Partial<T>;
|
|
391
|
-
|
|
392
|
-
export
|
|
391
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
392
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
393
393
|
[K in keyof P]: Exact<P[K], I[K]>;
|
|
394
394
|
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
395
395
|
export {};
|
|
@@ -159,7 +159,7 @@ function createBaseLens() {
|
|
|
159
159
|
isThirdParty: false,
|
|
160
160
|
cameraFacingPreference: Lens_CameraFacing.CAMERA_FACING_UNSET,
|
|
161
161
|
featureMetadata: [],
|
|
162
|
-
lensCreator: undefined
|
|
162
|
+
lensCreator: undefined,
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
export const Lens = {
|
|
@@ -222,7 +222,7 @@ export const Lens = {
|
|
|
222
222
|
featureMetadata: Array.isArray(object === null || object === void 0 ? void 0 : object.featureMetadata)
|
|
223
223
|
? object.featureMetadata.map((e) => Any.fromJSON(e))
|
|
224
224
|
: [],
|
|
225
|
-
lensCreator: isSet(object.lensCreator) ? LensCreator.fromJSON(object.lensCreator) : undefined
|
|
225
|
+
lensCreator: isSet(object.lensCreator) ? LensCreator.fromJSON(object.lensCreator) : undefined,
|
|
226
226
|
};
|
|
227
227
|
},
|
|
228
228
|
toJSON(message) {
|
|
@@ -270,7 +270,7 @@ export const Lens = {
|
|
|
270
270
|
? LensCreator.fromPartial(object.lensCreator)
|
|
271
271
|
: undefined;
|
|
272
272
|
return message;
|
|
273
|
-
}
|
|
273
|
+
},
|
|
274
274
|
};
|
|
275
275
|
function createBaseLens_VendorDataEntry() {
|
|
276
276
|
return { key: "", value: "" };
|
|
@@ -299,7 +299,7 @@ export const Lens_VendorDataEntry = {
|
|
|
299
299
|
fromJSON(object) {
|
|
300
300
|
return {
|
|
301
301
|
key: isSet(object.key) ? String(object.key) : "",
|
|
302
|
-
value: isSet(object.value) ? String(object.value) : ""
|
|
302
|
+
value: isSet(object.value) ? String(object.value) : "",
|
|
303
303
|
};
|
|
304
304
|
},
|
|
305
305
|
toJSON(message) {
|
|
@@ -314,7 +314,7 @@ export const Lens_VendorDataEntry = {
|
|
|
314
314
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
315
315
|
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
316
316
|
return message;
|
|
317
|
-
}
|
|
317
|
+
},
|
|
318
318
|
};
|
|
319
319
|
function createBaseContent() {
|
|
320
320
|
return {
|
|
@@ -326,7 +326,7 @@ function createBaseContent() {
|
|
|
326
326
|
defaultHintId: "",
|
|
327
327
|
hintTranslations: {},
|
|
328
328
|
lnsUrlBolt: "",
|
|
329
|
-
iconUrlBolt: ""
|
|
329
|
+
iconUrlBolt: "",
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
export const Content = {
|
|
@@ -391,7 +391,7 @@ export const Content = {
|
|
|
391
391
|
}, {})
|
|
392
392
|
: {},
|
|
393
393
|
lnsUrlBolt: isSet(object.lnsUrlBolt) ? String(object.lnsUrlBolt) : "",
|
|
394
|
-
iconUrlBolt: isSet(object.iconUrlBolt) ? String(object.iconUrlBolt) : ""
|
|
394
|
+
iconUrlBolt: isSet(object.iconUrlBolt) ? String(object.iconUrlBolt) : "",
|
|
395
395
|
};
|
|
396
396
|
},
|
|
397
397
|
toJSON(message) {
|
|
@@ -436,7 +436,7 @@ export const Content = {
|
|
|
436
436
|
message.lnsUrlBolt = (_g = object.lnsUrlBolt) !== null && _g !== void 0 ? _g : "";
|
|
437
437
|
message.iconUrlBolt = (_h = object.iconUrlBolt) !== null && _h !== void 0 ? _h : "";
|
|
438
438
|
return message;
|
|
439
|
-
}
|
|
439
|
+
},
|
|
440
440
|
};
|
|
441
441
|
function createBaseContent_HintTranslationsEntry() {
|
|
442
442
|
return { key: "", value: "" };
|
|
@@ -465,7 +465,7 @@ export const Content_HintTranslationsEntry = {
|
|
|
465
465
|
fromJSON(object) {
|
|
466
466
|
return {
|
|
467
467
|
key: isSet(object.key) ? String(object.key) : "",
|
|
468
|
-
value: isSet(object.value) ? String(object.value) : ""
|
|
468
|
+
value: isSet(object.value) ? String(object.value) : "",
|
|
469
469
|
};
|
|
470
470
|
},
|
|
471
471
|
toJSON(message) {
|
|
@@ -480,7 +480,7 @@ export const Content_HintTranslationsEntry = {
|
|
|
480
480
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
481
481
|
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
482
482
|
return message;
|
|
483
|
-
}
|
|
483
|
+
},
|
|
484
484
|
};
|
|
485
485
|
function createBaseLensAssetManifestItem() {
|
|
486
486
|
return {
|
|
@@ -488,7 +488,7 @@ function createBaseLensAssetManifestItem() {
|
|
|
488
488
|
id: "",
|
|
489
489
|
requestTiming: LensAssetManifestItem_RequestTiming.PRELOAD_UNSET,
|
|
490
490
|
assetUrl: "",
|
|
491
|
-
assetChecksum: ""
|
|
491
|
+
assetChecksum: "",
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
export const LensAssetManifestItem = {
|
|
@@ -531,7 +531,7 @@ export const LensAssetManifestItem = {
|
|
|
531
531
|
? lensAssetManifestItem_RequestTimingFromJSON(object.requestTiming)
|
|
532
532
|
: LensAssetManifestItem_RequestTiming.PRELOAD_UNSET,
|
|
533
533
|
assetUrl: isSet(object.assetUrl) ? String(object.assetUrl) : "",
|
|
534
|
-
assetChecksum: isSet(object.assetChecksum) ? String(object.assetChecksum) : ""
|
|
534
|
+
assetChecksum: isSet(object.assetChecksum) ? String(object.assetChecksum) : "",
|
|
535
535
|
};
|
|
536
536
|
},
|
|
537
537
|
toJSON(message) {
|
|
@@ -553,7 +553,7 @@ export const LensAssetManifestItem = {
|
|
|
553
553
|
message.assetUrl = (_d = object.assetUrl) !== null && _d !== void 0 ? _d : "";
|
|
554
554
|
message.assetChecksum = (_e = object.assetChecksum) !== null && _e !== void 0 ? _e : "";
|
|
555
555
|
return message;
|
|
556
|
-
}
|
|
556
|
+
},
|
|
557
557
|
};
|
|
558
558
|
function createBasePreview() {
|
|
559
559
|
return { imageUrl: "" };
|
|
@@ -578,7 +578,7 @@ export const Preview = {
|
|
|
578
578
|
},
|
|
579
579
|
fromJSON(object) {
|
|
580
580
|
return {
|
|
581
|
-
imageUrl: isSet(object.imageUrl) ? String(object.imageUrl) : ""
|
|
581
|
+
imageUrl: isSet(object.imageUrl) ? String(object.imageUrl) : "",
|
|
582
582
|
};
|
|
583
583
|
},
|
|
584
584
|
toJSON(message) {
|
|
@@ -591,7 +591,7 @@ export const Preview = {
|
|
|
591
591
|
const message = createBasePreview();
|
|
592
592
|
message.imageUrl = (_a = object.imageUrl) !== null && _a !== void 0 ? _a : "";
|
|
593
593
|
return message;
|
|
594
|
-
}
|
|
594
|
+
},
|
|
595
595
|
};
|
|
596
596
|
function createBaseLensCreator() {
|
|
597
597
|
return { displayName: "" };
|
|
@@ -616,7 +616,7 @@ export const LensCreator = {
|
|
|
616
616
|
},
|
|
617
617
|
fromJSON(object) {
|
|
618
618
|
return {
|
|
619
|
-
displayName: isSet(object.displayName) ? String(object.displayName) : ""
|
|
619
|
+
displayName: isSet(object.displayName) ? String(object.displayName) : "",
|
|
620
620
|
};
|
|
621
621
|
},
|
|
622
622
|
toJSON(message) {
|
|
@@ -629,7 +629,7 @@ export const LensCreator = {
|
|
|
629
629
|
const message = createBaseLensCreator();
|
|
630
630
|
message.displayName = (_a = object.displayName) !== null && _a !== void 0 ? _a : "";
|
|
631
631
|
return message;
|
|
632
|
-
}
|
|
632
|
+
},
|
|
633
633
|
};
|
|
634
634
|
if (_m0.util.Long !== Long) {
|
|
635
635
|
_m0.util.Long = Long;
|