Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@livescale/types

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livescale/types - npm Package Compare versions

Comparing version 7.1.0 to 7.2.0

2

dist/index.cjs.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var zod=require("zod");const REDIS_ROOT_KEY="chat";function buildKey(t,e){const o=[REDIS_ROOT_KEY,"rooms",t];if(Array.isArray(e))o.push(...e);else if(typeof e=="string")o.push(e);else throw new Error("Invalid keys type, should be string or array");return o.join(":")}function RedisKey(t){return{ANALYTICS:e=>buildKey(t,`analytics:${e}`)}}const AnalyticDevice=zod.z.object({ua:zod.z.string(),browserInfo:zod.z.object({ua:zod.z.string(),browser:zod.z.object({name:zod.z.string(),version:zod.z.string(),major:zod.z.string()}),engine:zod.z.object({name:zod.z.string(),version:zod.z.string()}),os:zod.z.object({name:zod.z.string(),version:zod.z.string()}),device:zod.z.record(zod.z.any()),cpu:zod.z.record(zod.z.any())})}).deepPartial(),AnalyticsGeolocation=zod.z.object({city:zod.z.string(),continent:zod.z.string(),continent_code:zod.z.string(),country:zod.z.string(),country_code:zod.z.string(),country_alpha_2_code:zod.z.string(),country_alpha_3_code:zod.z.string(),location:zod.z.object({latitude:zod.z.number(),longitude:zod.z.number(),timeZone:zod.z.string()}),ip_address:zod.z.string()}).deepPartial(),AnalyticEvent=zod.z.object({uuid:zod.z.string(),event:zod.z.string(),isPractice:zod.z.optional(zod.z.boolean()),hashedEventId:zod.z.string(),timestamp:zod.z.union([zod.z.string(),zod.z.date()]),metadata:zod.z.record(zod.z.any()),member:zod.z.object({session:zod.z.string(),username:zod.z.optional(zod.z.string()),role:zod.z.string()}),geolocalization:zod.z.optional(AnalyticsGeolocation),device:zod.z.optional(AnalyticDevice)});var index$2=Object.freeze({__proto__:null,AnalyticDevice,AnalyticsGeolocation,AnalyticEvent,RedisKey});const CSVCollection=zod.z.object({brand:zod.z.string(),category:zod.z.string(),dw_code:zod.z.string(),id:zod.z.string(),MasterID:zod.z.string(),metric21:zod.z.string(),name:zod.z.string(),price:zod.z.string(),product_imageUrl:zod.z.string(),product_longDescription:zod.z.string(),product_name:zod.z.string(),product_subtitle:zod.z.string(),variant_basePrice:zod.z.string(),variant_inventory_quantity:zod.z.string(),variant_options1_image:zod.z.string(),variant_options1:zod.z.string(),variant_price:zod.z.string(),variant_sku:zod.z.string(),variant:zod.z.string()}).catchall(zod.z.string().optional()),locales=["en","fr"],localesEnum=zod.z.enum(["en","fr"]).nullish().transform(t=>t||"en");var locales$1=Object.freeze({__proto__:null,locales,localesEnum});const type$f="chat-announcement",text=zod.z.string(),status$3=zod.z.enum(["published","archived","created"]),payload$f=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status:status$3,text}),output$f=zod.z.object({type:zod.z.literal(type$f),payload:payload$f}),ChatAnnouncement={type:type$f,payload:payload$f,output:output$f},username=zod.z.string().min(2).max(20),session_id=zod.z.string(),SocketUserSchema=zod.z.object({session_id,role:zod.z.union([zod.z.literal("member"),zod.z.literal("moderator")])}),SocketLoggedUserSchema=SocketUserSchema.extend({username}),type$e="chat-emotion",emotion=zod.z.enum(["like"]),input$a=zod.z.object({emotion}),payload$e=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),emotion,from:SocketUserSchema,count:zod.z.number()}),output$e=zod.z.object({type:zod.z.literal(type$e),payload:payload$e}),ChatEmotion={type:type$e,input:input$a,payload:payload$e,output:output$e},type$d="chat-message",input$9=zod.z.object({message:zod.z.string().nonempty()}),payload$d=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),message:zod.z.string(),from:SocketLoggedUserSchema}),output$d=zod.z.object({type:zod.z.literal(type$d),payload:payload$d}),elasticsearch_payload=payload$d.extend({hashed_event_id:zod.z.string()}),ChatMessage={type:type$d,input:input$9,payload:payload$d,output:output$d,elasticsearch_payload},type$c="chat-message-pin",status$2=zod.z.enum(["published","archived"]),payload$c=zod.z.object({id:zod.z.string(),text:zod.z.string(),status:status$2,created_at:zod.z.number()}),output$c=zod.z.object({type:zod.z.literal(type$c),payload:payload$c}),ChatMessagePin={type:type$c,payload:payload$c,output:output$c},type$b="chat-product-highlight",status$1=zod.z.enum(["published","archived","created"]),payload$b=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status:status$1}),output$b=zod.z.object({type:zod.z.literal(type$b),payload:payload$b}),ChatProductHighlight={type:type$b,payload:payload$b,output:output$b},type$a="chat-load-room",input$8=zod.z.object({}),payload$a=zod.z.object({last_messages:zod.z.array(ChatMessage.payload),last_pin:zod.z.optional(zod.z.nullable(ChatMessagePin.payload)),last_announcement:zod.z.optional(zod.z.nullable(ChatAnnouncement.payload)),last_product_highlight:zod.z.optional(zod.z.nullable(ChatProductHighlight.payload))}),output$a=zod.z.object({type:zod.z.literal(type$a),payload:payload$a}),ChatLoadRoom={type:type$a,input:input$8,payload:payload$a,output:output$a},type$9="chat-message-delete",input$7=zod.z.object({message_id:zod.z.string()}),payload$9=zod.z.object({id:zod.z.string(),created_at:zod.z.number()}),output$9=zod.z.object({type:zod.z.literal(type$9),payload:payload$9}),ChatMessageDelete={type:type$9,input:input$7,payload:payload$9,output:output$9},type$8="chat-room-status",input$6=zod.z.undefined(),payload$8=zod.z.object({live_viewers:zod.z.number().nonnegative(),total_viewers:zod.z.number().nonnegative(),emotions:zod.z.object({like:zod.z.number().nonnegative()})}),output$8=zod.z.object({type:zod.z.literal(type$8),payload:payload$8}),ChatRoomStatus={type:type$8,input:input$6,payload:payload$8,output:output$8},type$7="chat-survey",status=zod.z.enum(["created","published","archived","shared"]),question=zod.z.string().nonempty(),choicesOutput$1=zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty()})),payload$7=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status,question,choices:choicesOutput$1}),output$7=zod.z.object({type:zod.z.literal(type$7),payload:payload$7}),ChatSurvey={type:type$7,payload:payload$7,output:output$7},ChatSurveyAnswerRedisKey=(t,e,o)=>`event:${t}:surveys:${e}:answers:${o}`,type$6="chat-survey-answer",input$5=zod.z.object({question_id:zod.z.string(),choice_id:zod.z.string()}),payload$6=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),question:zod.z.string().nonempty(),choices:zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty(),count:zod.z.number()})),total_votes:zod.z.number()}),output$6=zod.z.object({type:zod.z.literal(type$6),payload:payload$6}),ChatSurveyAnswer={type:type$6,input:input$5,payload:payload$6,output:output$6},type$5="chat-survey-results",choicesOutput=zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty(),count:zod.z.number().nonnegative()})),payload$5=ChatSurvey.payload.extend({status:zod.z.literal("shared"),choices:choicesOutput}),output$5=zod.z.object({type:zod.z.literal(type$5),payload:payload$5}),ChatSurveyResults={type:type$5,payload:payload$5,output:output$5},type$4="chat-user-ban",input$4=zod.z.object({user_session_id:session_id}),payload$4=zod.z.object({user_session_id:zod.z.string(),created_at:zod.z.number()}),output$4=zod.z.object({type:zod.z.literal(type$4),payload:payload$4}),ChatUserBan={type:type$4,input:input$4,payload:payload$4,output:output$4},type$3="chat-username",input$3=zod.z.object({username}),payload$3=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),from:SocketLoggedUserSchema,chat_members:zod.z.number().nonnegative(),live_viewers:zod.z.number().nonnegative()}),output$3=zod.z.object({type:zod.z.literal(type$3),payload:payload$3}),ChatUsername={type:type$3,input:input$3,payload:payload$3,output:output$3},type$2="chat-winner",input$2=zod.z.object({id:zod.z.string(),chat_session_id:zod.z.string()}),payload$2=zod.z.object({id:zod.z.string(),chat_session_id:zod.z.string()}),output$2=zod.z.object({type:zod.z.literal(type$2),payload:payload$2}),ChatWinner={type:type$2,input:input$2,payload:payload$2,output:output$2},type$1="chat-winner-email",input$1=zod.z.object({id:zod.z.string(),email:zod.z.string().email()}),payload$1=zod.z.undefined(),output$1=zod.z.undefined(),ChatWinnerEmail={type:type$1,input:input$1,payload:payload$1,output:output$1},type="chat-winner-email-entered",input=zod.z.object({id:zod.z.string()}),payload=zod.z.object({id:zod.z.string()}),output=zod.z.object({type:zod.z.literal(type),payload}),ChatWinnerEmailEntered={type,input,payload,output};var index$1=Object.freeze({__proto__:null,ChatAnnouncement,ChatEmotion,ChatLoadRoom,ChatMessage,ChatMessageDelete,ChatMessagePin,ChatProductHighlight,ChatRoomStatus,ChatSurvey,ChatSurveyAnswerRedisKey,ChatSurveyAnswer,ChatSurveyResults,ChatUserBan,ChatUsername,ChatWinner,ChatWinnerEmail,ChatWinnerEmailEntered,username,session_id,SocketUserSchema,SocketLoggedUserSchema});const EmailAfterEvent=zod.z.object({type:zod.z.literal("emails/after-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({event_id:zod.z.string()})})}),EmailEmailUpdate=zod.z.object({type:zod.z.literal("emails/email-update"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailFirstEvent=zod.z.object({type:zod.z.literal("emails/first-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({host_id:zod.z.string()})})}),EmailForgotPassword=zod.z.object({type:zod.z.literal("emails/forgot-password"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({token:zod.z.string().length(32)})})}),EmailHostEvent=zod.z.object({type:zod.z.literal("emails/host-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({event_id:zod.z.string(),event_name:zod.z.string(),scheduled_at:zod.z.string()})})}),EmailNewSignup=zod.z.object({type:zod.z.literal("emails/new-signup"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailRoleChange=zod.z.object({type:zod.z.literal("emails/role-change"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({shop_name:zod.z.string(),new_role:zod.z.string()})})}),EmailShopifyUninstall=zod.z.object({type:zod.z.literal("emails/shopify-uninstall"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailStripeCancellation=zod.z.object({type:zod.z.literal("emails/stripe-cancellation"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailUserInvite=zod.z.object({type:zod.z.literal("emails/user-invite"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({provider_role_id:zod.z.string().length(24),workspace_role_id:zod.z.string().length(24),shop_name:zod.z.string(),role:zod.z.string()})})}),EventGenerateAnalytics=zod.z.object({type:zod.z.literal("events/generate-analytics"),payload:zod.z.object({event_id:zod.z.string()})}),WorkerJob=zod.z.union([EventGenerateAnalytics,EmailShopifyUninstall,EmailForgotPassword,EmailRoleChange,EmailStripeCancellation,EmailNewSignup,EmailUserInvite,EmailEmailUpdate,EmailFirstEvent,EmailAfterEvent,EmailHostEvent]);var index=Object.freeze({__proto__:null,WorkerJob,EmailAfterEvent,EmailEmailUpdate,EmailFirstEvent,EmailForgotPassword,EmailHostEvent,EmailNewSignup,EmailRoleChange,EmailShopifyUninstall,EmailStripeCancellation,EmailUserInvite,EventGenerateAnalytics});exports.AnalyticDevice=AnalyticDevice,exports.AnalyticEvent=AnalyticEvent,exports.AnalyticEvents=index$2,exports.AnalyticsGeolocation=AnalyticsGeolocation,exports.CSVCollection=CSVCollection,exports.ChatAnnouncement=ChatAnnouncement,exports.ChatEmotion=ChatEmotion,exports.ChatLoadRoom=ChatLoadRoom,exports.ChatMessage=ChatMessage,exports.ChatMessageDelete=ChatMessageDelete,exports.ChatMessagePin=ChatMessagePin,exports.ChatProductHighlight=ChatProductHighlight,exports.ChatRoomStatus=ChatRoomStatus,exports.ChatSurvey=ChatSurvey,exports.ChatSurveyAnswer=ChatSurveyAnswer,exports.ChatSurveyAnswerRedisKey=ChatSurveyAnswerRedisKey,exports.ChatSurveyResults=ChatSurveyResults,exports.ChatUserBan=ChatUserBan,exports.ChatUsername=ChatUsername,exports.ChatWinner=ChatWinner,exports.ChatWinnerEmail=ChatWinnerEmail,exports.ChatWinnerEmailEntered=ChatWinnerEmailEntered,exports.EmailAfterEvent=EmailAfterEvent,exports.EmailEmailUpdate=EmailEmailUpdate,exports.EmailFirstEvent=EmailFirstEvent,exports.EmailForgotPassword=EmailForgotPassword,exports.EmailHostEvent=EmailHostEvent,exports.EmailNewSignup=EmailNewSignup,exports.EmailRoleChange=EmailRoleChange,exports.EmailShopifyUninstall=EmailShopifyUninstall,exports.EmailStripeCancellation=EmailStripeCancellation,exports.EmailUserInvite=EmailUserInvite,exports.EventGenerateAnalytics=EventGenerateAnalytics,exports.Locales=locales$1,exports.RedisKey=RedisKey,exports.SocketLoggedUserSchema=SocketLoggedUserSchema,exports.SocketUserSchema=SocketUserSchema,exports.WebsocketEvents=index$1,exports.WorkerJob=WorkerJob,exports.WorkerJobs=index,exports.locales=locales,exports.localesEnum=localesEnum,exports.session_id=session_id,exports.username=username;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var zod=require("zod");const REDIS_ROOT_KEY="chat";function buildKey(t,e){const o=[REDIS_ROOT_KEY,"rooms",t];if(Array.isArray(e))o.push(...e);else if(typeof e=="string")o.push(e);else throw new Error("Invalid keys type, should be string or array");return o.join(":")}function RedisKey(t){return{ANALYTICS:e=>buildKey(t,`analytics:${e}`)}}const AnalyticDevice=zod.z.object({ua:zod.z.string(),browserInfo:zod.z.object({ua:zod.z.string(),browser:zod.z.object({name:zod.z.string(),version:zod.z.string(),major:zod.z.string()}),engine:zod.z.object({name:zod.z.string(),version:zod.z.string()}),os:zod.z.object({name:zod.z.string(),version:zod.z.string()}),device:zod.z.record(zod.z.any()),cpu:zod.z.record(zod.z.any())})}).deepPartial(),AnalyticsGeolocation=zod.z.object({city:zod.z.string(),continent:zod.z.string(),continent_code:zod.z.string(),country:zod.z.string(),country_code:zod.z.string(),country_alpha_2_code:zod.z.string(),country_alpha_3_code:zod.z.string(),location:zod.z.object({latitude:zod.z.number(),longitude:zod.z.number(),timeZone:zod.z.string()}),ip_address:zod.z.string()}).deepPartial(),AnalyticEvent=zod.z.object({uuid:zod.z.string(),event:zod.z.string(),isPractice:zod.z.optional(zod.z.boolean()),hashedEventId:zod.z.string(),timestamp:zod.z.union([zod.z.string(),zod.z.date()]),metadata:zod.z.record(zod.z.any()),member:zod.z.object({session:zod.z.string(),username:zod.z.optional(zod.z.string()),role:zod.z.string()}),geolocalization:zod.z.optional(AnalyticsGeolocation),device:zod.z.optional(AnalyticDevice)});var index$2=Object.freeze({__proto__:null,AnalyticDevice,AnalyticsGeolocation,AnalyticEvent,RedisKey});const ProductAttrs=zod.z.object({brand:zod.z.string(),category:zod.z.string(),dw_code:zod.z.string().optional(),id:zod.z.string(),MasterID:zod.z.string(),metric21:zod.z.string(),name:zod.z.string(),price:zod.z.string(),product_imageUrl:zod.z.string(),product_longDescription:zod.z.string(),product_name:zod.z.string(),product_subtitle:zod.z.string()}).catchall(zod.z.string().optional()),VariantAttrs=zod.z.object({variant_basePrice:zod.z.string(),variant_price:zod.z.string(),variant_sku:zod.z.string(),variant_inventory_quantity:zod.z.string().optional(),variant:zod.z.string().optional()}),VariantDropdown=ProductAttrs.merge(VariantAttrs).merge(zod.z.object({variant_options1:zod.z.string()})),VariantColor=ProductAttrs.merge(VariantAttrs).merge(zod.z.object({variant_options1_color:zod.z.string()})),VariantImage=ProductAttrs.merge(VariantAttrs).merge(zod.z.object({variant_options1_image:zod.z.string()})),VariantSize=ProductAttrs.merge(VariantAttrs).merge(zod.z.object({variant_options1_size:zod.z.string()})),CSVCollection=zod.z.union([VariantColor,VariantDropdown,VariantImage,VariantSize]),locales=["en","fr"],localesEnum=zod.z.enum(["en","fr"]).nullish().transform(t=>t||"en");var locales$1=Object.freeze({__proto__:null,locales,localesEnum});const type$f="chat-announcement",text=zod.z.string(),status$3=zod.z.enum(["published","archived","created"]),payload$f=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status:status$3,text}),output$f=zod.z.object({type:zod.z.literal(type$f),payload:payload$f}),ChatAnnouncement={type:type$f,payload:payload$f,output:output$f},username=zod.z.string().min(2).max(20),session_id=zod.z.string(),SocketUserSchema=zod.z.object({session_id,role:zod.z.union([zod.z.literal("member"),zod.z.literal("moderator")])}),SocketLoggedUserSchema=SocketUserSchema.extend({username}),type$e="chat-emotion",emotion=zod.z.enum(["like"]),input$a=zod.z.object({emotion}),payload$e=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),emotion,from:SocketUserSchema,count:zod.z.number()}),output$e=zod.z.object({type:zod.z.literal(type$e),payload:payload$e}),ChatEmotion={type:type$e,input:input$a,payload:payload$e,output:output$e},type$d="chat-message",input$9=zod.z.object({message:zod.z.string().nonempty()}),payload$d=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),message:zod.z.string(),from:SocketLoggedUserSchema}),output$d=zod.z.object({type:zod.z.literal(type$d),payload:payload$d}),elasticsearch_payload=payload$d.extend({hashed_event_id:zod.z.string()}),ChatMessage={type:type$d,input:input$9,payload:payload$d,output:output$d,elasticsearch_payload},type$c="chat-message-pin",status$2=zod.z.enum(["published","archived"]),payload$c=zod.z.object({id:zod.z.string(),text:zod.z.string(),status:status$2,created_at:zod.z.number()}),output$c=zod.z.object({type:zod.z.literal(type$c),payload:payload$c}),ChatMessagePin={type:type$c,payload:payload$c,output:output$c},type$b="chat-product-highlight",status$1=zod.z.enum(["published","archived","created"]),payload$b=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status:status$1}),output$b=zod.z.object({type:zod.z.literal(type$b),payload:payload$b}),ChatProductHighlight={type:type$b,payload:payload$b,output:output$b},type$a="chat-load-room",input$8=zod.z.object({}),payload$a=zod.z.object({last_messages:zod.z.array(ChatMessage.payload),last_pin:zod.z.optional(zod.z.nullable(ChatMessagePin.payload)),last_announcement:zod.z.optional(zod.z.nullable(ChatAnnouncement.payload)),last_product_highlight:zod.z.optional(zod.z.nullable(ChatProductHighlight.payload))}),output$a=zod.z.object({type:zod.z.literal(type$a),payload:payload$a}),ChatLoadRoom={type:type$a,input:input$8,payload:payload$a,output:output$a},type$9="chat-message-delete",input$7=zod.z.object({message_id:zod.z.string()}),payload$9=zod.z.object({id:zod.z.string(),created_at:zod.z.number()}),output$9=zod.z.object({type:zod.z.literal(type$9),payload:payload$9}),ChatMessageDelete={type:type$9,input:input$7,payload:payload$9,output:output$9},type$8="chat-room-status",input$6=zod.z.undefined(),payload$8=zod.z.object({live_viewers:zod.z.number().nonnegative(),total_viewers:zod.z.number().nonnegative(),emotions:zod.z.object({like:zod.z.number().nonnegative()})}),output$8=zod.z.object({type:zod.z.literal(type$8),payload:payload$8}),ChatRoomStatus={type:type$8,input:input$6,payload:payload$8,output:output$8},type$7="chat-survey",status=zod.z.enum(["created","published","archived","shared"]),question=zod.z.string().nonempty(),choicesOutput$1=zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty()})),payload$7=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),status,question,choices:choicesOutput$1}),output$7=zod.z.object({type:zod.z.literal(type$7),payload:payload$7}),ChatSurvey={type:type$7,payload:payload$7,output:output$7},ChatSurveyAnswerRedisKey=(t,e,o)=>`event:${t}:surveys:${e}:answers:${o}`,type$6="chat-survey-answer",input$5=zod.z.object({question_id:zod.z.string(),choice_id:zod.z.string()}),payload$6=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),question:zod.z.string().nonempty(),choices:zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty(),count:zod.z.number()})),total_votes:zod.z.number()}),output$6=zod.z.object({type:zod.z.literal(type$6),payload:payload$6}),ChatSurveyAnswer={type:type$6,input:input$5,payload:payload$6,output:output$6},type$5="chat-survey-results",choicesOutput=zod.z.array(zod.z.object({id:zod.z.string(),label:zod.z.string().nonempty(),count:zod.z.number().nonnegative()})),payload$5=ChatSurvey.payload.extend({status:zod.z.literal("shared"),choices:choicesOutput}),output$5=zod.z.object({type:zod.z.literal(type$5),payload:payload$5}),ChatSurveyResults={type:type$5,payload:payload$5,output:output$5},type$4="chat-user-ban",input$4=zod.z.object({user_session_id:session_id}),payload$4=zod.z.object({user_session_id:zod.z.string(),created_at:zod.z.number()}),output$4=zod.z.object({type:zod.z.literal(type$4),payload:payload$4}),ChatUserBan={type:type$4,input:input$4,payload:payload$4,output:output$4},type$3="chat-username",input$3=zod.z.object({username}),payload$3=zod.z.object({id:zod.z.string(),created_at:zod.z.number(),from:SocketLoggedUserSchema,chat_members:zod.z.number().nonnegative(),live_viewers:zod.z.number().nonnegative()}),output$3=zod.z.object({type:zod.z.literal(type$3),payload:payload$3}),ChatUsername={type:type$3,input:input$3,payload:payload$3,output:output$3},type$2="chat-winner",input$2=zod.z.object({id:zod.z.string(),chat_session_id:zod.z.string()}),payload$2=zod.z.object({id:zod.z.string(),chat_session_id:zod.z.string()}),output$2=zod.z.object({type:zod.z.literal(type$2),payload:payload$2}),ChatWinner={type:type$2,input:input$2,payload:payload$2,output:output$2},type$1="chat-winner-email",input$1=zod.z.object({id:zod.z.string(),email:zod.z.string().email()}),payload$1=zod.z.undefined(),output$1=zod.z.undefined(),ChatWinnerEmail={type:type$1,input:input$1,payload:payload$1,output:output$1},type="chat-winner-email-entered",input=zod.z.object({id:zod.z.string()}),payload=zod.z.object({id:zod.z.string()}),output=zod.z.object({type:zod.z.literal(type),payload}),ChatWinnerEmailEntered={type,input,payload,output};var index$1=Object.freeze({__proto__:null,ChatAnnouncement,ChatEmotion,ChatLoadRoom,ChatMessage,ChatMessageDelete,ChatMessagePin,ChatProductHighlight,ChatRoomStatus,ChatSurvey,ChatSurveyAnswerRedisKey,ChatSurveyAnswer,ChatSurveyResults,ChatUserBan,ChatUsername,ChatWinner,ChatWinnerEmail,ChatWinnerEmailEntered,username,session_id,SocketUserSchema,SocketLoggedUserSchema});const ChatLogsExport=zod.z.object({type:zod.z.literal("chat-logs/export"),payload:zod.z.object({id:zod.z.string()})}),EmailAfterEvent=zod.z.object({type:zod.z.literal("emails/after-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({event_id:zod.z.string()})})}),EmailEmailUpdate=zod.z.object({type:zod.z.literal("emails/email-update"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailFirstEvent=zod.z.object({type:zod.z.literal("emails/first-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({host_id:zod.z.string()})})}),EmailForgotPassword=zod.z.object({type:zod.z.literal("emails/forgot-password"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({token:zod.z.string().length(32)})})}),EmailHostEvent=zod.z.object({type:zod.z.literal("emails/host-event"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({event_id:zod.z.string(),event_name:zod.z.string(),scheduled_at:zod.z.string()})})}),EmailNewSignup=zod.z.object({type:zod.z.literal("emails/new-signup"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailRoleChange=zod.z.object({type:zod.z.literal("emails/role-change"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({shop_name:zod.z.string(),new_role:zod.z.string()})})}),EmailShopifyUninstall=zod.z.object({type:zod.z.literal("emails/shopify-uninstall"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailStripeCancellation=zod.z.object({type:zod.z.literal("emails/stripe-cancellation"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({})})}),EmailUserInvite=zod.z.object({type:zod.z.literal("emails/user-invite"),payload:zod.z.object({locale:localesEnum,to:zod.z.string().email(),data:zod.z.object({provider_role_id:zod.z.string().length(24),workspace_role_id:zod.z.string().length(24),shop_name:zod.z.string(),role:zod.z.string()})})}),EventGenerateAnalytics=zod.z.object({type:zod.z.literal("events/generate-analytics"),payload:zod.z.object({event_id:zod.z.string()})}),WorkerJob=zod.z.union([ChatLogsExport,EventGenerateAnalytics,EmailShopifyUninstall,EmailForgotPassword,EmailRoleChange,EmailStripeCancellation,EmailNewSignup,EmailUserInvite,EmailEmailUpdate,EmailFirstEvent,EmailAfterEvent,EmailHostEvent]);var index=Object.freeze({__proto__:null,WorkerJob,ChatLogsExport,EmailAfterEvent,EmailEmailUpdate,EmailFirstEvent,EmailForgotPassword,EmailHostEvent,EmailNewSignup,EmailRoleChange,EmailShopifyUninstall,EmailStripeCancellation,EmailUserInvite,EventGenerateAnalytics});exports.AnalyticDevice=AnalyticDevice,exports.AnalyticEvent=AnalyticEvent,exports.AnalyticEvents=index$2,exports.AnalyticsGeolocation=AnalyticsGeolocation,exports.CSVCollection=CSVCollection,exports.ChatAnnouncement=ChatAnnouncement,exports.ChatEmotion=ChatEmotion,exports.ChatLoadRoom=ChatLoadRoom,exports.ChatLogsExport=ChatLogsExport,exports.ChatMessage=ChatMessage,exports.ChatMessageDelete=ChatMessageDelete,exports.ChatMessagePin=ChatMessagePin,exports.ChatProductHighlight=ChatProductHighlight,exports.ChatRoomStatus=ChatRoomStatus,exports.ChatSurvey=ChatSurvey,exports.ChatSurveyAnswer=ChatSurveyAnswer,exports.ChatSurveyAnswerRedisKey=ChatSurveyAnswerRedisKey,exports.ChatSurveyResults=ChatSurveyResults,exports.ChatUserBan=ChatUserBan,exports.ChatUsername=ChatUsername,exports.ChatWinner=ChatWinner,exports.ChatWinnerEmail=ChatWinnerEmail,exports.ChatWinnerEmailEntered=ChatWinnerEmailEntered,exports.EmailAfterEvent=EmailAfterEvent,exports.EmailEmailUpdate=EmailEmailUpdate,exports.EmailFirstEvent=EmailFirstEvent,exports.EmailForgotPassword=EmailForgotPassword,exports.EmailHostEvent=EmailHostEvent,exports.EmailNewSignup=EmailNewSignup,exports.EmailRoleChange=EmailRoleChange,exports.EmailShopifyUninstall=EmailShopifyUninstall,exports.EmailStripeCancellation=EmailStripeCancellation,exports.EmailUserInvite=EmailUserInvite,exports.EventGenerateAnalytics=EventGenerateAnalytics,exports.Locales=locales$1,exports.RedisKey=RedisKey,exports.SocketLoggedUserSchema=SocketLoggedUserSchema,exports.SocketUserSchema=SocketUserSchema,exports.WebsocketEvents=index$1,exports.WorkerJob=WorkerJob,exports.WorkerJobs=index,exports.locales=locales,exports.localesEnum=localesEnum,exports.session_id=session_id,exports.username=username;
{
"name": "@livescale/types",
"version": "7.1.0",
"version": "7.2.0",
"main": "dist/index.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/index.es.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc