···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.addValues
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetAddValues_Input is the input argument to a tools.ozone.set.addValues call.
1414+type SetAddValues_Input struct {
1515+ // name: Name of the set to add values to
1616+ Name string `json:"name" cborgen:"name"`
1717+ // values: Array of string values to add to the set
1818+ Values []string `json:"values" cborgen:"values"`
1919+}
2020+2121+// SetAddValues calls the XRPC method "tools.ozone.set.addValues".
2222+func SetAddValues(ctx context.Context, c *xrpc.Client, input *SetAddValues_Input) error {
2323+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
2424+ return err
2525+ }
2626+2727+ return nil
2828+}
+20
api/ozone/setdefs.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.defs
66+77+// SetDefs_Set is a "set" in the tools.ozone.set.defs schema.
88+type SetDefs_Set struct {
99+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
1010+ Name string `json:"name" cborgen:"name"`
1111+}
1212+1313+// SetDefs_SetView is a "setView" in the tools.ozone.set.defs schema.
1414+type SetDefs_SetView struct {
1515+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
1616+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
1717+ Name string `json:"name" cborgen:"name"`
1818+ SetSize int64 `json:"setSize" cborgen:"setSize"`
1919+ UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
2020+}
+31
api/ozone/setdeleteSet.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.deleteSet
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetDeleteSet_Input is the input argument to a tools.ozone.set.deleteSet call.
1414+type SetDeleteSet_Input struct {
1515+ // name: Name of the set to delete
1616+ Name string `json:"name" cborgen:"name"`
1717+}
1818+1919+// SetDeleteSet_Output is the output of a tools.ozone.set.deleteSet call.
2020+type SetDeleteSet_Output struct {
2121+}
2222+2323+// SetDeleteSet calls the XRPC method "tools.ozone.set.deleteSet".
2424+func SetDeleteSet(ctx context.Context, c *xrpc.Client, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
2525+ var out SetDeleteSet_Output
2626+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
2727+ return nil, err
2828+ }
2929+3030+ return &out, nil
3131+}
+28
api/ozone/setdeleteValues.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.deleteValues
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetDeleteValues_Input is the input argument to a tools.ozone.set.deleteValues call.
1414+type SetDeleteValues_Input struct {
1515+ // name: Name of the set to delete values from
1616+ Name string `json:"name" cborgen:"name"`
1717+ // values: Array of string values to delete from the set
1818+ Values []string `json:"values" cborgen:"values"`
1919+}
2020+2121+// SetDeleteValues calls the XRPC method "tools.ozone.set.deleteValues".
2222+func SetDeleteValues(ctx context.Context, c *xrpc.Client, input *SetDeleteValues_Input) error {
2323+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
2424+ return err
2525+ }
2626+2727+ return nil
2828+}
+34
api/ozone/setgetValues.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.getValues
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetGetValues_Output is the output of a tools.ozone.set.getValues call.
1414+type SetGetValues_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Set *SetDefs_SetView `json:"set" cborgen:"set"`
1717+ Values []string `json:"values" cborgen:"values"`
1818+}
1919+2020+// SetGetValues calls the XRPC method "tools.ozone.set.getValues".
2121+func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
2222+ var out SetGetValues_Output
2323+2424+ params := map[string]interface{}{
2525+ "cursor": cursor,
2626+ "limit": limit,
2727+ "name": name,
2828+ }
2929+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
3030+ return nil, err
3131+ }
3232+3333+ return &out, nil
3434+}
+37
api/ozone/setquerySets.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.querySets
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetQuerySets_Output is the output of a tools.ozone.set.querySets call.
1414+type SetQuerySets_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Sets []*SetDefs_SetView `json:"sets" cborgen:"sets"`
1717+}
1818+1919+// SetQuerySets calls the XRPC method "tools.ozone.set.querySets".
2020+//
2121+// sortDirection: Defaults to ascending order of name field.
2222+func SetQuerySets(ctx context.Context, c *xrpc.Client, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
2323+ var out SetQuerySets_Output
2424+2525+ params := map[string]interface{}{
2626+ "cursor": cursor,
2727+ "limit": limit,
2828+ "namePrefix": namePrefix,
2929+ "sortBy": sortBy,
3030+ "sortDirection": sortDirection,
3131+ }
3232+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
3333+ return nil, err
3434+ }
3535+3636+ return &out, nil
3737+}
+21
api/ozone/setupsertSet.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.set.upsertSet
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SetUpsertSet calls the XRPC method "tools.ozone.set.upsertSet".
1414+func SetUpsertSet(ctx context.Context, c *xrpc.Client, input *SetUpsertSet_Input) (*SetDefs_SetView, error) {
1515+ var out SetDefs_SetView
1616+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.upsertSet", nil, input, &out); err != nil {
1717+ return nil, err
1818+ }
1919+2020+ return &out, nil
2121+}