diff --git a/.changeset/shiny-frogs-care.md b/.changeset/shiny-frogs-care.md new file mode 100644 index 000000000..a75bef579 --- /dev/null +++ b/.changeset/shiny-frogs-care.md @@ -0,0 +1,5 @@ +--- +"@livekit/protocol": patch +--- + +export alphabets used in guids diff --git a/utils/guid/id.go b/utils/guid/id.go index d95c299be..5365144bb 100644 --- a/utils/guid/id.go +++ b/utils/guid/id.go @@ -72,6 +72,11 @@ const ( PhoneNumberPrefix = "PN_" ) +const ( + IDAlphabet = shortuuid.DefaultAlphabet + HashedIDAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" +) + var guidGeneratorPool = sync.Pool{ New: func() any { return must.Get(newGenerator())