Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

feat: webhook authentication (#4961)

Chitranshd742b5f976b7
diff --git a/db/db.go b/db/db.go
index cd5bbb8e08..f43598b1eb 100644
--- a/db/db.go
+++ b/db/db.go
@@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
-// sqlc v1.30.0
+// sqlc v1.31.1
package db
diff --git a/db/models.go b/db/models.go
index 85a7322739..4d7491e1bd 100644
--- a/db/models.go
+++ b/db/models.go
@@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
-// sqlc v1.30.0
+// sqlc v1.31.1
package db
@@ -135,4 +135,5 @@ type Webhook struct {
Events string
Timestamp sql.NullTime
LastUsed sql.NullTime
+ Secret string
}
diff --git a/db/query.sql.go b/db/query.sql.go
index bc60224325..6cd67b00f4 100644
--- a/db/query.sql.go
+++ b/db/query.sql.go
@@ -1,6 +1,6 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
-// sqlc v1.30.0
+// sqlc v1.31.1
// source: query.sql
package db
diff --git a/models/webhook.go b/models/webhook.go
index 5177eadc0e..f5ac19e28b 100644
--- a/models/webhook.go
+++ b/models/webhook.go
@@ -8,11 +8,12 @@ import (
// Webhook is an event that is sent to 3rd party, external services with details about something that took place within an Owncast server.
type Webhook struct {
- Timestamp time.Time `json:"timestamp"`
- LastUsed *time.Time `json:"lastUsed"`
- URL string `json:"url"`
- Events []EventType `json:"events"`
- ID int `json:"id"`
+ Timestamp time.Time `json:"timestamp"`
+ LastUsed *time.Time `json:"lastUsed"`
+ URL string `json:"url"`
+ Events []EventType `json:"events"`
+ ID int `json:"id"`
+ WebhookSecret string `json:"secret"`
}
// For an event to be seen as "valid" it must live in this slice.
diff --git a/openapi.yaml b/openapi.yaml
index 556b3ee2db..95539f09b8 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -2946,6 +2946,8 @@ paths:
type: array
items:
$ref: '#/components/schemas/WebhookEventType'
+ secret:
+ type: string
responses:
'200':
description: The new webhook
diff --git a/persistence/migrations/00005_add_secret_to_webhooks.sql b/persistence/migrations/00005_add_secret_to_webhooks.sql
new file mode 100644
index 0000000000..b3cb3575ca
--- /dev/null
+++ b/persistence/migrations/00005_add_secret_to_webhooks.sql
@@ -0,0 +1,9 @@
+-- +goose Up
+-- +goose StatementBegin
+ALTER TABLE webhooks ADD COLUMN secret TEXT DEFAULT 'abc123' NOT NULL;
+-- +goose StatementEnd
+
+-- +goose Down
+-- +goose StatementBegin
+ALTER TABLE webhooks DROP COLUMN secret;
+-- +goose StatementEnd
\ No newline at end of file
diff --git a/persistence/migrations/migrations_test.go b/persistence/migrations/migrations_test.go
index 04958ef360..96bb3c758b 100644
--- a/persistence/migrations/migrations_test.go
+++ b/persistence/migrations/migrations_test.go
@@ -68,8 +68,8 @@ func TestRun_FreshDatabase(t *testing.T) {
t.Error("fresh install should not have legacy config table")
}
- if v := gooseVersion(t, db); v != 4 {
- t.Errorf("goose version = %d, want 4", v)
+ if v := gooseVersion(t, db); v != 5 {
+ t.Errorf("goose version = %d, want 5", v)
}
// Calling Run a second time should be a no-op (idempotent).
@@ -93,8 +93,8 @@ func TestRun_LegacyDatabaseAtV9(t *testing.T) {
}
// Goose should record the latest migration.
- if v := gooseVersion(t, db); v != 4 {
- t.Errorf("goose version = %d, want 4", v)
+ if v := gooseVersion(t, db); v != 5 {
+ t.Errorf("goose version = %d, want 5", v)
}
// Config version should still be 9, the legacy bridge was not invoked.
@@ -141,8 +141,8 @@ func TestRun_LegacyDatabasePreV9(t *testing.T) {
}
// Goose should have recorded the latest migration.
- if v := gooseVersion(t, db); v != 4 {
- t.Errorf("goose version = %d, want 4", v)
+ if v := gooseVersion(t, db); v != 5 {
+ t.Errorf("goose version = %d, want 5", v)
}
}
diff --git a/persistence/webhookrepository/webhookrepository.go b/persistence/webhookrepository/webhookrepository.go
index 61a50caed2..0a17c53eaa 100644
--- a/persistence/webhookrepository/webhookrepository.go
+++ b/persistence/webhookrepository/webhookrepository.go
@@ -13,11 +13,12 @@ import (
)
type WebhookRepository interface {
- InsertWebhook(url string, events []models.EventType) (int, error)
+ InsertWebhook(url string, events []models.EventType, secret string) (int, error)
DeleteWebhook(id int) error
GetWebhooksForEvent(event models.EventType) []models.Webhook
GetWebhooks() ([]models.Webhook, error)
SetWebhookAsUsed(webhook models.Webhook) error
+ GetWebhookSecretByID(id int) (string, error)
}
type SqlWebhookRepository struct {
@@ -34,7 +35,7 @@ func New(datastore *datastore.Datastore) WebhookRepository {
}
// InsertWebhook will add a new webhook to the database.
-func (r *SqlWebhookRepository) InsertWebhook(url string, events []models.EventType) (int, error) {
+func (r *SqlWebhookRepository) InsertWebhook(url string, events []models.EventType, secret string) (int, error) {
log.Traceln("Adding new webhook")
eventsString := strings.Join(events, ",")
@@ -43,13 +44,13 @@ func (r *SqlWebhookRepository) InsertWebhook(url string, events []models.EventTy
if err != nil {
return 0, err
}
- stmt, err := tx.Prepare("INSERT INTO webhooks(url, events) values(?, ?)")
+ stmt, err := tx.Prepare("INSERT INTO webhooks(url, events, secret) values(?, ?, ?)")
if err != nil {
return 0, err
}
defer stmt.Close()
- insertResult, err := stmt.Exec(url, eventsString)
+ insertResult, err := stmt.Exec(url, eventsString, secret)
if err != nil {
return 0, err
}
@@ -159,8 +160,9 @@ func (r *SqlWebhookRepository) GetWebhooks() ([]models.Webhook, error) { //nolin
var events string
var timestampString string
var lastUsedString *string
+ var webhookSecret string
- if err := rows.Scan(&id, &url, &events, &timestampString, &lastUsedString); err != nil {
+ if err := rows.Scan(&id, &url, &events, &timestampString, &lastUsedString, &webhookSecret); err != nil {
log.Error("There is a problem reading the database.", err)
return webhooks, err
}
@@ -177,11 +179,12 @@ func (r *SqlWebhookRepository) GetWebhooks() ([]models.Webhook, error) { //nolin
}
singleWebhook := models.Webhook{
- ID: id,
- URL: url,
- Events: strings.Split(events, ","),
- Timestamp: timestamp,
- LastUsed: lastUsed,
+ ID: id,
+ URL: url,
+ Events: strings.Split(events, ","),
+ Timestamp: timestamp,
+ LastUsed: lastUsed,
+ WebhookSecret: webhookSecret,
}
webhooks = append(webhooks, singleWebhook)
@@ -216,3 +219,17 @@ func (r *SqlWebhookRepository) SetWebhookAsUsed(webhook models.Webhook) error {
return nil
}
+
+// GetSecretByID retrieves only the secret string for a specific webhook ID.
+func (r *SqlWebhookRepository) GetWebhookSecretByID(id int) (string, error) {
+ var secret string
+
+ query := `SELECT secret FROM webhooks WHERE id = ? LIMIT 1`
+
+ err := r.datastore.DB.QueryRow(query, id).Scan(&secret)
+ if err != nil {
+ return "", err
+ }
+
+ return secret, nil
+}
diff --git a/services/chat/server_test.go b/services/chat/server_test.go
index e1c53c6123..2d1fcfca12 100644
--- a/services/chat/server_test.go
+++ b/services/chat/server_test.go
@@ -65,7 +65,7 @@ func TestSendUserJoinedMessage_WebhookFiresRegardlessOfJoinPartSetting(t *testin
}))
defer svr.Close()
- if _, err := webhookRepo.InsertWebhook(svr.URL, []models.EventType{models.UserJoined}); err != nil {
+ if _, err := webhookRepo.InsertWebhook(svr.URL, []models.EventType{models.UserJoined}, "abc123"); err != nil {
t.Fatal(err)
}
diff --git a/services/webhooks/auth.go b/services/webhooks/auth.go
new file mode 100644
index 0000000000..91438361d5
--- /dev/null
+++ b/services/webhooks/auth.go
@@ -0,0 +1,86 @@
+package webhooks
+
+import (
+ "crypto/hmac"
+ "crypto/sha256"
+ "crypto/subtle"
+ "encoding/hex"
+ "errors"
+ "fmt"
+ "math"
+ "strconv"
+ "strings"
+ "time"
+)
+
+// generateSignature function generates the signature for webhook.
+// it returns the value in the format t=2435....23.s=eajn...jda.
+// t represents the timestamp of generation and s is the signature itself.
+func (s *Service) generateSignature(text []byte, job Job) (string, error) {
+ // get the timestamp and generate payload
+ timestamp := time.Now().Unix()
+ payload := fmt.Sprintf("%d.%s", timestamp, string(text))
+
+ // get the secret
+ secret, err := s.webhookRepository.GetWebhookSecretByID(job.webhook.ID)
+ if err != nil {
+ return "", err
+ }
+
+ // generate the sha256 hash
+ hash := hmac.New(sha256.New, []byte(secret))
+ hash.Write([]byte(payload))
+ signature := hex.EncodeToString(hash.Sum(nil))
+
+ return fmt.Sprintf("t=%d.s=%s", timestamp, signature), nil
+}
+
+// An example function to verify the webhook signature in golang.
+func VerifySignature(payload string, header string, secret string) (bool, error) {
+ // extract the data
+ var timestampStr, signatureStr string
+
+ parts := strings.Split(header, ".")
+ for _, part := range parts {
+ kv := strings.SplitN(strings.TrimSpace(part), "=", 2)
+ if len(kv) != 2 {
+ continue
+ }
+
+ switch kv[0] {
+ case "t":
+ timestampStr = kv[1]
+ case "s":
+ signatureStr = kv[1]
+ }
+ }
+
+ if timestampStr == "" || signatureStr == "" {
+ return false, errors.New("invalid or missing signature")
+ }
+
+ // prevent replay attacks by checking the timestamp
+ timestamp, err := strconv.ParseInt(timestampStr, 10, 64)
+ if err != nil {
+ return false, errors.New("invalid timestamp")
+ }
+
+ currentTime := time.Now().Unix()
+
+ if math.Abs(float64(currentTime-timestamp)) > 300 {
+ return false, errors.New("maybe a replay attack")
+ }
+
+ // recreate the signature
+ stringToSign := fmt.Sprintf("%s.%s", timestampStr, payload)
+
+ hash := hmac.New(sha256.New, []byte(secret))
+ hash.Write([]byte(stringToSign))
+ genSignature := hex.EncodeToString(hash.Sum(nil))
+
+ if subtle.ConstantTimeCompare([]byte(signatureStr), []byte(genSignature)) != 1 {
+ return false, errors.New("webhook signature mismatch")
+ }
+
+ return true, nil
+}
diff --git a/services/webhooks/chat_test.go b/services/webhooks/chat_test.go
index d89f940969..1668a0e418 100644
--- a/services/webhooks/chat_test.go
+++ b/services/webhooks/chat_test.go
@@ -245,7 +245,7 @@ func TestWebhookHasServerStatus(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
// Subscribe to the webhook.
- hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.UserJoined})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.UserJoined}, "abc123")
if err != nil {
t.Fatal(err)
}
diff --git a/services/webhooks/webhooks_test.go b/services/webhooks/webhooks_test.go
index 6dc793a047..9c51242166 100644
--- a/services/webhooks/webhooks_test.go
+++ b/services/webhooks/webhooks_test.go
@@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "io"
"net/http"
"net/http/httptest"
"os"
@@ -89,7 +90,7 @@ func TestPublicSend(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
- hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.MessageSent})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.MessageSent}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -167,7 +168,7 @@ func TestRouting(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
for _, eventType := range eventTypes {
- hook, err := webhooksRepo.InsertWebhook(svr.URL+"/"+eventType, []models.EventType{eventType})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL+"/"+eventType, []models.EventType{eventType}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -210,7 +211,7 @@ func TestMultiple(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
for i := 0; i < times; i++ {
- hook, err := webhooksRepo.InsertWebhook(fmt.Sprintf("%v/%v", svr.URL, i), []models.EventType{models.MessageSent})
+ hook, err := webhooksRepo.InsertWebhook(fmt.Sprintf("%v/%v", svr.URL, i), []models.EventType{models.MessageSent}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -250,7 +251,7 @@ func TestTimestamps(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
for i, eventType := range eventTypes {
- hook, err := webhooksRepo.InsertWebhook(svr.URL+"/"+eventType, []models.EventType{eventType})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL+"/"+eventType, []models.EventType{eventType}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -350,7 +351,7 @@ func TestParallel(t *testing.T) {
webhooksRepo := webhookrepository.New(testDatastore)
- hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.MessageSent})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{models.MessageSent}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -388,7 +389,7 @@ func checkPayload(t *testing.T, eventType models.EventType, send func(), expecte
webhooksRepo := webhookrepository.New(testDatastore)
// Subscribe to the webhook.
- hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{eventType})
+ hook, err := webhooksRepo.InsertWebhook(svr.URL, []models.EventType{eventType}, "abc123")
if err != nil {
t.Fatal(err)
}
@@ -425,3 +426,55 @@ func checkPayload(t *testing.T, eventType models.EventType, send func(), expecte
t.Errorf("Expected difference from actual payload:\n%s", out.Bytes())
}
}
+
+func TestSendWebhookWithAuthentication(t *testing.T) {
+ secret := "abc123"
+ eventsCount := testSvc.workerPoolSize + 1
+
+ var wg sync.WaitGroup
+ wg.Add(eventsCount)
+
+ server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ defer wg.Done()
+ bodyBytes, err := io.ReadAll(r.Body)
+ if err != nil {
+ t.Fatalf("failed to read webhook body: %v", err)
+ }
+
+ signatureHeader := r.Header.Get("owncast-signature")
+ if signatureHeader == "" {
+ t.Error("Missing webhook authentication headers")
+ }
+
+ valid, err := VerifySignature(string(bodyBytes), signatureHeader, secret)
+
+ if err != nil || valid == false {
+ t.Errorf("Signature mismatch")
+ }
+
+ w.WriteHeader(http.StatusOK)
+ }))
+ defer server.Close()
+
+ webhooksRepo := webhookrepository.New(testDatastore)
+ hook, err := webhooksRepo.InsertWebhook(server.URL, []models.EventType{models.MessageSent}, secret)
+ if err != nil {
+ t.Fatal(err)
+ }
+
+ defer func() {
+ if err := webhooksRepo.DeleteWebhook(hook); err != nil {
+ t.Error(err)
+ }
+ }()
+
+ for i := 0; i < eventsCount; i++ {
+ wh := WebhookEvent{
+ EventData: struct{}{},
+ Type: models.MessageSent,
+ }
+ testSvc.SendEventToWebhooks(wh)
+ }
+
+ wg.Wait()
+}
diff --git a/services/webhooks/workerpool.go b/services/webhooks/workerpool.go
index 85b0166fca..482ba14458 100644
--- a/services/webhooks/workerpool.go
+++ b/services/webhooks/workerpool.go
@@ -122,10 +122,12 @@ func (s *Service) sendWebhook(job Job) error {
}
req, err := http.NewRequest("POST", job.webhook.URL, bytes.NewReader(jsonText))
+ signature, err := s.generateSignature(jsonText, job)
if err != nil {
return err
}
+ req.Header.Set("owncast-signature", signature)
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
diff --git a/web/i18n/en/translation.json b/web/i18n/en/translation.json
index c9f51962e5..e313cff366 100644
--- a/web/i18n/en/translation.json
+++ b/web/i18n/en/translation.json
@@ -326,6 +326,7 @@
"viewers": "Viewers"
},
"Webhooks": {
+ "webhookSecret": "Set up a new webhook secret",
"createNewWebhook": "Create New Webhook",
"selectAll": "Select all",
"selectEvents": "Select the events that will be sent to this webhook.",
diff --git a/web/pages/admin/webhooks.tsx b/web/pages/admin/webhooks.tsx
index fb54e50e85..01bcc85c08 100644
--- a/web/pages/admin/webhooks.tsx
+++ b/web/pages/admin/webhooks.tsx
@@ -11,8 +11,10 @@ import {
Tag,
Typography,
Tooltip,
+ message,
} from 'antd';
import dynamic from 'next/dynamic';
+import { EyeOutlined } from '@ant-design/icons';
import React, { ReactElement, useContext, useEffect, useState } from 'react';
import { useTranslation } from 'next-export-i18n';
import { CREATE_WEBHOOK, DELETE_WEBHOOK, fetchData, WEBHOOKS } from '../../utils/apis';
@@ -22,6 +24,7 @@ import { Translation } from '../../components/ui/Translation/Translation';
import { AdminLayout } from '../../components/layouts/AdminLayout';
import { ServerStatusContext } from '../../utils/server-status-context';
+import { TextField, TEXTFIELD_TYPE_PASSWORD } from '../../components/admin/TextField';
const { Title, Paragraph } = Typography;
@@ -72,18 +75,31 @@ function convertEventStringToTag(eventString: string) {
</Tooltip>
);
}
+
+export const generateRndSecret = () => {
+ let defaultSecret = '';
+ const s = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
+
+ defaultSecret = Array.apply(20, Array(30))
+ .map(() => s.charAt(Math.floor(Math.random() * s.length)))
+ .join('');
+ return defaultSecret;
+};
+
interface Props {
onCancel: () => void;
- onOk: any; // todo: make better type
+ onOk: (url: string, events: string[], webhookSecret: string) => void;
open: boolean;
}
const NewWebhookModal = (props: Props) => {
const { onOk, onCancel, open } = props;
const { t } = useTranslation();
+ const defaultWebhookSecret = generateRndSecret();
const [selectedEvents, setSelectedEvents] = useState([]);
const [webhookUrl, setWebhookUrl] = useState('');
+ const [webhookSecret, setWebhookSecret] = useState(defaultWebhookSecret);
const { serverConfig } = useContext(ServerStatusContext);
@@ -101,15 +117,16 @@ const NewWebhookModal = (props: Props) => {
}
function save() {
- onOk(webhookUrl, selectedEvents);
+ onOk(webhookUrl, selectedEvents, webhookSecret);
// Reset the modal
setWebhookUrl('');
+ setWebhookSecret(generateRndSecret());
setSelectedEvents(null);
}
const okButtonProps = {
- disabled: selectedEvents?.length === 0 || !isValidUrl(webhookUrl),
+ disabled: selectedEvents?.length === 0 || !isValidUrl(webhookUrl) || webhookSecret.length === 0,
};
const checkboxes = events
@@ -145,6 +162,19 @@ const NewWebhookModal = (props: Props) => {
/>
</div>
+ <p>
+ <Translation translationKey={Localization.Admin.Webhooks.webhookSecret} />
+ </p>
+ <div>
+ <TextField
+ fieldName="webhook-secret"
+ value={webhookSecret}
+ placeholder="****"
+ type={TEXTFIELD_TYPE_PASSWORD}
+ onChange={input => setWebhookSecret(input.value.trim())}
+ />
+ </div>
+
<p>
<Translation translationKey={Localization.Admin.Webhooks.selectEvents} />
</p>
@@ -163,6 +193,7 @@ const NewWebhookModal = (props: Props) => {
const Webhooks = () => {
const [webhooks, setWebhooks] = useState([]);
const [isModalOpen, setIsModalOpen] = useState(false);
+ const [showSecretMap, setShowSecretMap] = useState({});
function handleError(error) {
console.error('error', error);
@@ -190,11 +221,11 @@ const Webhooks = () => {
}
}
- async function handleSave(url: string, events: string[]) {
+ async function handleSave(url: string, events: string[], webhookSecret: string) {
try {
const newHook = await fetchData(CREATE_WEBHOOK, {
method: 'POST',
- data: { url, events },
+ data: { url, events, secret: webhookSecret },
});
setWebhooks(webhooks.concat(newHook));
} catch (error) {
@@ -206,15 +237,22 @@ const Webhooks = () => {
setIsModalOpen(true);
};
- const handleModalSaveButton = (url, events) => {
+ const handleModalSaveButton = (url, events, webhookSecret) => {
setIsModalOpen(false);
- handleSave(url, events);
+ handleSave(url, events, webhookSecret);
};
const handleModalCancelButton = () => {
setIsModalOpen(false);
};
+ const handleToggleShowSecret = key => {
+ setShowSecretMap({
+ ...showSecretMap,
+ [key]: !showSecretMap[key],
+ });
+ };
+
const columns = [
{
title: '',
@@ -245,6 +283,33 @@ const Webhooks = () => {
</>
),
},
+ {
+ title: 'Webhook Secret',
+ dataIndex: 'secret',
+ onCell: () => ({
+ style: { minWidth: 200 },
+ }),
+ key: 'secret',
+ render: secret => (
+ <Space direction="horizontal">
+ <Paragraph
+ copyable={{
+ text: secret,
+ onCopy: () => message.success('Copied to clipboard'),
+ }}
+ >
+ {showSecretMap[secret] ? secret : '**********'}
+ </Paragraph>
+
+ <Button
+ type="link"
+ style={{ top: '-7px' }}
+ icon={<EyeOutlined />}
+ onClick={() => handleToggleShowSecret(secret)}
+ />
+ </Space>
+ ),
+ },
];
return (
diff --git a/web/types/localization.ts b/web/types/localization.ts
index af45d282dd..c69b21c513 100644
--- a/web/types/localization.ts
+++ b/web/types/localization.ts
@@ -411,6 +411,7 @@ export const Localization = {
// Webhooks page
Webhooks: {
+ webhookSecret: 'Admin.Webhooks.webhookSecret',
createNewWebhook: 'Admin.Webhooks.createNewWebhook',
webhookUrlPlaceholder: 'Admin.Webhooks.webhookUrlPlaceholder',
selectEvents: 'Admin.Webhooks.selectEvents',
diff --git a/webserver/handlers/admin/webhooks.go b/webserver/handlers/admin/webhooks.go
index d65ade20d1..ef32ef3f2b 100644
--- a/webserver/handlers/admin/webhooks.go
+++ b/webserver/handlers/admin/webhooks.go
@@ -12,8 +12,9 @@ import (
)
type createWebhookRequest struct {
- URL string `json:"url"`
- Events []models.EventType `json:"events"`
+ URL string `json:"url"`
+ Events []models.EventType `json:"events"`
+ WebhookSecret string `json:"secret"`
}
// CreateWebhook will add a single webhook.
@@ -31,18 +32,19 @@ func (a *Admin) CreateWebhook(w http.ResponseWriter, r *http.Request) {
return
}
- newWebhookID, err := a.webhookRepository.InsertWebhook(request.URL, request.Events)
+ newWebhookID, err := a.webhookRepository.InsertWebhook(request.URL, request.Events, request.WebhookSecret)
if err != nil {
webutils.InternalErrorHandler(w, err)
return
}
webutils.WriteResponse(w, models.Webhook{
- ID: newWebhookID,
- URL: request.URL,
- Events: request.Events,
- Timestamp: time.Now(),
- LastUsed: nil,
+ ID: newWebhookID,
+ URL: request.URL,
+ Events: request.Events,
+ Timestamp: time.Now(),
+ LastUsed: nil,
+ WebhookSecret: request.WebhookSecret,
})
}
diff --git a/webserver/handlers/generated/generated-types.gen.go b/webserver/handlers/generated/generated-types.gen.go
index 22023fde03..c0359021a2 100644
--- a/webserver/handlers/generated/generated-types.gen.go
+++ b/webserver/handlers/generated/generated-types.gen.go
@@ -68,11 +68,9 @@ func (e WebhookEventType) Valid() bool {
// Defines values for GetUsersParamsStatus.
const (
- Active GetUsersParamsStatus = "active"
- All GetUsersParamsStatus = "all"
- Banned GetUsersParamsStatus = "banned"
- Bots GetUsersParamsStatus = "bots"
- Moderators GetUsersParamsStatus = "moderators"
+ Active GetUsersParamsStatus = "active"
+ All GetUsersParamsStatus = "all"
+ Bots GetUsersParamsStatus = "bots"
)
// Valid indicates whether the value is a known member of the GetUsersParamsStatus enum.
@@ -82,12 +80,8 @@ func (e GetUsersParamsStatus) Valid() bool {
return true
case All:
return true
- case Banned:
- return true
case Bots:
return true
- case Moderators:
- return true
default:
return false
}
@@ -944,6 +938,7 @@ type GetViewersOverTimeParams struct {
// CreateWebhookJSONBody defines parameters for CreateWebhook.
type CreateWebhookJSONBody struct {
Events *[]WebhookEventType `json:"events,omitempty"`
+ Secret *string `json:"secret,omitempty"`
Url *string `json:"url,omitempty"`
}
diff --git a/webserver/handlers/generated/generated.gen.go b/webserver/handlers/generated/generated.gen.go
index 10450bfd53..05537718e7 100644
--- a/webserver/handlers/generated/generated.gen.go
+++ b/webserver/handlers/generated/generated.gen.go
@@ -2054,6 +2054,7 @@ type MiddlewareFunc func(http.Handler) http.Handler
// GetExternalAPIUsers operation middleware
func (siw *ServerInterfaceWrapper) GetExternalAPIUsers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2073,6 +2074,7 @@ func (siw *ServerInterfaceWrapper) GetExternalAPIUsers(w http.ResponseWriter, r
// GetExternalAPIUsersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetExternalAPIUsersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetExternalAPIUsersOptions(w, r)
}))
@@ -2086,6 +2088,7 @@ func (siw *ServerInterfaceWrapper) GetExternalAPIUsersOptions(w http.ResponseWri
// CreateExternalAPIUserOptions operation middleware
func (siw *ServerInterfaceWrapper) CreateExternalAPIUserOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.CreateExternalAPIUserOptions(w, r)
}))
@@ -2099,6 +2102,7 @@ func (siw *ServerInterfaceWrapper) CreateExternalAPIUserOptions(w http.ResponseW
// CreateExternalAPIUser operation middleware
func (siw *ServerInterfaceWrapper) CreateExternalAPIUser(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2118,6 +2122,7 @@ func (siw *ServerInterfaceWrapper) CreateExternalAPIUser(w http.ResponseWriter,
// DeleteExternalAPIUserOptions operation middleware
func (siw *ServerInterfaceWrapper) DeleteExternalAPIUserOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DeleteExternalAPIUserOptions(w, r)
}))
@@ -2131,6 +2136,7 @@ func (siw *ServerInterfaceWrapper) DeleteExternalAPIUserOptions(w http.ResponseW
// DeleteExternalAPIUser operation middleware
func (siw *ServerInterfaceWrapper) DeleteExternalAPIUser(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2150,6 +2156,7 @@ func (siw *ServerInterfaceWrapper) DeleteExternalAPIUser(w http.ResponseWriter,
// GetConnectedChatClients operation middleware
func (siw *ServerInterfaceWrapper) GetConnectedChatClients(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2169,6 +2176,7 @@ func (siw *ServerInterfaceWrapper) GetConnectedChatClients(w http.ResponseWriter
// GetConnectedChatClientsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetConnectedChatClientsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetConnectedChatClientsOptions(w, r)
}))
@@ -2182,6 +2190,7 @@ func (siw *ServerInterfaceWrapper) GetConnectedChatClientsOptions(w http.Respons
// GetChatMessagesAdmin operation middleware
func (siw *ServerInterfaceWrapper) GetChatMessagesAdmin(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2201,6 +2210,7 @@ func (siw *ServerInterfaceWrapper) GetChatMessagesAdmin(w http.ResponseWriter, r
// GetChatMessagesAdminOptions operation middleware
func (siw *ServerInterfaceWrapper) GetChatMessagesAdminOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetChatMessagesAdminOptions(w, r)
}))
@@ -2214,6 +2224,7 @@ func (siw *ServerInterfaceWrapper) GetChatMessagesAdminOptions(w http.ResponseWr
// UpdateMessageVisibilityAdminOptions operation middleware
func (siw *ServerInterfaceWrapper) UpdateMessageVisibilityAdminOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.UpdateMessageVisibilityAdminOptions(w, r)
}))
@@ -2227,6 +2238,7 @@ func (siw *ServerInterfaceWrapper) UpdateMessageVisibilityAdminOptions(w http.Re
// UpdateMessageVisibilityAdmin operation middleware
func (siw *ServerInterfaceWrapper) UpdateMessageVisibilityAdmin(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2246,6 +2258,7 @@ func (siw *ServerInterfaceWrapper) UpdateMessageVisibilityAdmin(w http.ResponseW
// GetDisabledUsers operation middleware
func (siw *ServerInterfaceWrapper) GetDisabledUsers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2265,6 +2278,7 @@ func (siw *ServerInterfaceWrapper) GetDisabledUsers(w http.ResponseWriter, r *ht
// GetDisabledUsersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetDisabledUsersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetDisabledUsersOptions(w, r)
}))
@@ -2278,6 +2292,7 @@ func (siw *ServerInterfaceWrapper) GetDisabledUsersOptions(w http.ResponseWriter
// GetIPAddressBans operation middleware
func (siw *ServerInterfaceWrapper) GetIPAddressBans(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2297,6 +2312,7 @@ func (siw *ServerInterfaceWrapper) GetIPAddressBans(w http.ResponseWriter, r *ht
// GetIPAddressBansOptions operation middleware
func (siw *ServerInterfaceWrapper) GetIPAddressBansOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetIPAddressBansOptions(w, r)
}))
@@ -2310,6 +2326,7 @@ func (siw *ServerInterfaceWrapper) GetIPAddressBansOptions(w http.ResponseWriter
// BanIPAddressOptions operation middleware
func (siw *ServerInterfaceWrapper) BanIPAddressOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.BanIPAddressOptions(w, r)
}))
@@ -2323,6 +2340,7 @@ func (siw *ServerInterfaceWrapper) BanIPAddressOptions(w http.ResponseWriter, r
// BanIPAddress operation middleware
func (siw *ServerInterfaceWrapper) BanIPAddress(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2342,6 +2360,7 @@ func (siw *ServerInterfaceWrapper) BanIPAddress(w http.ResponseWriter, r *http.R
// UnbanIPAddressOptions operation middleware
func (siw *ServerInterfaceWrapper) UnbanIPAddressOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.UnbanIPAddressOptions(w, r)
}))
@@ -2355,6 +2374,7 @@ func (siw *ServerInterfaceWrapper) UnbanIPAddressOptions(w http.ResponseWriter,
// UnbanIPAddress operation middleware
func (siw *ServerInterfaceWrapper) UnbanIPAddress(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2374,6 +2394,7 @@ func (siw *ServerInterfaceWrapper) UnbanIPAddress(w http.ResponseWriter, r *http
// GetModerators operation middleware
func (siw *ServerInterfaceWrapper) GetModerators(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2393,6 +2414,7 @@ func (siw *ServerInterfaceWrapper) GetModerators(w http.ResponseWriter, r *http.
// GetModeratorsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetModeratorsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetModeratorsOptions(w, r)
}))
@@ -2406,6 +2428,7 @@ func (siw *ServerInterfaceWrapper) GetModeratorsOptions(w http.ResponseWriter, r
// UpdateUserEnabledAdminOptions operation middleware
func (siw *ServerInterfaceWrapper) UpdateUserEnabledAdminOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.UpdateUserEnabledAdminOptions(w, r)
}))
@@ -2419,6 +2442,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserEnabledAdminOptions(w http.Response
// UpdateUserEnabledAdmin operation middleware
func (siw *ServerInterfaceWrapper) UpdateUserEnabledAdmin(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2438,6 +2462,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserEnabledAdmin(w http.ResponseWriter,
// UpdateUserModeratorOptions operation middleware
func (siw *ServerInterfaceWrapper) UpdateUserModeratorOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.UpdateUserModeratorOptions(w, r)
}))
@@ -2451,6 +2476,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserModeratorOptions(w http.ResponseWri
// UpdateUserModerator operation middleware
func (siw *ServerInterfaceWrapper) UpdateUserModerator(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2470,6 +2496,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserModerator(w http.ResponseWriter, r
// SetAdminPasswordOptions operation middleware
func (siw *ServerInterfaceWrapper) SetAdminPasswordOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetAdminPasswordOptions(w, r)
}))
@@ -2483,6 +2510,7 @@ func (siw *ServerInterfaceWrapper) SetAdminPasswordOptions(w http.ResponseWriter
// SetAdminPassword operation middleware
func (siw *ServerInterfaceWrapper) SetAdminPassword(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2502,6 +2530,7 @@ func (siw *ServerInterfaceWrapper) SetAdminPassword(w http.ResponseWriter, r *ht
// SetCustomColorVariableValuesOptions operation middleware
func (siw *ServerInterfaceWrapper) SetCustomColorVariableValuesOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetCustomColorVariableValuesOptions(w, r)
}))
@@ -2515,6 +2544,7 @@ func (siw *ServerInterfaceWrapper) SetCustomColorVariableValuesOptions(w http.Re
// SetCustomColorVariableValues operation middleware
func (siw *ServerInterfaceWrapper) SetCustomColorVariableValues(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2534,6 +2564,7 @@ func (siw *ServerInterfaceWrapper) SetCustomColorVariableValues(w http.ResponseW
// SetChatDisabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetChatDisabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetChatDisabledOptions(w, r)
}))
@@ -2547,6 +2578,7 @@ func (siw *ServerInterfaceWrapper) SetChatDisabledOptions(w http.ResponseWriter,
// SetChatDisabled operation middleware
func (siw *ServerInterfaceWrapper) SetChatDisabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2566,6 +2598,7 @@ func (siw *ServerInterfaceWrapper) SetChatDisabled(w http.ResponseWriter, r *htt
// SetEnableEstablishedChatUserModeOptions operation middleware
func (siw *ServerInterfaceWrapper) SetEnableEstablishedChatUserModeOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetEnableEstablishedChatUserModeOptions(w, r)
}))
@@ -2579,6 +2612,7 @@ func (siw *ServerInterfaceWrapper) SetEnableEstablishedChatUserModeOptions(w htt
// SetEnableEstablishedChatUserMode operation middleware
func (siw *ServerInterfaceWrapper) SetEnableEstablishedChatUserMode(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2598,6 +2632,7 @@ func (siw *ServerInterfaceWrapper) SetEnableEstablishedChatUserMode(w http.Respo
// SetForbiddenUsernameListOptions operation middleware
func (siw *ServerInterfaceWrapper) SetForbiddenUsernameListOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetForbiddenUsernameListOptions(w, r)
}))
@@ -2611,6 +2646,7 @@ func (siw *ServerInterfaceWrapper) SetForbiddenUsernameListOptions(w http.Respon
// SetForbiddenUsernameList operation middleware
func (siw *ServerInterfaceWrapper) SetForbiddenUsernameList(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2630,6 +2666,7 @@ func (siw *ServerInterfaceWrapper) SetForbiddenUsernameList(w http.ResponseWrite
// SetChatJoinMessagesEnabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetChatJoinMessagesEnabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetChatJoinMessagesEnabledOptions(w, r)
}))
@@ -2643,6 +2680,7 @@ func (siw *ServerInterfaceWrapper) SetChatJoinMessagesEnabledOptions(w http.Resp
// SetChatJoinMessagesEnabled operation middleware
func (siw *ServerInterfaceWrapper) SetChatJoinMessagesEnabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2662,6 +2700,7 @@ func (siw *ServerInterfaceWrapper) SetChatJoinMessagesEnabled(w http.ResponseWri
// SetChatRequireAuthenticationOptions operation middleware
func (siw *ServerInterfaceWrapper) SetChatRequireAuthenticationOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetChatRequireAuthenticationOptions(w, r)
}))
@@ -2675,6 +2714,7 @@ func (siw *ServerInterfaceWrapper) SetChatRequireAuthenticationOptions(w http.Re
// SetChatRequireAuthentication operation middleware
func (siw *ServerInterfaceWrapper) SetChatRequireAuthentication(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2694,6 +2734,7 @@ func (siw *ServerInterfaceWrapper) SetChatRequireAuthentication(w http.ResponseW
// SetChatSlurFilterEnabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetChatSlurFilterEnabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetChatSlurFilterEnabledOptions(w, r)
}))
@@ -2707,6 +2748,7 @@ func (siw *ServerInterfaceWrapper) SetChatSlurFilterEnabledOptions(w http.Respon
// SetChatSlurFilterEnabled operation middleware
func (siw *ServerInterfaceWrapper) SetChatSlurFilterEnabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2726,6 +2768,7 @@ func (siw *ServerInterfaceWrapper) SetChatSlurFilterEnabled(w http.ResponseWrite
// SetChatSpamProtectionEnabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetChatSpamProtectionEnabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetChatSpamProtectionEnabledOptions(w, r)
}))
@@ -2739,6 +2782,7 @@ func (siw *ServerInterfaceWrapper) SetChatSpamProtectionEnabledOptions(w http.Re
// SetChatSpamProtectionEnabled operation middleware
func (siw *ServerInterfaceWrapper) SetChatSpamProtectionEnabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2758,6 +2802,7 @@ func (siw *ServerInterfaceWrapper) SetChatSpamProtectionEnabled(w http.ResponseW
// SetSuggestedUsernameListOptions operation middleware
func (siw *ServerInterfaceWrapper) SetSuggestedUsernameListOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetSuggestedUsernameListOptions(w, r)
}))
@@ -2771,6 +2816,7 @@ func (siw *ServerInterfaceWrapper) SetSuggestedUsernameListOptions(w http.Respon
// SetSuggestedUsernameList operation middleware
func (siw *ServerInterfaceWrapper) SetSuggestedUsernameList(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2790,6 +2836,7 @@ func (siw *ServerInterfaceWrapper) SetSuggestedUsernameList(w http.ResponseWrite
// SetCustomJavascriptOptions operation middleware
func (siw *ServerInterfaceWrapper) SetCustomJavascriptOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetCustomJavascriptOptions(w, r)
}))
@@ -2803,6 +2850,7 @@ func (siw *ServerInterfaceWrapper) SetCustomJavascriptOptions(w http.ResponseWri
// SetCustomJavascript operation middleware
func (siw *ServerInterfaceWrapper) SetCustomJavascript(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2822,6 +2870,7 @@ func (siw *ServerInterfaceWrapper) SetCustomJavascript(w http.ResponseWriter, r
// SetCustomStylesOptions operation middleware
func (siw *ServerInterfaceWrapper) SetCustomStylesOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetCustomStylesOptions(w, r)
}))
@@ -2835,6 +2884,7 @@ func (siw *ServerInterfaceWrapper) SetCustomStylesOptions(w http.ResponseWriter,
// SetCustomStyles operation middleware
func (siw *ServerInterfaceWrapper) SetCustomStyles(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2854,6 +2904,7 @@ func (siw *ServerInterfaceWrapper) SetCustomStyles(w http.ResponseWriter, r *htt
// SetDirectoryEnabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetDirectoryEnabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetDirectoryEnabledOptions(w, r)
}))
@@ -2867,6 +2918,7 @@ func (siw *ServerInterfaceWrapper) SetDirectoryEnabledOptions(w http.ResponseWri
// SetDirectoryEnabled operation middleware
func (siw *ServerInterfaceWrapper) SetDirectoryEnabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2886,6 +2938,7 @@ func (siw *ServerInterfaceWrapper) SetDirectoryEnabled(w http.ResponseWriter, r
// SetDisableSearchIndexingOptions operation middleware
func (siw *ServerInterfaceWrapper) SetDisableSearchIndexingOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetDisableSearchIndexingOptions(w, r)
}))
@@ -2899,6 +2952,7 @@ func (siw *ServerInterfaceWrapper) SetDisableSearchIndexingOptions(w http.Respon
// SetDisableSearchIndexing operation middleware
func (siw *ServerInterfaceWrapper) SetDisableSearchIndexing(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2918,6 +2972,7 @@ func (siw *ServerInterfaceWrapper) SetDisableSearchIndexing(w http.ResponseWrite
// SetExternalActionsOptions operation middleware
func (siw *ServerInterfaceWrapper) SetExternalActionsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetExternalActionsOptions(w, r)
}))
@@ -2931,6 +2986,7 @@ func (siw *ServerInterfaceWrapper) SetExternalActionsOptions(w http.ResponseWrit
// SetExternalActions operation middleware
func (siw *ServerInterfaceWrapper) SetExternalActions(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2950,6 +3006,7 @@ func (siw *ServerInterfaceWrapper) SetExternalActions(w http.ResponseWriter, r *
// ResetFavicon operation middleware
func (siw *ServerInterfaceWrapper) ResetFavicon(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -2969,6 +3026,7 @@ func (siw *ServerInterfaceWrapper) ResetFavicon(w http.ResponseWriter, r *http.R
// SetFaviconOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFaviconOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFaviconOptions(w, r)
}))
@@ -2982,6 +3040,7 @@ func (siw *ServerInterfaceWrapper) SetFaviconOptions(w http.ResponseWriter, r *h
// SetFavicon operation middleware
func (siw *ServerInterfaceWrapper) SetFavicon(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3001,6 +3060,7 @@ func (siw *ServerInterfaceWrapper) SetFavicon(w http.ResponseWriter, r *http.Req
// SetFederationBlockDomainsOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationBlockDomainsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationBlockDomainsOptions(w, r)
}))
@@ -3014,6 +3074,7 @@ func (siw *ServerInterfaceWrapper) SetFederationBlockDomainsOptions(w http.Respo
// SetFederationBlockDomains operation middleware
func (siw *ServerInterfaceWrapper) SetFederationBlockDomains(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3033,6 +3094,7 @@ func (siw *ServerInterfaceWrapper) SetFederationBlockDomains(w http.ResponseWrit
// SetFederationEnabledOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationEnabledOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationEnabledOptions(w, r)
}))
@@ -3046,6 +3108,7 @@ func (siw *ServerInterfaceWrapper) SetFederationEnabledOptions(w http.ResponseWr
// SetFederationEnabled operation middleware
func (siw *ServerInterfaceWrapper) SetFederationEnabled(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3065,6 +3128,7 @@ func (siw *ServerInterfaceWrapper) SetFederationEnabled(w http.ResponseWriter, r
// SetFederationHideFollowersTabOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationHideFollowersTabOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationHideFollowersTabOptions(w, r)
}))
@@ -3078,6 +3142,7 @@ func (siw *ServerInterfaceWrapper) SetFederationHideFollowersTabOptions(w http.R
// SetFederationHideFollowersTab operation middleware
func (siw *ServerInterfaceWrapper) SetFederationHideFollowersTab(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3097,6 +3162,7 @@ func (siw *ServerInterfaceWrapper) SetFederationHideFollowersTab(w http.Response
// SetFederationGoLiveMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationGoLiveMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationGoLiveMessageOptions(w, r)
}))
@@ -3110,6 +3176,7 @@ func (siw *ServerInterfaceWrapper) SetFederationGoLiveMessageOptions(w http.Resp
// SetFederationGoLiveMessage operation middleware
func (siw *ServerInterfaceWrapper) SetFederationGoLiveMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3129,6 +3196,7 @@ func (siw *ServerInterfaceWrapper) SetFederationGoLiveMessage(w http.ResponseWri
// SetFederationActivityPrivateOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationActivityPrivateOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationActivityPrivateOptions(w, r)
}))
@@ -3142,6 +3210,7 @@ func (siw *ServerInterfaceWrapper) SetFederationActivityPrivateOptions(w http.Re
// SetFederationActivityPrivate operation middleware
func (siw *ServerInterfaceWrapper) SetFederationActivityPrivate(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3161,6 +3230,7 @@ func (siw *ServerInterfaceWrapper) SetFederationActivityPrivate(w http.ResponseW
// SetFederationShowEngagementOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationShowEngagementOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationShowEngagementOptions(w, r)
}))
@@ -3174,6 +3244,7 @@ func (siw *ServerInterfaceWrapper) SetFederationShowEngagementOptions(w http.Res
// SetFederationShowEngagement operation middleware
func (siw *ServerInterfaceWrapper) SetFederationShowEngagement(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3193,6 +3264,7 @@ func (siw *ServerInterfaceWrapper) SetFederationShowEngagement(w http.ResponseWr
// SetFederationUsernameOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFederationUsernameOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFederationUsernameOptions(w, r)
}))
@@ -3206,6 +3278,7 @@ func (siw *ServerInterfaceWrapper) SetFederationUsernameOptions(w http.ResponseW
// SetFederationUsername operation middleware
func (siw *ServerInterfaceWrapper) SetFederationUsername(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3225,6 +3298,7 @@ func (siw *ServerInterfaceWrapper) SetFederationUsername(w http.ResponseWriter,
// SetFfmpegPathOptions operation middleware
func (siw *ServerInterfaceWrapper) SetFfmpegPathOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetFfmpegPathOptions(w, r)
}))
@@ -3238,6 +3312,7 @@ func (siw *ServerInterfaceWrapper) SetFfmpegPathOptions(w http.ResponseWriter, r
// SetFfmpegPath operation middleware
func (siw *ServerInterfaceWrapper) SetFfmpegPath(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3257,6 +3332,7 @@ func (siw *ServerInterfaceWrapper) SetFfmpegPath(w http.ResponseWriter, r *http.
// SetHideViewerCountOptions operation middleware
func (siw *ServerInterfaceWrapper) SetHideViewerCountOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetHideViewerCountOptions(w, r)
}))
@@ -3270,6 +3346,7 @@ func (siw *ServerInterfaceWrapper) SetHideViewerCountOptions(w http.ResponseWrit
// SetHideViewerCount operation middleware
func (siw *ServerInterfaceWrapper) SetHideViewerCount(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3289,6 +3366,7 @@ func (siw *ServerInterfaceWrapper) SetHideViewerCount(w http.ResponseWriter, r *
// SetLogoOptions operation middleware
func (siw *ServerInterfaceWrapper) SetLogoOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetLogoOptions(w, r)
}))
@@ -3302,6 +3380,7 @@ func (siw *ServerInterfaceWrapper) SetLogoOptions(w http.ResponseWriter, r *http
// SetLogo operation middleware
func (siw *ServerInterfaceWrapper) SetLogo(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3321,6 +3400,7 @@ func (siw *ServerInterfaceWrapper) SetLogo(w http.ResponseWriter, r *http.Reques
// SetServerNameOptions operation middleware
func (siw *ServerInterfaceWrapper) SetServerNameOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetServerNameOptions(w, r)
}))
@@ -3334,6 +3414,7 @@ func (siw *ServerInterfaceWrapper) SetServerNameOptions(w http.ResponseWriter, r
// SetServerName operation middleware
func (siw *ServerInterfaceWrapper) SetServerName(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3353,6 +3434,7 @@ func (siw *ServerInterfaceWrapper) SetServerName(w http.ResponseWriter, r *http.
// SetBrowserNotificationConfigurationOptions operation middleware
func (siw *ServerInterfaceWrapper) SetBrowserNotificationConfigurationOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetBrowserNotificationConfigurationOptions(w, r)
}))
@@ -3366,6 +3448,7 @@ func (siw *ServerInterfaceWrapper) SetBrowserNotificationConfigurationOptions(w
// SetBrowserNotificationConfiguration operation middleware
func (siw *ServerInterfaceWrapper) SetBrowserNotificationConfiguration(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3385,6 +3468,7 @@ func (siw *ServerInterfaceWrapper) SetBrowserNotificationConfiguration(w http.Re
// SetDiscordNotificationConfigurationOptions operation middleware
func (siw *ServerInterfaceWrapper) SetDiscordNotificationConfigurationOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetDiscordNotificationConfigurationOptions(w, r)
}))
@@ -3398,6 +3482,7 @@ func (siw *ServerInterfaceWrapper) SetDiscordNotificationConfigurationOptions(w
// SetDiscordNotificationConfiguration operation middleware
func (siw *ServerInterfaceWrapper) SetDiscordNotificationConfiguration(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3417,6 +3502,7 @@ func (siw *ServerInterfaceWrapper) SetDiscordNotificationConfiguration(w http.Re
// SetNSFWOptions operation middleware
func (siw *ServerInterfaceWrapper) SetNSFWOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetNSFWOptions(w, r)
}))
@@ -3430,6 +3516,7 @@ func (siw *ServerInterfaceWrapper) SetNSFWOptions(w http.ResponseWriter, r *http
// SetNSFW operation middleware
func (siw *ServerInterfaceWrapper) SetNSFW(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3449,6 +3536,7 @@ func (siw *ServerInterfaceWrapper) SetNSFW(w http.ResponseWriter, r *http.Reques
// SetCustomOfflineMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SetCustomOfflineMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetCustomOfflineMessageOptions(w, r)
}))
@@ -3462,6 +3550,7 @@ func (siw *ServerInterfaceWrapper) SetCustomOfflineMessageOptions(w http.Respons
// SetCustomOfflineMessage operation middleware
func (siw *ServerInterfaceWrapper) SetCustomOfflineMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3481,6 +3570,7 @@ func (siw *ServerInterfaceWrapper) SetCustomOfflineMessage(w http.ResponseWriter
// SetExtraPageContentOptions operation middleware
func (siw *ServerInterfaceWrapper) SetExtraPageContentOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetExtraPageContentOptions(w, r)
}))
@@ -3494,6 +3584,7 @@ func (siw *ServerInterfaceWrapper) SetExtraPageContentOptions(w http.ResponseWri
// SetExtraPageContent operation middleware
func (siw *ServerInterfaceWrapper) SetExtraPageContent(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3513,6 +3604,7 @@ func (siw *ServerInterfaceWrapper) SetExtraPageContent(w http.ResponseWriter, r
// SetRTMPServerBindAddressOptions operation middleware
func (siw *ServerInterfaceWrapper) SetRTMPServerBindAddressOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetRTMPServerBindAddressOptions(w, r)
}))
@@ -3526,6 +3618,7 @@ func (siw *ServerInterfaceWrapper) SetRTMPServerBindAddressOptions(w http.Respon
// SetRTMPServerBindAddress operation middleware
func (siw *ServerInterfaceWrapper) SetRTMPServerBindAddress(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3545,6 +3638,7 @@ func (siw *ServerInterfaceWrapper) SetRTMPServerBindAddress(w http.ResponseWrite
// SetRTMPServerPortOptions operation middleware
func (siw *ServerInterfaceWrapper) SetRTMPServerPortOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetRTMPServerPortOptions(w, r)
}))
@@ -3558,6 +3652,7 @@ func (siw *ServerInterfaceWrapper) SetRTMPServerPortOptions(w http.ResponseWrite
// SetRTMPServerPort operation middleware
func (siw *ServerInterfaceWrapper) SetRTMPServerPort(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3577,6 +3672,7 @@ func (siw *ServerInterfaceWrapper) SetRTMPServerPort(w http.ResponseWriter, r *h
// SetS3ConfigurationOptions operation middleware
func (siw *ServerInterfaceWrapper) SetS3ConfigurationOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetS3ConfigurationOptions(w, r)
}))
@@ -3590,6 +3686,7 @@ func (siw *ServerInterfaceWrapper) SetS3ConfigurationOptions(w http.ResponseWrit
// SetS3Configuration operation middleware
func (siw *ServerInterfaceWrapper) SetS3Configuration(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3609,6 +3706,7 @@ func (siw *ServerInterfaceWrapper) SetS3Configuration(w http.ResponseWriter, r *
// SetServerSummaryOptions operation middleware
func (siw *ServerInterfaceWrapper) SetServerSummaryOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetServerSummaryOptions(w, r)
}))
@@ -3622,6 +3720,7 @@ func (siw *ServerInterfaceWrapper) SetServerSummaryOptions(w http.ResponseWriter
// SetServerSummary operation middleware
func (siw *ServerInterfaceWrapper) SetServerSummary(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3641,6 +3740,7 @@ func (siw *ServerInterfaceWrapper) SetServerSummary(w http.ResponseWriter, r *ht
// SetServerURLOptions operation middleware
func (siw *ServerInterfaceWrapper) SetServerURLOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetServerURLOptions(w, r)
}))
@@ -3654,6 +3754,7 @@ func (siw *ServerInterfaceWrapper) SetServerURLOptions(w http.ResponseWriter, r
// SetServerURL operation middleware
func (siw *ServerInterfaceWrapper) SetServerURL(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3673,6 +3774,7 @@ func (siw *ServerInterfaceWrapper) SetServerURL(w http.ResponseWriter, r *http.R
// SetSocialHandlesOptions operation middleware
func (siw *ServerInterfaceWrapper) SetSocialHandlesOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetSocialHandlesOptions(w, r)
}))
@@ -3686,6 +3788,7 @@ func (siw *ServerInterfaceWrapper) SetSocialHandlesOptions(w http.ResponseWriter
// SetSocialHandles operation middleware
func (siw *ServerInterfaceWrapper) SetSocialHandles(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3705,6 +3808,7 @@ func (siw *ServerInterfaceWrapper) SetSocialHandles(w http.ResponseWriter, r *ht
// SetSocketHostOverrideOptions operation middleware
func (siw *ServerInterfaceWrapper) SetSocketHostOverrideOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetSocketHostOverrideOptions(w, r)
}))
@@ -3718,6 +3822,7 @@ func (siw *ServerInterfaceWrapper) SetSocketHostOverrideOptions(w http.ResponseW
// SetSocketHostOverride operation middleware
func (siw *ServerInterfaceWrapper) SetSocketHostOverride(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3737,6 +3842,7 @@ func (siw *ServerInterfaceWrapper) SetSocketHostOverride(w http.ResponseWriter,
// SetStreamKeysOptions operation middleware
func (siw *ServerInterfaceWrapper) SetStreamKeysOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetStreamKeysOptions(w, r)
}))
@@ -3750,6 +3856,7 @@ func (siw *ServerInterfaceWrapper) SetStreamKeysOptions(w http.ResponseWriter, r
// SetStreamKeys operation middleware
func (siw *ServerInterfaceWrapper) SetStreamKeys(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3769,6 +3876,7 @@ func (siw *ServerInterfaceWrapper) SetStreamKeys(w http.ResponseWriter, r *http.
// SetStreamTitleOptions operation middleware
func (siw *ServerInterfaceWrapper) SetStreamTitleOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetStreamTitleOptions(w, r)
}))
@@ -3782,6 +3890,7 @@ func (siw *ServerInterfaceWrapper) SetStreamTitleOptions(w http.ResponseWriter,
// SetStreamTitle operation middleware
func (siw *ServerInterfaceWrapper) SetStreamTitle(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3801,6 +3910,7 @@ func (siw *ServerInterfaceWrapper) SetStreamTitle(w http.ResponseWriter, r *http
// SetTagsOptions operation middleware
func (siw *ServerInterfaceWrapper) SetTagsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetTagsOptions(w, r)
}))
@@ -3814,6 +3924,7 @@ func (siw *ServerInterfaceWrapper) SetTagsOptions(w http.ResponseWriter, r *http
// SetTags operation middleware
func (siw *ServerInterfaceWrapper) SetTags(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3833,6 +3944,7 @@ func (siw *ServerInterfaceWrapper) SetTags(w http.ResponseWriter, r *http.Reques
// SetVideoCodecOptions operation middleware
func (siw *ServerInterfaceWrapper) SetVideoCodecOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetVideoCodecOptions(w, r)
}))
@@ -3846,6 +3958,7 @@ func (siw *ServerInterfaceWrapper) SetVideoCodecOptions(w http.ResponseWriter, r
// SetVideoCodec operation middleware
func (siw *ServerInterfaceWrapper) SetVideoCodec(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3865,6 +3978,7 @@ func (siw *ServerInterfaceWrapper) SetVideoCodec(w http.ResponseWriter, r *http.
// SetStreamLatencyLevelOptions operation middleware
func (siw *ServerInterfaceWrapper) SetStreamLatencyLevelOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetStreamLatencyLevelOptions(w, r)
}))
@@ -3878,6 +3992,7 @@ func (siw *ServerInterfaceWrapper) SetStreamLatencyLevelOptions(w http.ResponseW
// SetStreamLatencyLevel operation middleware
func (siw *ServerInterfaceWrapper) SetStreamLatencyLevel(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3897,6 +4012,7 @@ func (siw *ServerInterfaceWrapper) SetStreamLatencyLevel(w http.ResponseWriter,
// SetStreamOutputVariantsOptions operation middleware
func (siw *ServerInterfaceWrapper) SetStreamOutputVariantsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetStreamOutputVariantsOptions(w, r)
}))
@@ -3910,6 +4026,7 @@ func (siw *ServerInterfaceWrapper) SetStreamOutputVariantsOptions(w http.Respons
// SetStreamOutputVariants operation middleware
func (siw *ServerInterfaceWrapper) SetStreamOutputVariants(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3929,6 +4046,7 @@ func (siw *ServerInterfaceWrapper) SetStreamOutputVariants(w http.ResponseWriter
// SetVideoServingEndpointOptions operation middleware
func (siw *ServerInterfaceWrapper) SetVideoServingEndpointOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetVideoServingEndpointOptions(w, r)
}))
@@ -3942,6 +4060,7 @@ func (siw *ServerInterfaceWrapper) SetVideoServingEndpointOptions(w http.Respons
// SetVideoServingEndpoint operation middleware
func (siw *ServerInterfaceWrapper) SetVideoServingEndpoint(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3961,6 +4080,7 @@ func (siw *ServerInterfaceWrapper) SetVideoServingEndpoint(w http.ResponseWriter
// SetWebServerIPOptions operation middleware
func (siw *ServerInterfaceWrapper) SetWebServerIPOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetWebServerIPOptions(w, r)
}))
@@ -3974,6 +4094,7 @@ func (siw *ServerInterfaceWrapper) SetWebServerIPOptions(w http.ResponseWriter,
// SetWebServerIP operation middleware
func (siw *ServerInterfaceWrapper) SetWebServerIP(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -3993,6 +4114,7 @@ func (siw *ServerInterfaceWrapper) SetWebServerIP(w http.ResponseWriter, r *http
// SetWebServerPortOptions operation middleware
func (siw *ServerInterfaceWrapper) SetWebServerPortOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetWebServerPortOptions(w, r)
}))
@@ -4006,6 +4128,7 @@ func (siw *ServerInterfaceWrapper) SetWebServerPortOptions(w http.ResponseWriter
// SetWebServerPort operation middleware
func (siw *ServerInterfaceWrapper) SetWebServerPort(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4025,6 +4148,7 @@ func (siw *ServerInterfaceWrapper) SetWebServerPort(w http.ResponseWriter, r *ht
// SetServerWelcomeMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SetServerWelcomeMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SetServerWelcomeMessageOptions(w, r)
}))
@@ -4038,6 +4162,7 @@ func (siw *ServerInterfaceWrapper) SetServerWelcomeMessageOptions(w http.Respons
// SetServerWelcomeMessage operation middleware
func (siw *ServerInterfaceWrapper) SetServerWelcomeMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4057,6 +4182,7 @@ func (siw *ServerInterfaceWrapper) SetServerWelcomeMessage(w http.ResponseWriter
// DisconnectInboundConnection operation middleware
func (siw *ServerInterfaceWrapper) DisconnectInboundConnection(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4076,6 +4202,7 @@ func (siw *ServerInterfaceWrapper) DisconnectInboundConnection(w http.ResponseWr
// DisconnectInboundConnectionOptions operation middleware
func (siw *ServerInterfaceWrapper) DisconnectInboundConnectionOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DisconnectInboundConnectionOptions(w, r)
}))
@@ -4089,6 +4216,7 @@ func (siw *ServerInterfaceWrapper) DisconnectInboundConnectionOptions(w http.Res
// DeleteCustomEmojiOptions operation middleware
func (siw *ServerInterfaceWrapper) DeleteCustomEmojiOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DeleteCustomEmojiOptions(w, r)
}))
@@ -4102,6 +4230,7 @@ func (siw *ServerInterfaceWrapper) DeleteCustomEmojiOptions(w http.ResponseWrite
// DeleteCustomEmoji operation middleware
func (siw *ServerInterfaceWrapper) DeleteCustomEmoji(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4121,6 +4250,7 @@ func (siw *ServerInterfaceWrapper) DeleteCustomEmoji(w http.ResponseWriter, r *h
// UploadCustomEmojiOptions operation middleware
func (siw *ServerInterfaceWrapper) UploadCustomEmojiOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.UploadCustomEmojiOptions(w, r)
}))
@@ -4134,6 +4264,7 @@ func (siw *ServerInterfaceWrapper) UploadCustomEmojiOptions(w http.ResponseWrite
// UploadCustomEmoji operation middleware
func (siw *ServerInterfaceWrapper) UploadCustomEmoji(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4153,6 +4284,7 @@ func (siw *ServerInterfaceWrapper) UploadCustomEmoji(w http.ResponseWriter, r *h
// GetFederatedActions operation middleware
func (siw *ServerInterfaceWrapper) GetFederatedActions(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -4204,6 +4336,7 @@ func (siw *ServerInterfaceWrapper) GetFederatedActions(w http.ResponseWriter, r
// GetFederatedActionsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetFederatedActionsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetFederatedActionsOptions(w, r)
}))
@@ -4217,6 +4350,7 @@ func (siw *ServerInterfaceWrapper) GetFederatedActionsOptions(w http.ResponseWri
// GetFeatureRequests operation middleware
func (siw *ServerInterfaceWrapper) GetFeatureRequests(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4236,6 +4370,7 @@ func (siw *ServerInterfaceWrapper) GetFeatureRequests(w http.ResponseWriter, r *
// SendFederatedMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SendFederatedMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SendFederatedMessageOptions(w, r)
}))
@@ -4249,6 +4384,7 @@ func (siw *ServerInterfaceWrapper) SendFederatedMessageOptions(w http.ResponseWr
// SendFederatedMessage operation middleware
func (siw *ServerInterfaceWrapper) SendFederatedMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4268,6 +4404,7 @@ func (siw *ServerInterfaceWrapper) SendFederatedMessage(w http.ResponseWriter, r
// GetAdminFederatedServers operation middleware
func (siw *ServerInterfaceWrapper) GetAdminFederatedServers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4287,6 +4424,7 @@ func (siw *ServerInterfaceWrapper) GetAdminFederatedServers(w http.ResponseWrite
// AddFederatedServerOptions operation middleware
func (siw *ServerInterfaceWrapper) AddFederatedServerOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.AddFederatedServerOptions(w, r)
}))
@@ -4300,6 +4438,7 @@ func (siw *ServerInterfaceWrapper) AddFederatedServerOptions(w http.ResponseWrit
// AddFederatedServer operation middleware
func (siw *ServerInterfaceWrapper) AddFederatedServer(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4319,6 +4458,7 @@ func (siw *ServerInterfaceWrapper) AddFederatedServer(w http.ResponseWriter, r *
// RemoveFederatedServer operation middleware
func (siw *ServerInterfaceWrapper) RemoveFederatedServer(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -4350,6 +4490,7 @@ func (siw *ServerInterfaceWrapper) RemoveFederatedServer(w http.ResponseWriter,
// RemoveFederatedServerOptions operation middleware
func (siw *ServerInterfaceWrapper) RemoveFederatedServerOptions(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -4375,6 +4516,7 @@ func (siw *ServerInterfaceWrapper) RemoveFederatedServerOptions(w http.ResponseW
// GetFollowersAdmin operation middleware
func (siw *ServerInterfaceWrapper) GetFollowersAdmin(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -4426,6 +4568,7 @@ func (siw *ServerInterfaceWrapper) GetFollowersAdmin(w http.ResponseWriter, r *h
// GetFollowersAdminOptions operation middleware
func (siw *ServerInterfaceWrapper) GetFollowersAdminOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetFollowersAdminOptions(w, r)
}))
@@ -4439,6 +4582,7 @@ func (siw *ServerInterfaceWrapper) GetFollowersAdminOptions(w http.ResponseWrite
// ApproveFollowerOptions operation middleware
func (siw *ServerInterfaceWrapper) ApproveFollowerOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ApproveFollowerOptions(w, r)
}))
@@ -4452,6 +4596,7 @@ func (siw *ServerInterfaceWrapper) ApproveFollowerOptions(w http.ResponseWriter,
// ApproveFollower operation middleware
func (siw *ServerInterfaceWrapper) ApproveFollower(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4471,6 +4616,7 @@ func (siw *ServerInterfaceWrapper) ApproveFollower(w http.ResponseWriter, r *htt
// GetBlockedAndRejectedFollowers operation middleware
func (siw *ServerInterfaceWrapper) GetBlockedAndRejectedFollowers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4490,6 +4636,7 @@ func (siw *ServerInterfaceWrapper) GetBlockedAndRejectedFollowers(w http.Respons
// GetBlockedAndRejectedFollowersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetBlockedAndRejectedFollowersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetBlockedAndRejectedFollowersOptions(w, r)
}))
@@ -4503,6 +4650,7 @@ func (siw *ServerInterfaceWrapper) GetBlockedAndRejectedFollowersOptions(w http.
// GetDirectoryFollowers operation middleware
func (siw *ServerInterfaceWrapper) GetDirectoryFollowers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4522,6 +4670,7 @@ func (siw *ServerInterfaceWrapper) GetDirectoryFollowers(w http.ResponseWriter,
// GetDirectoryFollowersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetDirectoryFollowersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetDirectoryFollowersOptions(w, r)
}))
@@ -4535,6 +4684,7 @@ func (siw *ServerInterfaceWrapper) GetDirectoryFollowersOptions(w http.ResponseW
// GetPendingFollowRequests operation middleware
func (siw *ServerInterfaceWrapper) GetPendingFollowRequests(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4554,6 +4704,7 @@ func (siw *ServerInterfaceWrapper) GetPendingFollowRequests(w http.ResponseWrite
// GetPendingFollowRequestsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetPendingFollowRequestsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetPendingFollowRequestsOptions(w, r)
}))
@@ -4567,6 +4718,7 @@ func (siw *ServerInterfaceWrapper) GetPendingFollowRequestsOptions(w http.Respon
// RemoveFollowerOptions operation middleware
func (siw *ServerInterfaceWrapper) RemoveFollowerOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.RemoveFollowerOptions(w, r)
}))
@@ -4580,6 +4732,7 @@ func (siw *ServerInterfaceWrapper) RemoveFollowerOptions(w http.ResponseWriter,
// RemoveFollower operation middleware
func (siw *ServerInterfaceWrapper) RemoveFollower(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4599,6 +4752,7 @@ func (siw *ServerInterfaceWrapper) RemoveFollower(w http.ResponseWriter, r *http
// GetHardwareStats operation middleware
func (siw *ServerInterfaceWrapper) GetHardwareStats(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4618,6 +4772,7 @@ func (siw *ServerInterfaceWrapper) GetHardwareStats(w http.ResponseWriter, r *ht
// GetHardwareStatsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetHardwareStatsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetHardwareStatsOptions(w, r)
}))
@@ -4631,6 +4786,7 @@ func (siw *ServerInterfaceWrapper) GetHardwareStatsOptions(w http.ResponseWriter
// GetLogs operation middleware
func (siw *ServerInterfaceWrapper) GetLogs(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4650,6 +4806,7 @@ func (siw *ServerInterfaceWrapper) GetLogs(w http.ResponseWriter, r *http.Reques
// GetLogsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetLogsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetLogsOptions(w, r)
}))
@@ -4663,6 +4820,7 @@ func (siw *ServerInterfaceWrapper) GetLogsOptions(w http.ResponseWriter, r *http
// GetWarnings operation middleware
func (siw *ServerInterfaceWrapper) GetWarnings(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4682,6 +4840,7 @@ func (siw *ServerInterfaceWrapper) GetWarnings(w http.ResponseWriter, r *http.Re
// GetWarningsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetWarningsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetWarningsOptions(w, r)
}))
@@ -4695,6 +4854,7 @@ func (siw *ServerInterfaceWrapper) GetWarningsOptions(w http.ResponseWriter, r *
// GetVideoPlaybackMetrics operation middleware
func (siw *ServerInterfaceWrapper) GetVideoPlaybackMetrics(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4714,6 +4874,7 @@ func (siw *ServerInterfaceWrapper) GetVideoPlaybackMetrics(w http.ResponseWriter
// GetVideoPlaybackMetricsOptions operation middleware
func (siw *ServerInterfaceWrapper) GetVideoPlaybackMetricsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetVideoPlaybackMetricsOptions(w, r)
}))
@@ -4727,6 +4888,7 @@ func (siw *ServerInterfaceWrapper) GetVideoPlaybackMetricsOptions(w http.Respons
// DeletePrometheusAPI operation middleware
func (siw *ServerInterfaceWrapper) DeletePrometheusAPI(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DeletePrometheusAPI(w, r)
}))
@@ -4740,6 +4902,7 @@ func (siw *ServerInterfaceWrapper) DeletePrometheusAPI(w http.ResponseWriter, r
// GetPrometheusAPI operation middleware
func (siw *ServerInterfaceWrapper) GetPrometheusAPI(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetPrometheusAPI(w, r)
}))
@@ -4753,6 +4916,7 @@ func (siw *ServerInterfaceWrapper) GetPrometheusAPI(w http.ResponseWriter, r *ht
// OptionsPrometheusAPI operation middleware
func (siw *ServerInterfaceWrapper) OptionsPrometheusAPI(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.OptionsPrometheusAPI(w, r)
}))
@@ -4766,6 +4930,7 @@ func (siw *ServerInterfaceWrapper) OptionsPrometheusAPI(w http.ResponseWriter, r
// PostPrometheusAPI operation middleware
func (siw *ServerInterfaceWrapper) PostPrometheusAPI(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.PostPrometheusAPI(w, r)
}))
@@ -4779,6 +4944,7 @@ func (siw *ServerInterfaceWrapper) PostPrometheusAPI(w http.ResponseWriter, r *h
// PutPrometheusAPI operation middleware
func (siw *ServerInterfaceWrapper) PutPrometheusAPI(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.PutPrometheusAPI(w, r)
}))
@@ -4792,6 +4958,7 @@ func (siw *ServerInterfaceWrapper) PutPrometheusAPI(w http.ResponseWriter, r *ht
// GetServerConfig operation middleware
func (siw *ServerInterfaceWrapper) GetServerConfig(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4811,6 +4978,7 @@ func (siw *ServerInterfaceWrapper) GetServerConfig(w http.ResponseWriter, r *htt
// GetServerConfigOptions operation middleware
func (siw *ServerInterfaceWrapper) GetServerConfigOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetServerConfigOptions(w, r)
}))
@@ -4824,6 +4992,7 @@ func (siw *ServerInterfaceWrapper) GetServerConfigOptions(w http.ResponseWriter,
// StatusAdmin operation middleware
func (siw *ServerInterfaceWrapper) StatusAdmin(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4843,6 +5012,7 @@ func (siw *ServerInterfaceWrapper) StatusAdmin(w http.ResponseWriter, r *http.Re
// StatusAdminOptions operation middleware
func (siw *ServerInterfaceWrapper) StatusAdminOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.StatusAdminOptions(w, r)
}))
@@ -4856,6 +5026,7 @@ func (siw *ServerInterfaceWrapper) StatusAdminOptions(w http.ResponseWriter, r *
// AutoUpdateForceQuit operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateForceQuit(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4875,6 +5046,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateForceQuit(w http.ResponseWriter, r
// AutoUpdateForceQuitOptions operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateForceQuitOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.AutoUpdateForceQuitOptions(w, r)
}))
@@ -4888,6 +5060,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateForceQuitOptions(w http.ResponseWri
// AutoUpdateOptions operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateOptions(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4907,6 +5080,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateOptions(w http.ResponseWriter, r *h
// AutoUpdateOptionsOptions operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateOptionsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.AutoUpdateOptionsOptions(w, r)
}))
@@ -4920,6 +5094,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateOptionsOptions(w http.ResponseWrite
// AutoUpdateStart operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateStart(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -4939,6 +5114,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateStart(w http.ResponseWriter, r *htt
// AutoUpdateStartOptions operation middleware
func (siw *ServerInterfaceWrapper) AutoUpdateStartOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.AutoUpdateStartOptions(w, r)
}))
@@ -4952,6 +5128,7 @@ func (siw *ServerInterfaceWrapper) AutoUpdateStartOptions(w http.ResponseWriter,
// GetUsers operation middleware
func (siw *ServerInterfaceWrapper) GetUsers(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5042,6 +5219,7 @@ func (siw *ServerInterfaceWrapper) GetUsers(w http.ResponseWriter, r *http.Reque
// GetUsersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetUsersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetUsersOptions(w, r)
}))
@@ -5055,6 +5233,7 @@ func (siw *ServerInterfaceWrapper) GetUsersOptions(w http.ResponseWriter, r *htt
// DeleteUserOptions operation middleware
func (siw *ServerInterfaceWrapper) DeleteUserOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DeleteUserOptions(w, r)
}))
@@ -5068,6 +5247,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserOptions(w http.ResponseWriter, r *h
// DeleteUser operation middleware
func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5087,6 +5267,7 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req
// GetActiveViewers operation middleware
func (siw *ServerInterfaceWrapper) GetActiveViewers(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5106,6 +5287,7 @@ func (siw *ServerInterfaceWrapper) GetActiveViewers(w http.ResponseWriter, r *ht
// GetActiveViewersOptions operation middleware
func (siw *ServerInterfaceWrapper) GetActiveViewersOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetActiveViewersOptions(w, r)
}))
@@ -5119,6 +5301,7 @@ func (siw *ServerInterfaceWrapper) GetActiveViewersOptions(w http.ResponseWriter
// GetViewersOverTime operation middleware
func (siw *ServerInterfaceWrapper) GetViewersOverTime(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5157,6 +5340,7 @@ func (siw *ServerInterfaceWrapper) GetViewersOverTime(w http.ResponseWriter, r *
// GetViewersOverTimeOptions operation middleware
func (siw *ServerInterfaceWrapper) GetViewersOverTimeOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetViewersOverTimeOptions(w, r)
}))
@@ -5170,6 +5354,7 @@ func (siw *ServerInterfaceWrapper) GetViewersOverTimeOptions(w http.ResponseWrit
// GetWebhooks operation middleware
func (siw *ServerInterfaceWrapper) GetWebhooks(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5189,6 +5374,7 @@ func (siw *ServerInterfaceWrapper) GetWebhooks(w http.ResponseWriter, r *http.Re
// GetWebhooksOptions operation middleware
func (siw *ServerInterfaceWrapper) GetWebhooksOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetWebhooksOptions(w, r)
}))
@@ -5202,6 +5388,7 @@ func (siw *ServerInterfaceWrapper) GetWebhooksOptions(w http.ResponseWriter, r *
// CreateWebhookOptions operation middleware
func (siw *ServerInterfaceWrapper) CreateWebhookOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.CreateWebhookOptions(w, r)
}))
@@ -5215,6 +5402,7 @@ func (siw *ServerInterfaceWrapper) CreateWebhookOptions(w http.ResponseWriter, r
// CreateWebhook operation middleware
func (siw *ServerInterfaceWrapper) CreateWebhook(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5234,6 +5422,7 @@ func (siw *ServerInterfaceWrapper) CreateWebhook(w http.ResponseWriter, r *http.
// DeleteWebhookOptions operation middleware
func (siw *ServerInterfaceWrapper) DeleteWebhookOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.DeleteWebhookOptions(w, r)
}))
@@ -5247,6 +5436,7 @@ func (siw *ServerInterfaceWrapper) DeleteWebhookOptions(w http.ResponseWriter, r
// DeleteWebhook operation middleware
func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5266,6 +5456,7 @@ func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.
// ResetYPRegistration operation middleware
func (siw *ServerInterfaceWrapper) ResetYPRegistration(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BasicAuthScopes, []string{})
@@ -5285,6 +5476,7 @@ func (siw *ServerInterfaceWrapper) ResetYPRegistration(w http.ResponseWriter, r
// ResetYPRegistrationOptions operation middleware
func (siw *ServerInterfaceWrapper) ResetYPRegistrationOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ResetYPRegistrationOptions(w, r)
}))
@@ -5298,6 +5490,7 @@ func (siw *ServerInterfaceWrapper) ResetYPRegistrationOptions(w http.ResponseWri
// RegisterFediverseOTPRequest operation middleware
func (siw *ServerInterfaceWrapper) RegisterFediverseOTPRequest(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5330,6 +5523,7 @@ func (siw *ServerInterfaceWrapper) RegisterFediverseOTPRequest(w http.ResponseWr
// VerifyFediverseOTPRequest operation middleware
func (siw *ServerInterfaceWrapper) VerifyFediverseOTPRequest(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.VerifyFediverseOTPRequest(w, r)
}))
@@ -5343,6 +5537,7 @@ func (siw *ServerInterfaceWrapper) VerifyFediverseOTPRequest(w http.ResponseWrit
// StartIndieAuthFlow operation middleware
func (siw *ServerInterfaceWrapper) StartIndieAuthFlow(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5375,6 +5570,7 @@ func (siw *ServerInterfaceWrapper) StartIndieAuthFlow(w http.ResponseWriter, r *
// HandleIndieAuthRedirect operation middleware
func (siw *ServerInterfaceWrapper) HandleIndieAuthRedirect(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5407,6 +5603,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthRedirect(w http.ResponseWriter
// HandleIndieAuthEndpointGet operation middleware
func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5484,6 +5681,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// HandleIndieAuthEndpointPost operation middleware
func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointPost(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.HandleIndieAuthEndpointPost(w, r)
}))
@@ -5497,6 +5695,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointPost(w http.ResponseWr
// GetChatMessages operation middleware
func (siw *ServerInterfaceWrapper) GetChatMessages(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5529,6 +5728,7 @@ func (siw *ServerInterfaceWrapper) GetChatMessages(w http.ResponseWriter, r *htt
// UpdateMessageVisibility operation middleware
func (siw *ServerInterfaceWrapper) UpdateMessageVisibility(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5561,6 +5761,7 @@ func (siw *ServerInterfaceWrapper) UpdateMessageVisibility(w http.ResponseWriter
// RegisterAnonymousChatUserOptions operation middleware
func (siw *ServerInterfaceWrapper) RegisterAnonymousChatUserOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.RegisterAnonymousChatUserOptions(w, r)
}))
@@ -5574,6 +5775,7 @@ func (siw *ServerInterfaceWrapper) RegisterAnonymousChatUserOptions(w http.Respo
// RegisterAnonymousChatUser operation middleware
func (siw *ServerInterfaceWrapper) RegisterAnonymousChatUser(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5614,6 +5816,7 @@ func (siw *ServerInterfaceWrapper) RegisterAnonymousChatUser(w http.ResponseWrit
// UpdateUserEnabled operation middleware
func (siw *ServerInterfaceWrapper) UpdateUserEnabled(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5646,6 +5849,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserEnabled(w http.ResponseWriter, r *h
// GetWebConfig operation middleware
func (siw *ServerInterfaceWrapper) GetWebConfig(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetWebConfig(w, r)
}))
@@ -5659,6 +5863,7 @@ func (siw *ServerInterfaceWrapper) GetWebConfig(w http.ResponseWriter, r *http.R
// GetCustomEmojiList operation middleware
func (siw *ServerInterfaceWrapper) GetCustomEmojiList(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetCustomEmojiList(w, r)
}))
@@ -5672,6 +5877,7 @@ func (siw *ServerInterfaceWrapper) GetCustomEmojiList(w http.ResponseWriter, r *
// GetFederatedServers operation middleware
func (siw *ServerInterfaceWrapper) GetFederatedServers(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetFederatedServers(w, r)
}))
@@ -5685,6 +5891,7 @@ func (siw *ServerInterfaceWrapper) GetFederatedServers(w http.ResponseWriter, r
// GetFollowers operation middleware
func (siw *ServerInterfaceWrapper) GetFollowers(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5730,6 +5937,7 @@ func (siw *ServerInterfaceWrapper) GetFollowers(w http.ResponseWriter, r *http.R
// ExternalGetChatMessages operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetChatMessages(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5749,6 +5957,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetChatMessages(w http.ResponseWriter
// ExternalGetChatMessagesOptions operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetChatMessagesOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ExternalGetChatMessagesOptions(w, r)
}))
@@ -5762,6 +5971,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetChatMessagesOptions(w http.Respons
// SendChatActionOptions operation middleware
func (siw *ServerInterfaceWrapper) SendChatActionOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SendChatActionOptions(w, r)
}))
@@ -5775,6 +5985,7 @@ func (siw *ServerInterfaceWrapper) SendChatActionOptions(w http.ResponseWriter,
// SendChatAction operation middleware
func (siw *ServerInterfaceWrapper) SendChatAction(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5794,6 +6005,7 @@ func (siw *ServerInterfaceWrapper) SendChatAction(w http.ResponseWriter, r *http
// ExternalUpdateMessageVisibilityOptions operation middleware
func (siw *ServerInterfaceWrapper) ExternalUpdateMessageVisibilityOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ExternalUpdateMessageVisibilityOptions(w, r)
}))
@@ -5807,6 +6019,7 @@ func (siw *ServerInterfaceWrapper) ExternalUpdateMessageVisibilityOptions(w http
// ExternalUpdateMessageVisibility operation middleware
func (siw *ServerInterfaceWrapper) ExternalUpdateMessageVisibility(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5826,6 +6039,7 @@ func (siw *ServerInterfaceWrapper) ExternalUpdateMessageVisibility(w http.Respon
// SendIntegrationChatMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SendIntegrationChatMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SendIntegrationChatMessageOptions(w, r)
}))
@@ -5839,6 +6053,7 @@ func (siw *ServerInterfaceWrapper) SendIntegrationChatMessageOptions(w http.Resp
// SendIntegrationChatMessage operation middleware
func (siw *ServerInterfaceWrapper) SendIntegrationChatMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5858,6 +6073,7 @@ func (siw *ServerInterfaceWrapper) SendIntegrationChatMessage(w http.ResponseWri
// SendSystemMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SendSystemMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SendSystemMessageOptions(w, r)
}))
@@ -5871,6 +6087,7 @@ func (siw *ServerInterfaceWrapper) SendSystemMessageOptions(w http.ResponseWrite
// SendSystemMessage operation middleware
func (siw *ServerInterfaceWrapper) SendSystemMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5890,6 +6107,7 @@ func (siw *ServerInterfaceWrapper) SendSystemMessage(w http.ResponseWriter, r *h
// SendSystemMessageToConnectedClientOptions operation middleware
func (siw *ServerInterfaceWrapper) SendSystemMessageToConnectedClientOptions(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5915,6 +6133,7 @@ func (siw *ServerInterfaceWrapper) SendSystemMessageToConnectedClientOptions(w h
// SendSystemMessageToConnectedClient operation middleware
func (siw *ServerInterfaceWrapper) SendSystemMessageToConnectedClient(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -5946,6 +6165,7 @@ func (siw *ServerInterfaceWrapper) SendSystemMessageToConnectedClient(w http.Res
// SendUserMessageOptions operation middleware
func (siw *ServerInterfaceWrapper) SendUserMessageOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.SendUserMessageOptions(w, r)
}))
@@ -5959,6 +6179,7 @@ func (siw *ServerInterfaceWrapper) SendUserMessageOptions(w http.ResponseWriter,
// SendUserMessage operation middleware
func (siw *ServerInterfaceWrapper) SendUserMessage(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5978,6 +6199,7 @@ func (siw *ServerInterfaceWrapper) SendUserMessage(w http.ResponseWriter, r *htt
// ExternalGetConnectedChatClients operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetConnectedChatClients(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -5997,6 +6219,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetConnectedChatClients(w http.Respon
// ExternalGetConnectedChatClientsOptions operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetConnectedChatClientsOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ExternalGetConnectedChatClientsOptions(w, r)
}))
@@ -6010,6 +6233,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetConnectedChatClientsOptions(w http
// ExternalGetUserDetails operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetUserDetails(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -6041,6 +6265,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetUserDetails(w http.ResponseWriter,
// ExternalGetStatus operation middleware
func (siw *ServerInterfaceWrapper) ExternalGetStatus(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -6060,6 +6285,7 @@ func (siw *ServerInterfaceWrapper) ExternalGetStatus(w http.ResponseWriter, r *h
// ExternalSetStreamTitleOptions operation middleware
func (siw *ServerInterfaceWrapper) ExternalSetStreamTitleOptions(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ExternalSetStreamTitleOptions(w, r)
}))
@@ -6073,6 +6299,7 @@ func (siw *ServerInterfaceWrapper) ExternalSetStreamTitleOptions(w http.Response
// ExternalSetStreamTitle operation middleware
func (siw *ServerInterfaceWrapper) ExternalSetStreamTitle(w http.ResponseWriter, r *http.Request) {
+
ctx := r.Context()
ctx = context.WithValue(ctx, BearerAuthScopes, []string{})
@@ -6092,6 +6319,7 @@ func (siw *ServerInterfaceWrapper) ExternalSetStreamTitle(w http.ResponseWriter,
// ReportPlaybackMetrics operation middleware
func (siw *ServerInterfaceWrapper) ReportPlaybackMetrics(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.ReportPlaybackMetrics(w, r)
}))
@@ -6105,6 +6333,7 @@ func (siw *ServerInterfaceWrapper) ReportPlaybackMetrics(w http.ResponseWriter,
// GetUserDetails operation middleware
func (siw *ServerInterfaceWrapper) GetUserDetails(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -6146,6 +6375,7 @@ func (siw *ServerInterfaceWrapper) GetUserDetails(w http.ResponseWriter, r *http
// RegisterForLiveNotifications operation middleware
func (siw *ServerInterfaceWrapper) RegisterForLiveNotifications(w http.ResponseWriter, r *http.Request) {
+
var err error
_ = err
@@ -6178,6 +6408,7 @@ func (siw *ServerInterfaceWrapper) RegisterForLiveNotifications(w http.ResponseW
// Ping operation middleware
func (siw *ServerInterfaceWrapper) Ping(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.Ping(w, r)
}))
@@ -6191,6 +6422,7 @@ func (siw *ServerInterfaceWrapper) Ping(w http.ResponseWriter, r *http.Request)
// RemoteFollow operation middleware
func (siw *ServerInterfaceWrapper) RemoteFollow(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.RemoteFollow(w, r)
}))
@@ -6204,6 +6436,7 @@ func (siw *ServerInterfaceWrapper) RemoteFollow(w http.ResponseWriter, r *http.R
// GetAllSocialPlatforms operation middleware
func (siw *ServerInterfaceWrapper) GetAllSocialPlatforms(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetAllSocialPlatforms(w, r)
}))
@@ -6217,6 +6450,7 @@ func (siw *ServerInterfaceWrapper) GetAllSocialPlatforms(w http.ResponseWriter,
// GetStatus operation middleware
func (siw *ServerInterfaceWrapper) GetStatus(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetStatus(w, r)
}))
@@ -6230,6 +6464,7 @@ func (siw *ServerInterfaceWrapper) GetStatus(w http.ResponseWriter, r *http.Requ
// GetVideoStreamOutputVariants operation middleware
func (siw *ServerInterfaceWrapper) GetVideoStreamOutputVariants(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetVideoStreamOutputVariants(w, r)
}))
@@ -6243,6 +6478,7 @@ func (siw *ServerInterfaceWrapper) GetVideoStreamOutputVariants(w http.ResponseW
// GetYPResponse operation middleware
func (siw *ServerInterfaceWrapper) GetYPResponse(w http.ResponseWriter, r *http.Request) {
+
handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
siw.Handler.GetYPResponse(w, r)
}))