From b02d2ba479446de6f38fce1e25cec8564ef9010a Mon Sep 17 00:00:00 2001
From: Xe Iaso The URL you requested could not be found. Please check your URL and hang up to try your call again. The URL you requested could not be found. Please check your URL and hang up to try your call again. Your data was not found in the dataset. No action is required on your part. Your data was not found in the dataset. No action is required on your part. Oopsie whoopsie uwu we made a fucky-wucky! A widdle fucko boingo! The code monkeys at our headquarters are working VEWY HARD to fix this! Reason: ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, " Oopsie whoopsie uwu we made a fucky-wucky! A widdle fucko boingo! The code monkeys at our headquarters are working VEWY HARD to fix this! Reason: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -105,11 +105,11 @@ func Error(why string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
TODO placeholder
TODO placeholder
A product of Techaro ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, " A product of Techaro ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -209,11 +209,11 @@ func footer() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(", the only ethical AI company
| Created at | Text | Link |
|---|
| Created at | Text | Link | ||
|---|---|---|---|---|
| ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, " | ||||
| ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -291,7 +291,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" | ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, " | ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -304,7 +304,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" | 🔗 |
Since your data is in this dataset, here's what you can do about it:
Compose an email to dmca@huggingface.co with the subject line DMCA Takedown Request and something like the following body (rephrase this in your own words):
Hello,
I am writing to you to inform you that my data is present in the dataset bluesky-community/one-million-bluesky-posts and I did not consent to it being included. I would like to request that you remove my data from the dataset.
You can identify my data by searching for the following DID in theauthor_didcolumn:") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "
Since your data is in this dataset, here's what you can do about it:
Compose an email to dmca@huggingface.co with the subject line DMCA Takedown Request and something like the following body (rephrase this in your own words):
Hello,
I am writing to you to inform you that my data is present in the dataset bluesky-community/one-million-bluesky-posts and I did not consent to it being included. I would like to request that you remove my data from the dataset.
You can identify my data by searching for the following DID in theauthor_didcolumn:") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -331,7 +331,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
Thank you for your attention and patience in this matter.
Sincerely,
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "
Thank you for your attention and patience in this matter.
Sincerely,
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -344,7 +344,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(", ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, ", ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -357,7 +357,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -370,7 +370,7 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, " ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -392,11 +392,11 @@ func searchPage(authorDID string, posts []Post) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
For more information, please refer to the dataset page.
For more information, please refer to the dataset page.
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - return templ_7745c5c3_Err + return nil }) } diff --git a/cmd/asbestos/main.go b/cmd/asbestos/main.go index 9ab1f8e..1f99589 100644 --- a/cmd/asbestos/main.go +++ b/cmd/asbestos/main.go @@ -15,7 +15,7 @@ import ( "within.website/x/xess" ) -//go:generate go run github.com/a-h/templ/cmd/templ@latest generate +//go:generate go tool templ generate var ( bind = flag.String("bind", ":8069", "http port to bind on") diff --git a/cmd/aura/aura_templ.go b/cmd/aura/aura_templ.go index 421d54b..174a3cc 100644 --- a/cmd/aura/aura_templ.go +++ b/cmd/aura/aura_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.771 +// templ: version: v0.3.857 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func index() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -26,17 +29,20 @@ func index() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

