@snap/camera-kit 0.23.0 → 1.0.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 +1122 -537
- package/README.md +1 -1
- package/dist/CameraKit.d.ts +3 -3
- package/dist/CameraKit.d.ts.map +1 -1
- package/dist/CameraKit.js +1 -2
- package/dist/CameraKit.js.map +1 -1
- package/dist/RootServices.d.ts +78 -0
- package/dist/RootServices.d.ts.map +1 -0
- package/dist/RootServices.js.map +1 -0
- package/dist/bootstrapCameraKit.d.ts +3 -4
- package/dist/bootstrapCameraKit.d.ts.map +1 -1
- package/dist/bootstrapCameraKit.js +8 -8
- package/dist/bootstrapCameraKit.js.map +1 -1
- package/dist/clients/createTsProtoClient.d.ts +2 -2
- package/dist/clients/createTsProtoClient.d.ts.map +1 -1
- package/dist/clients/createTsProtoClient.js.map +1 -1
- package/dist/clients/grpcHandler.d.ts.map +1 -1
- package/dist/clients/grpcHandler.js +1 -1
- package/dist/clients/grpcHandler.js.map +1 -1
- package/dist/clients/lensesClient.js +1 -1
- package/dist/clients/lensesClient.js.map +1 -1
- package/dist/clients/metricsClient.d.ts.map +1 -1
- package/dist/clients/metricsClient.js +1 -1
- package/dist/clients/metricsClient.js.map +1 -1
- package/dist/common/pageVisibility.js +1 -1
- package/dist/common/pageVisibility.js.map +1 -1
- package/dist/configuration.d.ts.map +1 -1
- package/dist/configuration.js +1 -1
- package/dist/configuration.js.map +1 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/environment.js +1 -1
- package/dist/environment.js.map +1 -1
- package/dist/extensions/RemoteApiServices.js +1 -1
- package/dist/extensions/RemoteApiServices.js.map +1 -1
- package/dist/extensions/UriHandlers.js +1 -1
- package/dist/extensions/UriHandlers.js.map +1 -1
- package/dist/extensions/uriHandlersRegister.d.ts.map +1 -1
- package/dist/extensions/uriHandlersRegister.js +1 -1
- package/dist/extensions/uriHandlersRegister.js.map +1 -1
- package/dist/generated-proto/blizzard/cameraKitEvents.d.ts +45 -9270
- package/dist/generated-proto/blizzard/cameraKitEvents.d.ts.map +1 -1
- package/dist/generated-proto/blizzard/cameraKitEvents.js +300 -123
- package/dist/generated-proto/blizzard/cameraKitEvents.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts +12 -32
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.js +77 -37
- package/dist/generated-proto/pb_schema/camera_kit/v3/business_events.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.d.ts +19 -454
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.js +219 -118
- package/dist/generated-proto/pb_schema/camera_kit/v3/export.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.d.ts +12 -12
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.js +16 -13
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/ranking_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.d.ts +12 -12
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.js +16 -13
- package/dist/generated-proto/pb_schema/camera_kit/v3/features/remote_api_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts +13 -54
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js +61 -34
- package/dist/generated-proto/pb_schema/camera_kit/v3/legal_prompt.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.d.ts +19 -299
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.js +294 -133
- package/dist/generated-proto/pb_schema/camera_kit/v3/lens.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts +14 -148
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js +74 -48
- package/dist/generated-proto/pb_schema/camera_kit/v3/operational_metrics.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts +12 -18
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.js +34 -19
- package/dist/generated-proto/pb_schema/camera_kit/v3/ranking.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts +19 -516
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js +164 -80
- package/dist/generated-proto/pb_schema/camera_kit/v3/remote_api_spec.js.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.d.ts +80 -2371
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.js +847 -174
- package/dist/generated-proto/pb_schema/camera_kit/v3/service.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/app_launch_type.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.d.ts +18 -59
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.js +88 -52
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/benchmark_name.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts +12 -106
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js +328 -140
- package/dist/generated-proto/pb_schema/cdp/cof/billboard_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts +12 -18
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js +35 -20
- package/dist/generated-proto/pb_schema/cdp/cof/bolt_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts +12 -34
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js +86 -39
- package/dist/generated-proto/pb_schema/cdp/cof/camera_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts +47 -28591
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js +644 -348
- package/dist/generated-proto/pb_schema/cdp/cof/circumstance_service.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/cognac_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts +18 -214
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js +362 -157
- package/dist/generated-proto/pb_schema/cdp/cof/config_request.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts +20 -3801
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.js +144 -46
- package/dist/generated-proto/pb_schema/cdp/cof/config_response.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts +49 -10060
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js +443 -182
- package/dist/generated-proto/pb_schema/cdp/cof/config_result.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/contact_authorization_status.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/content_manager_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts +12 -14
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js +24 -17
- package/dist/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.d.ts +14 -56
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.js +78 -45
- package/dist/generated-proto/pb_schema/cdp/cof/debug_info.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.d.ts +28 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.d.ts.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.js +89 -0
- package/dist/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.js.map +1 -0
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts +28 -1103
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js +358 -210
- package/dist/generated-proto/pb_schema/cdp/cof/feature_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts +12 -16
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js +31 -23
- package/dist/generated-proto/pb_schema/cdp/cof/lenses_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts +13 -15
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js +22 -15
- package/dist/generated-proto/pb_schema/cdp/cof/mdp_media_attribution.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts +12 -14
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js +22 -15
- package/dist/generated-proto/pb_schema/cdp/cof/media_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/cof/namespace.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts +12 -16
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js +29 -18
- package/dist/generated-proto/pb_schema/cdp/cof/opera_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/perception_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/recipients_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/routing_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts +12 -12
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js +16 -13
- package/dist/generated-proto/pb_schema/cdp/cof/snap_kit_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts +12 -18
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js +35 -20
- package/dist/generated-proto/pb_schema/cdp/cof/upload_provided_signals.js.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js +0 -6
- package/dist/generated-proto/pb_schema/cdp/media/snap_source.js.map +1 -1
- package/dist/generated-proto/pb_schema/common/ruid.d.ts +12 -16
- package/dist/generated-proto/pb_schema/common/ruid.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/common/ruid.js +28 -17
- package/dist/generated-proto/pb_schema/common/ruid.js.map +1 -1
- package/dist/generated-proto/pb_schema/common/value.d.ts +25 -123
- package/dist/generated-proto/pb_schema/common/value.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/common/value.js +136 -71
- package/dist/generated-proto/pb_schema/common/value.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/asset.d.ts +12 -14
- package/dist/generated-proto/pb_schema/content/asset.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/asset.js +22 -15
- package/dist/generated-proto/pb_schema/content/asset.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts +13 -46
- package/dist/generated-proto/pb_schema/content/media_reference.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_reference.js +86 -47
- package/dist/generated-proto/pb_schema/content/media_reference.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_source.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_source.js +0 -6
- package/dist/generated-proto/pb_schema/content/media_source.js.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_types.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/content/media_types.js +0 -6
- package/dist/generated-proto/pb_schema/content/media_types.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/annotations.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/annotations.js +0 -6
- package/dist/generated-proto/pb_schema/google/api/annotations.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/http.d.ts +15 -3336
- package/dist/generated-proto/pb_schema/google/api/http.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/api/http.js +129 -68
- package/dist/generated-proto/pb_schema/google/api/http.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/any.d.ts +12 -14
- package/dist/generated-proto/pb_schema/google/protobuf/any.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/any.js +24 -17
- package/dist/generated-proto/pb_schema/google/protobuf/any.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.d.ts +126 -50157
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.js +1162 -563
- package/dist/generated-proto/pb_schema/google/protobuf/descriptor.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.d.ts +12 -14
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.js +23 -19
- package/dist/generated-proto/pb_schema/google/protobuf/timestamp.js.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.d.ts +20 -84
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.js +141 -77
- package/dist/generated-proto/pb_schema/google/protobuf/wrappers.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geocircle.d.ts +12 -23
- package/dist/generated-proto/pb_schema/lenses/geocircle.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geocircle.js +26 -18
- package/dist/generated-proto/pb_schema/lenses/geocircle.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geopoint.d.ts +12 -14
- package/dist/generated-proto/pb_schema/lenses/geopoint.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/geopoint.js +22 -15
- package/dist/generated-proto/pb_schema/lenses/geopoint.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launch_params.d.ts +12 -12
- package/dist/generated-proto/pb_schema/lenses/launch_params.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launch_params.js +18 -15
- package/dist/generated-proto/pb_schema/lenses/launch_params.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts +15 -324
- package/dist/generated-proto/pb_schema/lenses/launchdata.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/launchdata.js +112 -66
- package/dist/generated-proto/pb_schema/lenses/launchdata.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/lures.d.ts +12 -91
- package/dist/generated-proto/pb_schema/lenses/lures.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/lures.js +37 -28
- package/dist/generated-proto/pb_schema/lenses/lures.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/persistent_store.d.ts +12 -12
- package/dist/generated-proto/pb_schema/lenses/persistent_store.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/persistent_store.js +18 -15
- package/dist/generated-proto/pb_schema/lenses/persistent_store.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.d.ts +30 -396
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js +520 -240
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_service.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts +30 -2429
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js +991 -440
- package/dist/generated-proto/pb_schema/lenses/remote_api/remote_api_spec.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/snappable.d.ts +27 -783
- package/dist/generated-proto/pb_schema/lenses/snappable.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/snappable.js +502 -245
- package/dist/generated-proto/pb_schema/lenses/snappable.js.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/user_data.d.ts +15 -174
- package/dist/generated-proto/pb_schema/lenses/user_data.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/lenses/user_data.js +144 -77
- package/dist/generated-proto/pb_schema/lenses/user_data.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts +12 -14
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js +24 -17
- package/dist/generated-proto/pb_schema/snapdoc/capture_characteristics.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts +14 -18
- package/dist/generated-proto/pb_schema/snapdoc/extensions.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js +29 -18
- package/dist/generated-proto/pb_schema/snapdoc/extensions.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts +52 -576
- package/dist/generated-proto/pb_schema/snapdoc/media.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media.js +615 -318
- package/dist/generated-proto/pb_schema/snapdoc/media.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/media_codec_formats.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/media_file_formats.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts +12 -12
- package/dist/generated-proto/pb_schema/snapdoc/media_id.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js +17 -17
- package/dist/generated-proto/pb_schema/snapdoc/media_id.js.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.d.ts.map +1 -1
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js +0 -6
- package/dist/generated-proto/pb_schema/snapdoc/snap_component_type.js.map +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.d.ts.map +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.js +1 -1
- package/dist/handlers/cameraKitServiceFetchHandlerFactory.js.map +1 -1
- package/dist/handlers/defaultFetchHandler.js +1 -1
- package/dist/handlers/defaultFetchHandler.js.map +1 -1
- package/dist/handlers/requestStateEmittingHandler.js +1 -1
- package/dist/handlers/requestStateEmittingHandler.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/legal/legalPrompt.js +1 -1
- package/dist/legal/legalPrompt.js.map +1 -1
- package/dist/legal/legalState.js +1 -1
- package/dist/legal/legalState.js.map +1 -1
- package/dist/lens/LensPersistenceStore.js +1 -1
- package/dist/lens/LensPersistenceStore.js.map +1 -1
- package/dist/lens/LensRepository.js +1 -1
- package/dist/lens/LensRepository.js.map +1 -1
- package/dist/lens/LensSource.js +1 -1
- package/dist/lens/LensSource.js.map +1 -1
- package/dist/lens/assets/LensAssetRepository.js +1 -1
- package/dist/lens/assets/LensAssetRepository.js.map +1 -1
- package/dist/lens/assets/LensAssetsProvider.js +1 -1
- package/dist/lens/assets/LensAssetsProvider.js.map +1 -1
- package/dist/lens/assets/deviceDependentAssetLoader.js +1 -1
- package/dist/lens/assets/deviceDependentAssetLoader.js.map +1 -1
- package/dist/lens/assets/remoteMediaAssetLoaderFactory.js +1 -1
- package/dist/lens/assets/remoteMediaAssetLoaderFactory.js.map +1 -1
- package/dist/lens/assets/staticAssetLoader.js +1 -1
- package/dist/lens/assets/staticAssetLoader.js.map +1 -1
- package/dist/lens/cameraKitLensSource.d.ts.map +1 -1
- package/dist/lens/cameraKitLensSource.js +6 -6
- package/dist/lens/cameraKitLensSource.js.map +1 -1
- package/dist/lens/fetchWatermarkLens.d.ts.map +1 -1
- package/dist/lens/fetchWatermarkLens.js +1 -1
- package/dist/lens/fetchWatermarkLens.js.map +1 -1
- package/dist/lens/userDataAccessResolver.d.ts +52 -0
- package/dist/lens/userDataAccessResolver.d.ts.map +1 -0
- package/dist/lens/userDataAccessResolver.js +3 -0
- package/dist/lens/userDataAccessResolver.js.map +1 -0
- package/dist/lens-client-interface/filePicker.d.ts.map +1 -1
- package/dist/lens-client-interface/filePicker.js +1 -1
- package/dist/lens-client-interface/filePicker.js.map +1 -1
- package/dist/lens-client-interface/lensClientInterface.js +1 -1
- package/dist/lens-client-interface/lensClientInterface.js.map +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.d.ts.map +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.js +1 -1
- package/dist/lens-core-module/loader/lensCoreFactory.js.map +1 -1
- package/dist/lensCoreWasmVersions.js +3 -3
- package/dist/lensCoreWasmVersions.js.map +1 -1
- package/dist/logger/logEntries.js +1 -1
- package/dist/logger/logEntries.js.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.d.ts.map +1 -1
- package/dist/logger/registerLogEntriesSubscriber.js +1 -1
- package/dist/logger/registerLogEntriesSubscriber.js.map +1 -1
- package/dist/media-sources/CameraKitSource.d.ts +6 -0
- package/dist/media-sources/CameraKitSource.d.ts.map +1 -1
- package/dist/media-sources/CameraKitSource.js +2 -2
- package/dist/media-sources/CameraKitSource.js.map +1 -1
- package/dist/metrics/businessEventsReporter.js +1 -1
- package/dist/metrics/businessEventsReporter.js.map +1 -1
- package/dist/metrics/metricsEventTarget.js +1 -1
- package/dist/metrics/metricsEventTarget.js.map +1 -1
- package/dist/metrics/reporters/reportBenchmarks.d.ts.map +1 -1
- package/dist/metrics/reporters/reportBenchmarks.js +1 -1
- package/dist/metrics/reporters/reportBenchmarks.js.map +1 -1
- package/dist/metrics/reporters/reportGlobalException.js +1 -1
- package/dist/metrics/reporters/reportGlobalException.js.map +1 -1
- package/dist/metrics/reporters/reportHttpMetrics.js +1 -1
- package/dist/metrics/reporters/reportHttpMetrics.js.map +1 -1
- package/dist/metrics/reporters/reportLegalState.js +1 -1
- package/dist/metrics/reporters/reportLegalState.js.map +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.d.ts.map +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.js +1 -1
- package/dist/metrics/reporters/reportLensAndAssetDownload.js.map +1 -1
- package/dist/metrics/reporters/reportLensValidationFailed.js +1 -1
- package/dist/metrics/reporters/reportLensValidationFailed.js.map +1 -1
- package/dist/metrics/reporters/reportLensView.js +1 -1
- package/dist/metrics/reporters/reportLensView.js.map +1 -1
- package/dist/metrics/reporters/reportLensWait.js +1 -1
- package/dist/metrics/reporters/reportLensWait.js.map +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.d.ts.map +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.js +1 -1
- package/dist/metrics/reporters/reportPlatformCapabilities.js.map +1 -1
- package/dist/metrics/reporters/reportSessionException.js +1 -1
- package/dist/metrics/reporters/reportSessionException.js.map +1 -1
- package/dist/metrics/reporters/reportUserSession.js +1 -1
- package/dist/metrics/reporters/reportUserSession.js.map +1 -1
- package/dist/metrics/reporters/reporters.d.ts +1 -1
- package/dist/metrics/reporters/reporters.d.ts.map +1 -1
- package/dist/metrics/reporters/reporters.js +1 -1
- package/dist/metrics/reporters/reporters.js.map +1 -1
- package/dist/remote-configuration/cofHandler.d.ts.map +1 -1
- package/dist/remote-configuration/cofHandler.js +1 -1
- package/dist/remote-configuration/cofHandler.js.map +1 -1
- package/dist/remote-configuration/preloadConfiguration.js +1 -1
- package/dist/remote-configuration/preloadConfiguration.js.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.d.ts.map +1 -1
- package/dist/remote-configuration/remoteConfiguration.js +1 -1
- package/dist/remote-configuration/remoteConfiguration.js.map +1 -1
- package/dist/session/CameraKitSession.d.ts +6 -1
- package/dist/session/CameraKitSession.d.ts.map +1 -1
- package/dist/session/CameraKitSession.js +1 -1
- package/dist/session/CameraKitSession.js.map +1 -1
- package/dist/session/LensKeyboard.js +1 -1
- package/dist/session/LensKeyboard.js.map +1 -1
- package/dist/session/lensState.d.ts +3 -2
- package/dist/session/lensState.d.ts.map +1 -1
- package/dist/session/lensState.js +9 -3
- package/dist/session/lensState.js.map +1 -1
- package/dist/session/sessionState.js +1 -1
- package/dist/session/sessionState.js.map +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/CameraKit.html +2 -2
- package/docs/html/classes/CameraKitSession.html +7 -3
- package/docs/html/classes/CameraKitSource.html +6 -2
- package/docs/html/classes/LensPerformanceMeasurement.html +2 -2
- package/docs/html/classes/LensPerformanceMetrics.html +2 -2
- package/docs/html/classes/LensRepository.html +2 -2
- package/docs/html/classes/Transform2D.html +2 -2
- package/docs/html/classes/TypedCustomEvent.html +2 -2
- package/docs/html/classes/TypedEventTarget.html +2 -2
- package/docs/html/enums/Lens_CameraFacing.html +2 -2
- package/docs/html/functions/bootstrapCameraKit.html +2 -2
- package/docs/html/functions/createExtension.html +2 -2
- package/docs/html/functions/createImageSource.html +2 -2
- package/docs/html/functions/createMediaStreamSource.html +2 -2
- package/docs/html/functions/createVideoSource.html +2 -2
- package/docs/html/functions/estimateLensPerformance.html +2 -2
- package/docs/html/functions/filePickerFactory.html +2 -4
- package/docs/html/functions/lensSourcesFactory.html +3 -5
- package/docs/html/functions/remoteApiServicesFactory.html +1 -3
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +3 -3
- package/docs/html/interfaces/BitmojiUserInfo.html +2 -2
- package/docs/html/interfaces/CameraKitBootstrapConfiguration.html +2 -2
- package/docs/html/interfaces/CameraKitDeviceOptions.html +2 -2
- package/docs/html/interfaces/CameraKitSourceInfo.html +2 -2
- package/docs/html/interfaces/CameraKitSourceSubscriber.html +2 -2
- package/docs/html/interfaces/ComputedFrameMetrics.html +2 -2
- package/docs/html/interfaces/CreateSessionOptions.html +2 -2
- package/docs/html/interfaces/EstimatedLensPerformance.html +2 -2
- package/docs/html/interfaces/FriendUserInfo.html +2 -2
- package/docs/html/interfaces/FunctionSourceOptions.html +2 -2
- package/docs/html/interfaces/Lens.html +2 -2
- package/docs/html/interfaces/LensCreator.html +2 -2
- package/docs/html/interfaces/LensLaunchData.html +2 -2
- package/docs/html/interfaces/LensSource.html +2 -2
- package/docs/html/interfaces/LensUserData.html +2 -2
- package/docs/html/interfaces/LoadAssetRequest.html +2 -2
- package/docs/html/interfaces/MediaStreamSourceOptions.html +2 -2
- package/docs/html/interfaces/Preview.html +2 -2
- package/docs/html/interfaces/RemoteApiRequest.html +2 -2
- package/docs/html/interfaces/RemoteApiResponse.html +2 -2
- package/docs/html/interfaces/RemoteApiService.html +2 -2
- package/docs/html/interfaces/Snapcode.html +2 -2
- package/docs/html/interfaces/UriCancelRequest.html +2 -2
- package/docs/html/interfaces/UriRequest.html +2 -2
- package/docs/html/interfaces/UriResponse.html +2 -2
- package/docs/html/interfaces/VideoSourceOptions.html +2 -2
- package/docs/html/modules.html +2 -4
- package/docs/html/types/ArgumentValidationError.html +2 -2
- package/docs/html/types/AssetLoader.html +2 -2
- package/docs/html/types/AssetResponse.html +1 -1
- package/docs/html/types/AssetTiming.html +2 -2
- package/docs/html/types/BenchmarkError.html +1 -1
- package/docs/html/types/BootstrapError.html +2 -2
- package/docs/html/types/CacheKeyNotFoundError.html +1 -1
- package/docs/html/types/CameraKitSessionEventListener.html +2 -2
- package/docs/html/types/CameraKitSessionEvents.html +2 -2
- package/docs/html/types/CameraKitSourceError.html +1 -1
- package/docs/html/types/ConfigurationError.html +2 -2
- package/docs/html/types/FetchHandler.html +1 -1
- package/docs/html/types/FilePicker.html +2 -2
- package/docs/html/types/FilePickerOptions.html +2 -2
- package/docs/html/types/FilePickerResult.html +2 -2
- package/docs/html/types/Keyboard.html +2 -2
- package/docs/html/types/KeyboardEvents.html +2 -2
- package/docs/html/types/LegalError.html +1 -1
- package/docs/html/types/LensAbortError.html +2 -2
- package/docs/html/types/LensAssetError.html +2 -2
- package/docs/html/types/LensContentValidationError.html +1 -1
- package/docs/html/types/LensError.html +1 -1
- package/docs/html/types/LensExecutionError.html +2 -2
- package/docs/html/types/LensImagePickerError.html +2 -2
- package/docs/html/types/LensLaunchParams.html +2 -2
- package/docs/html/types/LensMetricsEvents.html +2 -2
- package/docs/html/types/LensPerformanceCluster.html +1 -1
- package/docs/html/types/LensView.html +2 -2
- package/docs/html/types/LensWait.html +2 -2
- package/docs/html/types/Matrix.html +2 -2
- package/docs/html/types/PersistentStoreError.html +2 -2
- package/docs/html/types/PlatformNotSupportedError.html +2 -2
- package/docs/html/types/PublicContainer.html +2 -2
- package/docs/html/types/PublicServices.html +2 -2
- package/docs/html/types/RemoteApiCancelRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiRequestHandler.html +2 -2
- package/docs/html/types/RemoteApiServices.html +1 -1
- package/docs/html/types/RemoteApiStatus.html +2 -2
- package/docs/html/types/RenderTarget.html +2 -2
- package/docs/html/types/Uri.html +1 -1
- package/docs/html/types/WebGLError.html +1 -1
- package/docs/html/types/Zodiac.html +1 -1
- package/docs/html/variables/extensionRequestContext.html +2 -2
- package/docs/md/README.md +1 -1
- package/docs/md/classes/CameraKit.md +1 -1
- package/docs/md/classes/CameraKitSession.md +7 -2
- package/docs/md/classes/CameraKitSource.md +6 -1
- package/docs/md/classes/LensPerformanceMeasurement.md +1 -1
- package/docs/md/classes/LensPerformanceMetrics.md +1 -1
- package/docs/md/classes/LensRepository.md +1 -1
- package/docs/md/classes/Transform2D.md +1 -1
- package/docs/md/classes/TypedCustomEvent.md +1 -1
- package/docs/md/classes/TypedEventTarget.md +1 -1
- package/docs/md/enums/Lens_CameraFacing.md +1 -1
- package/docs/md/interfaces/BitmojiUserInfo.md +1 -1
- package/docs/md/interfaces/CameraKitBootstrapConfiguration.md +1 -1
- package/docs/md/interfaces/CameraKitDeviceOptions.md +1 -1
- package/docs/md/interfaces/CameraKitSourceInfo.md +1 -1
- package/docs/md/interfaces/CameraKitSourceSubscriber.md +1 -1
- package/docs/md/interfaces/ComputedFrameMetrics.md +1 -1
- package/docs/md/interfaces/CreateSessionOptions.md +1 -1
- package/docs/md/interfaces/EstimatedLensPerformance.md +1 -1
- package/docs/md/interfaces/FriendUserInfo.md +1 -1
- package/docs/md/interfaces/FunctionSourceOptions.md +1 -1
- package/docs/md/interfaces/Lens.md +1 -1
- package/docs/md/interfaces/LensCreator.md +1 -1
- package/docs/md/interfaces/LensLaunchData.md +1 -1
- package/docs/md/interfaces/LensSource.md +1 -1
- package/docs/md/interfaces/LensUserData.md +1 -1
- package/docs/md/interfaces/LoadAssetRequest.md +1 -1
- package/docs/md/interfaces/MediaStreamSourceOptions.md +1 -1
- package/docs/md/interfaces/Preview.md +1 -1
- package/docs/md/interfaces/RemoteApiRequest.md +1 -1
- package/docs/md/interfaces/RemoteApiResponse.md +1 -1
- package/docs/md/interfaces/RemoteApiService.md +1 -1
- package/docs/md/interfaces/Snapcode.md +1 -1
- package/docs/md/interfaces/UriCancelRequest.md +1 -1
- package/docs/md/interfaces/UriRequest.md +1 -1
- package/docs/md/interfaces/UriResponse.md +1 -1
- package/docs/md/interfaces/VideoSourceOptions.md +1 -1
- package/docs/md/modules.md +5 -166
- package/package.json +5 -5
- package/dist/dependency-injection/Container.d.ts +0 -177
- package/dist/dependency-injection/Container.d.ts.map +0 -1
- package/dist/dependency-injection/Container.js +0 -72
- package/dist/dependency-injection/Container.js.map +0 -1
- package/dist/dependency-injection/Injectable.d.ts +0 -96
- package/dist/dependency-injection/Injectable.d.ts.map +0 -1
- package/dist/dependency-injection/Injectable.js +0 -37
- package/dist/dependency-injection/Injectable.js.map +0 -1
- package/dist/dependency-injection/PartialContainer.d.ts +0 -86
- package/dist/dependency-injection/PartialContainer.d.ts.map +0 -1
- package/dist/dependency-injection/PartialContainer.js +0 -28
- package/dist/dependency-injection/PartialContainer.js.map +0 -1
- package/dist/dependency-injection/RootServices.d.ts +0 -76
- package/dist/dependency-injection/RootServices.d.ts.map +0 -1
- package/dist/dependency-injection/RootServices.js.map +0 -1
- package/dist/dependency-injection/types.d.ts +0 -57
- package/dist/dependency-injection/types.d.ts.map +0 -1
- package/dist/dependency-injection/types.js +0 -2
- package/dist/dependency-injection/types.js.map +0 -1
- package/docs/html/functions/ConcatInjectable.html +0 -19
- package/docs/html/functions/Injectable.html +0 -17
- /package/dist/{dependency-injection/RootServices.js → RootServices.js} +0 -0
|
@@ -1,39 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
2
|
export const protobufPackage = "snapchat.cdp.cof";
|
|
4
3
|
function createBaseCreativeToolsSignals() {
|
|
5
4
|
return { withAnimatedOverlay: false, withMusic: false };
|
|
6
5
|
}
|
|
7
6
|
export const CreativeToolsSignals = {
|
|
8
|
-
encode(message, writer =
|
|
9
|
-
if (message.withAnimatedOverlay
|
|
7
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8
|
+
if (message.withAnimatedOverlay !== false) {
|
|
10
9
|
writer.uint32(8).bool(message.withAnimatedOverlay);
|
|
11
10
|
}
|
|
12
|
-
if (message.withMusic
|
|
11
|
+
if (message.withMusic !== false) {
|
|
13
12
|
writer.uint32(16).bool(message.withMusic);
|
|
14
13
|
}
|
|
15
14
|
return writer;
|
|
16
15
|
},
|
|
17
16
|
decode(input, length) {
|
|
18
|
-
const reader = input instanceof
|
|
17
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
19
18
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20
19
|
const message = createBaseCreativeToolsSignals();
|
|
21
20
|
while (reader.pos < end) {
|
|
22
21
|
const tag = reader.uint32();
|
|
23
22
|
switch (tag >>> 3) {
|
|
24
|
-
case 1:
|
|
23
|
+
case 1: {
|
|
24
|
+
if (tag !== 8) {
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
25
27
|
message.withAnimatedOverlay = reader.bool();
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
case 2: {
|
|
31
|
+
if (tag !== 16) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
28
34
|
message.withMusic = reader.bool();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
reader.skipType(tag & 7);
|
|
32
|
-
break;
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
33
37
|
}
|
|
38
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
reader.skip(tag & 7);
|
|
34
42
|
}
|
|
35
43
|
return message;
|
|
36
44
|
},
|
|
45
|
+
create(base) {
|
|
46
|
+
return CreativeToolsSignals.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
47
|
+
},
|
|
37
48
|
fromPartial(object) {
|
|
38
49
|
var _a, _b;
|
|
39
50
|
const message = createBaseCreativeToolsSignals();
|
|
@@ -42,8 +53,4 @@ export const CreativeToolsSignals = {
|
|
|
42
53
|
return message;
|
|
43
54
|
},
|
|
44
55
|
};
|
|
45
|
-
if (_m0.util.Long !== Long) {
|
|
46
|
-
_m0.util.Long = Long;
|
|
47
|
-
_m0.configure();
|
|
48
|
-
}
|
|
49
56
|
//# sourceMappingURL=creative_tools_provided_signals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creative_tools_provided_signals.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/creative_tools_provided_signals.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"creative_tools_prov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AC,CAAC;oBACJ,IAAI,GAAG,KAAK,CAAC,EAAE;wBACX,MAAM;qBACT;oBACD,OAAO,CAAC,mBAAmB,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;oBAC5C,SAAS;iBACZ;gBACD,KAAK,CAAC,CAAC,CAAC;oBACJ,IAAI,GAAG,KAAK,EAAE,EAAE;wBACZ,MAAM;qBACT;oBACD,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;oBAClC,SAAS;iBACZ;aACJ;YACD,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE;gBAC9B,MAAM;aACT;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SACxB;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,MAAM,CAAwD,IAAQ;QAClE,OAAO,oBAAoB,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAK,EAAU,CAAC,CAAC;IACjE,CAAC;IACD,WAAW,CAAwD,MAAS;;QACxE,MAAM,OAAO,GAAG,8BAA8B,EAAE,CAAC;QACjD,OAAO,CAAC,mBAAmB,GAAG,MAAA,MAAM,CAAC,mBAAmB,mCAAI,KAAK,CAAC;QAClE,OAAO,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,KAAK,CAAC;QAC9C,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC","sourcesContent":["import { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nexport const protobufPackage = \"snapchat.cdp.cof\";\nexport interface CreativeToolsSignals {\n withAnimatedOverlay: boolean;\n withMusic: boolean;\n}\nfunction createBaseCreativeToolsSignals(): CreativeToolsSignals {\n return { withAnimatedOverlay: false, withMusic: false };\n}\nexport const CreativeToolsSignals: MessageFns<CreativeToolsSignals> = {\n encode(message: CreativeToolsSignals, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.withAnimatedOverlay !== false) {\n writer.uint32(8).bool(message.withAnimatedOverlay);\n }\n if (message.withMusic !== false) {\n writer.uint32(16).bool(message.withMusic);\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): CreativeToolsSignals {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseCreativeToolsSignals();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n message.withAnimatedOverlay = reader.bool();\n continue;\n }\n case 2: {\n if (tag !== 16) {\n break;\n }\n message.withMusic = reader.bool();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<CreativeToolsSignals>, I>>(base?: I): CreativeToolsSignals {\n return CreativeToolsSignals.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<CreativeToolsSignals>, I>>(object: I): CreativeToolsSignals {\n const message = createBaseCreativeToolsSignals();\n message.withAnimatedOverlay = object.withAnimatedOverlay ?? false;\n message.withMusic = object.withMusic ?? false;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & {\n [K in Exclude<keyof I, KeysOfUnion<P>>]: never;\n};\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
export declare const protobufPackage = "snapchat.cdp.cof";
|
|
3
3
|
export declare enum AbStep {
|
|
4
4
|
USER_WHITELISTED = 0,
|
|
@@ -29,66 +29,24 @@ export interface DebugTrace {
|
|
|
29
29
|
lastAbStep: AbStepInfo | undefined;
|
|
30
30
|
budgetGroupId: number;
|
|
31
31
|
}
|
|
32
|
-
export declare const AbStepInfo:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
fromPartial<I extends {
|
|
36
|
-
abStep?: AbStep | undefined;
|
|
37
|
-
info?: string | undefined;
|
|
38
|
-
} & {
|
|
39
|
-
abStep?: AbStep | undefined;
|
|
40
|
-
info?: string | undefined;
|
|
41
|
-
} & Record<Exclude<keyof I, keyof AbStepInfo>, never>>(object: I): AbStepInfo;
|
|
42
|
-
};
|
|
43
|
-
export declare const CofStepInfo: {
|
|
44
|
-
encode(message: CofStepInfo, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): CofStepInfo;
|
|
46
|
-
fromPartial<I extends {
|
|
47
|
-
cofStep?: CofStep | undefined;
|
|
48
|
-
info?: string | undefined;
|
|
49
|
-
} & {
|
|
50
|
-
cofStep?: CofStep | undefined;
|
|
51
|
-
info?: string | undefined;
|
|
52
|
-
} & Record<Exclude<keyof I, keyof CofStepInfo>, never>>(object: I): CofStepInfo;
|
|
53
|
-
};
|
|
54
|
-
export declare const DebugTrace: {
|
|
55
|
-
encode(message: DebugTrace, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): DebugTrace;
|
|
57
|
-
fromPartial<I extends {
|
|
58
|
-
lastCofStep?: {
|
|
59
|
-
cofStep?: CofStep | undefined;
|
|
60
|
-
info?: string | undefined;
|
|
61
|
-
} | undefined;
|
|
62
|
-
lastAbStep?: {
|
|
63
|
-
abStep?: AbStep | undefined;
|
|
64
|
-
info?: string | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
budgetGroupId?: number | undefined;
|
|
67
|
-
} & {
|
|
68
|
-
lastCofStep?: ({
|
|
69
|
-
cofStep?: CofStep | undefined;
|
|
70
|
-
info?: string | undefined;
|
|
71
|
-
} & {
|
|
72
|
-
cofStep?: CofStep | undefined;
|
|
73
|
-
info?: string | undefined;
|
|
74
|
-
} & Record<Exclude<keyof I["lastCofStep"], keyof CofStepInfo>, never>) | undefined;
|
|
75
|
-
lastAbStep?: ({
|
|
76
|
-
abStep?: AbStep | undefined;
|
|
77
|
-
info?: string | undefined;
|
|
78
|
-
} & {
|
|
79
|
-
abStep?: AbStep | undefined;
|
|
80
|
-
info?: string | undefined;
|
|
81
|
-
} & Record<Exclude<keyof I["lastAbStep"], keyof AbStepInfo>, never>) | undefined;
|
|
82
|
-
budgetGroupId?: number | undefined;
|
|
83
|
-
} & Record<Exclude<keyof I, keyof DebugTrace>, never>>(object: I): DebugTrace;
|
|
84
|
-
};
|
|
32
|
+
export declare const AbStepInfo: MessageFns<AbStepInfo>;
|
|
33
|
+
export declare const CofStepInfo: MessageFns<CofStepInfo>;
|
|
34
|
+
export declare const DebugTrace: MessageFns<DebugTrace>;
|
|
85
35
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
86
|
-
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 {} ? {
|
|
36
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
87
37
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
88
38
|
} : Partial<T>;
|
|
89
39
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
90
40
|
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
91
41
|
[K in keyof P]: Exact<P[K], I[K]>;
|
|
92
|
-
} &
|
|
42
|
+
} & {
|
|
43
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
44
|
+
};
|
|
45
|
+
export interface MessageFns<T> {
|
|
46
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
47
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
48
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
49
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
50
|
+
}
|
|
93
51
|
export {};
|
|
94
52
|
//# sourceMappingURL=debug_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug_info.d.ts","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/debug_info.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"debug_info.d.ts","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/debug_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,oBAAY,MAAM;IACd,gBAAgB,IAAI;IACpB,sBAAsB,IAAI;IAC1B,iBAAiB,IAAI;IACrB,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,YAAY,KAAK;CACpB;AACD,oBAAY,OAAO;IACf,gBAAgB,IAAI;IACpB,aAAa,IAAI;IACjB,oBAAoB,IAAI;IACxB,WAAW,IAAI;IACf,UAAU,IAAI;IACd,YAAY,KAAK;CACpB;AACD,MAAM,WAAW,UAAU;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EA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AC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CACpC,GAAG;KACC,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CACjD,CAAC;AACF,MAAM,WAAW,UAAU,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CACjE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
3
2
|
export const protobufPackage = "snapchat.cdp.cof";
|
|
4
3
|
export var AbStep;
|
|
5
4
|
(function (AbStep) {
|
|
@@ -23,7 +22,7 @@ function createBaseAbStepInfo() {
|
|
|
23
22
|
return { abStep: 0, info: "" };
|
|
24
23
|
}
|
|
25
24
|
export const AbStepInfo = {
|
|
26
|
-
encode(message, writer =
|
|
25
|
+
encode(message, writer = new BinaryWriter()) {
|
|
27
26
|
if (message.abStep !== 0) {
|
|
28
27
|
writer.uint32(8).int32(message.abStep);
|
|
29
28
|
}
|
|
@@ -33,25 +32,37 @@ export const AbStepInfo = {
|
|
|
33
32
|
return writer;
|
|
34
33
|
},
|
|
35
34
|
decode(input, length) {
|
|
36
|
-
const reader = input instanceof
|
|
35
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
37
36
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
38
37
|
const message = createBaseAbStepInfo();
|
|
39
38
|
while (reader.pos < end) {
|
|
40
39
|
const tag = reader.uint32();
|
|
41
40
|
switch (tag >>> 3) {
|
|
42
|
-
case 1:
|
|
41
|
+
case 1: {
|
|
42
|
+
if (tag !== 8) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
43
45
|
message.abStep = reader.int32();
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
if (tag !== 18) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
46
52
|
message.info = reader.string();
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
reader.skipType(tag & 7);
|
|
50
|
-
break;
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
56
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
reader.skip(tag & 7);
|
|
52
60
|
}
|
|
53
61
|
return message;
|
|
54
62
|
},
|
|
63
|
+
create(base) {
|
|
64
|
+
return AbStepInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
65
|
+
},
|
|
55
66
|
fromPartial(object) {
|
|
56
67
|
var _a, _b;
|
|
57
68
|
const message = createBaseAbStepInfo();
|
|
@@ -64,7 +75,7 @@ function createBaseCofStepInfo() {
|
|
|
64
75
|
return { cofStep: 0, info: "" };
|
|
65
76
|
}
|
|
66
77
|
export const CofStepInfo = {
|
|
67
|
-
encode(message, writer =
|
|
78
|
+
encode(message, writer = new BinaryWriter()) {
|
|
68
79
|
if (message.cofStep !== 0) {
|
|
69
80
|
writer.uint32(8).int32(message.cofStep);
|
|
70
81
|
}
|
|
@@ -74,25 +85,37 @@ export const CofStepInfo = {
|
|
|
74
85
|
return writer;
|
|
75
86
|
},
|
|
76
87
|
decode(input, length) {
|
|
77
|
-
const reader = input instanceof
|
|
88
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
78
89
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
90
|
const message = createBaseCofStepInfo();
|
|
80
91
|
while (reader.pos < end) {
|
|
81
92
|
const tag = reader.uint32();
|
|
82
93
|
switch (tag >>> 3) {
|
|
83
|
-
case 1:
|
|
94
|
+
case 1: {
|
|
95
|
+
if (tag !== 8) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
84
98
|
message.cofStep = reader.int32();
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
case 2: {
|
|
102
|
+
if (tag !== 18) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
87
105
|
message.info = reader.string();
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
reader.skipType(tag & 7);
|
|
91
|
-
break;
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
92
108
|
}
|
|
109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
reader.skip(tag & 7);
|
|
93
113
|
}
|
|
94
114
|
return message;
|
|
95
115
|
},
|
|
116
|
+
create(base) {
|
|
117
|
+
return CofStepInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
118
|
+
},
|
|
96
119
|
fromPartial(object) {
|
|
97
120
|
var _a, _b;
|
|
98
121
|
const message = createBaseCofStepInfo();
|
|
@@ -105,12 +128,12 @@ function createBaseDebugTrace() {
|
|
|
105
128
|
return { lastCofStep: undefined, lastAbStep: undefined, budgetGroupId: 0 };
|
|
106
129
|
}
|
|
107
130
|
export const DebugTrace = {
|
|
108
|
-
encode(message, writer =
|
|
131
|
+
encode(message, writer = new BinaryWriter()) {
|
|
109
132
|
if (message.lastCofStep !== undefined) {
|
|
110
|
-
CofStepInfo.encode(message.lastCofStep, writer.uint32(10).fork()).
|
|
133
|
+
CofStepInfo.encode(message.lastCofStep, writer.uint32(10).fork()).join();
|
|
111
134
|
}
|
|
112
135
|
if (message.lastAbStep !== undefined) {
|
|
113
|
-
AbStepInfo.encode(message.lastAbStep, writer.uint32(18).fork()).
|
|
136
|
+
AbStepInfo.encode(message.lastAbStep, writer.uint32(18).fork()).join();
|
|
114
137
|
}
|
|
115
138
|
if (message.budgetGroupId !== 0) {
|
|
116
139
|
writer.uint32(24).uint32(message.budgetGroupId);
|
|
@@ -118,45 +141,55 @@ export const DebugTrace = {
|
|
|
118
141
|
return writer;
|
|
119
142
|
},
|
|
120
143
|
decode(input, length) {
|
|
121
|
-
const reader = input instanceof
|
|
144
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
122
145
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
146
|
const message = createBaseDebugTrace();
|
|
124
147
|
while (reader.pos < end) {
|
|
125
148
|
const tag = reader.uint32();
|
|
126
149
|
switch (tag >>> 3) {
|
|
127
|
-
case 1:
|
|
150
|
+
case 1: {
|
|
151
|
+
if (tag !== 10) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
128
154
|
message.lastCofStep = CofStepInfo.decode(reader, reader.uint32());
|
|
129
|
-
|
|
130
|
-
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
case 2: {
|
|
158
|
+
if (tag !== 18) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
131
161
|
message.lastAbStep = AbStepInfo.decode(reader, reader.uint32());
|
|
132
|
-
|
|
133
|
-
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
case 3: {
|
|
165
|
+
if (tag !== 24) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
134
168
|
message.budgetGroupId = reader.uint32();
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
reader.skipType(tag & 7);
|
|
138
|
-
break;
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
139
171
|
}
|
|
172
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
reader.skip(tag & 7);
|
|
140
176
|
}
|
|
141
177
|
return message;
|
|
142
178
|
},
|
|
179
|
+
create(base) {
|
|
180
|
+
return DebugTrace.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
181
|
+
},
|
|
143
182
|
fromPartial(object) {
|
|
144
183
|
var _a;
|
|
145
184
|
const message = createBaseDebugTrace();
|
|
146
|
-
message.lastCofStep =
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
? AbStepInfo.fromPartial(object.lastAbStep)
|
|
153
|
-
: undefined;
|
|
185
|
+
message.lastCofStep = (object.lastCofStep !== undefined && object.lastCofStep !== null)
|
|
186
|
+
? CofStepInfo.fromPartial(object.lastCofStep)
|
|
187
|
+
: undefined;
|
|
188
|
+
message.lastAbStep = (object.lastAbStep !== undefined && object.lastAbStep !== null)
|
|
189
|
+
? AbStepInfo.fromPartial(object.lastAbStep)
|
|
190
|
+
: undefined;
|
|
154
191
|
message.budgetGroupId = (_a = object.budgetGroupId) !== null && _a !== void 0 ? _a : 0;
|
|
155
192
|
return message;
|
|
156
193
|
},
|
|
157
194
|
};
|
|
158
|
-
if (_m0.util.Long !== Long) {
|
|
159
|
-
_m0.util.Long = Long;
|
|
160
|
-
_m0.configure();
|
|
161
|
-
}
|
|
162
195
|
//# sourceMappingURL=debug_info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug_info.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/debug_info.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAClD,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM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\"protobufjs/minimal\";\nexport const protobufPackage = \"snapchat.cdp.cof\";\nexport enum AbStep {\n USER_WHITELISTED = 0,\n USER_GROUP_WHITELISTED = 1,\n FILTER_CONDITIONS = 2,\n SLICE_RANGE = 3,\n TRAFFIC_ALLOCATED = 4,\n UNRECOGNIZED = -1\n}\nexport enum CofStep {\n VALIDATE_REQUEST = 0,\n REQUEST_ATLAS = 1,\n BUILD_TARGETING_INFO = 2,\n QUERY_INDEX = 3,\n REQUEST_AB = 4,\n UNRECOGNIZED = -1\n}\nexport interface AbStepInfo {\n abStep: AbStep;\n info: string;\n}\nexport interface CofStepInfo {\n cofStep: CofStep;\n info: string;\n}\nexport interface DebugTrace {\n lastCofStep: CofStepInfo | undefined;\n lastAbStep: AbStepInfo | undefined;\n budgetGroupId: number;\n}\nfunction createBaseAbStepInfo(): AbStepInfo {\n return { abStep: 0, info: \"\" };\n}\nexport const AbStepInfo = {\n encode(message: AbStepInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.abStep !== 0) {\n writer.uint32(8).int32(message.abStep);\n }\n if (message.info !== \"\") {\n writer.uint32(18).string(message.info);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): AbStepInfo {\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 = createBaseAbStepInfo();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.abStep = reader.int32() as any;\n break;\n case 2:\n message.info = 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<AbStepInfo>, I>>(object: I): AbStepInfo {\n const message = createBaseAbStepInfo();\n message.abStep = object.abStep ?? 0;\n message.info = object.info ?? \"\";\n return message;\n },\n};\nfunction createBaseCofStepInfo(): CofStepInfo {\n return { cofStep: 0, info: \"\" };\n}\nexport const CofStepInfo = {\n encode(message: CofStepInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.cofStep !== 0) {\n writer.uint32(8).int32(message.cofStep);\n }\n if (message.info !== \"\") {\n writer.uint32(18).string(message.info);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): CofStepInfo {\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 = createBaseCofStepInfo();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.cofStep = reader.int32() as any;\n break;\n case 2:\n message.info = 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<CofStepInfo>, I>>(object: I): CofStepInfo {\n const message = createBaseCofStepInfo();\n message.cofStep = object.cofStep ?? 0;\n message.info = object.info ?? \"\";\n return message;\n },\n};\nfunction createBaseDebugTrace(): DebugTrace {\n return { lastCofStep: undefined, lastAbStep: undefined, budgetGroupId: 0 };\n}\nexport const DebugTrace = {\n encode(message: DebugTrace, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {\n if (message.lastCofStep !== undefined) {\n CofStepInfo.encode(message.lastCofStep, writer.uint32(10).fork()).ldelim();\n }\n if (message.lastAbStep !== undefined) {\n AbStepInfo.encode(message.lastAbStep, writer.uint32(18).fork()).ldelim();\n }\n if (message.budgetGroupId !== 0) {\n writer.uint32(24).uint32(message.budgetGroupId);\n }\n return writer;\n },\n decode(input: _m0.Reader | Uint8Array, length?: number): DebugTrace {\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 = createBaseDebugTrace();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.lastCofStep = CofStepInfo.decode(reader, reader.uint32());\n break;\n case 2:\n message.lastAbStep = AbStepInfo.decode(reader, reader.uint32());\n break;\n case 3:\n message.budgetGroupId = 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<DebugTrace>, I>>(object: I): DebugTrace {\n const message = createBaseDebugTrace();\n message.lastCofStep =\n object.lastCofStep !== undefined && object.lastCofStep !== null\n ? CofStepInfo.fromPartial(object.lastCofStep)\n : undefined;\n message.lastAbStep =\n object.lastAbStep !== undefined && object.lastAbStep !== null\n ? AbStepInfo.fromPartial(object.lastAbStep)\n : undefined;\n message.budgetGroupId = object.budgetGroupId ?? 0;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;\nif (_m0.util.Long !== Long) {\n _m0.util.Long = Long as any;\n _m0.configure();\n}\n"]}
|
|
1
|
+
{"version":3,"file":"debug_info.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/debug_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAClD,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IACd,2DAAoB,CAAA;IACpB,uEAA0B,CAAA;IAC1B,6DAAqB,CAAA;IACrB,iDAAe,CAAA;IACf,6DAAqB,CAAA;IACrB,oDAAiB,CAAA;AACrB,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AACD,MAAM,CAAN,IAAY,OAOX;AAPD,WAAY,OAAO;IACf,6DAAoB,CAA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,IAAI,GAAK,EAAU,CAAC,CAAC;IACvD,CAAC;IACD,WAAW,CAA8C,MAAS;;QAC9D,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACvC,OAAO,CAAC,WAAW,GAAG,CAAC,MAAM,CAAC,WAAW,KAAK,SAAS,IAAI,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC;YACnF,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC;YAC7C,CAAC,CAAC,SAAS,CAAC;QAChB,OAAO,CAAC,UAAU,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI,CAAC;YAChF,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC;YAC3C,CAAC,CAAC,SAAS,CAAC;QAChB,OAAO,CAAC,aAAa,GAAG,MAAA,MAAM,CAAC,aAAa,mCAAI,CAAC,CAAC;QAClD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC","sourcesContent":["import { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nexport const protobufPackage = \"snapchat.cdp.cof\";\nexport enum AbStep {\n USER_WHITELISTED = 0,\n USER_GROUP_WHITELISTED = 1,\n FILTER_CONDITIONS = 2,\n SLICE_RANGE = 3,\n TRAFFIC_ALLOCATED = 4,\n UNRECOGNIZED = -1\n}\nexport enum CofStep {\n VALIDATE_REQUEST = 0,\n REQUEST_ATLAS = 1,\n BUILD_TARGETING_INFO = 2,\n QUERY_INDEX = 3,\n REQUEST_AB = 4,\n UNRECOGNIZED = -1\n}\nexport interface AbStepInfo {\n abStep: AbStep;\n info: string;\n}\nexport interface CofStepInfo {\n cofStep: CofStep;\n info: string;\n}\nexport interface DebugTrace {\n lastCofStep: CofStepInfo | undefined;\n lastAbStep: AbStepInfo | undefined;\n budgetGroupId: number;\n}\nfunction createBaseAbStepInfo(): AbStepInfo {\n return { abStep: 0, info: \"\" };\n}\nexport const AbStepInfo: MessageFns<AbStepInfo> = {\n encode(message: AbStepInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.abStep !== 0) {\n writer.uint32(8).int32(message.abStep);\n }\n if (message.info !== \"\") {\n writer.uint32(18).string(message.info);\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): AbStepInfo {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseAbStepInfo();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n message.abStep = reader.int32() as any;\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n message.info = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<AbStepInfo>, I>>(base?: I): AbStepInfo {\n return AbStepInfo.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<AbStepInfo>, I>>(object: I): AbStepInfo {\n const message = createBaseAbStepInfo();\n message.abStep = object.abStep ?? 0;\n message.info = object.info ?? \"\";\n return message;\n },\n};\nfunction createBaseCofStepInfo(): CofStepInfo {\n return { cofStep: 0, info: \"\" };\n}\nexport const CofStepInfo: MessageFns<CofStepInfo> = {\n encode(message: CofStepInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.cofStep !== 0) {\n writer.uint32(8).int32(message.cofStep);\n }\n if (message.info !== \"\") {\n writer.uint32(18).string(message.info);\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): CofStepInfo {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseCofStepInfo();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n message.cofStep = reader.int32() as any;\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n message.info = reader.string();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<CofStepInfo>, I>>(base?: I): CofStepInfo {\n return CofStepInfo.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<CofStepInfo>, I>>(object: I): CofStepInfo {\n const message = createBaseCofStepInfo();\n message.cofStep = object.cofStep ?? 0;\n message.info = object.info ?? \"\";\n return message;\n },\n};\nfunction createBaseDebugTrace(): DebugTrace {\n return { lastCofStep: undefined, lastAbStep: undefined, budgetGroupId: 0 };\n}\nexport const DebugTrace: MessageFns<DebugTrace> = {\n encode(message: DebugTrace, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.lastCofStep !== undefined) {\n CofStepInfo.encode(message.lastCofStep, writer.uint32(10).fork()).join();\n }\n if (message.lastAbStep !== undefined) {\n AbStepInfo.encode(message.lastAbStep, writer.uint32(18).fork()).join();\n }\n if (message.budgetGroupId !== 0) {\n writer.uint32(24).uint32(message.budgetGroupId);\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): DebugTrace {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDebugTrace();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n message.lastCofStep = CofStepInfo.decode(reader, reader.uint32());\n continue;\n }\n case 2: {\n if (tag !== 18) {\n break;\n }\n message.lastAbStep = AbStepInfo.decode(reader, reader.uint32());\n continue;\n }\n case 3: {\n if (tag !== 24) {\n break;\n }\n message.budgetGroupId = reader.uint32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<DebugTrace>, I>>(base?: I): DebugTrace {\n return DebugTrace.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<DebugTrace>, I>>(object: I): DebugTrace {\n const message = createBaseDebugTrace();\n message.lastCofStep = (object.lastCofStep !== undefined && object.lastCofStep !== null)\n ? CofStepInfo.fromPartial(object.lastCofStep)\n : undefined;\n message.lastAbStep = (object.lastAbStep !== undefined && object.lastAbStep !== null)\n ? AbStepInfo.fromPartial(object.lastAbStep)\n : undefined;\n message.budgetGroupId = object.budgetGroupId ?? 0;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & {\n [K in Exclude<keyof I, KeysOfUnion<P>>]: never;\n};\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "snapchat.cdp.cof";
|
|
3
|
+
export interface DiscoverFeedSignals {
|
|
4
|
+
discoverFeedSectionCacheInfo: DiscoverFeedSignals_DiscoverFeedSectionCacheInfo | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {
|
|
7
|
+
feedType: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const DiscoverFeedSignals: MessageFns<DiscoverFeedSignals>;
|
|
10
|
+
export declare const DiscoverFeedSignals_DiscoverFeedSectionCacheInfo: MessageFns<DiscoverFeedSignals_DiscoverFeedSectionCacheInfo>;
|
|
11
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
12
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
13
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
14
|
+
} : Partial<T>;
|
|
15
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
16
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
17
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
18
|
+
} & {
|
|
19
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
20
|
+
};
|
|
21
|
+
export interface MessageFns<T> {
|
|
22
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
23
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
24
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=discover_feed_provided_signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover_feed_provided_signals.d.ts","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,MAAM,WAAW,mBAAmB;IAChC,4BAA4B,EAAE,gDAAgD,GAAG,SAA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C;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CACjE"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export const protobufPackage = "snapchat.cdp.cof";
|
|
3
|
+
function createBaseDiscoverFeedSignals() {
|
|
4
|
+
return { discoverFeedSectionCacheInfo: undefined };
|
|
5
|
+
}
|
|
6
|
+
export const DiscoverFeedSignals = {
|
|
7
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8
|
+
if (message.discoverFeedSectionCacheInfo !== undefined) {
|
|
9
|
+
DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.encode(message.discoverFeedSectionCacheInfo, writer.uint32(10).fork()).join();
|
|
10
|
+
}
|
|
11
|
+
return writer;
|
|
12
|
+
},
|
|
13
|
+
decode(input, length) {
|
|
14
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
16
|
+
const message = createBaseDiscoverFeedSignals();
|
|
17
|
+
while (reader.pos < end) {
|
|
18
|
+
const tag = reader.uint32();
|
|
19
|
+
switch (tag >>> 3) {
|
|
20
|
+
case 1: {
|
|
21
|
+
if (tag !== 10) {
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
message.discoverFeedSectionCacheInfo = DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.decode(reader, reader.uint32());
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
reader.skip(tag & 7);
|
|
32
|
+
}
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
create(base) {
|
|
36
|
+
return DiscoverFeedSignals.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
37
|
+
},
|
|
38
|
+
fromPartial(object) {
|
|
39
|
+
const message = createBaseDiscoverFeedSignals();
|
|
40
|
+
message.discoverFeedSectionCacheInfo =
|
|
41
|
+
(object.discoverFeedSectionCacheInfo !== undefined && object.discoverFeedSectionCacheInfo !== null)
|
|
42
|
+
? DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.fromPartial(object.discoverFeedSectionCacheInfo)
|
|
43
|
+
: undefined;
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
function createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo() {
|
|
48
|
+
return { feedType: 0 };
|
|
49
|
+
}
|
|
50
|
+
export const DiscoverFeedSignals_DiscoverFeedSectionCacheInfo = {
|
|
51
|
+
encode(message, writer = new BinaryWriter()) {
|
|
52
|
+
if (message.feedType !== 0) {
|
|
53
|
+
writer.uint32(8).int32(message.feedType);
|
|
54
|
+
}
|
|
55
|
+
return writer;
|
|
56
|
+
},
|
|
57
|
+
decode(input, length) {
|
|
58
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
59
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
case 1: {
|
|
65
|
+
if (tag !== 8) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
message.feedType = reader.int32();
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
reader.skip(tag & 7);
|
|
76
|
+
}
|
|
77
|
+
return message;
|
|
78
|
+
},
|
|
79
|
+
create(base) {
|
|
80
|
+
return DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
81
|
+
},
|
|
82
|
+
fromPartial(object) {
|
|
83
|
+
var _a;
|
|
84
|
+
const message = createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo();
|
|
85
|
+
message.feedType = (_a = object.feedType) !== null && _a !== void 0 ? _a : 0;
|
|
86
|
+
return message;
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=discover_feed_provided_signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover_feed_provided_signals.js","sourceRoot":"","sources":["../../../../../src/generated-proto/pb_schema/cdp/cof/discover_feed_provided_signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAOlD,SAAS,6BAA6B;IAClC,OAAO,EAAE,4BAA4B,EAAE,SAAS,EAAE,CAAC;AACvD,CAAC;AACD,MAAM,CAAC,MAAM,mBAAmB,GAAoC;IAChE,MAAM,CAAC,OAA4B,EAAE,SAAuB,IAAI,YAAY,EAAE;QAC1E,IAAI,OAAO,CAAC,4BAA4B,KAAK,SAAS,EAAE;YACpD,gDAAgD,CAAC,MAAM,CAAC,OAAO,CAAC,4BAA4B,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC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AG,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,EAAE;gBAC9B,MAAM;aACT;YACD,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;SACxB;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IACD,MAAM,CAAoF,IAAQ;QAC9F,OAAO,gDAAgD,CAAC,WAAW,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAK,EAAU,CAAC,CAAC;IAC7F,CAAC;IACD,WAAW,CAAoF,MAAS;;QACpG,MAAM,OAAO,GAAG,0DAA0D,EAAE,CAAC;QAC7E,OAAO,CAAC,QAAQ,GAAG,MAAA,MAAM,CAAC,QAAQ,mCAAI,CAAC,CAAC;QACxC,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ,CAAC","sourcesContent":["import { BinaryReader, BinaryWriter } from \"@bufbuild/protobuf/wire\";\nexport const protobufPackage = \"snapchat.cdp.cof\";\nexport interface DiscoverFeedSignals {\n discoverFeedSectionCacheInfo: DiscoverFeedSignals_DiscoverFeedSectionCacheInfo | undefined;\n}\nexport interface DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {\n feedType: number;\n}\nfunction createBaseDiscoverFeedSignals(): DiscoverFeedSignals {\n return { discoverFeedSectionCacheInfo: undefined };\n}\nexport const DiscoverFeedSignals: MessageFns<DiscoverFeedSignals> = {\n encode(message: DiscoverFeedSignals, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.discoverFeedSectionCacheInfo !== undefined) {\n DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.encode(message.discoverFeedSectionCacheInfo, writer.uint32(10).fork()).join();\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): DiscoverFeedSignals {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDiscoverFeedSignals();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 10) {\n break;\n }\n message.discoverFeedSectionCacheInfo = DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.decode(reader, reader.uint32());\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<DiscoverFeedSignals>, I>>(base?: I): DiscoverFeedSignals {\n return DiscoverFeedSignals.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<DiscoverFeedSignals>, I>>(object: I): DiscoverFeedSignals {\n const message = createBaseDiscoverFeedSignals();\n message.discoverFeedSectionCacheInfo =\n (object.discoverFeedSectionCacheInfo !== undefined && object.discoverFeedSectionCacheInfo !== null)\n ? DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.fromPartial(object.discoverFeedSectionCacheInfo)\n : undefined;\n return message;\n },\n};\nfunction createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo(): DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {\n return { feedType: 0 };\n}\nexport const DiscoverFeedSignals_DiscoverFeedSectionCacheInfo: MessageFns<DiscoverFeedSignals_DiscoverFeedSectionCacheInfo> = {\n encode(message: DiscoverFeedSignals_DiscoverFeedSectionCacheInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {\n if (message.feedType !== 0) {\n writer.uint32(8).int32(message.feedType);\n }\n return writer;\n },\n decode(input: BinaryReader | Uint8Array, length?: number): DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {\n const reader = input instanceof BinaryReader ? input : new BinaryReader(input);\n let end = length === undefined ? reader.len : reader.pos + length;\n const message = createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo();\n while (reader.pos < end) {\n const tag = reader.uint32();\n switch (tag >>> 3) {\n case 1: {\n if (tag !== 8) {\n break;\n }\n message.feedType = reader.int32();\n continue;\n }\n }\n if ((tag & 7) === 4 || tag === 0) {\n break;\n }\n reader.skip(tag & 7);\n }\n return message;\n },\n create<I extends Exact<DeepPartial<DiscoverFeedSignals_DiscoverFeedSectionCacheInfo>, I>>(base?: I): DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {\n return DiscoverFeedSignals_DiscoverFeedSectionCacheInfo.fromPartial(base ?? ({} as any));\n },\n fromPartial<I extends Exact<DeepPartial<DiscoverFeedSignals_DiscoverFeedSectionCacheInfo>, I>>(object: I): DiscoverFeedSignals_DiscoverFeedSectionCacheInfo {\n const message = createBaseDiscoverFeedSignals_DiscoverFeedSectionCacheInfo();\n message.feedType = object.feedType ?? 0;\n return message;\n },\n};\ntype Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;\nexport type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {\n [K in keyof T]?: DeepPartial<T[K]>;\n} : Partial<T>;\ntype KeysOfUnion<T> = T extends T ? keyof T : never;\nexport type Exact<P, I extends P> = P extends Builtin ? P : P & {\n [K in keyof P]: Exact<P[K], I[K]>;\n} & {\n [K in Exclude<keyof I, KeysOfUnion<P>>]: never;\n};\nexport interface MessageFns<T> {\n encode(message: T, writer?: BinaryWriter): BinaryWriter;\n decode(input: BinaryReader | Uint8Array, length?: number): T;\n create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;\n fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;\n}\n"]}
|