The URL you requested could not be found. Please check your URL and hang up to try your call again.
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "The URL you requested could not be found. Please check your URL and hang up to try your call again.
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - return templ_7745c5c3_Err + return nil }) } diff --git a/cmd/aura/main.go b/cmd/aura/main.go index 4f7a535..c364efd 100644 --- a/cmd/aura/main.go +++ b/cmd/aura/main.go @@ -27,7 +27,7 @@ import ( "within.website/x/xess" ) -//go:generate go run github.com/a-h/templ/cmd/templ@latest generate +//go:generate go tool templ generate var ( token = flag.String("token", "", "Token for authentication") diff --git a/cmd/hlang/hlang_templ.go b/cmd/hlang/hlang_templ.go index 2155e26..c704085 100644 --- a/cmd/hlang/hlang_templ.go +++ b/cmd/hlang/hlang_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.2.731 +// templ: version: v0.3.857 package main //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime" func navbar() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -26,17 +29,20 @@ func navbar() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("The h programming language - Docs - Playground - FAQ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "The h programming language - Docs - Playground - FAQ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - return templ_7745c5c3_Err + return nil }) } func footer() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -52,17 +58,20 @@ func footer() templ.Component { templ_7745c5c3_Var2 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("From Within
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "From Within
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - return templ_7745c5c3_Err + return nil }) } func homePage() templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) if !templ_7745c5c3_IsBuffer { defer func() { @@ -78,17 +87,20 @@ func homePage() templ.Component { templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("A simple, fast, open-source, complete and safe language for developing modern software for the web
h
Outputs:
h
h probably compiles hundreds of characters of source per second. I didn't really test how fast it is, but when I was testing it the speed was fast enough that I didn't care to profile it.
h is completely memory safe with no garbage collector or heap allocations. It does not allow memory leaks to happen, nor do any programs in h have the possibility to allocate memory.
h generates WebAssembly, so every binary produced by the compiler is completely dependency free save a single system call: h.h. This allows for modern, future-proof code that will work on all platforms.
h has a simple grammar that gzips to 117 bytes. Creating a runtime environment for h is so trivial just about anyone can do it.
h supports the following platforms:
h supports multiple written and spoken languages with true contextual awareness. It not only supports the Latin h as input, it also accepts the Lojbanic ' as well. This allows for full 100% internationalization into Lojban should your project needs require it.
Not convinced? Take the word of people we probably didn't pay for their opinion.
The h compiler and default runtime are open-source free software sent out into the Public Domain. You can use h for any purpose at all with no limitations or restrictions.
A simple, fast, open-source, complete and safe language for developing modern software for the web
h
Outputs:
h
h probably compiles hundreds of characters of source per second. I didn't really test how fast it is, but when I was testing it the speed was fast enough that I didn't care to profile it.
h is completely memory safe with no garbage collector or heap allocations. It does not allow memory leaks to happen, nor do any programs in h have the possibility to allocate memory.
h generates WebAssembly, so every binary produced by the compiler is completely dependency free save a single system call: h.h. This allows for modern, future-proof code that will work on all platforms.
h has a simple grammar that gzips to 117 bytes. Creating a runtime environment for h is so trivial just about anyone can do it.
h supports the following platforms:
h supports multiple written and spoken languages with true contextual awareness. It not only supports the Latin h as input, it also accepts the Lojbanic ' as well. This allows for full 100% internationalization into Lojban should your project needs require it.
Not convinced? Take the word of people we probably didn't pay for their opinion.
The h compiler and default runtime are open-source free software sent out into the Public Domain. You can use h for any purpose at all with no limitations or restrictions.
Coming soon...
Coming soon...
h supports the following instructions:
h'All valid h instructions must be separated by a space (\\0x20 or the spacebar on your computer). No other forms of whitespace are permitted. Any other characters will render your program gentoldra.
With any computer running Go 1.11 or higher:
go get -u -v within.website/x/cmd/hlang
Usage is simple: ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "What are the instructions of h?
h supports the following instructions:
h'
All valid h instructions must be separated by a space (\\0x20 or the spacebar on your computer). No other forms of whitespace are permitted. Any other characters will render your program gentoldra.
How do I install and use h?
With any computer running Go 1.11 or higher:
go get -u -v within.website/x/cmd/hlang
Usage is simple: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -143,17 +158,20 @@ func faqPage() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("What version is h?
Version 1.0.1, this will hopefully be the only release.
What is the h koan?
And Jesus said unto the theologians, \"Who do you say that I am?\"
They replied: \"You are the eschatological manifestation of the ground of our being, the kerygma of which we find the ultimate meaning in our interpersonal relationships.\"
And Jesus said \"...What?\"
Some time passed and one of them spoke \"h\".
Jesus was enlightened.
Why?
That's a good question. The following blogposts may help you understand this more:
Who wrote h?
")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "Version 1.0.1, this will hopefully be the only release.
And Jesus said unto the theologians, \"Who do you say that I am?\"
They replied: \"You are the eschatological manifestation of the ground of our being, the kerygma of which we find the ultimate meaning in our interpersonal relationships.\"
And Jesus said \"...What?\"
Some time passed and one of them spoke \"h\".
Jesus was enlightened.
That's a good question. The following blogposts may help you understand this more:
Unfortunately, Javascript is required to use this page, sorry.
Execution time (nanoseconds):
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "Unfortunately, Javascript is required to use this page, sorry.
Execution time (nanoseconds):
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - return templ_7745c5c3_Err + return nil }) } + +var _ = templruntime.GeneratedTemplate diff --git a/cmd/hlang/http.go b/cmd/hlang/http.go index d581b03..a4858c1 100644 --- a/cmd/hlang/http.go +++ b/cmd/hlang/http.go @@ -16,7 +16,7 @@ import ( "within.website/x/xess" ) -//go:generate go run github.com/a-h/templ/cmd/templ@latest generate +//go:generate go tool templ generate var ( maxBytes = flag.Int64("max-playground-bytes", 75, "how many bytes of data should users be allowed to post to the playground?") diff --git a/cmd/mi/services/glance/glance.go b/cmd/mi/services/glance/glance.go index 1396b0b..9c02d61 100644 --- a/cmd/mi/services/glance/glance.go +++ b/cmd/mi/services/glance/glance.go @@ -8,7 +8,7 @@ import ( "within.website/x/cmd/mi/models" ) -//go:generate go run github.com/a-h/templ/cmd/templ@latest generate +//go:generate go tool templ generate func New(dao *models.DAO) *Glance { return &Glance{dao: dao} diff --git a/cmd/mi/services/glance/glance_templ.go b/cmd/mi/services/glance/glance_templ.go index 548ef89..26620ab 100644 --- a/cmd/mi/services/glance/glance_templ.go +++ b/cmd/mi/services/glance/glance_templ.go @@ -1,6 +1,6 @@ // Code generated by templ - DO NOT EDIT. -// templ: version: v0.3.819 +// templ: version: v0.3.857 package glance //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/cmd/mimi/modules/scheduling/scheduling.pb.go b/cmd/mimi/modules/scheduling/scheduling.pb.go new file mode 100644 index 0000000..ece77b2 --- /dev/null +++ b/cmd/mimi/modules/scheduling/scheduling.pb.go @@ -0,0 +1,308 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.6 +// protoc v5.29.3 +// source: scheduling.proto + +package scheduling + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/durationpb" + _ "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ConversationMember struct { + state protoimpl.MessageState `protogen:"open.v1"` + Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConversationMember) Reset() { + *x = ConversationMember{} + mi := &file_scheduling_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConversationMember) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConversationMember) ProtoMessage() {} + +func (x *ConversationMember) ProtoReflect() protoreflect.Message { + mi := &file_scheduling_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConversationMember.ProtoReflect.Descriptor instead. +func (*ConversationMember) Descriptor() ([]byte, []int) { + return file_scheduling_proto_rawDescGZIP(), []int{0} +} + +func (x *ConversationMember) GetRole() string { + if x != nil { + return x.Role + } + return "" +} + +func (x *ConversationMember) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ConversationMember) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +type ParseReq struct { + state protoimpl.MessageState `protogen:"open.v1"` + Month string `protobuf:"bytes,1,opt,name=month,proto3" json:"month,omitempty"` + ConversationMembers []*ConversationMember `protobuf:"bytes,2,rep,name=conversation_members,json=conversationMembers,proto3" json:"conversation_members,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Date string `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ParseReq) Reset() { + *x = ParseReq{} + mi := &file_scheduling_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ParseReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParseReq) ProtoMessage() {} + +func (x *ParseReq) ProtoReflect() protoreflect.Message { + mi := &file_scheduling_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParseReq.ProtoReflect.Descriptor instead. +func (*ParseReq) Descriptor() ([]byte, []int) { + return file_scheduling_proto_rawDescGZIP(), []int{1} +} + +func (x *ParseReq) GetMonth() string { + if x != nil { + return x.Month + } + return "" +} + +func (x *ParseReq) GetConversationMembers() []*ConversationMember { + if x != nil { + return x.ConversationMembers + } + return nil +} + +func (x *ParseReq) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *ParseReq) GetDate() string { + if x != nil { + return x.Date + } + return "" +} + +type ParseResp struct { + state protoimpl.MessageState `protogen:"open.v1"` + StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + Duration string `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"` + Summary string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"` + Attendees []*ConversationMember `protobuf:"bytes,4,rep,name=attendees,proto3" json:"attendees,omitempty"` + Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ParseResp) Reset() { + *x = ParseResp{} + mi := &file_scheduling_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ParseResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParseResp) ProtoMessage() {} + +func (x *ParseResp) ProtoReflect() protoreflect.Message { + mi := &file_scheduling_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParseResp.ProtoReflect.Descriptor instead. +func (*ParseResp) Descriptor() ([]byte, []int) { + return file_scheduling_proto_rawDescGZIP(), []int{2} +} + +func (x *ParseResp) GetStartTime() string { + if x != nil { + return x.StartTime + } + return "" +} + +func (x *ParseResp) GetDuration() string { + if x != nil { + return x.Duration + } + return "" +} + +func (x *ParseResp) GetSummary() string { + if x != nil { + return x.Summary + } + return "" +} + +func (x *ParseResp) GetAttendees() []*ConversationMember { + if x != nil { + return x.Attendees + } + return nil +} + +func (x *ParseResp) GetLocation() string { + if x != nil { + return x.Location + } + return "" +} + +var File_scheduling_proto protoreflect.FileDescriptor + +const file_scheduling_proto_rawDesc = "" + + "\n" + + "\x10scheduling.proto\x12 within.website.x.mimi.scheduling\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"R\n" + + "\x12ConversationMember\x12\x12\n" + + "\x04role\x18\x01 \x01(\tR\x04role\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + + "\x05email\x18\x03 \x01(\tR\x05email\"\xb7\x01\n" + + "\bParseReq\x12\x14\n" + + "\x05month\x18\x01 \x01(\tR\x05month\x12g\n" + + "\x14conversation_members\x18\x02 \x03(\v24.within.website.x.mimi.scheduling.ConversationMemberR\x13conversationMembers\x12\x18\n" + + "\amessage\x18\x03 \x01(\tR\amessage\x12\x12\n" + + "\x04date\x18\x04 \x01(\tR\x04date\"\xd0\x01\n" + + "\tParseResp\x12\x1d\n" + + "\n" + + "start_time\x18\x01 \x01(\tR\tstartTime\x12\x1a\n" + + "\bduration\x18\x02 \x01(\tR\bduration\x12\x18\n" + + "\asummary\x18\x03 \x01(\tR\asummary\x12R\n" + + "\tattendees\x18\x04 \x03(\v24.within.website.x.mimi.scheduling.ConversationMemberR\tattendees\x12\x1a\n" + + "\blocation\x18\x05 \x01(\tR\blocation2s\n" + + "\n" + + "Scheduling\x12e\n" + + "\n" + + "ParseEmail\x12*.within.website.x.mimi.scheduling.ParseReq\x1a+.within.website.x.mimi.scheduling.ParseRespB.Z,within.website/x/cmd/mimi/modules/schedulingb\x06proto3" + +var ( + file_scheduling_proto_rawDescOnce sync.Once + file_scheduling_proto_rawDescData []byte +) + +func file_scheduling_proto_rawDescGZIP() []byte { + file_scheduling_proto_rawDescOnce.Do(func() { + file_scheduling_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_scheduling_proto_rawDesc), len(file_scheduling_proto_rawDesc))) + }) + return file_scheduling_proto_rawDescData +} + +var file_scheduling_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_scheduling_proto_goTypes = []any{ + (*ConversationMember)(nil), // 0: within.website.x.mimi.scheduling.ConversationMember + (*ParseReq)(nil), // 1: within.website.x.mimi.scheduling.ParseReq + (*ParseResp)(nil), // 2: within.website.x.mimi.scheduling.ParseResp +} +var file_scheduling_proto_depIdxs = []int32{ + 0, // 0: within.website.x.mimi.scheduling.ParseReq.conversation_members:type_name -> within.website.x.mimi.scheduling.ConversationMember + 0, // 1: within.website.x.mimi.scheduling.ParseResp.attendees:type_name -> within.website.x.mimi.scheduling.ConversationMember + 1, // 2: within.website.x.mimi.scheduling.Scheduling.ParseEmail:input_type -> within.website.x.mimi.scheduling.ParseReq + 2, // 3: within.website.x.mimi.scheduling.Scheduling.ParseEmail:output_type -> within.website.x.mimi.scheduling.ParseResp + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_scheduling_proto_init() } +func file_scheduling_proto_init() { + if File_scheduling_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_scheduling_proto_rawDesc), len(file_scheduling_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_scheduling_proto_goTypes, + DependencyIndexes: file_scheduling_proto_depIdxs, + MessageInfos: file_scheduling_proto_msgTypes, + }.Build() + File_scheduling_proto = out.File + file_scheduling_proto_goTypes = nil + file_scheduling_proto_depIdxs = nil +} diff --git a/cmd/mimi/modules/scheduling/scheduling.twirp.go b/cmd/mimi/modules/scheduling/scheduling.twirp.go new file mode 100644 index 0000000..bbe329d --- /dev/null +++ b/cmd/mimi/modules/scheduling/scheduling.twirp.go @@ -0,0 +1,1115 @@ +// Code generated by protoc-gen-twirp v8.1.3, DO NOT EDIT. +// source: scheduling.proto + +package scheduling + +import context "context" +import fmt "fmt" +import http "net/http" +import io "io" +import json "encoding/json" +import strconv "strconv" +import strings "strings" + +import protojson "google.golang.org/protobuf/encoding/protojson" +import proto "google.golang.org/protobuf/proto" +import twirp "github.com/twitchtv/twirp" +import ctxsetters "github.com/twitchtv/twirp/ctxsetters" + +import bytes "bytes" +import errors "errors" +import path "path" +import url "net/url" + +// Version compatibility assertion. +// If the constant is not defined in the package, that likely means +// the package needs to be updated to work with this generated code. +// See https://twitchtv.github.io/twirp/docs/version_matrix.html +const _ = twirp.TwirpPackageMinVersion_8_1_0 + +// ==================== +// Scheduling Interface +// ==================== + +type Scheduling interface { + ParseEmail(context.Context, *ParseReq) (*ParseResp, error) +} + +// ========================== +// Scheduling Protobuf Client +// ========================== + +type schedulingProtobufClient struct { + client HTTPClient + urls [1]string + interceptor twirp.Interceptor + opts twirp.ClientOptions +} + +// NewSchedulingProtobufClient creates a Protobuf client that implements the Scheduling interface. +// It communicates using Protobuf and can be configured with a custom HTTPClient. +func NewSchedulingProtobufClient(baseURL string, client HTTPClient, opts ...twirp.ClientOption) Scheduling { + if c, ok := client.(*http.Client); ok { + client = withoutRedirects(c) + } + + clientOpts := twirp.ClientOptions{} + for _, o := range opts { + o(&clientOpts) + } + + // Using ReadOpt allows backwards and forwards compatibility with new options in the future + literalURLs := false + _ = clientOpts.ReadOpt("literalURLs", &literalURLs) + var pathPrefix string + if ok := clientOpts.ReadOpt("pathPrefix", &pathPrefix); !ok { + pathPrefix = "/twirp" // default prefix + } + + // Build method URLs: