From c1a77d03104f8f48be93f7b3f6259cf5131dd03d Mon Sep 17 00:00:00 2001 From: David Barroso Date: Tue, 17 Sep 2024 09:43:38 +0200 Subject: [PATCH] chore: update schema (#915) * chore: update schema * asd --- cmd/config/example.go | 52 + cmd/config/validate_test.go | 9 +- cmd/configserver/local_test.go | 2 + dockercompose/main_test.go | 2 + go.mod | 2 +- go.sum | 12 +- nhostclient/graphql/models_gen.go | 108 +- project/config.go | 2 + .../mimir/graph/generated/generated.go | 14940 ++++++++++------ .../be/services/mimir/model/cuegraph_gen.go | 2889 ++- .../nhost/be/services/mimir/schema/schema.cue | 59 +- .../services/mimir/schema/schema_gen.graphqls | 332 + vendor/modules.txt | 2 +- 13 files changed, 12660 insertions(+), 5751 deletions(-) diff --git a/cmd/config/example.go b/cmd/config/example.go index 546edb0d..0ff2c2c9 100644 --- a/cmd/config/example.go +++ b/cmd/config/example.go @@ -434,6 +434,58 @@ func commandExample(cCtx *cli.Context) error { //nolint:funlen,maintidx User: "smtpUser", Password: "smtpPassword", }, + Alerting: &model.ConfigGrafanaAlerting{ + Enabled: ptr(true), + }, + Contacts: &model.ConfigGrafanaContacts{ + Emails: []string{ + "engineering@acme.com", + }, + Pagerduty: []*model.ConfigGrafanacontactsPagerduty{ + { + IntegrationKey: "integration-key", + Severity: "critical", + Class: "infra", + Component: "backend", + Group: "group", + }, + }, + Discord: []*model.ConfigGrafanacontactsDiscord{ + { + Url: "https://discord.com/api/webhooks/...", + AvatarUrl: "https://discord.com/api/avatar/...", + }, + }, + Slack: []*model.ConfigGrafanacontactsSlack{ + { + Recipient: "recipient", + Token: "token", + Username: "username", + IconEmoji: "danger", + IconURL: "https://...", + MentionUsers: []string{ + "user1", "user2", + }, + MentionGroups: []string{ + "group1", "group2", + }, + MentionChannel: "channel", + Url: "https://slack.com/api/webhooks/...", + EndpointURL: "https://slack.com/api/endpoint/...", + }, + }, + Webhook: []*model.ConfigGrafanacontactsWebhook{ + { + Url: "https://webhook.example.com", + HttpMethod: "POST", + Username: "user", + Password: "password", + AuthorizationScheme: "Bearer", + AuthorizationCredentials: "token", + MaxAlerts: 10, + }, + }, + }, }, }, } diff --git a/cmd/config/validate_test.go b/cmd/config/validate_test.go index f2024e2d..ff8b5a6a 100644 --- a/cmd/config/validate_test.go +++ b/cmd/config/validate_test.go @@ -202,7 +202,14 @@ func expectedConfig() *model.ConfigConfig { Provider: &model.ConfigProvider{}, Storage: &model.ConfigStorage{Version: ptr("0.3.4")}, Observability: &model.ConfigObservability{ - Grafana: &model.ConfigGrafana{AdminPassword: "grafana-admin-password"}, + Grafana: &model.ConfigGrafana{ + AdminPassword: "grafana-admin-password", + Smtp: nil, + Alerting: &model.ConfigGrafanaAlerting{ + Enabled: ptr(false), + }, + Contacts: &model.ConfigGrafanaContacts{}, + }, }, } } diff --git a/cmd/configserver/local_test.go b/cmd/configserver/local_test.go index ef9c4b68..b8173839 100644 --- a/cmd/configserver/local_test.go +++ b/cmd/configserver/local_test.go @@ -57,6 +57,8 @@ func newApp() *graph.App { Grafana: &model.ConfigGrafana{ AdminPassword: "asdasd", Smtp: nil, + Alerting: nil, + Contacts: nil, }, }, }, diff --git a/dockercompose/main_test.go b/dockercompose/main_test.go index 01dbfe86..3adf8a80 100644 --- a/dockercompose/main_test.go +++ b/dockercompose/main_test.go @@ -362,6 +362,8 @@ func getConfig() *model.ConfigConfig { //nolint:maintidx Grafana: &model.ConfigGrafana{ AdminPassword: "grafanaAdminPassword", Smtp: nil, + Alerting: &model.ConfigGrafanaAlerting{}, //nolint:exhaustruct + Contacts: &model.ConfigGrafanaContacts{}, //nolint:exhaustruct }, }, } diff --git a/go.mod b/go.mod index 8d30ffa1..77eccbc7 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/hashicorp/go-getter v1.7.6 - github.com/nhost/be v0.0.0-20240912110026-065f6e01492e + github.com/nhost/be v0.0.0-20240916113452-cf291042e14b github.com/pelletier/go-toml/v2 v2.2.3 github.com/rs/cors/wrapper/gin v0.0.0-20240830163046-1084d89a1692 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 0ef69e41..2871c194 100644 --- a/go.sum +++ b/go.sum @@ -512,16 +512,8 @@ github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/nhost/be v0.0.0-20240908163314-496619d1918a h1:3+feiRHyXSfWb1DRdk8DePL377tOQ2dA6vAYU8k3fys= -github.com/nhost/be v0.0.0-20240908163314-496619d1918a/go.mod h1:66uhAK6GsdrY7fv2oOQaBAKzMQO0p/pGuf12YuXNHSs= -github.com/nhost/be v0.0.0-20240909125313-7c9f5c9566d0 h1:nGocbayWSf+PivZLt06Si/8+dLMyf+U6vi/me+1hQDQ= -github.com/nhost/be v0.0.0-20240909125313-7c9f5c9566d0/go.mod h1:fnA4FCHOZpOIdUCXvHBav8KhvHEc2bd+xjDDJq+j+To= -github.com/nhost/be v0.0.0-20240909130456-6e51b7cb8f1c h1:Q8ZFSWvmU/l1/YiIfdrMk2pZ/yZQFiG1abJqXZByq4o= -github.com/nhost/be v0.0.0-20240909130456-6e51b7cb8f1c/go.mod h1:fnA4FCHOZpOIdUCXvHBav8KhvHEc2bd+xjDDJq+j+To= -github.com/nhost/be v0.0.0-20240909133931-ac84bc8054d6 h1:/JEKTGU1epbT40S56gHIxgx7cQ0mj6l1varORuedhgw= -github.com/nhost/be v0.0.0-20240909133931-ac84bc8054d6/go.mod h1:fnA4FCHOZpOIdUCXvHBav8KhvHEc2bd+xjDDJq+j+To= -github.com/nhost/be v0.0.0-20240912110026-065f6e01492e h1:pHtjtGzg2b+Y+fPlNnhTCDQ/XXN5n50SCuu8828ytaA= -github.com/nhost/be v0.0.0-20240912110026-065f6e01492e/go.mod h1:fnA4FCHOZpOIdUCXvHBav8KhvHEc2bd+xjDDJq+j+To= +github.com/nhost/be v0.0.0-20240916113452-cf291042e14b h1:4IJ5mofAuOW+ZjYAlufF9O06Pgot/wvD/gTA4IVMcqo= +github.com/nhost/be v0.0.0-20240916113452-cf291042e14b/go.mod h1:fhC4rG9GeDBfXefXth+fbwqG8t1sIzPKrStErP7rt3w= github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= diff --git a/nhostclient/graphql/models_gen.go b/nhostclient/graphql/models_gen.go index 85153e30..4e01cad4 100644 --- a/nhostclient/graphql/models_gen.go +++ b/nhostclient/graphql/models_gen.go @@ -576,8 +576,34 @@ type ConfigGlobalUpdateInput struct { } type ConfigGrafana struct { - AdminPassword string `json:"adminPassword"` - SMTP *ConfigGrafanaSMTP `json:"smtp,omitempty"` + AdminPassword string `json:"adminPassword"` + Alerting *ConfigGrafanaAlerting `json:"alerting,omitempty"` + Contacts *ConfigGrafanaContacts `json:"contacts,omitempty"` + SMTP *ConfigGrafanaSMTP `json:"smtp,omitempty"` +} + +type ConfigGrafanaAlerting struct { + Enabled *bool `json:"enabled,omitempty"` +} + +type ConfigGrafanaAlertingUpdateInput struct { + Enabled *bool `json:"enabled,omitempty"` +} + +type ConfigGrafanaContacts struct { + Discord []*ConfigGrafanacontactsDiscord `json:"discord,omitempty"` + Emails []string `json:"emails,omitempty"` + Pagerduty []*ConfigGrafanacontactsPagerduty `json:"pagerduty,omitempty"` + Slack []*ConfigGrafanacontactsSlack `json:"slack,omitempty"` + Webhook []*ConfigGrafanacontactsWebhook `json:"webhook,omitempty"` +} + +type ConfigGrafanaContactsUpdateInput struct { + Discord []*ConfigGrafanacontactsDiscordUpdateInput `json:"discord,omitempty"` + Emails []string `json:"emails,omitempty"` + Pagerduty []*ConfigGrafanacontactsPagerdutyUpdateInput `json:"pagerduty,omitempty"` + Slack []*ConfigGrafanacontactsSlackUpdateInput `json:"slack,omitempty"` + Webhook []*ConfigGrafanacontactsWebhookUpdateInput `json:"webhook,omitempty"` } type ConfigGrafanaSMTP struct { @@ -597,8 +623,82 @@ type ConfigGrafanaSMTPUpdateInput struct { } type ConfigGrafanaUpdateInput struct { - AdminPassword *string `json:"adminPassword,omitempty"` - SMTP *ConfigGrafanaSMTPUpdateInput `json:"smtp,omitempty"` + AdminPassword *string `json:"adminPassword,omitempty"` + Alerting *ConfigGrafanaAlertingUpdateInput `json:"alerting,omitempty"` + Contacts *ConfigGrafanaContactsUpdateInput `json:"contacts,omitempty"` + SMTP *ConfigGrafanaSMTPUpdateInput `json:"smtp,omitempty"` +} + +type ConfigGrafanacontactsDiscord struct { + AvatarURL string `json:"avatarUrl"` + URL string `json:"url"` +} + +type ConfigGrafanacontactsDiscordUpdateInput struct { + AvatarURL *string `json:"avatarUrl,omitempty"` + URL *string `json:"url,omitempty"` +} + +type ConfigGrafanacontactsPagerduty struct { + Class string `json:"class"` + Component string `json:"component"` + Group string `json:"group"` + IntegrationKey string `json:"integrationKey"` + Severity string `json:"severity"` +} + +type ConfigGrafanacontactsPagerdutyUpdateInput struct { + Class *string `json:"class,omitempty"` + Component *string `json:"component,omitempty"` + Group *string `json:"group,omitempty"` + IntegrationKey *string `json:"integrationKey,omitempty"` + Severity *string `json:"severity,omitempty"` +} + +type ConfigGrafanacontactsSlack struct { + EndpointURL string `json:"endpointURL"` + IconEmoji string `json:"iconEmoji"` + IconURL string `json:"iconURL"` + MentionChannel string `json:"mentionChannel"` + MentionGroups []string `json:"mentionGroups"` + MentionUsers []string `json:"mentionUsers"` + Recipient string `json:"recipient"` + Token string `json:"token"` + URL string `json:"url"` + Username string `json:"username"` +} + +type ConfigGrafanacontactsSlackUpdateInput struct { + EndpointURL *string `json:"endpointURL,omitempty"` + IconEmoji *string `json:"iconEmoji,omitempty"` + IconURL *string `json:"iconURL,omitempty"` + MentionChannel *string `json:"mentionChannel,omitempty"` + MentionGroups []string `json:"mentionGroups,omitempty"` + MentionUsers []string `json:"mentionUsers,omitempty"` + Recipient *string `json:"recipient,omitempty"` + Token *string `json:"token,omitempty"` + URL *string `json:"url,omitempty"` + Username *string `json:"username,omitempty"` +} + +type ConfigGrafanacontactsWebhook struct { + AuthorizationCredentials string `json:"authorizationCredentials"` + AuthorizationScheme string `json:"authorizationScheme"` + HTTPMethod string `json:"httpMethod"` + MaxAlerts int64 `json:"maxAlerts"` + Password string `json:"password"` + URL string `json:"url"` + Username string `json:"username"` +} + +type ConfigGrafanacontactsWebhookUpdateInput struct { + AuthorizationCredentials *string `json:"authorizationCredentials,omitempty"` + AuthorizationScheme *string `json:"authorizationScheme,omitempty"` + HTTPMethod *string `json:"httpMethod,omitempty"` + MaxAlerts *int64 `json:"maxAlerts,omitempty"` + Password *string `json:"password,omitempty"` + URL *string `json:"url,omitempty"` + Username *string `json:"username,omitempty"` } type ConfigGraphql struct { diff --git a/project/config.go b/project/config.go index 79e8f8a2..4a511362 100644 --- a/project/config.go +++ b/project/config.go @@ -28,6 +28,8 @@ func DefaultConfig() (*model.ConfigConfig, error) { Grafana: &model.ConfigGrafana{ AdminPassword: "{{ secrets.GRAFANA_ADMIN_PASSWORD }}", Smtp: nil, + Alerting: &model.ConfigGrafanaAlerting{}, //nolint:exhaustruct + Contacts: &model.ConfigGrafanaContacts{}, //nolint:exhaustruct }, }, } diff --git a/vendor/github.com/nhost/be/services/mimir/graph/generated/generated.go b/vendor/github.com/nhost/be/services/mimir/graph/generated/generated.go index 84451530..a8624d81 100644 --- a/vendor/github.com/nhost/be/services/mimir/graph/generated/generated.go +++ b/vendor/github.com/nhost/be/services/mimir/graph/generated/generated.go @@ -333,9 +333,23 @@ type ComplexityRoot struct { ConfigGrafana struct { AdminPassword func(childComplexity int) int + Alerting func(childComplexity int) int + Contacts func(childComplexity int) int Smtp func(childComplexity int) int } + ConfigGrafanaAlerting struct { + Enabled func(childComplexity int) int + } + + ConfigGrafanaContacts struct { + Discord func(childComplexity int) int + Emails func(childComplexity int) int + Pagerduty func(childComplexity int) int + Slack func(childComplexity int) int + Webhook func(childComplexity int) int + } + ConfigGrafanaSmtp struct { Host func(childComplexity int) int Password func(childComplexity int) int @@ -344,6 +358,42 @@ type ComplexityRoot struct { User func(childComplexity int) int } + ConfigGrafanacontactsDiscord struct { + AvatarUrl func(childComplexity int) int + Url func(childComplexity int) int + } + + ConfigGrafanacontactsPagerduty struct { + Class func(childComplexity int) int + Component func(childComplexity int) int + Group func(childComplexity int) int + IntegrationKey func(childComplexity int) int + Severity func(childComplexity int) int + } + + ConfigGrafanacontactsSlack struct { + EndpointURL func(childComplexity int) int + IconEmoji func(childComplexity int) int + IconURL func(childComplexity int) int + MentionChannel func(childComplexity int) int + MentionGroups func(childComplexity int) int + MentionUsers func(childComplexity int) int + Recipient func(childComplexity int) int + Token func(childComplexity int) int + Url func(childComplexity int) int + Username func(childComplexity int) int + } + + ConfigGrafanacontactsWebhook struct { + AuthorizationCredentials func(childComplexity int) int + AuthorizationScheme func(childComplexity int) int + HttpMethod func(childComplexity int) int + MaxAlerts func(childComplexity int) int + Password func(childComplexity int) int + Url func(childComplexity int) int + Username func(childComplexity int) int + } + ConfigGraphql struct { Security func(childComplexity int) int } @@ -1694,6 +1744,20 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ConfigGrafana.AdminPassword(childComplexity), true + case "ConfigGrafana.alerting": + if e.complexity.ConfigGrafana.Alerting == nil { + break + } + + return e.complexity.ConfigGrafana.Alerting(childComplexity), true + + case "ConfigGrafana.contacts": + if e.complexity.ConfigGrafana.Contacts == nil { + break + } + + return e.complexity.ConfigGrafana.Contacts(childComplexity), true + case "ConfigGrafana.smtp": if e.complexity.ConfigGrafana.Smtp == nil { break @@ -1701,6 +1765,48 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ConfigGrafana.Smtp(childComplexity), true + case "ConfigGrafanaAlerting.enabled": + if e.complexity.ConfigGrafanaAlerting.Enabled == nil { + break + } + + return e.complexity.ConfigGrafanaAlerting.Enabled(childComplexity), true + + case "ConfigGrafanaContacts.discord": + if e.complexity.ConfigGrafanaContacts.Discord == nil { + break + } + + return e.complexity.ConfigGrafanaContacts.Discord(childComplexity), true + + case "ConfigGrafanaContacts.emails": + if e.complexity.ConfigGrafanaContacts.Emails == nil { + break + } + + return e.complexity.ConfigGrafanaContacts.Emails(childComplexity), true + + case "ConfigGrafanaContacts.pagerduty": + if e.complexity.ConfigGrafanaContacts.Pagerduty == nil { + break + } + + return e.complexity.ConfigGrafanaContacts.Pagerduty(childComplexity), true + + case "ConfigGrafanaContacts.slack": + if e.complexity.ConfigGrafanaContacts.Slack == nil { + break + } + + return e.complexity.ConfigGrafanaContacts.Slack(childComplexity), true + + case "ConfigGrafanaContacts.webhook": + if e.complexity.ConfigGrafanaContacts.Webhook == nil { + break + } + + return e.complexity.ConfigGrafanaContacts.Webhook(childComplexity), true + case "ConfigGrafanaSmtp.host": if e.complexity.ConfigGrafanaSmtp.Host == nil { break @@ -1736,6 +1842,174 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.ConfigGrafanaSmtp.User(childComplexity), true + case "ConfigGrafanacontactsDiscord.avatarUrl": + if e.complexity.ConfigGrafanacontactsDiscord.AvatarUrl == nil { + break + } + + return e.complexity.ConfigGrafanacontactsDiscord.AvatarUrl(childComplexity), true + + case "ConfigGrafanacontactsDiscord.url": + if e.complexity.ConfigGrafanacontactsDiscord.Url == nil { + break + } + + return e.complexity.ConfigGrafanacontactsDiscord.Url(childComplexity), true + + case "ConfigGrafanacontactsPagerduty.class": + if e.complexity.ConfigGrafanacontactsPagerduty.Class == nil { + break + } + + return e.complexity.ConfigGrafanacontactsPagerduty.Class(childComplexity), true + + case "ConfigGrafanacontactsPagerduty.component": + if e.complexity.ConfigGrafanacontactsPagerduty.Component == nil { + break + } + + return e.complexity.ConfigGrafanacontactsPagerduty.Component(childComplexity), true + + case "ConfigGrafanacontactsPagerduty.group": + if e.complexity.ConfigGrafanacontactsPagerduty.Group == nil { + break + } + + return e.complexity.ConfigGrafanacontactsPagerduty.Group(childComplexity), true + + case "ConfigGrafanacontactsPagerduty.integrationKey": + if e.complexity.ConfigGrafanacontactsPagerduty.IntegrationKey == nil { + break + } + + return e.complexity.ConfigGrafanacontactsPagerduty.IntegrationKey(childComplexity), true + + case "ConfigGrafanacontactsPagerduty.severity": + if e.complexity.ConfigGrafanacontactsPagerduty.Severity == nil { + break + } + + return e.complexity.ConfigGrafanacontactsPagerduty.Severity(childComplexity), true + + case "ConfigGrafanacontactsSlack.endpointURL": + if e.complexity.ConfigGrafanacontactsSlack.EndpointURL == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.EndpointURL(childComplexity), true + + case "ConfigGrafanacontactsSlack.iconEmoji": + if e.complexity.ConfigGrafanacontactsSlack.IconEmoji == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.IconEmoji(childComplexity), true + + case "ConfigGrafanacontactsSlack.iconURL": + if e.complexity.ConfigGrafanacontactsSlack.IconURL == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.IconURL(childComplexity), true + + case "ConfigGrafanacontactsSlack.mentionChannel": + if e.complexity.ConfigGrafanacontactsSlack.MentionChannel == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.MentionChannel(childComplexity), true + + case "ConfigGrafanacontactsSlack.mentionGroups": + if e.complexity.ConfigGrafanacontactsSlack.MentionGroups == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.MentionGroups(childComplexity), true + + case "ConfigGrafanacontactsSlack.mentionUsers": + if e.complexity.ConfigGrafanacontactsSlack.MentionUsers == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.MentionUsers(childComplexity), true + + case "ConfigGrafanacontactsSlack.recipient": + if e.complexity.ConfigGrafanacontactsSlack.Recipient == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.Recipient(childComplexity), true + + case "ConfigGrafanacontactsSlack.token": + if e.complexity.ConfigGrafanacontactsSlack.Token == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.Token(childComplexity), true + + case "ConfigGrafanacontactsSlack.url": + if e.complexity.ConfigGrafanacontactsSlack.Url == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.Url(childComplexity), true + + case "ConfigGrafanacontactsSlack.username": + if e.complexity.ConfigGrafanacontactsSlack.Username == nil { + break + } + + return e.complexity.ConfigGrafanacontactsSlack.Username(childComplexity), true + + case "ConfigGrafanacontactsWebhook.authorizationCredentials": + if e.complexity.ConfigGrafanacontactsWebhook.AuthorizationCredentials == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.AuthorizationCredentials(childComplexity), true + + case "ConfigGrafanacontactsWebhook.authorizationScheme": + if e.complexity.ConfigGrafanacontactsWebhook.AuthorizationScheme == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.AuthorizationScheme(childComplexity), true + + case "ConfigGrafanacontactsWebhook.httpMethod": + if e.complexity.ConfigGrafanacontactsWebhook.HttpMethod == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.HttpMethod(childComplexity), true + + case "ConfigGrafanacontactsWebhook.maxAlerts": + if e.complexity.ConfigGrafanacontactsWebhook.MaxAlerts == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.MaxAlerts(childComplexity), true + + case "ConfigGrafanacontactsWebhook.password": + if e.complexity.ConfigGrafanacontactsWebhook.Password == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.Password(childComplexity), true + + case "ConfigGrafanacontactsWebhook.url": + if e.complexity.ConfigGrafanacontactsWebhook.Url == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.Url(childComplexity), true + + case "ConfigGrafanacontactsWebhook.username": + if e.complexity.ConfigGrafanacontactsWebhook.Username == nil { + break + } + + return e.complexity.ConfigGrafanacontactsWebhook.Username(childComplexity), true + case "ConfigGraphql.security": if e.complexity.ConfigGraphql.Security == nil { break @@ -3194,10 +3468,22 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputConfigGlobalEnvironmentVariableComparisonExp, ec.unmarshalInputConfigGlobalEnvironmentVariableInsertInput, ec.unmarshalInputConfigGlobalInsertInput, + ec.unmarshalInputConfigGrafanaAlertingComparisonExp, + ec.unmarshalInputConfigGrafanaAlertingInsertInput, ec.unmarshalInputConfigGrafanaComparisonExp, + ec.unmarshalInputConfigGrafanaContactsComparisonExp, + ec.unmarshalInputConfigGrafanaContactsInsertInput, ec.unmarshalInputConfigGrafanaInsertInput, ec.unmarshalInputConfigGrafanaSmtpComparisonExp, ec.unmarshalInputConfigGrafanaSmtpInsertInput, + ec.unmarshalInputConfigGrafanacontactsDiscordComparisonExp, + ec.unmarshalInputConfigGrafanacontactsDiscordInsertInput, + ec.unmarshalInputConfigGrafanacontactsPagerdutyComparisonExp, + ec.unmarshalInputConfigGrafanacontactsPagerdutyInsertInput, + ec.unmarshalInputConfigGrafanacontactsSlackComparisonExp, + ec.unmarshalInputConfigGrafanacontactsSlackInsertInput, + ec.unmarshalInputConfigGrafanacontactsWebhookComparisonExp, + ec.unmarshalInputConfigGrafanacontactsWebhookInsertInput, ec.unmarshalInputConfigGraphqlComparisonExp, ec.unmarshalInputConfigGraphqlInsertInput, ec.unmarshalInputConfigGraphqlSecurityComparisonExp, @@ -5415,16 +5701,28 @@ type ConfigGrafana { """ smtp: ConfigGrafanaSmtp + """ + + """ + alerting: ConfigGrafanaAlerting + """ + + """ + contacts: ConfigGrafanaContacts } input ConfigGrafanaUpdateInput { adminPassword: String smtp: ConfigGrafanaSmtpUpdateInput + alerting: ConfigGrafanaAlertingUpdateInput + contacts: ConfigGrafanaContactsUpdateInput } input ConfigGrafanaInsertInput { adminPassword: String! smtp: ConfigGrafanaSmtpInsertInput + alerting: ConfigGrafanaAlertingInsertInput + contacts: ConfigGrafanaContactsInsertInput } input ConfigGrafanaComparisonExp { @@ -5433,6 +5731,86 @@ input ConfigGrafanaComparisonExp { _or: [ConfigGrafanaComparisonExp!] adminPassword: ConfigStringComparisonExp smtp: ConfigGrafanaSmtpComparisonExp + alerting: ConfigGrafanaAlertingComparisonExp + contacts: ConfigGrafanaContactsComparisonExp +} + +""" + +""" +type ConfigGrafanaAlerting { + """ + + """ + enabled: Boolean +} + +input ConfigGrafanaAlertingUpdateInput { + enabled: Boolean +} + +input ConfigGrafanaAlertingInsertInput { + enabled: Boolean +} + +input ConfigGrafanaAlertingComparisonExp { + _and: [ConfigGrafanaAlertingComparisonExp!] + _not: ConfigGrafanaAlertingComparisonExp + _or: [ConfigGrafanaAlertingComparisonExp!] + enabled: ConfigBooleanComparisonExp +} + +""" + +""" +type ConfigGrafanaContacts { + """ + + """ + emails: [String!] + """ + + """ + pagerduty: [ConfigGrafanacontactsPagerduty!] + """ + + """ + discord: [ConfigGrafanacontactsDiscord!] + """ + + """ + slack: [ConfigGrafanacontactsSlack!] + """ + + """ + webhook: [ConfigGrafanacontactsWebhook!] +} + +input ConfigGrafanaContactsUpdateInput { + emails: [String!] + pagerduty: [ConfigGrafanacontactsPagerdutyUpdateInput!] + discord: [ConfigGrafanacontactsDiscordUpdateInput!] + slack: [ConfigGrafanacontactsSlackUpdateInput!] + webhook: [ConfigGrafanacontactsWebhookUpdateInput!] +} + +input ConfigGrafanaContactsInsertInput { + emails: [String!] + pagerduty: [ConfigGrafanacontactsPagerdutyInsertInput!] + discord: [ConfigGrafanacontactsDiscordInsertInput!] + slack: [ConfigGrafanacontactsSlackInsertInput!] + webhook: [ConfigGrafanacontactsWebhookInsertInput!] +} + +input ConfigGrafanaContactsComparisonExp { + _and: [ConfigGrafanaContactsComparisonExp!] + _not: ConfigGrafanaContactsComparisonExp + _or: [ConfigGrafanaContactsComparisonExp!] + emails: ConfigStringComparisonExp + pagerduty: ConfigGrafanacontactsPagerdutyComparisonExp + discord: ConfigGrafanacontactsDiscordComparisonExp + slack: ConfigGrafanacontactsSlackComparisonExp + webhook: ConfigGrafanacontactsWebhookComparisonExp } """ @@ -5490,6 +5868,246 @@ input ConfigGrafanaSmtpComparisonExp { """ +""" +type ConfigGrafanacontactsDiscord { + """ + + """ + url: String! + """ + + """ + avatarUrl: String! +} + +input ConfigGrafanacontactsDiscordUpdateInput { + url: String + avatarUrl: String +} + +input ConfigGrafanacontactsDiscordInsertInput { + url: String! + avatarUrl: String! +} + +input ConfigGrafanacontactsDiscordComparisonExp { + _and: [ConfigGrafanacontactsDiscordComparisonExp!] + _not: ConfigGrafanacontactsDiscordComparisonExp + _or: [ConfigGrafanacontactsDiscordComparisonExp!] + url: ConfigStringComparisonExp + avatarUrl: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsPagerduty { + """ + + """ + integrationKey: String! + """ + + """ + severity: String! + """ + + """ + class: String! + """ + + """ + component: String! + """ + + """ + group: String! +} + +input ConfigGrafanacontactsPagerdutyUpdateInput { + integrationKey: String + severity: String + class: String + component: String + group: String +} + +input ConfigGrafanacontactsPagerdutyInsertInput { + integrationKey: String! + severity: String! + class: String! + component: String! + group: String! +} + +input ConfigGrafanacontactsPagerdutyComparisonExp { + _and: [ConfigGrafanacontactsPagerdutyComparisonExp!] + _not: ConfigGrafanacontactsPagerdutyComparisonExp + _or: [ConfigGrafanacontactsPagerdutyComparisonExp!] + integrationKey: ConfigStringComparisonExp + severity: ConfigStringComparisonExp + class: ConfigStringComparisonExp + component: ConfigStringComparisonExp + group: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsSlack { + """ + + """ + recipient: String! + """ + + """ + token: String! + """ + + """ + username: String! + """ + + """ + iconEmoji: String! + """ + + """ + iconURL: String! + """ + + """ + mentionUsers: [String!]! + """ + + """ + mentionGroups: [String!]! + """ + + """ + mentionChannel: String! + """ + + """ + url: String! + """ + + """ + endpointURL: String! +} + +input ConfigGrafanacontactsSlackUpdateInput { + recipient: String + token: String + username: String + iconEmoji: String + iconURL: String + mentionUsers: [String!] + mentionGroups: [String!] + mentionChannel: String + url: String + endpointURL: String +} + +input ConfigGrafanacontactsSlackInsertInput { + recipient: String! + token: String! + username: String! + iconEmoji: String! + iconURL: String! + mentionUsers: [String!]! + mentionGroups: [String!]! + mentionChannel: String! + url: String! + endpointURL: String! +} + +input ConfigGrafanacontactsSlackComparisonExp { + _and: [ConfigGrafanacontactsSlackComparisonExp!] + _not: ConfigGrafanacontactsSlackComparisonExp + _or: [ConfigGrafanacontactsSlackComparisonExp!] + recipient: ConfigStringComparisonExp + token: ConfigStringComparisonExp + username: ConfigStringComparisonExp + iconEmoji: ConfigStringComparisonExp + iconURL: ConfigStringComparisonExp + mentionUsers: ConfigStringComparisonExp + mentionGroups: ConfigStringComparisonExp + mentionChannel: ConfigStringComparisonExp + url: ConfigStringComparisonExp + endpointURL: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsWebhook { + """ + + """ + url: String! + """ + + """ + httpMethod: String! + """ + + """ + username: String! + """ + + """ + password: String! + """ + + """ + authorizationScheme: String! + """ + + """ + authorizationCredentials: String! + """ + + """ + maxAlerts: Int! +} + +input ConfigGrafanacontactsWebhookUpdateInput { + url: String + httpMethod: String + username: String + password: String + authorizationScheme: String + authorizationCredentials: String + maxAlerts: Int +} + +input ConfigGrafanacontactsWebhookInsertInput { + url: String! + httpMethod: String! + username: String! + password: String! + authorizationScheme: String! + authorizationCredentials: String! + maxAlerts: Int! +} + +input ConfigGrafanacontactsWebhookComparisonExp { + _and: [ConfigGrafanacontactsWebhookComparisonExp!] + _not: ConfigGrafanacontactsWebhookComparisonExp + _or: [ConfigGrafanacontactsWebhookComparisonExp!] + url: ConfigStringComparisonExp + httpMethod: ConfigStringComparisonExp + username: ConfigStringComparisonExp + password: ConfigStringComparisonExp + authorizationScheme: ConfigStringComparisonExp + authorizationCredentials: ConfigStringComparisonExp + maxAlerts: ConfigIntComparisonExp +} + +""" + """ type ConfigGraphql { """ @@ -14796,8 +15414,8 @@ func (ec *executionContext) fieldContext_ConfigGrafana_smtp(_ context.Context, f return fc, nil } -func (ec *executionContext) _ConfigGrafanaSmtp_host(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGrafanaSmtp_host(ctx, field) +func (ec *executionContext) _ConfigGrafana_alerting(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafana) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafana_alerting(ctx, field) if err != nil { return graphql.Null } @@ -14810,38 +15428,39 @@ func (ec *executionContext) _ConfigGrafanaSmtp_host(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Host, nil + return obj.Alerting, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigGrafanaAlerting) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigGrafanaAlerting2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlerting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_host(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafana_alerting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGrafanaSmtp", + Object: "ConfigGrafana", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "enabled": + return ec.fieldContext_ConfigGrafanaAlerting_enabled(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanaAlerting", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigGrafanaSmtp_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGrafanaSmtp_port(ctx, field) +func (ec *executionContext) _ConfigGrafana_contacts(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafana) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafana_contacts(ctx, field) if err != nil { return graphql.Null } @@ -14854,38 +15473,47 @@ func (ec *executionContext) _ConfigGrafanaSmtp_port(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.Contacts, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint16) + res := resTmp.(*model.ConfigGrafanaContacts) fc.Result = res - return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) + return ec.marshalOConfigGrafanaContacts2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContacts(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafana_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGrafanaSmtp", + Object: "ConfigGrafana", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigPort does not have child fields") + switch field.Name { + case "emails": + return ec.fieldContext_ConfigGrafanaContacts_emails(ctx, field) + case "pagerduty": + return ec.fieldContext_ConfigGrafanaContacts_pagerduty(ctx, field) + case "discord": + return ec.fieldContext_ConfigGrafanaContacts_discord(ctx, field) + case "slack": + return ec.fieldContext_ConfigGrafanaContacts_slack(ctx, field) + case "webhook": + return ec.fieldContext_ConfigGrafanaContacts_webhook(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanaContacts", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigGrafanaSmtp_sender(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGrafanaSmtp_sender(ctx, field) +func (ec *executionContext) _ConfigGrafanaAlerting_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaAlerting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaAlerting_enabled(ctx, field) if err != nil { return graphql.Null } @@ -14898,38 +15526,35 @@ func (ec *executionContext) _ConfigGrafanaSmtp_sender(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sender, nil + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_sender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaAlerting_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGrafanaSmtp", + Object: "ConfigGrafanaAlerting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigGrafanaSmtp_user(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGrafanaSmtp_user(ctx, field) +func (ec *executionContext) _ConfigGrafanaContacts_emails(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaContacts) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaContacts_emails(ctx, field) if err != nil { return graphql.Null } @@ -14942,26 +15567,23 @@ func (ec *executionContext) _ConfigGrafanaSmtp_user(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.Emails, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaContacts_emails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGrafanaSmtp", + Object: "ConfigGrafanaContacts", Field: field, IsMethod: false, IsResolver: false, @@ -14972,8 +15594,8 @@ func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_user(_ context.Contex return fc, nil } -func (ec *executionContext) _ConfigGrafanaSmtp_password(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGrafanaSmtp_password(ctx, field) +func (ec *executionContext) _ConfigGrafanaContacts_pagerduty(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaContacts) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaContacts_pagerduty(ctx, field) if err != nil { return graphql.Null } @@ -14986,38 +15608,47 @@ func (ec *executionContext) _ConfigGrafanaSmtp_password(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Password, nil + return obj.Pagerduty, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*model.ConfigGrafanacontactsPagerduty) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigGrafanacontactsPagerduty2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaContacts_pagerduty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGrafanaSmtp", + Object: "ConfigGrafanaContacts", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "integrationKey": + return ec.fieldContext_ConfigGrafanacontactsPagerduty_integrationKey(ctx, field) + case "severity": + return ec.fieldContext_ConfigGrafanacontactsPagerduty_severity(ctx, field) + case "class": + return ec.fieldContext_ConfigGrafanacontactsPagerduty_class(ctx, field) + case "component": + return ec.fieldContext_ConfigGrafanacontactsPagerduty_component(ctx, field) + case "group": + return ec.fieldContext_ConfigGrafanacontactsPagerduty_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanacontactsPagerduty", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigGraphql_security(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphql) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGraphql_security(ctx, field) +func (ec *executionContext) _ConfigGrafanaContacts_discord(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaContacts) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaContacts_discord(ctx, field) if err != nil { return graphql.Null } @@ -15030,7 +15661,7 @@ func (ec *executionContext) _ConfigGraphql_security(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Security, nil + return obj.Discord, nil }) if err != nil { ec.Error(ctx, err) @@ -15039,32 +15670,32 @@ func (ec *executionContext) _ConfigGraphql_security(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigGraphqlSecurity) + res := resTmp.([]*model.ConfigGrafanacontactsDiscord) fc.Result = res - return ec.marshalOConfigGraphqlSecurity2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlSecurity(ctx, field.Selections, res) + return ec.marshalOConfigGrafanacontactsDiscord2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGraphql_security(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaContacts_discord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGraphql", + Object: "ConfigGrafanaContacts", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "forbidAminSecret": - return ec.fieldContext_ConfigGraphqlSecurity_forbidAminSecret(ctx, field) - case "maxDepthQueries": - return ec.fieldContext_ConfigGraphqlSecurity_maxDepthQueries(ctx, field) + case "url": + return ec.fieldContext_ConfigGrafanacontactsDiscord_url(ctx, field) + case "avatarUrl": + return ec.fieldContext_ConfigGrafanacontactsDiscord_avatarUrl(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigGraphqlSecurity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanacontactsDiscord", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigGraphqlSecurity_forbidAminSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphqlSecurity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGraphqlSecurity_forbidAminSecret(ctx, field) +func (ec *executionContext) _ConfigGrafanaContacts_slack(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaContacts) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaContacts_slack(ctx, field) if err != nil { return graphql.Null } @@ -15077,7 +15708,7 @@ func (ec *executionContext) _ConfigGraphqlSecurity_forbidAminSecret(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ForbidAminSecret, nil + return obj.Slack, nil }) if err != nil { ec.Error(ctx, err) @@ -15086,26 +15717,48 @@ func (ec *executionContext) _ConfigGraphqlSecurity_forbidAminSecret(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.([]*model.ConfigGrafanacontactsSlack) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOConfigGrafanacontactsSlack2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGraphqlSecurity_forbidAminSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaContacts_slack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGraphqlSecurity", + Object: "ConfigGrafanaContacts", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "recipient": + return ec.fieldContext_ConfigGrafanacontactsSlack_recipient(ctx, field) + case "token": + return ec.fieldContext_ConfigGrafanacontactsSlack_token(ctx, field) + case "username": + return ec.fieldContext_ConfigGrafanacontactsSlack_username(ctx, field) + case "iconEmoji": + return ec.fieldContext_ConfigGrafanacontactsSlack_iconEmoji(ctx, field) + case "iconURL": + return ec.fieldContext_ConfigGrafanacontactsSlack_iconURL(ctx, field) + case "mentionUsers": + return ec.fieldContext_ConfigGrafanacontactsSlack_mentionUsers(ctx, field) + case "mentionGroups": + return ec.fieldContext_ConfigGrafanacontactsSlack_mentionGroups(ctx, field) + case "mentionChannel": + return ec.fieldContext_ConfigGrafanacontactsSlack_mentionChannel(ctx, field) + case "url": + return ec.fieldContext_ConfigGrafanacontactsSlack_url(ctx, field) + case "endpointURL": + return ec.fieldContext_ConfigGrafanacontactsSlack_endpointURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanacontactsSlack", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigGraphqlSecurity_maxDepthQueries(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphqlSecurity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigGraphqlSecurity_maxDepthQueries(ctx, field) +func (ec *executionContext) _ConfigGrafanaContacts_webhook(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaContacts) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaContacts_webhook(ctx, field) if err != nil { return graphql.Null } @@ -15118,7 +15771,7 @@ func (ec *executionContext) _ConfigGraphqlSecurity_maxDepthQueries(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxDepthQueries, nil + return obj.Webhook, nil }) if err != nil { ec.Error(ctx, err) @@ -15127,26 +15780,42 @@ func (ec *executionContext) _ConfigGraphqlSecurity_maxDepthQueries(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*uint) + res := resTmp.([]*model.ConfigGrafanacontactsWebhook) fc.Result = res - return ec.marshalOConfigUint2ᚖuint(ctx, field.Selections, res) + return ec.marshalOConfigGrafanacontactsWebhook2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigGraphqlSecurity_maxDepthQueries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaContacts_webhook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigGraphqlSecurity", + Object: "ConfigGrafanaContacts", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint does not have child fields") + switch field.Name { + case "url": + return ec.fieldContext_ConfigGrafanacontactsWebhook_url(ctx, field) + case "httpMethod": + return ec.fieldContext_ConfigGrafanacontactsWebhook_httpMethod(ctx, field) + case "username": + return ec.fieldContext_ConfigGrafanacontactsWebhook_username(ctx, field) + case "password": + return ec.fieldContext_ConfigGrafanacontactsWebhook_password(ctx, field) + case "authorizationScheme": + return ec.fieldContext_ConfigGrafanacontactsWebhook_authorizationScheme(ctx, field) + case "authorizationCredentials": + return ec.fieldContext_ConfigGrafanacontactsWebhook_authorizationCredentials(ctx, field) + case "maxAlerts": + return ec.fieldContext_ConfigGrafanacontactsWebhook_maxAlerts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafanacontactsWebhook", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_version(ctx, field) +func (ec *executionContext) _ConfigGrafanaSmtp_host(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaSmtp_host(ctx, field) if err != nil { return graphql.Null } @@ -15159,23 +15828,26 @@ func (ec *executionContext) _ConfigHasura_version(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Host, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_host(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanaSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -15186,8 +15858,8 @@ func (ec *executionContext) fieldContext_ConfigHasura_version(_ context.Context, return fc, nil } -func (ec *executionContext) _ConfigHasura_jwtSecrets(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_jwtSecrets(ctx, field) +func (ec *executionContext) _ConfigGrafanaSmtp_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaSmtp_port(ctx, field) if err != nil { return graphql.Null } @@ -15200,59 +15872,38 @@ func (ec *executionContext) _ConfigHasura_jwtSecrets(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JwtSecrets, nil + return obj.Port, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.ConfigJWTSecret) + res := resTmp.(uint16) fc.Result = res - return ec.marshalOConfigJWTSecret2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigJWTSecretᚄ(ctx, field.Selections, res) + return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_jwtSecrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanaSmtp", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "type": - return ec.fieldContext_ConfigJWTSecret_type(ctx, field) - case "key": - return ec.fieldContext_ConfigJWTSecret_key(ctx, field) - case "jwk_url": - return ec.fieldContext_ConfigJWTSecret_jwk_url(ctx, field) - case "claims_format": - return ec.fieldContext_ConfigJWTSecret_claims_format(ctx, field) - case "audience": - return ec.fieldContext_ConfigJWTSecret_audience(ctx, field) - case "issuer": - return ec.fieldContext_ConfigJWTSecret_issuer(ctx, field) - case "allowed_skew": - return ec.fieldContext_ConfigJWTSecret_allowed_skew(ctx, field) - case "header": - return ec.fieldContext_ConfigJWTSecret_header(ctx, field) - case "claims_map": - return ec.fieldContext_ConfigJWTSecret_claims_map(ctx, field) - case "claims_namespace": - return ec.fieldContext_ConfigJWTSecret_claims_namespace(ctx, field) - case "claims_namespace_path": - return ec.fieldContext_ConfigJWTSecret_claims_namespace_path(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigJWTSecret", field.Name) + return nil, errors.New("field of type ConfigPort does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_adminSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_adminSecret(ctx, field) +func (ec *executionContext) _ConfigGrafanaSmtp_sender(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaSmtp_sender(ctx, field) if err != nil { return graphql.Null } @@ -15265,7 +15916,7 @@ func (ec *executionContext) _ConfigHasura_adminSecret(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AdminSecret, nil + return obj.Sender, nil }) if err != nil { ec.Error(ctx, err) @@ -15282,9 +15933,9 @@ func (ec *executionContext) _ConfigHasura_adminSecret(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_adminSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_sender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanaSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -15295,8 +15946,8 @@ func (ec *executionContext) fieldContext_ConfigHasura_adminSecret(_ context.Cont return fc, nil } -func (ec *executionContext) _ConfigHasura_webhookSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_webhookSecret(ctx, field) +func (ec *executionContext) _ConfigGrafanaSmtp_user(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaSmtp_user(ctx, field) if err != nil { return graphql.Null } @@ -15309,7 +15960,7 @@ func (ec *executionContext) _ConfigHasura_webhookSecret(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WebhookSecret, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -15326,9 +15977,9 @@ func (ec *executionContext) _ConfigHasura_webhookSecret(ctx context.Context, fie return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_webhookSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanaSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -15339,8 +15990,8 @@ func (ec *executionContext) fieldContext_ConfigHasura_webhookSecret(_ context.Co return fc, nil } -func (ec *executionContext) _ConfigHasura_settings(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_settings(ctx, field) +func (ec *executionContext) _ConfigGrafanaSmtp_password(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanaSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanaSmtp_password(ctx, field) if err != nil { return graphql.Null } @@ -15353,55 +16004,38 @@ func (ec *executionContext) _ConfigHasura_settings(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Settings, nil + return obj.Password, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigHasuraSettings) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigHasuraSettings2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraSettings(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_settings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanaSmtp_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanaSmtp", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "corsDomain": - return ec.fieldContext_ConfigHasuraSettings_corsDomain(ctx, field) - case "devMode": - return ec.fieldContext_ConfigHasuraSettings_devMode(ctx, field) - case "enableAllowList": - return ec.fieldContext_ConfigHasuraSettings_enableAllowList(ctx, field) - case "enableConsole": - return ec.fieldContext_ConfigHasuraSettings_enableConsole(ctx, field) - case "enableRemoteSchemaPermissions": - return ec.fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx, field) - case "enabledAPIs": - return ec.fieldContext_ConfigHasuraSettings_enabledAPIs(ctx, field) - case "inferFunctionPermissions": - return ec.fieldContext_ConfigHasuraSettings_inferFunctionPermissions(ctx, field) - case "liveQueriesMultiplexedRefetchInterval": - return ec.fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx, field) - case "stringifyNumericTypes": - return ec.fieldContext_ConfigHasuraSettings_stringifyNumericTypes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraSettings", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_authHook(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_authHook(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsDiscord_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsDiscord) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsDiscord_url(ctx, field) if err != nil { return graphql.Null } @@ -15414,43 +16048,38 @@ func (ec *executionContext) _ConfigHasura_authHook(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthHook, nil + return obj.Url, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigHasuraAuthHook) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigHasuraAuthHook2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraAuthHook(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_authHook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsDiscord_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanacontactsDiscord", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "url": - return ec.fieldContext_ConfigHasuraAuthHook_url(ctx, field) - case "mode": - return ec.fieldContext_ConfigHasuraAuthHook_mode(ctx, field) - case "sendRequestBody": - return ec.fieldContext_ConfigHasuraAuthHook_sendRequestBody(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraAuthHook", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_logs(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_logs(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsDiscord_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsDiscord) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsDiscord_avatarUrl(ctx, field) if err != nil { return graphql.Null } @@ -15463,39 +16092,38 @@ func (ec *executionContext) _ConfigHasura_logs(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Logs, nil + return obj.AvatarUrl, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigHasuraLogs) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigHasuraLogs2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraLogs(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_logs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsDiscord_avatarUrl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanacontactsDiscord", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "level": - return ec.fieldContext_ConfigHasuraLogs_level(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraLogs", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_events(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_events(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty_integrationKey(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsPagerduty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsPagerduty_integrationKey(ctx, field) if err != nil { return graphql.Null } @@ -15508,39 +16136,38 @@ func (ec *executionContext) _ConfigHasura_events(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events, nil + return obj.IntegrationKey, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigHasuraEvents) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigHasuraEvents2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraEvents(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsPagerduty_integrationKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanacontactsPagerduty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "httpPoolSize": - return ec.fieldContext_ConfigHasuraEvents_httpPoolSize(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraEvents", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_resources(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty_severity(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsPagerduty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsPagerduty_severity(ctx, field) if err != nil { return graphql.Null } @@ -15553,45 +16180,38 @@ func (ec *executionContext) _ConfigHasura_resources(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resources, nil + return obj.Severity, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigResources) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResources(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsPagerduty_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanacontactsPagerduty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "compute": - return ec.fieldContext_ConfigResources_compute(ctx, field) - case "replicas": - return ec.fieldContext_ConfigResources_replicas(ctx, field) - case "autoscaler": - return ec.fieldContext_ConfigResources_autoscaler(ctx, field) - case "networking": - return ec.fieldContext_ConfigResources_networking(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigResources", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasura_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasura_rateLimit(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty_class(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsPagerduty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsPagerduty_class(ctx, field) if err != nil { return graphql.Null } @@ -15604,41 +16224,38 @@ func (ec *executionContext) _ConfigHasura_rateLimit(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateLimit, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigRateLimit) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasura_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsPagerduty_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasura", + Object: "ConfigGrafanacontactsPagerduty", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "limit": - return ec.fieldContext_ConfigRateLimit_limit(ctx, field) - case "interval": - return ec.fieldContext_ConfigRateLimit_interval(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraAuthHook_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraAuthHook_url(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty_component(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsPagerduty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsPagerduty_component(ctx, field) if err != nil { return graphql.Null } @@ -15651,7 +16268,7 @@ func (ec *executionContext) _ConfigHasuraAuthHook_url(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Url, nil + return obj.Component, nil }) if err != nil { ec.Error(ctx, err) @@ -15668,9 +16285,9 @@ func (ec *executionContext) _ConfigHasuraAuthHook_url(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsPagerduty_component(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraAuthHook", + Object: "ConfigGrafanacontactsPagerduty", Field: field, IsMethod: false, IsResolver: false, @@ -15681,8 +16298,8 @@ func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_url(_ context.Cont return fc, nil } -func (ec *executionContext) _ConfigHasuraAuthHook_mode(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraAuthHook_mode(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty_group(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsPagerduty) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsPagerduty_group(ctx, field) if err != nil { return graphql.Null } @@ -15695,23 +16312,26 @@ func (ec *executionContext) _ConfigHasuraAuthHook_mode(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Mode, nil + return obj.Group, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsPagerduty_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraAuthHook", + Object: "ConfigGrafanacontactsPagerduty", Field: field, IsMethod: false, IsResolver: false, @@ -15722,8 +16342,8 @@ func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_mode(_ context.Con return fc, nil } -func (ec *executionContext) _ConfigHasuraAuthHook_sendRequestBody(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraAuthHook_sendRequestBody(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_recipient(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_recipient(ctx, field) if err != nil { return graphql.Null } @@ -15736,35 +16356,38 @@ func (ec *executionContext) _ConfigHasuraAuthHook_sendRequestBody(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SendRequestBody, nil + return obj.Recipient, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_sendRequestBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_recipient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraAuthHook", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraEvents_httpPoolSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraEvents) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraEvents_httpPoolSize(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_token(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_token(ctx, field) if err != nil { return graphql.Null } @@ -15777,35 +16400,38 @@ func (ec *executionContext) _ConfigHasuraEvents_httpPoolSize(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HttpPoolSize, nil + return obj.Token, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*uint32) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraEvents_httpPoolSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraEvents", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraLogs_level(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraLogs) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraLogs_level(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_username(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_username(ctx, field) if err != nil { return graphql.Null } @@ -15818,23 +16444,26 @@ func (ec *executionContext) _ConfigHasuraLogs_level(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Level, nil + return obj.Username, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraLogs_level(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraLogs", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, @@ -15845,8 +16474,8 @@ func (ec *executionContext) fieldContext_ConfigHasuraLogs_level(_ context.Contex return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_corsDomain(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_corsDomain(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_iconEmoji(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_iconEmoji(ctx, field) if err != nil { return graphql.Null } @@ -15859,35 +16488,38 @@ func (ec *executionContext) _ConfigHasuraSettings_corsDomain(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CorsDomain, nil + return obj.IconEmoji, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigUrl2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_corsDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_iconEmoji(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUrl does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_devMode(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_devMode(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_iconURL(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_iconURL(ctx, field) if err != nil { return graphql.Null } @@ -15900,35 +16532,38 @@ func (ec *executionContext) _ConfigHasuraSettings_devMode(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DevMode, nil + return obj.IconURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_devMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_iconURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_enableAllowList(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_enableAllowList(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_mentionUsers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_mentionUsers(ctx, field) if err != nil { return graphql.Null } @@ -15941,35 +16576,38 @@ func (ec *executionContext) _ConfigHasuraSettings_enableAllowList(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnableAllowList, nil + return obj.MentionUsers, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.([]string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableAllowList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_mentionUsers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_enableConsole(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_enableConsole(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_mentionGroups(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_mentionGroups(ctx, field) if err != nil { return graphql.Null } @@ -15982,35 +16620,38 @@ func (ec *executionContext) _ConfigHasuraSettings_enableConsole(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnableConsole, nil + return obj.MentionGroups, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.([]string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableConsole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_mentionGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_mentionChannel(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_mentionChannel(ctx, field) if err != nil { return graphql.Null } @@ -16023,35 +16664,38 @@ func (ec *executionContext) _ConfigHasuraSettings_enableRemoteSchemaPermissions( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnableRemoteSchemaPermissions, nil + return obj.MentionChannel, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_mentionChannel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_enabledAPIs(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_enabledAPIs(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_url(ctx, field) if err != nil { return graphql.Null } @@ -16064,35 +16708,38 @@ func (ec *executionContext) _ConfigHasuraSettings_enabledAPIs(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnabledAPIs, nil + return obj.Url, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigHasuraAPIs2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_enabledAPIs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigHasuraAPIs does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_inferFunctionPermissions(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_inferFunctionPermissions(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsSlack_endpointURL(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsSlack) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsSlack_endpointURL(ctx, field) if err != nil { return graphql.Null } @@ -16105,35 +16752,38 @@ func (ec *executionContext) _ConfigHasuraSettings_inferFunctionPermissions(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InferFunctionPermissions, nil + return obj.EndpointURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_inferFunctionPermissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsSlack_endpointURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsSlack", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_url(ctx, field) if err != nil { return graphql.Null } @@ -16146,35 +16796,38 @@ func (ec *executionContext) _ConfigHasuraSettings_liveQueriesMultiplexedRefetchI }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LiveQueriesMultiplexedRefetchInterval, nil + return obj.Url, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*uint32) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHasuraSettings_stringifyNumericTypes(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHasuraSettings_stringifyNumericTypes(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_httpMethod(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_httpMethod(ctx, field) if err != nil { return graphql.Null } @@ -16187,35 +16840,38 @@ func (ec *executionContext) _ConfigHasuraSettings_stringifyNumericTypes(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StringifyNumericTypes, nil + return obj.HttpMethod, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHasuraSettings_stringifyNumericTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_httpMethod(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHasuraSettings", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHealthCheck_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHealthCheck_port(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_username(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_username(ctx, field) if err != nil { return graphql.Null } @@ -16228,7 +16884,7 @@ func (ec *executionContext) _ConfigHealthCheck_port(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.Username, nil }) if err != nil { ec.Error(ctx, err) @@ -16240,26 +16896,26 @@ func (ec *executionContext) _ConfigHealthCheck_port(ctx context.Context, field g } return graphql.Null } - res := resTmp.(uint16) + res := resTmp.(string) fc.Result = res - return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHealthCheck_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_username(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHealthCheck", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigPort does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHealthCheck_initialDelaySeconds(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHealthCheck_initialDelaySeconds(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_password(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_password(ctx, field) if err != nil { return graphql.Null } @@ -16272,35 +16928,38 @@ func (ec *executionContext) _ConfigHealthCheck_initialDelaySeconds(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InitialDelaySeconds, nil + return obj.Password, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*int) + res := resTmp.(string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHealthCheck_initialDelaySeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHealthCheck", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigHealthCheck_probePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigHealthCheck_probePeriodSeconds(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_authorizationScheme(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_authorizationScheme(ctx, field) if err != nil { return graphql.Null } @@ -16313,35 +16972,38 @@ func (ec *executionContext) _ConfigHealthCheck_probePeriodSeconds(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProbePeriodSeconds, nil + return obj.AuthorizationScheme, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*int) + res := resTmp.(string) fc.Result = res - return ec.marshalOInt2ᚖint(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigHealthCheck_probePeriodSeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_authorizationScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigHealthCheck", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigIngress_fqdn(ctx context.Context, field graphql.CollectedField, obj *model.ConfigIngress) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigIngress_fqdn(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_authorizationCredentials(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_authorizationCredentials(ctx, field) if err != nil { return graphql.Null } @@ -16354,23 +17016,26 @@ func (ec *executionContext) _ConfigIngress_fqdn(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Fqdn, nil + return obj.AuthorizationCredentials, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigIngress_fqdn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_authorizationCredentials(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigIngress", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, @@ -16381,8 +17046,8 @@ func (ec *executionContext) fieldContext_ConfigIngress_fqdn(_ context.Context, f return fc, nil } -func (ec *executionContext) _ConfigInsertConfigResponse_config(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigInsertConfigResponse_config(ctx, field) +func (ec *executionContext) _ConfigGrafanacontactsWebhook_maxAlerts(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGrafanacontactsWebhook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGrafanacontactsWebhook_maxAlerts(ctx, field) if err != nil { return graphql.Null } @@ -16395,7 +17060,7 @@ func (ec *executionContext) _ConfigInsertConfigResponse_config(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Config, nil + return obj.MaxAlerts, nil }) if err != nil { ec.Error(ctx, err) @@ -16407,48 +17072,26 @@ func (ec *executionContext) _ConfigInsertConfigResponse_config(ctx context.Conte } return graphql.Null } - res := resTmp.(*model.ConfigConfig) + res := resTmp.(int) fc.Result = res - return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGrafanacontactsWebhook_maxAlerts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigInsertConfigResponse", + Object: "ConfigGrafanacontactsWebhook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "global": - return ec.fieldContext_ConfigConfig_global(ctx, field) - case "hasura": - return ec.fieldContext_ConfigConfig_hasura(ctx, field) - case "graphql": - return ec.fieldContext_ConfigConfig_graphql(ctx, field) - case "functions": - return ec.fieldContext_ConfigConfig_functions(ctx, field) - case "auth": - return ec.fieldContext_ConfigConfig_auth(ctx, field) - case "postgres": - return ec.fieldContext_ConfigConfig_postgres(ctx, field) - case "provider": - return ec.fieldContext_ConfigConfig_provider(ctx, field) - case "storage": - return ec.fieldContext_ConfigConfig_storage(ctx, field) - case "ai": - return ec.fieldContext_ConfigConfig_ai(ctx, field) - case "observability": - return ec.fieldContext_ConfigConfig_observability(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigInsertConfigResponse_systemConfig(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigInsertConfigResponse_systemConfig(ctx, field) +func (ec *executionContext) _ConfigGraphql_security(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphql) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGraphql_security(ctx, field) if err != nil { return graphql.Null } @@ -16461,46 +17104,41 @@ func (ec *executionContext) _ConfigInsertConfigResponse_systemConfig(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SystemConfig, nil + return obj.Security, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfig) + res := resTmp.(*model.ConfigGraphqlSecurity) fc.Result = res - return ec.marshalNConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) + return ec.marshalOConfigGraphqlSecurity2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlSecurity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_systemConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGraphql_security(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigInsertConfigResponse", + Object: "ConfigGraphql", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "auth": - return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) - case "graphql": - return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) - case "postgres": - return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) + case "forbidAminSecret": + return ec.fieldContext_ConfigGraphqlSecurity_forbidAminSecret(ctx, field) + case "maxDepthQueries": + return ec.fieldContext_ConfigGraphqlSecurity_maxDepthQueries(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigGraphqlSecurity", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigInsertConfigResponse_secrets(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigInsertConfigResponse_secrets(ctx, field) +func (ec *executionContext) _ConfigGraphqlSecurity_forbidAminSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphqlSecurity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGraphqlSecurity_forbidAminSecret(ctx, field) if err != nil { return graphql.Null } @@ -16513,44 +17151,35 @@ func (ec *executionContext) _ConfigInsertConfigResponse_secrets(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Secrets, nil + return obj.ForbidAminSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.([]*model.ConfigEnvironmentVariable) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGraphqlSecurity_forbidAminSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigInsertConfigResponse", + Object: "ConfigGraphqlSecurity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_type(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_type(ctx, field) +func (ec *executionContext) _ConfigGraphqlSecurity_maxDepthQueries(ctx context.Context, field graphql.CollectedField, obj *model.ConfigGraphqlSecurity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigGraphqlSecurity_maxDepthQueries(ctx, field) if err != nil { return graphql.Null } @@ -16563,7 +17192,7 @@ func (ec *executionContext) _ConfigJWTSecret_type(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.MaxDepthQueries, nil }) if err != nil { ec.Error(ctx, err) @@ -16572,26 +17201,26 @@ func (ec *executionContext) _ConfigJWTSecret_type(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*uint) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigUint2ᚖuint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigGraphqlSecurity_maxDepthQueries(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigGraphqlSecurity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigUint does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_key(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_key(ctx, field) +func (ec *executionContext) _ConfigHasura_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_version(ctx, field) if err != nil { return graphql.Null } @@ -16604,7 +17233,7 @@ func (ec *executionContext) _ConfigJWTSecret_key(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Key, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -16618,9 +17247,9 @@ func (ec *executionContext) _ConfigJWTSecret_key(ctx context.Context, field grap return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, @@ -16631,8 +17260,8 @@ func (ec *executionContext) fieldContext_ConfigJWTSecret_key(_ context.Context, return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_jwk_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_jwk_url(ctx, field) +func (ec *executionContext) _ConfigHasura_jwtSecrets(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_jwtSecrets(ctx, field) if err != nil { return graphql.Null } @@ -16645,7 +17274,7 @@ func (ec *executionContext) _ConfigJWTSecret_jwk_url(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JwkUrl, nil + return obj.JwtSecrets, nil }) if err != nil { ec.Error(ctx, err) @@ -16654,26 +17283,50 @@ func (ec *executionContext) _ConfigJWTSecret_jwk_url(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ConfigJWTSecret) fc.Result = res - return ec.marshalOConfigUrl2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigJWTSecret2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigJWTSecretᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_jwk_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_jwtSecrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUrl does not have child fields") + switch field.Name { + case "type": + return ec.fieldContext_ConfigJWTSecret_type(ctx, field) + case "key": + return ec.fieldContext_ConfigJWTSecret_key(ctx, field) + case "jwk_url": + return ec.fieldContext_ConfigJWTSecret_jwk_url(ctx, field) + case "claims_format": + return ec.fieldContext_ConfigJWTSecret_claims_format(ctx, field) + case "audience": + return ec.fieldContext_ConfigJWTSecret_audience(ctx, field) + case "issuer": + return ec.fieldContext_ConfigJWTSecret_issuer(ctx, field) + case "allowed_skew": + return ec.fieldContext_ConfigJWTSecret_allowed_skew(ctx, field) + case "header": + return ec.fieldContext_ConfigJWTSecret_header(ctx, field) + case "claims_map": + return ec.fieldContext_ConfigJWTSecret_claims_map(ctx, field) + case "claims_namespace": + return ec.fieldContext_ConfigJWTSecret_claims_namespace(ctx, field) + case "claims_namespace_path": + return ec.fieldContext_ConfigJWTSecret_claims_namespace_path(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigJWTSecret", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_claims_format(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_claims_format(ctx, field) +func (ec *executionContext) _ConfigHasura_adminSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_adminSecret(ctx, field) if err != nil { return graphql.Null } @@ -16686,23 +17339,26 @@ func (ec *executionContext) _ConfigJWTSecret_claims_format(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsFormat, nil + return obj.AdminSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_adminSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, @@ -16713,8 +17369,8 @@ func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_format(_ context return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_audience(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_audience(ctx, field) +func (ec *executionContext) _ConfigHasura_webhookSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_webhookSecret(ctx, field) if err != nil { return graphql.Null } @@ -16727,23 +17383,26 @@ func (ec *executionContext) _ConfigJWTSecret_audience(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Audience, nil + return obj.WebhookSecret, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_audience(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_webhookSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, @@ -16754,8 +17413,8 @@ func (ec *executionContext) fieldContext_ConfigJWTSecret_audience(_ context.Cont return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_issuer(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_issuer(ctx, field) +func (ec *executionContext) _ConfigHasura_settings(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_settings(ctx, field) if err != nil { return graphql.Null } @@ -16768,7 +17427,7 @@ func (ec *executionContext) _ConfigJWTSecret_issuer(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Issuer, nil + return obj.Settings, nil }) if err != nil { ec.Error(ctx, err) @@ -16777,26 +17436,46 @@ func (ec *executionContext) _ConfigJWTSecret_issuer(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigHasuraSettings) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigHasuraSettings2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraSettings(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_issuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_settings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "corsDomain": + return ec.fieldContext_ConfigHasuraSettings_corsDomain(ctx, field) + case "devMode": + return ec.fieldContext_ConfigHasuraSettings_devMode(ctx, field) + case "enableAllowList": + return ec.fieldContext_ConfigHasuraSettings_enableAllowList(ctx, field) + case "enableConsole": + return ec.fieldContext_ConfigHasuraSettings_enableConsole(ctx, field) + case "enableRemoteSchemaPermissions": + return ec.fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx, field) + case "enabledAPIs": + return ec.fieldContext_ConfigHasuraSettings_enabledAPIs(ctx, field) + case "inferFunctionPermissions": + return ec.fieldContext_ConfigHasuraSettings_inferFunctionPermissions(ctx, field) + case "liveQueriesMultiplexedRefetchInterval": + return ec.fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx, field) + case "stringifyNumericTypes": + return ec.fieldContext_ConfigHasuraSettings_stringifyNumericTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraSettings", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_allowed_skew(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_allowed_skew(ctx, field) +func (ec *executionContext) _ConfigHasura_authHook(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_authHook(ctx, field) if err != nil { return graphql.Null } @@ -16809,7 +17488,7 @@ func (ec *executionContext) _ConfigJWTSecret_allowed_skew(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AllowedSkew, nil + return obj.AuthHook, nil }) if err != nil { ec.Error(ctx, err) @@ -16818,26 +17497,34 @@ func (ec *executionContext) _ConfigJWTSecret_allowed_skew(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*uint32) + res := resTmp.(*model.ConfigHasuraAuthHook) fc.Result = res - return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) + return ec.marshalOConfigHasuraAuthHook2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraAuthHook(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_allowed_skew(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_authHook(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + switch field.Name { + case "url": + return ec.fieldContext_ConfigHasuraAuthHook_url(ctx, field) + case "mode": + return ec.fieldContext_ConfigHasuraAuthHook_mode(ctx, field) + case "sendRequestBody": + return ec.fieldContext_ConfigHasuraAuthHook_sendRequestBody(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraAuthHook", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_header(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_header(ctx, field) +func (ec *executionContext) _ConfigHasura_logs(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_logs(ctx, field) if err != nil { return graphql.Null } @@ -16850,7 +17537,7 @@ func (ec *executionContext) _ConfigJWTSecret_header(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Header, nil + return obj.Logs, nil }) if err != nil { ec.Error(ctx, err) @@ -16859,26 +17546,30 @@ func (ec *executionContext) _ConfigJWTSecret_header(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigHasuraLogs) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigHasuraLogs2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraLogs(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_header(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_logs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "level": + return ec.fieldContext_ConfigHasuraLogs_level(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraLogs", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_claims_map(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_claims_map(ctx, field) +func (ec *executionContext) _ConfigHasura_events(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_events(ctx, field) if err != nil { return graphql.Null } @@ -16891,7 +17582,7 @@ func (ec *executionContext) _ConfigJWTSecret_claims_map(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsMap, nil + return obj.Events, nil }) if err != nil { ec.Error(ctx, err) @@ -16900,36 +17591,30 @@ func (ec *executionContext) _ConfigJWTSecret_claims_map(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigClaimMap) + res := resTmp.(*model.ConfigHasuraEvents) fc.Result = res - return ec.marshalOConfigClaimMap2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapᚄ(ctx, field.Selections, res) + return ec.marshalOConfigHasuraEvents2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraEvents(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_map(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "claim": - return ec.fieldContext_ConfigClaimMap_claim(ctx, field) - case "value": - return ec.fieldContext_ConfigClaimMap_value(ctx, field) - case "path": - return ec.fieldContext_ConfigClaimMap_path(ctx, field) - case "default": - return ec.fieldContext_ConfigClaimMap_default(ctx, field) + case "httpPoolSize": + return ec.fieldContext_ConfigHasuraEvents_httpPoolSize(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigClaimMap", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigHasuraEvents", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_claims_namespace(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_claims_namespace(ctx, field) +func (ec *executionContext) _ConfigHasura_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_resources(ctx, field) if err != nil { return graphql.Null } @@ -16942,7 +17627,7 @@ func (ec *executionContext) _ConfigJWTSecret_claims_namespace(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsNamespace, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) @@ -16951,26 +17636,36 @@ func (ec *executionContext) _ConfigJWTSecret_claims_namespace(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigResources) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResources(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "compute": + return ec.fieldContext_ConfigResources_compute(ctx, field) + case "replicas": + return ec.fieldContext_ConfigResources_replicas(ctx, field) + case "autoscaler": + return ec.fieldContext_ConfigResources_autoscaler(ctx, field) + case "networking": + return ec.fieldContext_ConfigResources_networking(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigResources", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigJWTSecret_claims_namespace_path(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigJWTSecret_claims_namespace_path(ctx, field) +func (ec *executionContext) _ConfigHasura_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasura) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasura_rateLimit(ctx, field) if err != nil { return graphql.Null } @@ -16983,7 +17678,7 @@ func (ec *executionContext) _ConfigJWTSecret_claims_namespace_path(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClaimsNamespacePath, nil + return obj.RateLimit, nil }) if err != nil { ec.Error(ctx, err) @@ -16992,26 +17687,32 @@ func (ec *executionContext) _ConfigJWTSecret_claims_namespace_path(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRateLimit) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_namespace_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasura_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigJWTSecret", + Object: "ConfigHasura", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "limit": + return ec.fieldContext_ConfigRateLimit_limit(ctx, field) + case "interval": + return ec.fieldContext_ConfigRateLimit_interval(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigNetworking_ingresses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigNetworking) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigNetworking_ingresses(ctx, field) +func (ec *executionContext) _ConfigHasuraAuthHook_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraAuthHook_url(ctx, field) if err != nil { return graphql.Null } @@ -17024,39 +17725,38 @@ func (ec *executionContext) _ConfigNetworking_ingresses(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ingresses, nil + return obj.Url, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*model.ConfigIngress) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigIngress2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigIngressᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigNetworking_ingresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigNetworking", + Object: "ConfigHasuraAuthHook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fqdn": - return ec.fieldContext_ConfigIngress_fqdn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigIngress", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigObservability_grafana(ctx context.Context, field graphql.CollectedField, obj *model.ConfigObservability) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigObservability_grafana(ctx, field) +func (ec *executionContext) _ConfigHasuraAuthHook_mode(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraAuthHook_mode(ctx, field) if err != nil { return graphql.Null } @@ -17069,44 +17769,35 @@ func (ec *executionContext) _ConfigObservability_grafana(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Grafana, nil + return obj.Mode, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigGrafana) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigGrafana2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafana(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigObservability_grafana(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_mode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigObservability", + Object: "ConfigHasuraAuthHook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "adminPassword": - return ec.fieldContext_ConfigGrafana_adminPassword(ctx, field) - case "smtp": - return ec.fieldContext_ConfigGrafana_smtp(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigGrafana", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgres_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgres_version(ctx, field) +func (ec *executionContext) _ConfigHasuraAuthHook_sendRequestBody(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraAuthHook) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraAuthHook_sendRequestBody(ctx, field) if err != nil { return graphql.Null } @@ -17119,7 +17810,7 @@ func (ec *executionContext) _ConfigPostgres_version(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.SendRequestBody, nil }) if err != nil { ec.Error(ctx, err) @@ -17128,26 +17819,26 @@ func (ec *executionContext) _ConfigPostgres_version(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgres_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraAuthHook_sendRequestBody(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgres", + Object: "ConfigHasuraAuthHook", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgres_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgres_resources(ctx, field) +func (ec *executionContext) _ConfigHasuraEvents_httpPoolSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraEvents) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraEvents_httpPoolSize(ctx, field) if err != nil { return graphql.Null } @@ -17160,7 +17851,7 @@ func (ec *executionContext) _ConfigPostgres_resources(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resources, nil + return obj.HttpPoolSize, nil }) if err != nil { ec.Error(ctx, err) @@ -17169,40 +17860,26 @@ func (ec *executionContext) _ConfigPostgres_resources(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigPostgresResources) + res := resTmp.(*uint32) fc.Result = res - return ec.marshalOConfigPostgresResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresResources(ctx, field.Selections, res) + return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgres_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraEvents_httpPoolSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgres", + Object: "ConfigHasuraEvents", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "compute": - return ec.fieldContext_ConfigPostgresResources_compute(ctx, field) - case "replicas": - return ec.fieldContext_ConfigPostgresResources_replicas(ctx, field) - case "autoscaler": - return ec.fieldContext_ConfigPostgresResources_autoscaler(ctx, field) - case "networking": - return ec.fieldContext_ConfigPostgresResources_networking(ctx, field) - case "storage": - return ec.fieldContext_ConfigPostgresResources_storage(ctx, field) - case "enablePublicAccess": - return ec.fieldContext_ConfigPostgresResources_enablePublicAccess(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresResources", field.Name) + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgres_settings(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgres_settings(ctx, field) +func (ec *executionContext) _ConfigHasuraLogs_level(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraLogs) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraLogs_level(ctx, field) if err != nil { return graphql.Null } @@ -17215,7 +17892,7 @@ func (ec *executionContext) _ConfigPostgres_settings(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Settings, nil + return obj.Level, nil }) if err != nil { ec.Error(ctx, err) @@ -17224,70 +17901,26 @@ func (ec *executionContext) _ConfigPostgres_settings(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigPostgresSettings) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigPostgresSettings2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresSettings(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgres_settings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraLogs_level(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgres", + Object: "ConfigHasuraLogs", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "jit": - return ec.fieldContext_ConfigPostgresSettings_jit(ctx, field) - case "maxConnections": - return ec.fieldContext_ConfigPostgresSettings_maxConnections(ctx, field) - case "sharedBuffers": - return ec.fieldContext_ConfigPostgresSettings_sharedBuffers(ctx, field) - case "effectiveCacheSize": - return ec.fieldContext_ConfigPostgresSettings_effectiveCacheSize(ctx, field) - case "maintenanceWorkMem": - return ec.fieldContext_ConfigPostgresSettings_maintenanceWorkMem(ctx, field) - case "checkpointCompletionTarget": - return ec.fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(ctx, field) - case "walBuffers": - return ec.fieldContext_ConfigPostgresSettings_walBuffers(ctx, field) - case "defaultStatisticsTarget": - return ec.fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(ctx, field) - case "randomPageCost": - return ec.fieldContext_ConfigPostgresSettings_randomPageCost(ctx, field) - case "effectiveIOConcurrency": - return ec.fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(ctx, field) - case "workMem": - return ec.fieldContext_ConfigPostgresSettings_workMem(ctx, field) - case "hugePages": - return ec.fieldContext_ConfigPostgresSettings_hugePages(ctx, field) - case "minWalSize": - return ec.fieldContext_ConfigPostgresSettings_minWalSize(ctx, field) - case "maxWalSize": - return ec.fieldContext_ConfigPostgresSettings_maxWalSize(ctx, field) - case "maxWorkerProcesses": - return ec.fieldContext_ConfigPostgresSettings_maxWorkerProcesses(ctx, field) - case "maxParallelWorkersPerGather": - return ec.fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(ctx, field) - case "maxParallelWorkers": - return ec.fieldContext_ConfigPostgresSettings_maxParallelWorkers(ctx, field) - case "maxParallelMaintenanceWorkers": - return ec.fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx, field) - case "walLevel": - return ec.fieldContext_ConfigPostgresSettings_walLevel(ctx, field) - case "maxWalSenders": - return ec.fieldContext_ConfigPostgresSettings_maxWalSenders(ctx, field) - case "maxReplicationSlots": - return ec.fieldContext_ConfigPostgresSettings_maxReplicationSlots(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresSettings", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_compute(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_corsDomain(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_corsDomain(ctx, field) if err != nil { return graphql.Null } @@ -17300,7 +17933,7 @@ func (ec *executionContext) _ConfigPostgresResources_compute(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Compute, nil + return obj.CorsDomain, nil }) if err != nil { ec.Error(ctx, err) @@ -17309,32 +17942,26 @@ func (ec *executionContext) _ConfigPostgresResources_compute(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigResourcesCompute) + res := resTmp.([]string) fc.Result = res - return ec.marshalOConfigResourcesCompute2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesCompute(ctx, field.Selections, res) + return ec.marshalOConfigUrl2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_corsDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cpu": - return ec.fieldContext_ConfigResourcesCompute_cpu(ctx, field) - case "memory": - return ec.fieldContext_ConfigResourcesCompute_memory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigResourcesCompute", field.Name) + return nil, errors.New("field of type ConfigUrl does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_replicas(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_devMode(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_devMode(ctx, field) if err != nil { return graphql.Null } @@ -17347,7 +17974,7 @@ func (ec *executionContext) _ConfigPostgresResources_replicas(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Replicas, nil + return obj.DevMode, nil }) if err != nil { ec.Error(ctx, err) @@ -17356,26 +17983,26 @@ func (ec *executionContext) _ConfigPostgresResources_replicas(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*uint8) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOConfigUint82ᚖuint8(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_devMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint8 does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_autoscaler(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_enableAllowList(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_enableAllowList(ctx, field) if err != nil { return graphql.Null } @@ -17388,7 +18015,7 @@ func (ec *executionContext) _ConfigPostgresResources_autoscaler(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Autoscaler, nil + return obj.EnableAllowList, nil }) if err != nil { ec.Error(ctx, err) @@ -17397,30 +18024,26 @@ func (ec *executionContext) _ConfigPostgresResources_autoscaler(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigAutoscaler) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOConfigAutoscaler2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscaler(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableAllowList(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "maxReplicas": - return ec.fieldContext_ConfigAutoscaler_maxReplicas(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigAutoscaler", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_networking(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_networking(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_enableConsole(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_enableConsole(ctx, field) if err != nil { return graphql.Null } @@ -17433,7 +18056,7 @@ func (ec *executionContext) _ConfigPostgresResources_networking(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Networking, nil + return obj.EnableConsole, nil }) if err != nil { ec.Error(ctx, err) @@ -17442,30 +18065,26 @@ func (ec *executionContext) _ConfigPostgresResources_networking(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigNetworking) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOConfigNetworking2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworking(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_networking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableConsole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "ingresses": - return ec.fieldContext_ConfigNetworking_ingresses(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigNetworking", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_storage(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(ctx, field) if err != nil { return graphql.Null } @@ -17478,7 +18097,7 @@ func (ec *executionContext) _ConfigPostgresResources_storage(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Storage, nil + return obj.EnableRemoteSchemaPermissions, nil }) if err != nil { ec.Error(ctx, err) @@ -17487,30 +18106,26 @@ func (ec *executionContext) _ConfigPostgresResources_storage(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigPostgresStorage) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOConfigPostgresStorage2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresStorage(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_enableRemoteSchemaPermissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "capacity": - return ec.fieldContext_ConfigPostgresStorage_capacity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresStorage", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresResources_enablePublicAccess(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresResources_enablePublicAccess(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_enabledAPIs(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_enabledAPIs(ctx, field) if err != nil { return graphql.Null } @@ -17523,7 +18138,7 @@ func (ec *executionContext) _ConfigPostgresResources_enablePublicAccess(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnablePublicAccess, nil + return obj.EnabledAPIs, nil }) if err != nil { ec.Error(ctx, err) @@ -17532,26 +18147,26 @@ func (ec *executionContext) _ConfigPostgresResources_enablePublicAccess(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.([]string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOConfigHasuraAPIs2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresResources_enablePublicAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_enabledAPIs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresResources", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type ConfigHasuraAPIs does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_jit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_jit(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_inferFunctionPermissions(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_inferFunctionPermissions(ctx, field) if err != nil { return graphql.Null } @@ -17564,7 +18179,7 @@ func (ec *executionContext) _ConfigPostgresSettings_jit(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Jit, nil + return obj.InferFunctionPermissions, nil }) if err != nil { ec.Error(ctx, err) @@ -17573,26 +18188,26 @@ func (ec *executionContext) _ConfigPostgresSettings_jit(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_jit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_inferFunctionPermissions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxConnections(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxConnections(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(ctx, field) if err != nil { return graphql.Null } @@ -17605,7 +18220,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxConnections(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxConnections, nil + return obj.LiveQueriesMultiplexedRefetchInterval, nil }) if err != nil { ec.Error(ctx, err) @@ -17614,26 +18229,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxConnections(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*uint32) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxConnections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_liveQueriesMultiplexedRefetchInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_sharedBuffers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_sharedBuffers(ctx, field) +func (ec *executionContext) _ConfigHasuraSettings_stringifyNumericTypes(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHasuraSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHasuraSettings_stringifyNumericTypes(ctx, field) if err != nil { return graphql.Null } @@ -17646,7 +18261,7 @@ func (ec *executionContext) _ConfigPostgresSettings_sharedBuffers(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SharedBuffers, nil + return obj.StringifyNumericTypes, nil }) if err != nil { ec.Error(ctx, err) @@ -17655,26 +18270,26 @@ func (ec *executionContext) _ConfigPostgresSettings_sharedBuffers(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_sharedBuffers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHasuraSettings_stringifyNumericTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHasuraSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_effectiveCacheSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_effectiveCacheSize(ctx, field) +func (ec *executionContext) _ConfigHealthCheck_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHealthCheck_port(ctx, field) if err != nil { return graphql.Null } @@ -17687,35 +18302,38 @@ func (ec *executionContext) _ConfigPostgresSettings_effectiveCacheSize(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveCacheSize, nil + return obj.Port, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(uint16) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_effectiveCacheSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHealthCheck_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHealthCheck", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigPort does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maintenanceWorkMem(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maintenanceWorkMem(ctx, field) +func (ec *executionContext) _ConfigHealthCheck_initialDelaySeconds(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHealthCheck_initialDelaySeconds(ctx, field) if err != nil { return graphql.Null } @@ -17728,7 +18346,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maintenanceWorkMem(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaintenanceWorkMem, nil + return obj.InitialDelaySeconds, nil }) if err != nil { ec.Error(ctx, err) @@ -17737,26 +18355,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maintenanceWorkMem(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maintenanceWorkMem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHealthCheck_initialDelaySeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHealthCheck", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_checkpointCompletionTarget(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(ctx, field) +func (ec *executionContext) _ConfigHealthCheck_probePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *model.ConfigHealthCheck) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigHealthCheck_probePeriodSeconds(ctx, field) if err != nil { return graphql.Null } @@ -17769,7 +18387,7 @@ func (ec *executionContext) _ConfigPostgresSettings_checkpointCompletionTarget(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CheckpointCompletionTarget, nil + return obj.ProbePeriodSeconds, nil }) if err != nil { ec.Error(ctx, err) @@ -17778,26 +18396,26 @@ func (ec *executionContext) _ConfigPostgresSettings_checkpointCompletionTarget(c if resTmp == nil { return graphql.Null } - res := resTmp.(*float64) + res := resTmp.(*int) fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) + return ec.marshalOInt2ᚖint(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigHealthCheck_probePeriodSeconds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigHealthCheck", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_walBuffers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_walBuffers(ctx, field) +func (ec *executionContext) _ConfigIngress_fqdn(ctx context.Context, field graphql.CollectedField, obj *model.ConfigIngress) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigIngress_fqdn(ctx, field) if err != nil { return graphql.Null } @@ -17810,7 +18428,7 @@ func (ec *executionContext) _ConfigPostgresSettings_walBuffers(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WalBuffers, nil + return obj.Fqdn, nil }) if err != nil { ec.Error(ctx, err) @@ -17819,14 +18437,14 @@ func (ec *executionContext) _ConfigPostgresSettings_walBuffers(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_walBuffers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigIngress_fqdn(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigIngress", Field: field, IsMethod: false, IsResolver: false, @@ -17837,8 +18455,8 @@ func (ec *executionContext) fieldContext_ConfigPostgresSettings_walBuffers(_ con return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_defaultStatisticsTarget(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(ctx, field) +func (ec *executionContext) _ConfigInsertConfigResponse_config(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigInsertConfigResponse_config(ctx, field) if err != nil { return graphql.Null } @@ -17851,35 +18469,60 @@ func (ec *executionContext) _ConfigPostgresSettings_defaultStatisticsTarget(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultStatisticsTarget, nil + return obj.Config, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*model.ConfigConfig) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigInsertConfigResponse", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + switch field.Name { + case "global": + return ec.fieldContext_ConfigConfig_global(ctx, field) + case "hasura": + return ec.fieldContext_ConfigConfig_hasura(ctx, field) + case "graphql": + return ec.fieldContext_ConfigConfig_graphql(ctx, field) + case "functions": + return ec.fieldContext_ConfigConfig_functions(ctx, field) + case "auth": + return ec.fieldContext_ConfigConfig_auth(ctx, field) + case "postgres": + return ec.fieldContext_ConfigConfig_postgres(ctx, field) + case "provider": + return ec.fieldContext_ConfigConfig_provider(ctx, field) + case "storage": + return ec.fieldContext_ConfigConfig_storage(ctx, field) + case "ai": + return ec.fieldContext_ConfigConfig_ai(ctx, field) + case "observability": + return ec.fieldContext_ConfigConfig_observability(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_randomPageCost(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_randomPageCost(ctx, field) +func (ec *executionContext) _ConfigInsertConfigResponse_systemConfig(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigInsertConfigResponse_systemConfig(ctx, field) if err != nil { return graphql.Null } @@ -17892,35 +18535,46 @@ func (ec *executionContext) _ConfigPostgresSettings_randomPageCost(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RandomPageCost, nil + return obj.SystemConfig, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*float64) + res := resTmp.(*model.ConfigSystemConfig) fc.Result = res - return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) + return ec.marshalNConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_randomPageCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_systemConfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigInsertConfigResponse", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Float does not have child fields") + switch field.Name { + case "auth": + return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) + case "graphql": + return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) + case "postgres": + return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_effectiveIOConcurrency(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(ctx, field) +func (ec *executionContext) _ConfigInsertConfigResponse_secrets(ctx context.Context, field graphql.CollectedField, obj *model.ConfigInsertConfigResponse) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigInsertConfigResponse_secrets(ctx, field) if err != nil { return graphql.Null } @@ -17933,35 +18587,44 @@ func (ec *executionContext) _ConfigPostgresSettings_effectiveIOConcurrency(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EffectiveIOConcurrency, nil + return obj.Secrets, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*int32) + res := resTmp.([]*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalNConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigInsertConfigResponse_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigInsertConfigResponse", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_workMem(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_workMem(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_type(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_type(ctx, field) if err != nil { return graphql.Null } @@ -17974,7 +18637,7 @@ func (ec *executionContext) _ConfigPostgresSettings_workMem(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WorkMem, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) @@ -17988,9 +18651,9 @@ func (ec *executionContext) _ConfigPostgresSettings_workMem(ctx context.Context, return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_workMem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, @@ -18001,8 +18664,8 @@ func (ec *executionContext) fieldContext_ConfigPostgresSettings_workMem(_ contex return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_hugePages(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_hugePages(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_key(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_key(ctx, field) if err != nil { return graphql.Null } @@ -18015,7 +18678,7 @@ func (ec *executionContext) _ConfigPostgresSettings_hugePages(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HugePages, nil + return obj.Key, nil }) if err != nil { ec.Error(ctx, err) @@ -18029,9 +18692,9 @@ func (ec *executionContext) _ConfigPostgresSettings_hugePages(ctx context.Contex return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_hugePages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, @@ -18042,8 +18705,8 @@ func (ec *executionContext) fieldContext_ConfigPostgresSettings_hugePages(_ cont return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_minWalSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_minWalSize(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_jwk_url(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_jwk_url(ctx, field) if err != nil { return graphql.Null } @@ -18056,7 +18719,7 @@ func (ec *executionContext) _ConfigPostgresSettings_minWalSize(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MinWalSize, nil + return obj.JwkUrl, nil }) if err != nil { ec.Error(ctx, err) @@ -18067,24 +18730,24 @@ func (ec *executionContext) _ConfigPostgresSettings_minWalSize(ctx context.Conte } res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigUrl2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_minWalSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_jwk_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigUrl does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxWalSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxWalSize(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_claims_format(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_claims_format(ctx, field) if err != nil { return graphql.Null } @@ -18097,7 +18760,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWalSize(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxWalSize, nil + return obj.ClaimsFormat, nil }) if err != nil { ec.Error(ctx, err) @@ -18111,9 +18774,9 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWalSize(ctx context.Conte return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWalSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, @@ -18124,8 +18787,8 @@ func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWalSize(_ con return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxWorkerProcesses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxWorkerProcesses(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_audience(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_audience(ctx, field) if err != nil { return graphql.Null } @@ -18138,7 +18801,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWorkerProcesses(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxWorkerProcesses, nil + return obj.Audience, nil }) if err != nil { ec.Error(ctx, err) @@ -18147,26 +18810,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWorkerProcesses(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWorkerProcesses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_audience(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkersPerGather(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_issuer(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_issuer(ctx, field) if err != nil { return graphql.Null } @@ -18179,7 +18842,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkersPerGather( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxParallelWorkersPerGather, nil + return obj.Issuer, nil }) if err != nil { ec.Error(ctx, err) @@ -18188,26 +18851,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkersPerGather( if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_issuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelWorkers(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_allowed_skew(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_allowed_skew(ctx, field) if err != nil { return graphql.Null } @@ -18220,7 +18883,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkers(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxParallelWorkers, nil + return obj.AllowedSkew, nil }) if err != nil { ec.Error(ctx, err) @@ -18229,26 +18892,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkers(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*uint32) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelWorkers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_allowed_skew(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_header(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_header(ctx, field) if err != nil { return graphql.Null } @@ -18261,7 +18924,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelMaintenanceWorker }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxParallelMaintenanceWorkers, nil + return obj.Header, nil }) if err != nil { ec.Error(ctx, err) @@ -18270,26 +18933,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxParallelMaintenanceWorker if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_header(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_walLevel(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_walLevel(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_claims_map(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_claims_map(ctx, field) if err != nil { return graphql.Null } @@ -18302,7 +18965,7 @@ func (ec *executionContext) _ConfigPostgresSettings_walLevel(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.WalLevel, nil + return obj.ClaimsMap, nil }) if err != nil { ec.Error(ctx, err) @@ -18311,26 +18974,36 @@ func (ec *executionContext) _ConfigPostgresSettings_walLevel(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ConfigClaimMap) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigClaimMap2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_walLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_map(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "claim": + return ec.fieldContext_ConfigClaimMap_claim(ctx, field) + case "value": + return ec.fieldContext_ConfigClaimMap_value(ctx, field) + case "path": + return ec.fieldContext_ConfigClaimMap_path(ctx, field) + case "default": + return ec.fieldContext_ConfigClaimMap_default(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigClaimMap", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxWalSenders(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxWalSenders(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_claims_namespace(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_claims_namespace(ctx, field) if err != nil { return graphql.Null } @@ -18343,7 +19016,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWalSenders(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxWalSenders, nil + return obj.ClaimsNamespace, nil }) if err != nil { ec.Error(ctx, err) @@ -18352,26 +19025,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxWalSenders(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWalSenders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_namespace(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresSettings_maxReplicationSlots(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresSettings_maxReplicationSlots(ctx, field) +func (ec *executionContext) _ConfigJWTSecret_claims_namespace_path(ctx context.Context, field graphql.CollectedField, obj *model.ConfigJWTSecret) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigJWTSecret_claims_namespace_path(ctx, field) if err != nil { return graphql.Null } @@ -18384,7 +19057,7 @@ func (ec *executionContext) _ConfigPostgresSettings_maxReplicationSlots(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MaxReplicationSlots, nil + return obj.ClaimsNamespacePath, nil }) if err != nil { ec.Error(ctx, err) @@ -18393,26 +19066,26 @@ func (ec *executionContext) _ConfigPostgresSettings_maxReplicationSlots(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.(*int32) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxReplicationSlots(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigJWTSecret_claims_namespace_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresSettings", + Object: "ConfigJWTSecret", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigInt32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigPostgresStorage_capacity(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigPostgresStorage_capacity(ctx, field) +func (ec *executionContext) _ConfigNetworking_ingresses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigNetworking) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigNetworking_ingresses(ctx, field) if err != nil { return graphql.Null } @@ -18425,38 +19098,39 @@ func (ec *executionContext) _ConfigPostgresStorage_capacity(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Capacity, nil + return obj.Ingresses, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint32) + res := resTmp.([]*model.ConfigIngress) fc.Result = res - return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) + return ec.marshalOConfigIngress2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigIngressᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigPostgresStorage_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigNetworking_ingresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigPostgresStorage", + Object: "ConfigNetworking", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + switch field.Name { + case "fqdn": + return ec.fieldContext_ConfigIngress_fqdn(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigIngress", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigProvider_smtp(ctx context.Context, field graphql.CollectedField, obj *model.ConfigProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigProvider_smtp(ctx, field) +func (ec *executionContext) _ConfigObservability_grafana(ctx context.Context, field graphql.CollectedField, obj *model.ConfigObservability) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigObservability_grafana(ctx, field) if err != nil { return graphql.Null } @@ -18469,51 +19143,48 @@ func (ec *executionContext) _ConfigProvider_smtp(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Smtp, nil + return obj.Grafana, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigSmtp) + res := resTmp.(*model.ConfigGrafana) fc.Result = res - return ec.marshalOConfigSmtp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSmtp(ctx, field.Selections, res) + return ec.marshalNConfigGrafana2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafana(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigProvider_smtp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigObservability_grafana(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigProvider", + Object: "ConfigObservability", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "user": - return ec.fieldContext_ConfigSmtp_user(ctx, field) - case "password": - return ec.fieldContext_ConfigSmtp_password(ctx, field) - case "sender": - return ec.fieldContext_ConfigSmtp_sender(ctx, field) - case "host": - return ec.fieldContext_ConfigSmtp_host(ctx, field) - case "port": - return ec.fieldContext_ConfigSmtp_port(ctx, field) - case "secure": - return ec.fieldContext_ConfigSmtp_secure(ctx, field) - case "method": - return ec.fieldContext_ConfigSmtp_method(ctx, field) + case "adminPassword": + return ec.fieldContext_ConfigGrafana_adminPassword(ctx, field) + case "smtp": + return ec.fieldContext_ConfigGrafana_smtp(ctx, field) + case "alerting": + return ec.fieldContext_ConfigGrafana_alerting(ctx, field) + case "contacts": + return ec.fieldContext_ConfigGrafana_contacts(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSmtp", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigGrafana", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigProvider_sms(ctx context.Context, field graphql.CollectedField, obj *model.ConfigProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigProvider_sms(ctx, field) +func (ec *executionContext) _ConfigPostgres_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgres_version(ctx, field) if err != nil { return graphql.Null } @@ -18526,7 +19197,7 @@ func (ec *executionContext) _ConfigProvider_sms(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sms, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -18535,36 +19206,26 @@ func (ec *executionContext) _ConfigProvider_sms(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigSms) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigSms2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSms(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigProvider_sms(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgres_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigProvider", + Object: "ConfigPostgres", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "provider": - return ec.fieldContext_ConfigSms_provider(ctx, field) - case "accountSid": - return ec.fieldContext_ConfigSms_accountSid(ctx, field) - case "authToken": - return ec.fieldContext_ConfigSms_authToken(ctx, field) - case "messagingServiceId": - return ec.fieldContext_ConfigSms_messagingServiceId(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSms", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRateLimit_limit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRateLimit_limit(ctx, field) +func (ec *executionContext) _ConfigPostgres_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgres_resources(ctx, field) if err != nil { return graphql.Null } @@ -18577,38 +19238,49 @@ func (ec *executionContext) _ConfigRateLimit_limit(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Limit, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint32) + res := resTmp.(*model.ConfigPostgresResources) fc.Result = res - return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) + return ec.marshalOConfigPostgresResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresResources(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRateLimit_limit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgres_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRateLimit", + Object: "ConfigPostgres", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + switch field.Name { + case "compute": + return ec.fieldContext_ConfigPostgresResources_compute(ctx, field) + case "replicas": + return ec.fieldContext_ConfigPostgresResources_replicas(ctx, field) + case "autoscaler": + return ec.fieldContext_ConfigPostgresResources_autoscaler(ctx, field) + case "networking": + return ec.fieldContext_ConfigPostgresResources_networking(ctx, field) + case "storage": + return ec.fieldContext_ConfigPostgresResources_storage(ctx, field) + case "enablePublicAccess": + return ec.fieldContext_ConfigPostgresResources_enablePublicAccess(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresResources", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigRateLimit_interval(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRateLimit) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRateLimit_interval(ctx, field) +func (ec *executionContext) _ConfigPostgres_settings(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgres_settings(ctx, field) if err != nil { return graphql.Null } @@ -18621,38 +19293,79 @@ func (ec *executionContext) _ConfigRateLimit_interval(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interval, nil + return obj.Settings, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigPostgresSettings) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigPostgresSettings2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresSettings(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRateLimit_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgres_settings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRateLimit", + Object: "ConfigPostgres", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "jit": + return ec.fieldContext_ConfigPostgresSettings_jit(ctx, field) + case "maxConnections": + return ec.fieldContext_ConfigPostgresSettings_maxConnections(ctx, field) + case "sharedBuffers": + return ec.fieldContext_ConfigPostgresSettings_sharedBuffers(ctx, field) + case "effectiveCacheSize": + return ec.fieldContext_ConfigPostgresSettings_effectiveCacheSize(ctx, field) + case "maintenanceWorkMem": + return ec.fieldContext_ConfigPostgresSettings_maintenanceWorkMem(ctx, field) + case "checkpointCompletionTarget": + return ec.fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(ctx, field) + case "walBuffers": + return ec.fieldContext_ConfigPostgresSettings_walBuffers(ctx, field) + case "defaultStatisticsTarget": + return ec.fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(ctx, field) + case "randomPageCost": + return ec.fieldContext_ConfigPostgresSettings_randomPageCost(ctx, field) + case "effectiveIOConcurrency": + return ec.fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(ctx, field) + case "workMem": + return ec.fieldContext_ConfigPostgresSettings_workMem(ctx, field) + case "hugePages": + return ec.fieldContext_ConfigPostgresSettings_hugePages(ctx, field) + case "minWalSize": + return ec.fieldContext_ConfigPostgresSettings_minWalSize(ctx, field) + case "maxWalSize": + return ec.fieldContext_ConfigPostgresSettings_maxWalSize(ctx, field) + case "maxWorkerProcesses": + return ec.fieldContext_ConfigPostgresSettings_maxWorkerProcesses(ctx, field) + case "maxParallelWorkersPerGather": + return ec.fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(ctx, field) + case "maxParallelWorkers": + return ec.fieldContext_ConfigPostgresSettings_maxParallelWorkers(ctx, field) + case "maxParallelMaintenanceWorkers": + return ec.fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx, field) + case "walLevel": + return ec.fieldContext_ConfigPostgresSettings_walLevel(ctx, field) + case "maxWalSenders": + return ec.fieldContext_ConfigPostgresSettings_maxWalSenders(ctx, field) + case "maxReplicationSlots": + return ec.fieldContext_ConfigPostgresSettings_maxReplicationSlots(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresSettings", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResources_compute(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_compute(ctx, field) if err != nil { return graphql.Null } @@ -18679,9 +19392,9 @@ func (ec *executionContext) _ConfigResources_compute(ctx context.Context, field return ec.marshalOConfigResourcesCompute2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesCompute(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResources", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, @@ -18698,8 +19411,8 @@ func (ec *executionContext) fieldContext_ConfigResources_compute(_ context.Conte return fc, nil } -func (ec *executionContext) _ConfigResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResources_replicas(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_replicas(ctx, field) if err != nil { return graphql.Null } @@ -18726,9 +19439,9 @@ func (ec *executionContext) _ConfigResources_replicas(ctx context.Context, field return ec.marshalOConfigUint82ᚖuint8(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResources", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, @@ -18739,8 +19452,8 @@ func (ec *executionContext) fieldContext_ConfigResources_replicas(_ context.Cont return fc, nil } -func (ec *executionContext) _ConfigResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResources_autoscaler(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_autoscaler(ctx, field) if err != nil { return graphql.Null } @@ -18767,9 +19480,9 @@ func (ec *executionContext) _ConfigResources_autoscaler(ctx context.Context, fie return ec.marshalOConfigAutoscaler2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscaler(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResources", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, @@ -18784,8 +19497,8 @@ func (ec *executionContext) fieldContext_ConfigResources_autoscaler(_ context.Co return fc, nil } -func (ec *executionContext) _ConfigResources_networking(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResources_networking(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_networking(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_networking(ctx, field) if err != nil { return graphql.Null } @@ -18812,9 +19525,9 @@ func (ec *executionContext) _ConfigResources_networking(ctx context.Context, fie return ec.marshalOConfigNetworking2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworking(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResources_networking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_networking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResources", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, @@ -18829,8 +19542,8 @@ func (ec *executionContext) fieldContext_ConfigResources_networking(_ context.Co return fc, nil } -func (ec *executionContext) _ConfigResourcesCompute_cpu(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResourcesCompute) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResourcesCompute_cpu(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_storage(ctx, field) if err != nil { return graphql.Null } @@ -18843,38 +19556,39 @@ func (ec *executionContext) _ConfigResourcesCompute_cpu(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cpu, nil + return obj.Storage, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint32) + res := resTmp.(*model.ConfigPostgresStorage) fc.Result = res - return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) + return ec.marshalOConfigPostgresStorage2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresStorage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResourcesCompute_cpu(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResourcesCompute", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + switch field.Name { + case "capacity": + return ec.fieldContext_ConfigPostgresStorage_capacity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigPostgresStorage", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigResourcesCompute_memory(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResourcesCompute) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigResourcesCompute_memory(ctx, field) +func (ec *executionContext) _ConfigPostgresResources_enablePublicAccess(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresResources_enablePublicAccess(ctx, field) if err != nil { return graphql.Null } @@ -18887,38 +19601,35 @@ func (ec *executionContext) _ConfigResourcesCompute_memory(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Memory, nil + return obj.EnablePublicAccess, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint32) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigResourcesCompute_memory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresResources_enablePublicAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigResourcesCompute", + Object: "ConfigPostgresResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_name(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_jit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_jit(ctx, field) if err != nil { return graphql.Null } @@ -18931,38 +19642,35 @@ func (ec *executionContext) _ConfigRunServiceConfig_name(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Jit, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigRunServiceName2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_jit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigRunServiceName does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_image(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxConnections(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxConnections(ctx, field) if err != nil { return graphql.Null } @@ -18975,44 +19683,35 @@ func (ec *executionContext) _ConfigRunServiceConfig_image(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Image, nil + return obj.MaxConnections, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceImage) + res := resTmp.(*int32) fc.Result = res - return ec.marshalNConfigRunServiceImage2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceImage(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxConnections(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "image": - return ec.fieldContext_ConfigRunServiceImage_image(ctx, field) - case "pullCredentials": - return ec.fieldContext_ConfigRunServiceImage_pullCredentials(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceImage", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_command(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_sharedBuffers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_sharedBuffers(ctx, field) if err != nil { return graphql.Null } @@ -19025,7 +19724,7 @@ func (ec *executionContext) _ConfigRunServiceConfig_command(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Command, nil + return obj.SharedBuffers, nil }) if err != nil { ec.Error(ctx, err) @@ -19034,14 +19733,14 @@ func (ec *executionContext) _ConfigRunServiceConfig_command(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_command(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_sharedBuffers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, @@ -19052,8 +19751,8 @@ func (ec *executionContext) fieldContext_ConfigRunServiceConfig_command(_ contex return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_environment(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_effectiveCacheSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_effectiveCacheSize(ctx, field) if err != nil { return graphql.Null } @@ -19066,7 +19765,7 @@ func (ec *executionContext) _ConfigRunServiceConfig_environment(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Environment, nil + return obj.EffectiveCacheSize, nil }) if err != nil { ec.Error(ctx, err) @@ -19075,32 +19774,26 @@ func (ec *executionContext) _ConfigRunServiceConfig_environment(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigEnvironmentVariable) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_effectiveCacheSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_ports(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maintenanceWorkMem(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maintenanceWorkMem(ctx, field) if err != nil { return graphql.Null } @@ -19113,7 +19806,7 @@ func (ec *executionContext) _ConfigRunServiceConfig_ports(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ports, nil + return obj.MaintenanceWorkMem, nil }) if err != nil { ec.Error(ctx, err) @@ -19122,38 +19815,26 @@ func (ec *executionContext) _ConfigRunServiceConfig_ports(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigRunServicePort) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigRunServicePort2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServicePortᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_ports(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maintenanceWorkMem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "port": - return ec.fieldContext_ConfigRunServicePort_port(ctx, field) - case "type": - return ec.fieldContext_ConfigRunServicePort_type(ctx, field) - case "publish": - return ec.fieldContext_ConfigRunServicePort_publish(ctx, field) - case "ingresses": - return ec.fieldContext_ConfigRunServicePort_ingresses(ctx, field) - case "rateLimit": - return ec.fieldContext_ConfigRunServicePort_rateLimit(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServicePort", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_checkpointCompletionTarget(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(ctx, field) if err != nil { return graphql.Null } @@ -19166,48 +19847,35 @@ func (ec *executionContext) _ConfigRunServiceConfig_resources(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resources, nil + return obj.CheckpointCompletionTarget, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceResources) + res := resTmp.(*float64) fc.Result = res - return ec.marshalNConfigRunServiceResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceResources(ctx, field.Selections, res) + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_checkpointCompletionTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "compute": - return ec.fieldContext_ConfigRunServiceResources_compute(ctx, field) - case "storage": - return ec.fieldContext_ConfigRunServiceResources_storage(ctx, field) - case "replicas": - return ec.fieldContext_ConfigRunServiceResources_replicas(ctx, field) - case "autoscaler": - return ec.fieldContext_ConfigRunServiceResources_autoscaler(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceResources", field.Name) + return nil, errors.New("field of type Float does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfig_healthCheck(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_walBuffers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_walBuffers(ctx, field) if err != nil { return graphql.Null } @@ -19220,7 +19888,7 @@ func (ec *executionContext) _ConfigRunServiceConfig_healthCheck(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HealthCheck, nil + return obj.WalBuffers, nil }) if err != nil { ec.Error(ctx, err) @@ -19229,34 +19897,26 @@ func (ec *executionContext) _ConfigRunServiceConfig_healthCheck(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigHealthCheck) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigHealthCheck2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHealthCheck(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfig_healthCheck(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_walBuffers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfig", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "port": - return ec.fieldContext_ConfigHealthCheck_port(ctx, field) - case "initialDelaySeconds": - return ec.fieldContext_ConfigHealthCheck_initialDelaySeconds(ctx, field) - case "probePeriodSeconds": - return ec.fieldContext_ConfigHealthCheck_probePeriodSeconds(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigHealthCheck", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfigWithID_serviceID(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfigWithID) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_defaultStatisticsTarget(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(ctx, field) if err != nil { return graphql.Null } @@ -19269,38 +19929,35 @@ func (ec *executionContext) _ConfigRunServiceConfigWithID_serviceID(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ServiceID, nil + return obj.DefaultStatisticsTarget, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*int32) fc.Result = res - return ec.marshalNuuid2string(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfigWithID_serviceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_defaultStatisticsTarget(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfigWithID", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type uuid does not have child fields") + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceConfigWithID_config(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfigWithID) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_randomPageCost(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_randomPageCost(ctx, field) if err != nil { return graphql.Null } @@ -19313,54 +19970,35 @@ func (ec *executionContext) _ConfigRunServiceConfigWithID_config(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Config, nil + return obj.RandomPageCost, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*float64) fc.Result = res - return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOFloat2ᚖfloat64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceConfigWithID_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_randomPageCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceConfigWithID", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, errors.New("field of type Float does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceImage_image(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceImage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceImage_image(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_effectiveIOConcurrency(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(ctx, field) if err != nil { return graphql.Null } @@ -19373,38 +20011,35 @@ func (ec *executionContext) _ConfigRunServiceImage_image(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Image, nil + return obj.EffectiveIOConcurrency, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*int32) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceImage_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_effectiveIOConcurrency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceImage", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceImage_pullCredentials(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceImage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceImage_pullCredentials(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_workMem(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_workMem(ctx, field) if err != nil { return graphql.Null } @@ -19417,7 +20052,7 @@ func (ec *executionContext) _ConfigRunServiceImage_pullCredentials(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PullCredentials, nil + return obj.WorkMem, nil }) if err != nil { ec.Error(ctx, err) @@ -19431,9 +20066,9 @@ func (ec *executionContext) _ConfigRunServiceImage_pullCredentials(ctx context.C return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceImage_pullCredentials(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_workMem(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceImage", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, @@ -19444,9 +20079,9 @@ func (ec *executionContext) fieldContext_ConfigRunServiceImage_pullCredentials(_ return fc, nil } -func (ec *executionContext) _ConfigRunServicePort_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServicePort_port(ctx, field) - if err != nil { +func (ec *executionContext) _ConfigPostgresSettings_hugePages(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_hugePages(ctx, field) + if err != nil { return graphql.Null } ctx = graphql.WithFieldContext(ctx, fc) @@ -19458,38 +20093,35 @@ func (ec *executionContext) _ConfigRunServicePort_port(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.HugePages, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint16) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServicePort_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_hugePages(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServicePort", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigPort does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServicePort_type(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServicePort_type(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_minWalSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_minWalSize(ctx, field) if err != nil { return graphql.Null } @@ -19502,26 +20134,23 @@ func (ec *executionContext) _ConfigRunServicePort_type(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.MinWalSize, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServicePort_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_minWalSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServicePort", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, @@ -19532,8 +20161,8 @@ func (ec *executionContext) fieldContext_ConfigRunServicePort_type(_ context.Con return fc, nil } -func (ec *executionContext) _ConfigRunServicePort_publish(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServicePort_publish(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxWalSize(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxWalSize(ctx, field) if err != nil { return graphql.Null } @@ -19546,7 +20175,7 @@ func (ec *executionContext) _ConfigRunServicePort_publish(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Publish, nil + return obj.MaxWalSize, nil }) if err != nil { ec.Error(ctx, err) @@ -19555,26 +20184,26 @@ func (ec *executionContext) _ConfigRunServicePort_publish(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServicePort_publish(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWalSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServicePort", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServicePort_ingresses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServicePort_ingresses(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxWorkerProcesses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxWorkerProcesses(ctx, field) if err != nil { return graphql.Null } @@ -19587,7 +20216,7 @@ func (ec *executionContext) _ConfigRunServicePort_ingresses(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ingresses, nil + return obj.MaxWorkerProcesses, nil }) if err != nil { ec.Error(ctx, err) @@ -19596,30 +20225,26 @@ func (ec *executionContext) _ConfigRunServicePort_ingresses(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigIngress) + res := resTmp.(*int32) fc.Result = res - return ec.marshalOConfigIngress2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigIngressᚄ(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServicePort_ingresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWorkerProcesses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServicePort", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "fqdn": - return ec.fieldContext_ConfigIngress_fqdn(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigIngress", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServicePort_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServicePort_rateLimit(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkersPerGather(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(ctx, field) if err != nil { return graphql.Null } @@ -19632,7 +20257,7 @@ func (ec *executionContext) _ConfigRunServicePort_rateLimit(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateLimit, nil + return obj.MaxParallelWorkersPerGather, nil }) if err != nil { ec.Error(ctx, err) @@ -19641,32 +20266,26 @@ func (ec *executionContext) _ConfigRunServicePort_rateLimit(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigRateLimit) + res := resTmp.(*int32) fc.Result = res - return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServicePort_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelWorkersPerGather(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServicePort", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "limit": - return ec.fieldContext_ConfigRateLimit_limit(ctx, field) - case "interval": - return ec.fieldContext_ConfigRateLimit_interval(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResources_compute(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxParallelWorkers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelWorkers(ctx, field) if err != nil { return graphql.Null } @@ -19679,44 +20298,35 @@ func (ec *executionContext) _ConfigRunServiceResources_compute(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Compute, nil + return obj.MaxParallelWorkers, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigComputeResources) + res := resTmp.(*int32) fc.Result = res - return ec.marshalNConfigComputeResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResources(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelWorkers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResources", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "cpu": - return ec.fieldContext_ConfigComputeResources_cpu(ctx, field) - case "memory": - return ec.fieldContext_ConfigComputeResources_memory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigComputeResources", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResources_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResources_storage(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(ctx, field) if err != nil { return graphql.Null } @@ -19729,7 +20339,7 @@ func (ec *executionContext) _ConfigRunServiceResources_storage(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Storage, nil + return obj.MaxParallelMaintenanceWorkers, nil }) if err != nil { ec.Error(ctx, err) @@ -19738,34 +20348,26 @@ func (ec *executionContext) _ConfigRunServiceResources_storage(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigRunServiceResourcesStorage) + res := resTmp.(*int32) fc.Result = res - return ec.marshalOConfigRunServiceResourcesStorage2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceResourcesStorageᚄ(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResources_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxParallelMaintenanceWorkers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResources", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceResourcesStorage_name(ctx, field) - case "capacity": - return ec.fieldContext_ConfigRunServiceResourcesStorage_capacity(ctx, field) - case "path": - return ec.fieldContext_ConfigRunServiceResourcesStorage_path(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceResourcesStorage", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResources_replicas(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_walLevel(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_walLevel(ctx, field) if err != nil { return graphql.Null } @@ -19778,38 +20380,35 @@ func (ec *executionContext) _ConfigRunServiceResources_replicas(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Replicas, nil + return obj.WalLevel, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(uint8) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigUint82uint8(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_walLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResources", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint8 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResources_autoscaler(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxWalSenders(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxWalSenders(ctx, field) if err != nil { return graphql.Null } @@ -19822,7 +20421,7 @@ func (ec *executionContext) _ConfigRunServiceResources_autoscaler(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Autoscaler, nil + return obj.MaxWalSenders, nil }) if err != nil { ec.Error(ctx, err) @@ -19831,30 +20430,26 @@ func (ec *executionContext) _ConfigRunServiceResources_autoscaler(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigAutoscaler) + res := resTmp.(*int32) fc.Result = res - return ec.marshalOConfigAutoscaler2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscaler(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxWalSenders(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResources", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "maxReplicas": - return ec.fieldContext_ConfigAutoscaler_maxReplicas(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigAutoscaler", field.Name) + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResourcesStorage_name(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_name(ctx, field) +func (ec *executionContext) _ConfigPostgresSettings_maxReplicationSlots(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresSettings) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresSettings_maxReplicationSlots(ctx, field) if err != nil { return graphql.Null } @@ -19867,38 +20462,35 @@ func (ec *executionContext) _ConfigRunServiceResourcesStorage_name(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.MaxReplicationSlots, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*int32) fc.Result = res - return ec.marshalNConfigRunServiceName2string(ctx, field.Selections, res) + return ec.marshalOConfigInt322ᚖint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresSettings_maxReplicationSlots(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResourcesStorage", + Object: "ConfigPostgresSettings", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigRunServiceName does not have child fields") + return nil, errors.New("field of type ConfigInt32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigRunServiceResourcesStorage_capacity(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_capacity(ctx, field) +func (ec *executionContext) _ConfigPostgresStorage_capacity(ctx context.Context, field graphql.CollectedField, obj *model.ConfigPostgresStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigPostgresStorage_capacity(ctx, field) if err != nil { return graphql.Null } @@ -19928,9 +20520,9 @@ func (ec *executionContext) _ConfigRunServiceResourcesStorage_capacity(ctx conte return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigPostgresStorage_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResourcesStorage", + Object: "ConfigPostgresStorage", Field: field, IsMethod: false, IsResolver: false, @@ -19941,8 +20533,8 @@ func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_capaci return fc, nil } -func (ec *executionContext) _ConfigRunServiceResourcesStorage_path(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_path(ctx, field) +func (ec *executionContext) _ConfigProvider_smtp(ctx context.Context, field graphql.CollectedField, obj *model.ConfigProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigProvider_smtp(ctx, field) if err != nil { return graphql.Null } @@ -19955,38 +20547,51 @@ func (ec *executionContext) _ConfigRunServiceResourcesStorage_path(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Path, nil + return obj.Smtp, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigSmtp) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigSmtp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSmtp(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigProvider_smtp(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigRunServiceResourcesStorage", + Object: "ConfigProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "user": + return ec.fieldContext_ConfigSmtp_user(ctx, field) + case "password": + return ec.fieldContext_ConfigSmtp_password(ctx, field) + case "sender": + return ec.fieldContext_ConfigSmtp_sender(ctx, field) + case "host": + return ec.fieldContext_ConfigSmtp_host(ctx, field) + case "port": + return ec.fieldContext_ConfigSmtp_port(ctx, field) + case "secure": + return ec.fieldContext_ConfigSmtp_secure(ctx, field) + case "method": + return ec.fieldContext_ConfigSmtp_method(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigSmtp", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSms_provider(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSms_provider(ctx, field) +func (ec *executionContext) _ConfigProvider_sms(ctx context.Context, field graphql.CollectedField, obj *model.ConfigProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigProvider_sms(ctx, field) if err != nil { return graphql.Null } @@ -19999,7 +20604,7 @@ func (ec *executionContext) _ConfigSms_provider(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Provider, nil + return obj.Sms, nil }) if err != nil { ec.Error(ctx, err) @@ -20008,26 +20613,36 @@ func (ec *executionContext) _ConfigSms_provider(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigSms) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigSms2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSms(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSms_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigProvider_sms(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSms", + Object: "ConfigProvider", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "provider": + return ec.fieldContext_ConfigSms_provider(ctx, field) + case "accountSid": + return ec.fieldContext_ConfigSms_accountSid(ctx, field) + case "authToken": + return ec.fieldContext_ConfigSms_authToken(ctx, field) + case "messagingServiceId": + return ec.fieldContext_ConfigSms_messagingServiceId(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigSms", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSms_accountSid(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSms_accountSid(ctx, field) +func (ec *executionContext) _ConfigRateLimit_limit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRateLimit_limit(ctx, field) if err != nil { return graphql.Null } @@ -20040,7 +20655,7 @@ func (ec *executionContext) _ConfigSms_accountSid(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AccountSid, nil + return obj.Limit, nil }) if err != nil { ec.Error(ctx, err) @@ -20052,26 +20667,26 @@ func (ec *executionContext) _ConfigSms_accountSid(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(string) + res := resTmp.(uint32) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSms_accountSid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRateLimit_limit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSms", + Object: "ConfigRateLimit", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSms_authToken(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSms_authToken(ctx, field) +func (ec *executionContext) _ConfigRateLimit_interval(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRateLimit) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRateLimit_interval(ctx, field) if err != nil { return graphql.Null } @@ -20084,7 +20699,7 @@ func (ec *executionContext) _ConfigSms_authToken(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthToken, nil + return obj.Interval, nil }) if err != nil { ec.Error(ctx, err) @@ -20101,9 +20716,9 @@ func (ec *executionContext) _ConfigSms_authToken(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSms_authToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRateLimit_interval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSms", + Object: "ConfigRateLimit", Field: field, IsMethod: false, IsResolver: false, @@ -20114,8 +20729,8 @@ func (ec *executionContext) fieldContext_ConfigSms_authToken(_ context.Context, return fc, nil } -func (ec *executionContext) _ConfigSms_messagingServiceId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSms_messagingServiceId(ctx, field) +func (ec *executionContext) _ConfigResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResources_compute(ctx, field) if err != nil { return graphql.Null } @@ -20128,38 +20743,41 @@ func (ec *executionContext) _ConfigSms_messagingServiceId(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MessagingServiceId, nil + return obj.Compute, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigResourcesCompute) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigResourcesCompute2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesCompute(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSms_messagingServiceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSms", + Object: "ConfigResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "cpu": + return ec.fieldContext_ConfigResourcesCompute_cpu(ctx, field) + case "memory": + return ec.fieldContext_ConfigResourcesCompute_memory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigResourcesCompute", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_user(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_user(ctx, field) +func (ec *executionContext) _ConfigResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResources_replicas(ctx, field) if err != nil { return graphql.Null } @@ -20172,38 +20790,35 @@ func (ec *executionContext) _ConfigSmtp_user(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.Replicas, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*uint8) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigUint82ᚖuint8(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigUint8 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_password(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_password(ctx, field) +func (ec *executionContext) _ConfigResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResources_autoscaler(ctx, field) if err != nil { return graphql.Null } @@ -20216,38 +20831,39 @@ func (ec *executionContext) _ConfigSmtp_password(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Password, nil + return obj.Autoscaler, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigAutoscaler) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigAutoscaler2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscaler(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "maxReplicas": + return ec.fieldContext_ConfigAutoscaler_maxReplicas(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigAutoscaler", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_sender(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_sender(ctx, field) +func (ec *executionContext) _ConfigResources_networking(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResources_networking(ctx, field) if err != nil { return graphql.Null } @@ -20260,38 +20876,39 @@ func (ec *executionContext) _ConfigSmtp_sender(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sender, nil + return obj.Networking, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigNetworking) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigNetworking2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworking(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_sender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResources_networking(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "ingresses": + return ec.fieldContext_ConfigNetworking_ingresses(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigNetworking", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_host(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_host(ctx, field) +func (ec *executionContext) _ConfigResourcesCompute_cpu(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResourcesCompute) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResourcesCompute_cpu(ctx, field) if err != nil { return graphql.Null } @@ -20304,7 +20921,7 @@ func (ec *executionContext) _ConfigSmtp_host(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Host, nil + return obj.Cpu, nil }) if err != nil { ec.Error(ctx, err) @@ -20316,26 +20933,26 @@ func (ec *executionContext) _ConfigSmtp_host(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(string) + res := resTmp.(uint32) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_host(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResourcesCompute_cpu(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigResourcesCompute", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_port(ctx, field) +func (ec *executionContext) _ConfigResourcesCompute_memory(ctx context.Context, field graphql.CollectedField, obj *model.ConfigResourcesCompute) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigResourcesCompute_memory(ctx, field) if err != nil { return graphql.Null } @@ -20348,7 +20965,7 @@ func (ec *executionContext) _ConfigSmtp_port(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Port, nil + return obj.Memory, nil }) if err != nil { ec.Error(ctx, err) @@ -20360,26 +20977,26 @@ func (ec *executionContext) _ConfigSmtp_port(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(uint16) + res := resTmp.(uint32) fc.Result = res - return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) + return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigResourcesCompute_memory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigResourcesCompute", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigPort does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_secure(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_secure(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_name(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) if err != nil { return graphql.Null } @@ -20392,7 +21009,7 @@ func (ec *executionContext) _ConfigSmtp_secure(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Secure, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -20404,26 +21021,26 @@ func (ec *executionContext) _ConfigSmtp_secure(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceName2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_secure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type ConfigRunServiceName does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSmtp_method(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSmtp_method(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_image(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) if err != nil { return graphql.Null } @@ -20436,7 +21053,7 @@ func (ec *executionContext) _ConfigSmtp_method(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Method, nil + return obj.Image, nil }) if err != nil { ec.Error(ctx, err) @@ -20448,26 +21065,32 @@ func (ec *executionContext) _ConfigSmtp_method(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigRunServiceImage) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceImage2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceImage(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSmtp_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSmtp", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "image": + return ec.fieldContext_ConfigRunServiceImage_image(ctx, field) + case "pullCredentials": + return ec.fieldContext_ConfigRunServiceImage_pullCredentials(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceImage", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProvider_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProvider_enabled(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_command(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) if err != nil { return graphql.Null } @@ -20480,7 +21103,7 @@ func (ec *executionContext) _ConfigStandardOauthProvider_enabled(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.Command, nil }) if err != nil { ec.Error(ctx, err) @@ -20489,26 +21112,26 @@ func (ec *executionContext) _ConfigStandardOauthProvider_enabled(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*bool) + res := resTmp.([]string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_command(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProvider", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProvider_clientId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProvider_clientId(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_environment(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) if err != nil { return graphql.Null } @@ -20521,7 +21144,7 @@ func (ec *executionContext) _ConfigStandardOauthProvider_clientId(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientId, nil + return obj.Environment, nil }) if err != nil { ec.Error(ctx, err) @@ -20530,26 +21153,32 @@ func (ec *executionContext) _ConfigStandardOauthProvider_clientId(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_clientId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProvider", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProvider_clientSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProvider_clientSecret(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_ports(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) if err != nil { return graphql.Null } @@ -20562,7 +21191,7 @@ func (ec *executionContext) _ConfigStandardOauthProvider_clientSecret(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientSecret, nil + return obj.Ports, nil }) if err != nil { ec.Error(ctx, err) @@ -20571,26 +21200,38 @@ func (ec *executionContext) _ConfigStandardOauthProvider_clientSecret(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*model.ConfigRunServicePort) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigRunServicePort2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServicePortᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_ports(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProvider", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} + switch field.Name { + case "port": + return ec.fieldContext_ConfigRunServicePort_port(ctx, field) + case "type": + return ec.fieldContext_ConfigRunServicePort_type(ctx, field) + case "publish": + return ec.fieldContext_ConfigRunServicePort_publish(ctx, field) + case "ingresses": + return ec.fieldContext_ConfigRunServicePort_ingresses(ctx, field) + case "rateLimit": + return ec.fieldContext_ConfigRunServicePort_rateLimit(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServicePort", field.Name) + }, + } + return fc, nil +} -func (ec *executionContext) _ConfigStandardOauthProviderWithScope_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_enabled(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) if err != nil { return graphql.Null } @@ -20603,35 +21244,48 @@ func (ec *executionContext) _ConfigStandardOauthProviderWithScope_enabled(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(*model.ConfigRunServiceResources) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceResources(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProviderWithScope", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "compute": + return ec.fieldContext_ConfigRunServiceResources_compute(ctx, field) + case "storage": + return ec.fieldContext_ConfigRunServiceResources_storage(ctx, field) + case "replicas": + return ec.fieldContext_ConfigRunServiceResources_replicas(ctx, field) + case "autoscaler": + return ec.fieldContext_ConfigRunServiceResources_autoscaler(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceResources", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_clientId(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfig_healthCheck(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) if err != nil { return graphql.Null } @@ -20644,7 +21298,7 @@ func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientId(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientId, nil + return obj.HealthCheck, nil }) if err != nil { ec.Error(ctx, err) @@ -20653,26 +21307,34 @@ func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientId(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigHealthCheck) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigHealthCheck2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHealthCheck(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_clientId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfig_healthCheck(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProviderWithScope", + Object: "ConfigRunServiceConfig", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "port": + return ec.fieldContext_ConfigHealthCheck_port(ctx, field) + case "initialDelaySeconds": + return ec.fieldContext_ConfigHealthCheck_initialDelaySeconds(ctx, field) + case "probePeriodSeconds": + return ec.fieldContext_ConfigHealthCheck_probePeriodSeconds(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigHealthCheck", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProviderWithScope_scope(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_scope(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfigWithID_serviceID(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfigWithID) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) if err != nil { return graphql.Null } @@ -20685,35 +21347,38 @@ func (ec *executionContext) _ConfigStandardOauthProviderWithScope_scope(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scope, nil + return obj.ServiceID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNuuid2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfigWithID_serviceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProviderWithScope", + Object: "ConfigRunServiceConfigWithID", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type uuid does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_clientSecret(ctx, field) +func (ec *executionContext) _ConfigRunServiceConfigWithID_config(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceConfigWithID) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) if err != nil { return graphql.Null } @@ -20726,35 +21391,54 @@ func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientSecret(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ClientSecret, nil + return obj.Config, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceConfigWithID_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStandardOauthProviderWithScope", + Object: "ConfigRunServiceConfigWithID", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigStorage_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStorage_version(ctx, field) +func (ec *executionContext) _ConfigRunServiceImage_image(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceImage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceImage_image(ctx, field) if err != nil { return graphql.Null } @@ -20767,23 +21451,26 @@ func (ec *executionContext) _ConfigStorage_version(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Image, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStorage_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceImage_image(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStorage", + Object: "ConfigRunServiceImage", Field: field, IsMethod: false, IsResolver: false, @@ -20794,8 +21481,8 @@ func (ec *executionContext) fieldContext_ConfigStorage_version(_ context.Context return fc, nil } -func (ec *executionContext) _ConfigStorage_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStorage_resources(ctx, field) +func (ec *executionContext) _ConfigRunServiceImage_pullCredentials(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceImage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceImage_pullCredentials(ctx, field) if err != nil { return graphql.Null } @@ -20808,7 +21495,7 @@ func (ec *executionContext) _ConfigStorage_resources(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Resources, nil + return obj.PullCredentials, nil }) if err != nil { ec.Error(ctx, err) @@ -20817,36 +21504,26 @@ func (ec *executionContext) _ConfigStorage_resources(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigResources) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResources(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStorage_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceImage_pullCredentials(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStorage", + Object: "ConfigRunServiceImage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "compute": - return ec.fieldContext_ConfigResources_compute(ctx, field) - case "replicas": - return ec.fieldContext_ConfigResources_replicas(ctx, field) - case "autoscaler": - return ec.fieldContext_ConfigResources_autoscaler(ctx, field) - case "networking": - return ec.fieldContext_ConfigResources_networking(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigResources", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigStorage_antivirus(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStorage_antivirus(ctx, field) +func (ec *executionContext) _ConfigRunServicePort_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServicePort_port(ctx, field) if err != nil { return graphql.Null } @@ -20859,39 +21536,38 @@ func (ec *executionContext) _ConfigStorage_antivirus(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Antivirus, nil + return obj.Port, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigStorageAntivirus) + res := resTmp.(uint16) fc.Result = res - return ec.marshalOConfigStorageAntivirus2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageAntivirus(ctx, field.Selections, res) + return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStorage_antivirus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServicePort_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStorage", + Object: "ConfigRunServicePort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "server": - return ec.fieldContext_ConfigStorageAntivirus_server(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigStorageAntivirus", field.Name) + return nil, errors.New("field of type ConfigPort does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigStorage_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStorage_rateLimit(ctx, field) +func (ec *executionContext) _ConfigRunServicePort_type(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServicePort_type(ctx, field) if err != nil { return graphql.Null } @@ -20904,41 +21580,38 @@ func (ec *executionContext) _ConfigStorage_rateLimit(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RateLimit, nil + return obj.Type, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigRateLimit) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStorage_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServicePort_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStorage", + Object: "ConfigRunServicePort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "limit": - return ec.fieldContext_ConfigRateLimit_limit(ctx, field) - case "interval": - return ec.fieldContext_ConfigRateLimit_interval(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigStorageAntivirus_server(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorageAntivirus) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigStorageAntivirus_server(ctx, field) +func (ec *executionContext) _ConfigRunServicePort_publish(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServicePort_publish(ctx, field) if err != nil { return graphql.Null } @@ -20951,7 +21624,7 @@ func (ec *executionContext) _ConfigStorageAntivirus_server(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Server, nil + return obj.Publish, nil }) if err != nil { ec.Error(ctx, err) @@ -20960,26 +21633,26 @@ func (ec *executionContext) _ConfigStorageAntivirus_server(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigStorageAntivirus_server(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServicePort_publish(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigStorageAntivirus", + Object: "ConfigRunServicePort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfig_auth(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfig_auth(ctx, field) +func (ec *executionContext) _ConfigRunServicePort_ingresses(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServicePort_ingresses(ctx, field) if err != nil { return graphql.Null } @@ -20992,7 +21665,7 @@ func (ec *executionContext) _ConfigSystemConfig_auth(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Auth, nil + return obj.Ingresses, nil }) if err != nil { ec.Error(ctx, err) @@ -21001,30 +21674,30 @@ func (ec *executionContext) _ConfigSystemConfig_auth(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigAuth) + res := resTmp.([]*model.ConfigIngress) fc.Result = res - return ec.marshalOConfigSystemConfigAuth2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuth(ctx, field.Selections, res) + return ec.marshalOConfigIngress2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigIngressᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfig_auth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServicePort_ingresses(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfig", + Object: "ConfigRunServicePort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "email": - return ec.fieldContext_ConfigSystemConfigAuth_email(ctx, field) + case "fqdn": + return ec.fieldContext_ConfigIngress_fqdn(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuth", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigIngress", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfig_graphql(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) +func (ec *executionContext) _ConfigRunServicePort_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServicePort) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServicePort_rateLimit(ctx, field) if err != nil { return graphql.Null } @@ -21037,7 +21710,7 @@ func (ec *executionContext) _ConfigSystemConfig_graphql(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Graphql, nil + return obj.RateLimit, nil }) if err != nil { ec.Error(ctx, err) @@ -21046,30 +21719,32 @@ func (ec *executionContext) _ConfigSystemConfig_graphql(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigGraphql) + res := resTmp.(*model.ConfigRateLimit) fc.Result = res - return ec.marshalOConfigSystemConfigGraphql2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigGraphql(ctx, field.Selections, res) + return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfig_graphql(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServicePort_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfig", + Object: "ConfigRunServicePort", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "featureAdvancedGraphql": - return ec.fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx, field) + case "limit": + return ec.fieldContext_ConfigRateLimit_limit(ctx, field) + case "interval": + return ec.fieldContext_ConfigRateLimit_interval(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigGraphql", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfig_postgres(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) +func (ec *executionContext) _ConfigRunServiceResources_compute(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResources_compute(ctx, field) if err != nil { return graphql.Null } @@ -21082,7 +21757,7 @@ func (ec *executionContext) _ConfigSystemConfig_postgres(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Postgres, nil + return obj.Compute, nil }) if err != nil { ec.Error(ctx, err) @@ -21094,38 +21769,32 @@ func (ec *executionContext) _ConfigSystemConfig_postgres(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigPostgres) + res := resTmp.(*model.ConfigComputeResources) fc.Result = res - return ec.marshalNConfigSystemConfigPostgres2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgres(ctx, field.Selections, res) + return ec.marshalNConfigComputeResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResources(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfig_postgres(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResources_compute(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfig", + Object: "ConfigRunServiceResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "enabled": - return ec.fieldContext_ConfigSystemConfigPostgres_enabled(ctx, field) - case "majorVersion": - return ec.fieldContext_ConfigSystemConfigPostgres_majorVersion(ctx, field) - case "connectionString": - return ec.fieldContext_ConfigSystemConfigPostgres_connectionString(ctx, field) - case "database": - return ec.fieldContext_ConfigSystemConfigPostgres_database(ctx, field) - case "disk": - return ec.fieldContext_ConfigSystemConfigPostgres_disk(ctx, field) + case "cpu": + return ec.fieldContext_ConfigComputeResources_cpu(ctx, field) + case "memory": + return ec.fieldContext_ConfigComputeResources_memory(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgres", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigComputeResources", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigAuth_email(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuth) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigAuth_email(ctx, field) +func (ec *executionContext) _ConfigRunServiceResources_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResources_storage(ctx, field) if err != nil { return graphql.Null } @@ -21138,7 +21807,7 @@ func (ec *executionContext) _ConfigSystemConfigAuth_email(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.Storage, nil }) if err != nil { ec.Error(ctx, err) @@ -21147,30 +21816,34 @@ func (ec *executionContext) _ConfigSystemConfigAuth_email(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigAuthEmail) + res := resTmp.([]*model.ConfigRunServiceResourcesStorage) fc.Result = res - return ec.marshalOConfigSystemConfigAuthEmail2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuthEmail(ctx, field.Selections, res) + return ec.marshalOConfigRunServiceResourcesStorage2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceResourcesStorageᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigAuth_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResources_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigAuth", + Object: "ConfigRunServiceResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "templates": - return ec.fieldContext_ConfigSystemConfigAuthEmail_templates(ctx, field) + case "name": + return ec.fieldContext_ConfigRunServiceResourcesStorage_name(ctx, field) + case "capacity": + return ec.fieldContext_ConfigRunServiceResourcesStorage_capacity(ctx, field) + case "path": + return ec.fieldContext_ConfigRunServiceResourcesStorage_path(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuthEmail", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceResourcesStorage", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigAuthEmail_templates(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuthEmail) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigAuthEmail_templates(ctx, field) +func (ec *executionContext) _ConfigRunServiceResources_replicas(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResources_replicas(ctx, field) if err != nil { return graphql.Null } @@ -21183,39 +21856,38 @@ func (ec *executionContext) _ConfigSystemConfigAuthEmail_templates(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Templates, nil + return obj.Replicas, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigAuthEmailTemplates) + res := resTmp.(uint8) fc.Result = res - return ec.marshalOConfigSystemConfigAuthEmailTemplates2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuthEmailTemplates(ctx, field.Selections, res) + return ec.marshalNConfigUint82uint8(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigAuthEmail_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResources_replicas(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigAuthEmail", + Object: "ConfigRunServiceResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "s3Key": - return ec.fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuthEmailTemplates", field.Name) + return nil, errors.New("field of type ConfigUint8 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigAuthEmailTemplates_s3Key(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuthEmailTemplates) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(ctx, field) +func (ec *executionContext) _ConfigRunServiceResources_autoscaler(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResources) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResources_autoscaler(ctx, field) if err != nil { return graphql.Null } @@ -21228,7 +21900,7 @@ func (ec *executionContext) _ConfigSystemConfigAuthEmailTemplates_s3Key(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.S3Key, nil + return obj.Autoscaler, nil }) if err != nil { ec.Error(ctx, err) @@ -21237,26 +21909,30 @@ func (ec *executionContext) _ConfigSystemConfigAuthEmailTemplates_s3Key(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigAutoscaler) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigAutoscaler2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscaler(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResources_autoscaler(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigAuthEmailTemplates", + Object: "ConfigRunServiceResources", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "maxReplicas": + return ec.fieldContext_ConfigAutoscaler_maxReplicas(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigAutoscaler", field.Name) }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigGraphql) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx, field) +func (ec *executionContext) _ConfigRunServiceResourcesStorage_name(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_name(ctx, field) if err != nil { return graphql.Null } @@ -21269,35 +21945,38 @@ func (ec *executionContext) _ConfigSystemConfigGraphql_featureAdvancedGraphql(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FeatureAdvancedGraphql, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceName2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigGraphql", + Object: "ConfigRunServiceResourcesStorage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type ConfigRunServiceName does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgres_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgres_enabled(ctx, field) +func (ec *executionContext) _ConfigRunServiceResourcesStorage_capacity(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_capacity(ctx, field) if err != nil { return graphql.Null } @@ -21310,35 +21989,38 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_enabled(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Enabled, nil + return obj.Capacity, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*bool) + res := resTmp.(uint32) fc.Result = res - return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) + return ec.marshalNConfigUint322uint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_capacity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgres", + Object: "ConfigRunServiceResourcesStorage", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgres_majorVersion(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgres_majorVersion(ctx, field) +func (ec *executionContext) _ConfigRunServiceResourcesStorage_path(ctx context.Context, field graphql.CollectedField, obj *model.ConfigRunServiceResourcesStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigRunServiceResourcesStorage_path(ctx, field) if err != nil { return graphql.Null } @@ -21351,23 +22033,26 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_majorVersion(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MajorVersion, nil + return obj.Path, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_majorVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigRunServiceResourcesStorage_path(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgres", + Object: "ConfigRunServiceResourcesStorage", Field: field, IsMethod: false, IsResolver: false, @@ -21378,8 +22063,8 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_majorVersion return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgres_connectionString(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgres_connectionString(ctx, field) +func (ec *executionContext) _ConfigSms_provider(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSms_provider(ctx, field) if err != nil { return graphql.Null } @@ -21392,48 +22077,35 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_connectionString(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ConnectionString, nil + return obj.Provider, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigPostgresConnectionString) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigSystemConfigPostgresConnectionString2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgresConnectionString(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_connectionString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSms_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgres", + Object: "ConfigSms", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "backup": - return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_backup(ctx, field) - case "hasura": - return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(ctx, field) - case "auth": - return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_auth(ctx, field) - case "storage": - return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_storage(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgresConnectionString", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgres_database(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgres_database(ctx, field) +func (ec *executionContext) _ConfigSms_accountSid(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSms_accountSid(ctx, field) if err != nil { return graphql.Null } @@ -21446,7 +22118,7 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_database(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Database, nil + return obj.AccountSid, nil }) if err != nil { ec.Error(ctx, err) @@ -21463,9 +22135,9 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_database(ctx context.Con return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_database(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSms_accountSid(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgres", + Object: "ConfigSms", Field: field, IsMethod: false, IsResolver: false, @@ -21476,8 +22148,8 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_database(_ c return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgres_disk(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgres_disk(ctx, field) +func (ec *executionContext) _ConfigSms_authToken(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSms_authToken(ctx, field) if err != nil { return graphql.Null } @@ -21490,41 +22162,38 @@ func (ec *executionContext) _ConfigSystemConfigPostgres_disk(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Disk, nil + return obj.AuthToken, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfigPostgresDisk) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigSystemConfigPostgresDisk2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgresDisk(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_disk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSms_authToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgres", + Object: "ConfigSms", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "iops": - return ec.fieldContext_ConfigSystemConfigPostgresDisk_iops(ctx, field) - case "tput": - return ec.fieldContext_ConfigSystemConfigPostgresDisk_tput(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgresDisk", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_backup(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_backup(ctx, field) +func (ec *executionContext) _ConfigSms_messagingServiceId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSms) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSms_messagingServiceId(ctx, field) if err != nil { return graphql.Null } @@ -21537,7 +22206,7 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_backup(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Backup, nil + return obj.MessagingServiceId, nil }) if err != nil { ec.Error(ctx, err) @@ -21554,9 +22223,9 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_backup(c return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_backup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSms_messagingServiceId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresConnectionString", + Object: "ConfigSms", Field: field, IsMethod: false, IsResolver: false, @@ -21567,8 +22236,8 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionStr return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_hasura(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(ctx, field) +func (ec *executionContext) _ConfigSmtp_user(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_user(ctx, field) if err != nil { return graphql.Null } @@ -21581,7 +22250,7 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_hasura(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hasura, nil + return obj.User, nil }) if err != nil { ec.Error(ctx, err) @@ -21598,9 +22267,9 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_hasura(c return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresConnectionString", + Object: "ConfigSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -21611,9 +22280,9 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionStr return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_auth(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_auth(ctx, field) - if err != nil { +func (ec *executionContext) _ConfigSmtp_password(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_password(ctx, field) + if err != nil { return graphql.Null } ctx = graphql.WithFieldContext(ctx, fc) @@ -21625,7 +22294,7 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_auth(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Auth, nil + return obj.Password, nil }) if err != nil { ec.Error(ctx, err) @@ -21642,9 +22311,9 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_auth(ctx return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_auth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_password(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresConnectionString", + Object: "ConfigSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -21655,8 +22324,8 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionStr return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_storage(ctx, field) +func (ec *executionContext) _ConfigSmtp_sender(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_sender(ctx, field) if err != nil { return graphql.Null } @@ -21669,7 +22338,7 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_storage( }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Storage, nil + return obj.Sender, nil }) if err != nil { ec.Error(ctx, err) @@ -21686,9 +22355,9 @@ func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_storage( return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_sender(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresConnectionString", + Object: "ConfigSmtp", Field: field, IsMethod: false, IsResolver: false, @@ -21699,8 +22368,8 @@ func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionStr return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresDisk_iops(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresDisk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresDisk_iops(ctx, field) +func (ec *executionContext) _ConfigSmtp_host(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_host(ctx, field) if err != nil { return graphql.Null } @@ -21713,35 +22382,38 @@ func (ec *executionContext) _ConfigSystemConfigPostgresDisk_iops(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Iops, nil + return obj.Host, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*uint32) + res := resTmp.(string) fc.Result = res - return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresDisk_iops(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_host(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresDisk", + Object: "ConfigSmtp", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ConfigSystemConfigPostgresDisk_tput(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresDisk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ConfigSystemConfigPostgresDisk_tput(ctx, field) +func (ec *executionContext) _ConfigSmtp_port(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_port(ctx, field) if err != nil { return graphql.Null } @@ -21754,35 +22426,38 @@ func (ec *executionContext) _ConfigSystemConfigPostgresDisk_tput(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tput, nil + return obj.Port, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*uint32) + res := resTmp.(uint16) fc.Result = res - return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) + return ec.marshalNConfigPort2uint16(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresDisk_tput(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_port(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ConfigSystemConfigPostgresDisk", + Object: "ConfigSmtp", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ConfigUint32 does not have child fields") + return nil, errors.New("field of type ConfigPort does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Mutation_updateConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateConfig(ctx, field) +func (ec *executionContext) _ConfigSmtp_secure(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_secure(ctx, field) if err != nil { return graphql.Null } @@ -21795,7 +22470,7 @@ func (ec *executionContext) _Mutation_updateConfig(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigUpdateInput)) + return obj.Secure, nil }) if err != nil { ec.Error(ctx, err) @@ -21807,59 +22482,26 @@ func (ec *executionContext) _Mutation_updateConfig(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*model.ConfigConfig) + res := resTmp.(bool) fc.Result = res - return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_secure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigSmtp", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "global": - return ec.fieldContext_ConfigConfig_global(ctx, field) - case "hasura": - return ec.fieldContext_ConfigConfig_hasura(ctx, field) - case "graphql": - return ec.fieldContext_ConfigConfig_graphql(ctx, field) - case "functions": - return ec.fieldContext_ConfigConfig_functions(ctx, field) - case "auth": - return ec.fieldContext_ConfigConfig_auth(ctx, field) - case "postgres": - return ec.fieldContext_ConfigConfig_postgres(ctx, field) - case "provider": - return ec.fieldContext_ConfigConfig_provider(ctx, field) - case "storage": - return ec.fieldContext_ConfigConfig_storage(ctx, field) - case "ai": - return ec.fieldContext_ConfigConfig_ai(ctx, field) - case "observability": - return ec.fieldContext_ConfigConfig_observability(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_replaceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_replaceConfig(ctx, field) +func (ec *executionContext) _ConfigSmtp_method(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSmtp) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSmtp_method(ctx, field) if err != nil { return graphql.Null } @@ -21872,7 +22514,7 @@ func (ec *executionContext) _Mutation_replaceConfig(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ReplaceConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigInsertInput)) + return obj.Method, nil }) if err != nil { ec.Error(ctx, err) @@ -21884,59 +22526,26 @@ func (ec *executionContext) _Mutation_replaceConfig(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*model.ConfigConfig) + res := resTmp.(string) fc.Result = res - return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_replaceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSmtp_method(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigSmtp", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "global": - return ec.fieldContext_ConfigConfig_global(ctx, field) - case "hasura": - return ec.fieldContext_ConfigConfig_hasura(ctx, field) - case "graphql": - return ec.fieldContext_ConfigConfig_graphql(ctx, field) - case "functions": - return ec.fieldContext_ConfigConfig_functions(ctx, field) - case "auth": - return ec.fieldContext_ConfigConfig_auth(ctx, field) - case "postgres": - return ec.fieldContext_ConfigConfig_postgres(ctx, field) - case "provider": - return ec.fieldContext_ConfigConfig_provider(ctx, field) - case "storage": - return ec.fieldContext_ConfigConfig_storage(ctx, field) - case "ai": - return ec.fieldContext_ConfigConfig_ai(ctx, field) - case "observability": - return ec.fieldContext_ConfigConfig_observability(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_replaceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_replaceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_replaceConfigRawJSON(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProvider_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProvider_enabled(ctx, field) if err != nil { return graphql.Null } @@ -21949,49 +22558,35 @@ func (ec *executionContext) _Mutation_replaceConfigRawJSON(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ReplaceConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["rawJSON"].(string)) + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_replaceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProvider", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_replaceConfigRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_insertConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_insertConfig(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProvider_clientId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProvider_clientId(ctx, field) if err != nil { return graphql.Null } @@ -22004,57 +22599,35 @@ func (ec *executionContext) _Mutation_insertConfig(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().InsertConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigInsertInput), fc.Args["systemConfig"].(model.ConfigSystemConfigInsertInput), fc.Args["secrets"].([]*model.ConfigEnvironmentVariableInsertInput)) + return obj.ClientId, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigInsertConfigResponse) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigInsertConfigResponse2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigInsertConfigResponse(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_insertConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_clientId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProvider", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "config": - return ec.fieldContext_ConfigInsertConfigResponse_config(ctx, field) - case "systemConfig": - return ec.fieldContext_ConfigInsertConfigResponse_systemConfig(ctx, field) - case "secrets": - return ec.fieldContext_ConfigInsertConfigResponse_secrets(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigInsertConfigResponse", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_insertConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteConfig(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProvider_clientSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProvider) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProvider_clientSecret(ctx, field) if err != nil { return graphql.Null } @@ -22067,7 +22640,7 @@ func (ec *executionContext) _Mutation_deleteConfig(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteConfig(rctx, fc.Args["appID"].(string)) + return obj.ClientSecret, nil }) if err != nil { ec.Error(ctx, err) @@ -22076,59 +22649,26 @@ func (ec *executionContext) _Mutation_deleteConfig(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigConfig) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProvider_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProvider", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "global": - return ec.fieldContext_ConfigConfig_global(ctx, field) - case "hasura": - return ec.fieldContext_ConfigConfig_hasura(ctx, field) - case "graphql": - return ec.fieldContext_ConfigConfig_graphql(ctx, field) - case "functions": - return ec.fieldContext_ConfigConfig_functions(ctx, field) - case "auth": - return ec.fieldContext_ConfigConfig_auth(ctx, field) - case "postgres": - return ec.fieldContext_ConfigConfig_postgres(ctx, field) - case "provider": - return ec.fieldContext_ConfigConfig_provider(ctx, field) - case "storage": - return ec.fieldContext_ConfigConfig_storage(ctx, field) - case "ai": - return ec.fieldContext_ConfigConfig_ai(ctx, field) - case "observability": - return ec.fieldContext_ConfigConfig_observability(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_changeDatabaseVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_changeDatabaseVersion(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProviderWithScope_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_enabled(ctx, field) if err != nil { return graphql.Null } @@ -22141,49 +22681,35 @@ func (ec *executionContext) _Mutation_changeDatabaseVersion(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ChangeDatabaseVersion(rctx, fc.Args["appID"].(string), fc.Args["version"].(string), fc.Args["force"].(*bool)) + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_changeDatabaseVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProviderWithScope", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_changeDatabaseVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_insertSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_insertSecret(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientId(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_clientId(ctx, field) if err != nil { return graphql.Null } @@ -22196,55 +22722,35 @@ func (ec *executionContext) _Mutation_insertSecret(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().InsertSecret(rctx, fc.Args["appID"].(string), fc.Args["secret"].(model.ConfigEnvironmentVariableInsertInput)) + return obj.ClientId, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigEnvironmentVariable) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_insertSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_clientId(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProviderWithScope", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_insertSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSecret(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProviderWithScope_scope(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_scope(ctx, field) if err != nil { return graphql.Null } @@ -22257,55 +22763,35 @@ func (ec *executionContext) _Mutation_updateSecret(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSecret(rctx, fc.Args["appID"].(string), fc.Args["secret"].(model.ConfigEnvironmentVariableInsertInput)) + return obj.Scope, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigEnvironmentVariable) + res := resTmp.([]string) fc.Result = res - return ec.marshalNConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProviderWithScope", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSecret(ctx, field) +func (ec *executionContext) _ConfigStandardOauthProviderWithScope_clientSecret(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStandardOauthProviderWithScope) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStandardOauthProviderWithScope_clientSecret(ctx, field) if err != nil { return graphql.Null } @@ -22318,7 +22804,7 @@ func (ec *executionContext) _Mutation_deleteSecret(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSecret(rctx, fc.Args["appID"].(string), fc.Args["key"].(string)) + return obj.ClientSecret, nil }) if err != nil { ec.Error(ctx, err) @@ -22327,43 +22813,26 @@ func (ec *executionContext) _Mutation_deleteSecret(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigEnvironmentVariable) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStandardOauthProviderWithScope_clientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStandardOauthProviderWithScope", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateSystemConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSystemConfig(ctx, field) +func (ec *executionContext) _ConfigStorage_version(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStorage_version(ctx, field) if err != nil { return graphql.Null } @@ -22376,57 +22845,35 @@ func (ec *executionContext) _Mutation_updateSystemConfig(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSystemConfig(rctx, fc.Args["appID"].(string), fc.Args["systemConfig"].(model.ConfigSystemConfigUpdateInput)) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigSystemConfig) + res := resTmp.(*string) fc.Result = res - return ec.marshalNConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSystemConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStorage_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStorage", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "auth": - return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) - case "graphql": - return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) - case "postgres": - return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSystemConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_insertRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_insertRunServiceConfig(ctx, field) +func (ec *executionContext) _ConfigStorage_resources(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStorage_resources(ctx, field) if err != nil { return graphql.Null } @@ -22439,65 +22886,45 @@ func (ec *executionContext) _Mutation_insertRunServiceConfig(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().InsertRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigInsertInput)) + return obj.Resources, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*model.ConfigResources) fc.Result = res - return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOConfigResources2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResources(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_insertRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStorage_resources(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStorage", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + case "compute": + return ec.fieldContext_ConfigResources_compute(ctx, field) + case "replicas": + return ec.fieldContext_ConfigResources_replicas(ctx, field) + case "autoscaler": + return ec.fieldContext_ConfigResources_autoscaler(ctx, field) + case "networking": + return ec.fieldContext_ConfigResources_networking(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigResources", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_insertRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateRunServiceConfig(ctx, field) +func (ec *executionContext) _ConfigStorage_antivirus(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStorage_antivirus(ctx, field) if err != nil { return graphql.Null } @@ -22510,65 +22937,39 @@ func (ec *executionContext) _Mutation_updateRunServiceConfig(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigUpdateInput)) + return obj.Antivirus, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*model.ConfigStorageAntivirus) fc.Result = res - return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOConfigStorageAntivirus2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageAntivirus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStorage_antivirus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStorage", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + case "server": + return ec.fieldContext_ConfigStorageAntivirus_server(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigStorageAntivirus", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_replaceRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_replaceRunServiceConfig(ctx, field) +func (ec *executionContext) _ConfigStorage_rateLimit(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorage) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStorage_rateLimit(ctx, field) if err != nil { return graphql.Null } @@ -22581,65 +22982,41 @@ func (ec *executionContext) _Mutation_replaceRunServiceConfig(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().ReplaceRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigInsertInput)) + return obj.RateLimit, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*model.ConfigRateLimit) fc.Result = res - return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOConfigRateLimit2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimit(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_replaceRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStorage_rateLimit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStorage", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + case "limit": + return ec.fieldContext_ConfigRateLimit_limit(ctx, field) + case "interval": + return ec.fieldContext_ConfigRateLimit_interval(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRateLimit", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_replaceRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteRunServiceConfig(ctx, field) +func (ec *executionContext) _ConfigStorageAntivirus_server(ctx context.Context, field graphql.CollectedField, obj *model.ConfigStorageAntivirus) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigStorageAntivirus_server(ctx, field) if err != nil { return graphql.Null } @@ -22652,7 +23029,7 @@ func (ec *executionContext) _Mutation_deleteRunServiceConfig(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string)) + return obj.Server, nil }) if err != nil { ec.Error(ctx, err) @@ -22661,53 +23038,26 @@ func (ec *executionContext) _Mutation_deleteRunServiceConfig(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigStorageAntivirus_server(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "ConfigStorageAntivirus", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_configRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_configRawJSON(ctx, field) +func (ec *executionContext) _ConfigSystemConfig_auth(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfig_auth(ctx, field) if err != nil { return graphql.Null } @@ -22720,49 +23070,39 @@ func (ec *executionContext) _Query_configRawJSON(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) + return obj.Auth, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigSystemConfigAuth) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfigAuth2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuth(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_configRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfig_auth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfig", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "email": + return ec.fieldContext_ConfigSystemConfigAuth_email(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuth", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_configRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_config(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_config(ctx, field) +func (ec *executionContext) _ConfigSystemConfig_graphql(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) if err != nil { return graphql.Null } @@ -22775,7 +23115,7 @@ func (ec *executionContext) _Query_config(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Config(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) + return obj.Graphql, nil }) if err != nil { ec.Error(ctx, err) @@ -22784,59 +23124,30 @@ func (ec *executionContext) _Query_config(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigConfig) + res := resTmp.(*model.ConfigSystemConfigGraphql) fc.Result = res - return ec.marshalOConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfigGraphql2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigGraphql(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_config(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfig_graphql(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfig", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "global": - return ec.fieldContext_ConfigConfig_global(ctx, field) - case "hasura": - return ec.fieldContext_ConfigConfig_hasura(ctx, field) - case "graphql": - return ec.fieldContext_ConfigConfig_graphql(ctx, field) - case "functions": - return ec.fieldContext_ConfigConfig_functions(ctx, field) - case "auth": - return ec.fieldContext_ConfigConfig_auth(ctx, field) - case "postgres": - return ec.fieldContext_ConfigConfig_postgres(ctx, field) - case "provider": - return ec.fieldContext_ConfigConfig_provider(ctx, field) - case "storage": - return ec.fieldContext_ConfigConfig_storage(ctx, field) - case "ai": - return ec.fieldContext_ConfigConfig_ai(ctx, field) - case "observability": - return ec.fieldContext_ConfigConfig_observability(ctx, field) + case "featureAdvancedGraphql": + return ec.fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigGraphql", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_config_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_configs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_configs(ctx, field) +func (ec *executionContext) _ConfigSystemConfig_postgres(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfig) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) if err != nil { return graphql.Null } @@ -22849,7 +23160,7 @@ func (ec *executionContext) _Query_configs(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Configs(rctx, fc.Args["resolve"].(bool), fc.Args["where"].(*model.ConfigConfigComparisonExp)) + return obj.Postgres, nil }) if err != nil { ec.Error(ctx, err) @@ -22861,43 +23172,38 @@ func (ec *executionContext) _Query_configs(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.([]*model.ConfigAppConfig) + res := resTmp.(*model.ConfigSystemConfigPostgres) fc.Result = res - return ec.marshalNConfigAppConfig2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppConfigᚄ(ctx, field.Selections, res) + return ec.marshalNConfigSystemConfigPostgres2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgres(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_configs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfig_postgres(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfig", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "appID": - return ec.fieldContext_ConfigAppConfig_appID(ctx, field) - case "config": - return ec.fieldContext_ConfigAppConfig_config(ctx, field) + case "enabled": + return ec.fieldContext_ConfigSystemConfigPostgres_enabled(ctx, field) + case "majorVersion": + return ec.fieldContext_ConfigSystemConfigPostgres_majorVersion(ctx, field) + case "connectionString": + return ec.fieldContext_ConfigSystemConfigPostgres_connectionString(ctx, field) + case "database": + return ec.fieldContext_ConfigSystemConfigPostgres_database(ctx, field) + case "disk": + return ec.fieldContext_ConfigSystemConfigPostgres_disk(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigAppConfig", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgres", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_configs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_appSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_appSecrets(ctx, field) +func (ec *executionContext) _ConfigSystemConfigAuth_email(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuth) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigAuth_email(ctx, field) if err != nil { return graphql.Null } @@ -22910,55 +23216,39 @@ func (ec *executionContext) _Query_appSecrets(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AppSecrets(rctx, fc.Args["appID"].(string)) + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.([]*model.ConfigEnvironmentVariable) + res := resTmp.(*model.ConfigSystemConfigAuthEmail) fc.Result = res - return ec.marshalNConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfigAuthEmail2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuthEmail(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_appSecrets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigAuth_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigAuth", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) - case "value": - return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) + case "templates": + return ec.fieldContext_ConfigSystemConfigAuthEmail_templates(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuthEmail", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_appSecrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_appsSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_appsSecrets(ctx, field) +func (ec *executionContext) _ConfigSystemConfigAuthEmail_templates(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuthEmail) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigAuthEmail_templates(ctx, field) if err != nil { return graphql.Null } @@ -22971,7 +23261,7 @@ func (ec *executionContext) _Query_appsSecrets(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AppsSecrets(rctx) + return obj.Templates, nil }) if err != nil { ec.Error(ctx, err) @@ -22980,32 +23270,30 @@ func (ec *executionContext) _Query_appsSecrets(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*model.ConfigAppSecrets) + res := resTmp.(*model.ConfigSystemConfigAuthEmailTemplates) fc.Result = res - return ec.marshalOConfigAppSecrets2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppSecretsᚄ(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfigAuthEmailTemplates2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigAuthEmailTemplates(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_appsSecrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigAuthEmail_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigAuthEmail", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "appID": - return ec.fieldContext_ConfigAppSecrets_appID(ctx, field) - case "secrets": - return ec.fieldContext_ConfigAppSecrets_secrets(ctx, field) + case "s3Key": + return ec.fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigAppSecrets", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigAuthEmailTemplates", field.Name) }, } return fc, nil } -func (ec *executionContext) _Query_systemConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_systemConfig(ctx, field) +func (ec *executionContext) _ConfigSystemConfigAuthEmailTemplates_s3Key(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigAuthEmailTemplates) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(ctx, field) if err != nil { return graphql.Null } @@ -23018,7 +23306,7 @@ func (ec *executionContext) _Query_systemConfig(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SystemConfig(rctx, fc.Args["appID"].(string)) + return obj.S3Key, nil }) if err != nil { ec.Error(ctx, err) @@ -23027,45 +23315,26 @@ func (ec *executionContext) _Query_systemConfig(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigSystemConfig) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_systemConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigAuthEmailTemplates_s3Key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigAuthEmailTemplates", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "auth": - return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) - case "graphql": - return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) - case "postgres": - return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_systemConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_systemConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_systemConfigs(ctx, field) +func (ec *executionContext) _ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigGraphql) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(ctx, field) if err != nil { return graphql.Null } @@ -23078,55 +23347,35 @@ func (ec *executionContext) _Query_systemConfigs(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SystemConfigs(rctx, fc.Args["where"].(*model.ConfigSystemConfigComparisonExp)) + return obj.FeatureAdvancedGraphql, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.([]*model.ConfigAppSystemConfig) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNConfigAppSystemConfig2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppSystemConfigᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_systemConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigGraphql_featureAdvancedGraphql(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigGraphql", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "appID": - return ec.fieldContext_ConfigAppSystemConfig_appID(ctx, field) - case "systemConfig": - return ec.fieldContext_ConfigAppSystemConfig_systemConfig(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigAppSystemConfig", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_systemConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_runServiceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_runServiceConfigRawJSON(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgres_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgres_enabled(ctx, field) if err != nil { return graphql.Null } @@ -23139,49 +23388,35 @@ func (ec *executionContext) _Query_runServiceConfigRawJSON(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RunServiceConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["resolve"].(bool)) + return obj.Enabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*bool) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_runServiceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgres", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_runServiceConfigRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_runServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_runServiceConfig(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgres_majorVersion(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgres_majorVersion(ctx, field) if err != nil { return graphql.Null } @@ -23194,7 +23429,7 @@ func (ec *executionContext) _Query_runServiceConfig(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["resolve"].(bool)) + return obj.MajorVersion, nil }) if err != nil { ec.Error(ctx, err) @@ -23203,53 +23438,26 @@ func (ec *executionContext) _Query_runServiceConfig(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*model.ConfigRunServiceConfig) + res := resTmp.(*string) fc.Result = res - return ec.marshalOConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_runServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_majorVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgres", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) - case "image": - return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) - case "command": - return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) - case "environment": - return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) - case "ports": - return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) - case "resources": - return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) - case "healthCheck": - return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_runServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_runServiceConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_runServiceConfigs(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgres_connectionString(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgres_connectionString(ctx, field) if err != nil { return graphql.Null } @@ -23262,7 +23470,7 @@ func (ec *executionContext) _Query_runServiceConfigs(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RunServiceConfigs(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) + return obj.ConnectionString, nil }) if err != nil { ec.Error(ctx, err) @@ -23274,43 +23482,36 @@ func (ec *executionContext) _Query_runServiceConfigs(ctx context.Context, field } return graphql.Null } - res := resTmp.([]*model.ConfigRunServiceConfigWithID) + res := resTmp.(*model.ConfigSystemConfigPostgresConnectionString) fc.Result = res - return ec.marshalNConfigRunServiceConfigWithID2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfigWithIDᚄ(ctx, field.Selections, res) + return ec.marshalNConfigSystemConfigPostgresConnectionString2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgresConnectionString(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_runServiceConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_connectionString(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgres", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "serviceID": - return ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) - case "config": - return ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) + case "backup": + return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_backup(ctx, field) + case "hasura": + return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(ctx, field) + case "auth": + return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_auth(ctx, field) + case "storage": + return ec.fieldContext_ConfigSystemConfigPostgresConnectionString_storage(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfigWithID", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgresConnectionString", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_runServiceConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_runServiceConfigsAll(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_runServiceConfigsAll(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgres_database(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgres_database(ctx, field) if err != nil { return graphql.Null } @@ -23323,7 +23524,7 @@ func (ec *executionContext) _Query_runServiceConfigsAll(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RunServiceConfigsAll(rctx, fc.Args["resolve"].(bool), fc.Args["where"].(*model.ConfigRunServiceConfigComparisonExp)) + return obj.Database, nil }) if err != nil { ec.Error(ctx, err) @@ -23335,43 +23536,26 @@ func (ec *executionContext) _Query_runServiceConfigsAll(ctx context.Context, fie } return graphql.Null } - res := resTmp.([]*model.ConfigRunServiceConfigWithID) + res := resTmp.(string) fc.Result = res - return ec.marshalNConfigRunServiceConfigWithID2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfigWithIDᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_runServiceConfigsAll(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_database(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgres", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "serviceID": - return ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) - case "config": - return ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfigWithID", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_runServiceConfigsAll_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___type(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgres_disk(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgres) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgres_disk(ctx, field) if err != nil { return graphql.Null } @@ -23384,7 +23568,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.introspectType(fc.Args["name"].(string)) + return obj.Disk, nil }) if err != nil { ec.Error(ctx, err) @@ -23393,59 +23577,32 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*model.ConfigSystemConfigPostgresDisk) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfigPostgresDisk2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfigPostgresDisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgres_disk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgres", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "iops": + return ec.fieldContext_ConfigSystemConfigPostgresDisk_iops(ctx, field) + case "tput": + return ec.fieldContext_ConfigSystemConfigPostgresDisk_tput(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfigPostgresDisk", field.Name) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query___schema(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_backup(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_backup(ctx, field) if err != nil { return graphql.Null } @@ -23458,49 +23615,38 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() + return obj.Backup, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*introspection.Schema) + res := resTmp.(string) fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_backup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ConfigSystemConfigPostgresConnectionString", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "description": - return ec.fieldContext___Schema_description(ctx, field) - case "types": - return ec.fieldContext___Schema_types(ctx, field) - case "queryType": - return ec.fieldContext___Schema_queryType(ctx, field) - case "mutationType": - return ec.fieldContext___Schema_mutationType(ctx, field) - case "subscriptionType": - return ec.fieldContext___Schema_subscriptionType(ctx, field) - case "directives": - return ec.fieldContext___Schema_directives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_name(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_hasura(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(ctx, field) if err != nil { return graphql.Null } @@ -23513,7 +23659,7 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Hasura, nil }) if err != nil { ec.Error(ctx, err) @@ -23530,9 +23676,9 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_hasura(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "ConfigSystemConfigPostgresConnectionString", Field: field, IsMethod: false, IsResolver: false, @@ -23543,8 +23689,8 @@ func (ec *executionContext) fieldContext___Directive_name(_ context.Context, fie return fc, nil } -func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_description(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_auth(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_auth(ctx, field) if err != nil { return graphql.Null } @@ -23557,25 +23703,28 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.Auth, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_auth(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "ConfigSystemConfigPostgresConnectionString", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") @@ -23584,8 +23733,8 @@ func (ec *executionContext) fieldContext___Directive_description(_ context.Conte return fc, nil } -func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_locations(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresConnectionString_storage(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresConnectionString) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresConnectionString_storage(ctx, field) if err != nil { return graphql.Null } @@ -23598,7 +23747,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Locations, nil + return obj.Storage, nil }) if err != nil { ec.Error(ctx, err) @@ -23610,26 +23759,26 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresConnectionString_storage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "ConfigSystemConfigPostgresConnectionString", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __DirectiveLocation does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_args(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresDisk_iops(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresDisk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresDisk_iops(ctx, field) if err != nil { return graphql.Null } @@ -23642,48 +23791,35 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Args, nil + return obj.Iops, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.([]introspection.InputValue) + res := resTmp.(*uint32) fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresDisk_iops(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "ConfigSystemConfigPostgresDisk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) +func (ec *executionContext) _ConfigSystemConfigPostgresDisk_tput(ctx context.Context, field graphql.CollectedField, obj *model.ConfigSystemConfigPostgresDisk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ConfigSystemConfigPostgresDisk_tput(ctx, field) if err != nil { return graphql.Null } @@ -23696,38 +23832,35 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsRepeatable, nil + return obj.Tput, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*uint32) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOConfigUint322ᚖuint32(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ConfigSystemConfigPostgresDisk_tput(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "ConfigSystemConfigPostgresDisk", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + return nil, errors.New("field of type ConfigUint32 does not have child fields") }, } return fc, nil } -func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_name(ctx, field) +func (ec *executionContext) _Mutation_updateConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateConfig(ctx, field) if err != nil { return graphql.Null } @@ -23740,7 +23873,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Mutation().UpdateConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigUpdateInput)) }) if err != nil { ec.Error(ctx, err) @@ -23752,67 +23885,59 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigConfig) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "global": + return ec.fieldContext_ConfigConfig_global(ctx, field) + case "hasura": + return ec.fieldContext_ConfigConfig_hasura(ctx, field) + case "graphql": + return ec.fieldContext_ConfigConfig_graphql(ctx, field) + case "functions": + return ec.fieldContext_ConfigConfig_functions(ctx, field) + case "auth": + return ec.fieldContext_ConfigConfig_auth(ctx, field) + case "postgres": + return ec.fieldContext_ConfigConfig_postgres(ctx, field) + case "provider": + return ec.fieldContext_ConfigConfig_provider(ctx, field) + case "storage": + return ec.fieldContext_ConfigConfig_storage(ctx, field) + case "ai": + return ec.fieldContext_ConfigConfig_ai(ctx, field) + case "observability": + return ec.fieldContext_ConfigConfig_observability(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_description(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description(), nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*string) - fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "__EnumValue", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) +func (ec *executionContext) _Mutation_replaceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_replaceConfig(ctx, field) if err != nil { return graphql.Null } @@ -23825,7 +23950,7 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil + return ec.resolvers.Mutation().ReplaceConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigInsertInput)) }) if err != nil { ec.Error(ctx, err) @@ -23837,26 +23962,59 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*model.ConfigConfig) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_replaceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "global": + return ec.fieldContext_ConfigConfig_global(ctx, field) + case "hasura": + return ec.fieldContext_ConfigConfig_hasura(ctx, field) + case "graphql": + return ec.fieldContext_ConfigConfig_graphql(ctx, field) + case "functions": + return ec.fieldContext_ConfigConfig_functions(ctx, field) + case "auth": + return ec.fieldContext_ConfigConfig_auth(ctx, field) + case "postgres": + return ec.fieldContext_ConfigConfig_postgres(ctx, field) + case "provider": + return ec.fieldContext_ConfigConfig_provider(ctx, field) + case "storage": + return ec.fieldContext_ConfigConfig_storage(ctx, field) + case "ai": + return ec.fieldContext_ConfigConfig_ai(ctx, field) + case "observability": + return ec.fieldContext_ConfigConfig_observability(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_replaceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) +func (ec *executionContext) _Mutation_replaceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_replaceConfigRawJSON(ctx, field) if err != nil { return graphql.Null } @@ -23869,35 +24027,49 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil + return ec.resolvers.Mutation().ReplaceConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["rawJSON"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_replaceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_replaceConfigRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_name(ctx, field) +func (ec *executionContext) _Mutation_insertConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_insertConfig(ctx, field) if err != nil { return graphql.Null } @@ -23910,7 +24082,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Mutation().InsertConfig(rctx, fc.Args["appID"].(string), fc.Args["config"].(model.ConfigConfigInsertInput), fc.Args["systemConfig"].(model.ConfigSystemConfigInsertInput), fc.Args["secrets"].([]*model.ConfigEnvironmentVariableInsertInput)) }) if err != nil { ec.Error(ctx, err) @@ -23922,26 +24094,45 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigInsertConfigResponse) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigInsertConfigResponse2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigInsertConfigResponse(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_insertConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "config": + return ec.fieldContext_ConfigInsertConfigResponse_config(ctx, field) + case "systemConfig": + return ec.fieldContext_ConfigInsertConfigResponse_systemConfig(ctx, field) + case "secrets": + return ec.fieldContext_ConfigInsertConfigResponse_secrets(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigInsertConfigResponse", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_insertConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_description(ctx, field) +func (ec *executionContext) _Mutation_deleteConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteConfig(ctx, field) if err != nil { return graphql.Null } @@ -23954,7 +24145,7 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return ec.resolvers.Mutation().DeleteConfig(rctx, fc.Args["appID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -23963,26 +24154,59 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_args(ctx, field) + switch field.Name { + case "global": + return ec.fieldContext_ConfigConfig_global(ctx, field) + case "hasura": + return ec.fieldContext_ConfigConfig_hasura(ctx, field) + case "graphql": + return ec.fieldContext_ConfigConfig_graphql(ctx, field) + case "functions": + return ec.fieldContext_ConfigConfig_functions(ctx, field) + case "auth": + return ec.fieldContext_ConfigConfig_auth(ctx, field) + case "postgres": + return ec.fieldContext_ConfigConfig_postgres(ctx, field) + case "provider": + return ec.fieldContext_ConfigConfig_provider(ctx, field) + case "storage": + return ec.fieldContext_ConfigConfig_storage(ctx, field) + case "ai": + return ec.fieldContext_ConfigConfig_ai(ctx, field) + case "observability": + return ec.fieldContext_ConfigConfig_observability(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_changeDatabaseVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_changeDatabaseVersion(ctx, field) if err != nil { return graphql.Null } @@ -23995,7 +24219,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Args, nil + return ec.resolvers.Mutation().ChangeDatabaseVersion(rctx, fc.Args["appID"].(string), fc.Args["version"].(string), fc.Args["force"].(*bool)) }) if err != nil { ec.Error(ctx, err) @@ -24007,36 +24231,37 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.([]introspection.InputValue) + res := resTmp.(bool) fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_changeDatabaseVersion(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "name": - return ec.fieldContext___InputValue_name(ctx, field) - case "description": - return ec.fieldContext___InputValue_description(ctx, field) - case "type": - return ec.fieldContext___InputValue_type(ctx, field) - case "defaultValue": - return ec.fieldContext___InputValue_defaultValue(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_changeDatabaseVersion_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_type(ctx, field) +func (ec *executionContext) _Mutation_insertSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_insertSecret(ctx, field) if err != nil { return graphql.Null } @@ -24049,7 +24274,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return ec.resolvers.Mutation().InsertSecret(rctx, fc.Args["appID"].(string), fc.Args["secret"].(model.ConfigEnvironmentVariableInsertInput)) }) if err != nil { ec.Error(ctx, err) @@ -24061,48 +24286,43 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_insertSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_insertSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) +func (ec *executionContext) _Mutation_updateSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSecret(ctx, field) if err != nil { return graphql.Null } @@ -24115,7 +24335,7 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil + return ec.resolvers.Mutation().UpdateSecret(rctx, fc.Args["appID"].(string), fc.Args["secret"].(model.ConfigEnvironmentVariableInsertInput)) }) if err != nil { ec.Error(ctx, err) @@ -24127,26 +24347,43 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Boolean does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) +func (ec *executionContext) _Mutation_deleteSecret(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSecret(ctx, field) if err != nil { return graphql.Null } @@ -24159,7 +24396,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil + return ec.resolvers.Mutation().DeleteSecret(rctx, fc.Args["appID"].(string), fc.Args["key"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -24168,26 +24405,43 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigEnvironmentVariable2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariable(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteSecret(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteSecret_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_name(ctx, field) +func (ec *executionContext) _Mutation_updateSystemConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSystemConfig(ctx, field) if err != nil { return graphql.Null } @@ -24200,7 +24454,7 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Mutation().UpdateSystemConfig(rctx, fc.Args["appID"].(string), fc.Args["systemConfig"].(model.ConfigSystemConfigUpdateInput)) }) if err != nil { ec.Error(ctx, err) @@ -24212,26 +24466,45 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.ConfigSystemConfig) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateSystemConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "auth": + return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) + case "graphql": + return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) + case "postgres": + return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateSystemConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_description(ctx, field) +func (ec *executionContext) _Mutation_insertRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_insertRunServiceConfig(ctx, field) if err != nil { return graphql.Null } @@ -24244,35 +24517,65 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return ec.resolvers.Mutation().InsertRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigInsertInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_insertRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_insertRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_type(ctx, field) +func (ec *executionContext) _Mutation_updateRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateRunServiceConfig(ctx, field) if err != nil { return graphql.Null } @@ -24285,7 +24588,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return ec.resolvers.Mutation().UpdateRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigUpdateInput)) }) if err != nil { ec.Error(ctx, err) @@ -24297,48 +24600,53 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_updateRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) +func (ec *executionContext) _Mutation_replaceRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_replaceRunServiceConfig(ctx, field) if err != nil { return graphql.Null } @@ -24351,35 +24659,65 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil + return ec.resolvers.Mutation().ReplaceRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["config"].(model.ConfigRunServiceConfigInsertInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_replaceRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "Mutation", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_replaceRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_description(ctx, field) +func (ec *executionContext) _Mutation_deleteRunServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteRunServiceConfig(ctx, field) if err != nil { return graphql.Null } @@ -24392,7 +24730,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return ec.resolvers.Mutation().DeleteRunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -24401,26 +24739,53 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Mutation_deleteRunServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Mutation", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteRunServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_types(ctx, field) +func (ec *executionContext) _Query_configRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_configRawJSON(ctx, field) if err != nil { return graphql.Null } @@ -24433,7 +24798,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Types(), nil + return ec.resolvers.Query().ConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) }) if err != nil { ec.Error(ctx, err) @@ -24445,48 +24810,37 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.([]introspection.Type) + res := resTmp.(string) fc.Result = res - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_configRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_configRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_queryType(ctx, field) +func (ec *executionContext) _Query_config(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_config(ctx, field) if err != nil { return graphql.Null } @@ -24499,60 +24853,68 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil + return ec.resolvers.Query().Config(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*model.ConfigConfig) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOConfigConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_config(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "global": + return ec.fieldContext_ConfigConfig_global(ctx, field) + case "hasura": + return ec.fieldContext_ConfigConfig_hasura(ctx, field) + case "graphql": + return ec.fieldContext_ConfigConfig_graphql(ctx, field) + case "functions": + return ec.fieldContext_ConfigConfig_functions(ctx, field) + case "auth": + return ec.fieldContext_ConfigConfig_auth(ctx, field) + case "postgres": + return ec.fieldContext_ConfigConfig_postgres(ctx, field) + case "provider": + return ec.fieldContext_ConfigConfig_provider(ctx, field) + case "storage": + return ec.fieldContext_ConfigConfig_storage(ctx, field) + case "ai": + return ec.fieldContext_ConfigConfig_ai(ctx, field) + case "observability": + return ec.fieldContext_ConfigConfig_observability(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_config_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_mutationType(ctx, field) +func (ec *executionContext) _Query_configs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_configs(ctx, field) if err != nil { return graphql.Null } @@ -24565,57 +24927,55 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil + return ec.resolvers.Query().Configs(rctx, fc.Args["resolve"].(bool), fc.Args["where"].(*model.ConfigConfigComparisonExp)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.([]*model.ConfigAppConfig) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNConfigAppConfig2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppConfigᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_configs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "appID": + return ec.fieldContext_ConfigAppConfig_appID(ctx, field) + case "config": + return ec.fieldContext_ConfigAppConfig_config(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigAppConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_configs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) +func (ec *executionContext) _Query_appSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_appSecrets(ctx, field) if err != nil { return graphql.Null } @@ -24628,57 +24988,55 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil + return ec.resolvers.Query().AppSecrets(rctx, fc.Args["appID"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.([]*model.ConfigEnvironmentVariable) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNConfigEnvironmentVariable2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_appSecrets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + return ec.fieldContext_ConfigEnvironmentVariable_name(ctx, field) + case "value": + return ec.fieldContext_ConfigEnvironmentVariable_value(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigEnvironmentVariable", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_appSecrets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Schema_directives(ctx, field) +func (ec *executionContext) _Query_appsSecrets(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_appsSecrets(ctx, field) if err != nil { return graphql.Null } @@ -24691,50 +25049,101 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil + return ec.resolvers.Query().AppsSecrets(rctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + return graphql.Null + } + res := resTmp.([]*model.ConfigAppSecrets) + fc.Result = res + return ec.marshalOConfigAppSecrets2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppSecretsᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_appsSecrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Query", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "appID": + return ec.fieldContext_ConfigAppSecrets_appID(ctx, field) + case "secrets": + return ec.fieldContext_ConfigAppSecrets_secrets(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigAppSecrets", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Query_systemConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_systemConfig(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Query().SystemConfig(rctx, fc.Args["appID"].(string)) + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.([]introspection.Directive) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*model.ConfigSystemConfig) fc.Result = res - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) + return ec.marshalOConfigSystemConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigSystemConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_systemConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext___Directive_name(ctx, field) - case "description": - return ec.fieldContext___Directive_description(ctx, field) - case "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(ctx, field) - case "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) + case "auth": + return ec.fieldContext_ConfigSystemConfig_auth(ctx, field) + case "graphql": + return ec.fieldContext_ConfigSystemConfig_graphql(ctx, field) + case "postgres": + return ec.fieldContext_ConfigSystemConfig_postgres(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigSystemConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_systemConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_kind(ctx, field) +func (ec *executionContext) _Query_systemConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_systemConfigs(ctx, field) if err != nil { return graphql.Null } @@ -24747,7 +25156,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil + return ec.resolvers.Query().SystemConfigs(rctx, fc.Args["where"].(*model.ConfigSystemConfigComparisonExp)) }) if err != nil { ec.Error(ctx, err) @@ -24759,26 +25168,43 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*model.ConfigAppSystemConfig) fc.Result = res - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) + return ec.marshalNConfigAppSystemConfig2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAppSystemConfigᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_systemConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type __TypeKind does not have child fields") + switch field.Name { + case "appID": + return ec.fieldContext_ConfigAppSystemConfig_appID(ctx, field) + case "systemConfig": + return ec.fieldContext_ConfigAppSystemConfig_systemConfig(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigAppSystemConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_systemConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_name(ctx, field) +func (ec *executionContext) _Query_runServiceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_runServiceConfigRawJSON(ctx, field) if err != nil { return graphql.Null } @@ -24791,35 +25217,49 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name(), nil + return ec.resolvers.Query().RunServiceConfigRawJSON(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["resolve"].(bool)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_runServiceConfigRawJSON(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { return nil, errors.New("field of type String does not have child fields") }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_runServiceConfigRawJSON_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_description(ctx, field) +func (ec *executionContext) _Query_runServiceConfig(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_runServiceConfig(ctx, field) if err != nil { return graphql.Null } @@ -24832,7 +25272,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return ec.resolvers.Query().RunServiceConfig(rctx, fc.Args["appID"].(string), fc.Args["serviceID"].(string), fc.Args["resolve"].(bool)) }) if err != nil { ec.Error(ctx, err) @@ -24841,26 +25281,53 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*model.ConfigRunServiceConfig) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOConfigRunServiceConfig2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfig(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_runServiceConfig(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type String does not have child fields") + switch field.Name { + case "name": + return ec.fieldContext_ConfigRunServiceConfig_name(ctx, field) + case "image": + return ec.fieldContext_ConfigRunServiceConfig_image(ctx, field) + case "command": + return ec.fieldContext_ConfigRunServiceConfig_command(ctx, field) + case "environment": + return ec.fieldContext_ConfigRunServiceConfig_environment(ctx, field) + case "ports": + return ec.fieldContext_ConfigRunServiceConfig_ports(ctx, field) + case "resources": + return ec.fieldContext_ConfigRunServiceConfig_resources(ctx, field) + case "healthCheck": + return ec.fieldContext_ConfigRunServiceConfig_healthCheck(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfig", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_runServiceConfig_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_fields(ctx, field) +func (ec *executionContext) _Query_runServiceConfigs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_runServiceConfigs(ctx, field) if err != nil { return graphql.Null } @@ -24873,42 +25340,37 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil + return ec.resolvers.Query().RunServiceConfigs(rctx, fc.Args["appID"].(string), fc.Args["resolve"].(bool)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]introspection.Field) + res := resTmp.([]*model.ConfigRunServiceConfigWithID) fc.Result = res - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfigWithID2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfigWithIDᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_runServiceConfigs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext___Field_name(ctx, field) - case "description": - return ec.fieldContext___Field_description(ctx, field) - case "args": - return ec.fieldContext___Field_args(ctx, field) - case "type": - return ec.fieldContext___Field_type(ctx, field) - case "isDeprecated": - return ec.fieldContext___Field_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___Field_deprecationReason(ctx, field) + case "serviceID": + return ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) + case "config": + return ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfigWithID", field.Name) }, } defer func() { @@ -24918,15 +25380,15 @@ func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_runServiceConfigs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_interfaces(ctx, field) +func (ec *executionContext) _Query_runServiceConfigsAll(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_runServiceConfigsAll(ctx, field) if err != nil { return graphql.Null } @@ -24939,57 +25401,55 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil + return ec.resolvers.Query().RunServiceConfigsAll(rctx, fc.Args["resolve"].(bool), fc.Args["where"].(*model.ConfigRunServiceConfigComparisonExp)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]introspection.Type) + res := resTmp.([]*model.ConfigRunServiceConfigWithID) fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) + return ec.marshalNConfigRunServiceConfigWithID2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRunServiceConfigWithIDᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_runServiceConfigsAll(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "serviceID": + return ec.fieldContext_ConfigRunServiceConfigWithID_serviceID(ctx, field) + case "config": + return ec.fieldContext_ConfigRunServiceConfigWithID_config(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ConfigRunServiceConfigWithID", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_runServiceConfigsAll_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) +func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___type(ctx, field) if err != nil { return graphql.Null } @@ -25002,7 +25462,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PossibleTypes(), nil + return ec.introspectType(fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -25011,14 +25471,14 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]introspection.Type) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, IsResolver: false, @@ -25048,11 +25508,22 @@ func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_enumValues(ctx, field) +func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query___schema(ctx, field) if err != nil { return graphql.Null } @@ -25065,7 +25536,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil + return ec.introspectSchema() }) if err != nil { ec.Error(ctx, err) @@ -25074,47 +25545,125 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]introspection.EnumValue) + res := resTmp.(*introspection.Schema) fc.Result = res - return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "Query", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "name": - return ec.fieldContext___EnumValue_name(ctx, field) case "description": - return ec.fieldContext___EnumValue_description(ctx, field) - case "isDeprecated": - return ec.fieldContext___EnumValue_isDeprecated(ctx, field) - case "deprecationReason": - return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + return ec.fieldContext___Schema_description(ctx, field) + case "types": + return ec.fieldContext___Schema_types(ctx, field) + case "queryType": + return ec.fieldContext___Schema_queryType(ctx, field) + case "mutationType": + return ec.fieldContext___Schema_mutationType(ctx, field) + case "subscriptionType": + return ec.fieldContext___Schema_subscriptionType(ctx, field) + case "directives": + return ec.fieldContext___Schema_directives(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) + return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) }, } + return fc, nil +} + +func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_description(ctx, field) + if err != nil { + return graphql.Null + } ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, } return fc, nil } -func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_inputFields(ctx, field) +func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_locations(ctx, field) if err != nil { return graphql.Null } @@ -25127,25 +25676,72 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InputFields(), nil + return obj.Locations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]string) + fc.Result = res + return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Directive_locations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __DirectiveLocation does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_args(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Args, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } res := resTmp.([]introspection.InputValue) fc.Result = res - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "__Directive", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -25164,8 +25760,8 @@ func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, f return fc, nil } -func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_ofType(ctx, field) +func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Directive_isRepeatable(ctx, field) if err != nil { return graphql.Null } @@ -25178,57 +25774,123 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil + return obj.IsRepeatable, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(bool) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "__Directive", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) - case "name": - return ec.fieldContext___Type_name(ctx, field) - case "description": - return ec.fieldContext___Type_description(ctx, field) - case "fields": - return ec.fieldContext___Type_fields(ctx, field) - case "interfaces": - return ec.fieldContext___Type_interfaces(ctx, field) - case "possibleTypes": - return ec.fieldContext___Type_possibleTypes(ctx, field) - case "enumValues": - return ec.fieldContext___Type_enumValues(ctx, field) - case "inputFields": - return ec.fieldContext___Type_inputFields(ctx, field) - case "ofType": - return ec.fieldContext___Type_ofType(ctx, field) - case "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) +func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_isDeprecated(ctx, field) if err != nil { return graphql.Null } @@ -25241,7 +25903,51 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SpecifiedByURL(), nil + return obj.IsDeprecated(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__EnumValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___EnumValue_deprecationReason(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeprecationReason(), nil }) if err != nil { ec.Error(ctx, err) @@ -25255,9 +25961,9 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "__EnumValue", Field: field, IsMethod: true, IsResolver: false, @@ -25268,18 +25974,2208 @@ func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context return fc, nil } -// endregion **************************** field.gotpl ***************************** +func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_args(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Args, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_isDeprecated(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.IsDeprecated(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(bool) + fc.Result = res + return ec.marshalNBoolean2bool(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Boolean does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Field_deprecationReason(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeprecationReason(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Field", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalNString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___InputValue_defaultValue(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DefaultValue, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__InputValue", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_types(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Types(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_queryType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.QueryType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_mutationType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.MutationType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_subscriptionType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SubscriptionType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Schema_directives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Directives(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]introspection.Directive) + fc.Result = res + return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Schema", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Directive_name(ctx, field) + case "description": + return ec.fieldContext___Directive_description(ctx, field) + case "locations": + return ec.fieldContext___Directive_locations(ctx, field) + case "args": + return ec.fieldContext___Directive_args(ctx, field) + case "isRepeatable": + return ec.fieldContext___Directive_isRepeatable(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_kind(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Kind(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalN__TypeKind2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type __TypeKind does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_name(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Name(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_fields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Field) + fc.Result = res + return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___Field_name(ctx, field) + case "description": + return ec.fieldContext___Field_description(ctx, field) + case "args": + return ec.fieldContext___Field_args(ctx, field) + case "type": + return ec.fieldContext___Field_type(ctx, field) + case "isDeprecated": + return ec.fieldContext___Field_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___Field_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_fields_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_interfaces(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Interfaces(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_interfaces(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_possibleTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PossibleTypes(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_enumValues(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.EnumValue) + fc.Result = res + return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_enumValues(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___EnumValue_name(ctx, field) + case "description": + return ec.fieldContext___EnumValue_description(ctx, field) + case "isDeprecated": + return ec.fieldContext___EnumValue_isDeprecated(ctx, field) + case "deprecationReason": + return ec.fieldContext___EnumValue_deprecationReason(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __EnumValue", field.Name) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field___Type_enumValues_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_inputFields(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InputFields(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]introspection.InputValue) + fc.Result = res + return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "name": + return ec.fieldContext___InputValue_name(ctx, field) + case "description": + return ec.fieldContext___InputValue_description(ctx, field) + case "type": + return ec.fieldContext___InputValue_type(ctx, field) + case "defaultValue": + return ec.fieldContext___InputValue_defaultValue(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_ofType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OfType(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*introspection.Type) + fc.Result = res + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "kind": + return ec.fieldContext___Type_kind(ctx, field) + case "name": + return ec.fieldContext___Type_name(ctx, field) + case "description": + return ec.fieldContext___Type_description(ctx, field) + case "fields": + return ec.fieldContext___Type_fields(ctx, field) + case "interfaces": + return ec.fieldContext___Type_interfaces(ctx, field) + case "possibleTypes": + return ec.fieldContext___Type_possibleTypes(ctx, field) + case "enumValues": + return ec.fieldContext___Type_enumValues(ctx, field) + case "inputFields": + return ec.fieldContext___Type_inputFields(ctx, field) + case "ofType": + return ec.fieldContext___Type_ofType(ctx, field) + case "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) { + fc, err := ec.fieldContext___Type_specifiedByURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.SpecifiedByURL(), nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*string) + fc.Result = res + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "__Type", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputConfigAIAutoEmbeddingsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIAutoEmbeddingsComparisonExp, error) { + var it model.ConfigAIAutoEmbeddingsComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "synchPeriodMinutes"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "synchPeriodMinutes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("synchPeriodMinutes")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.SynchPeriodMinutes = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIAutoEmbeddingsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIAutoEmbeddingsInsertInput, error) { + var it model.ConfigAIAutoEmbeddingsInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"synchPeriodMinutes"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "synchPeriodMinutes": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("synchPeriodMinutes")) + data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) + if err != nil { + return it, err + } + it.SynchPeriodMinutes = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIComparisonExp, error) { + var it model.ConfigAIComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "version", "resources", "openai", "autoEmbeddings", "webhookSecret"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAIComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAIComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAIComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + case "openai": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("openai")) + data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Openai = data + case "autoEmbeddings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoEmbeddings")) + data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.AutoEmbeddings = data + case "webhookSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookSecret")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.WebhookSecret = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIInsertInput, error) { + var it model.ConfigAIInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"version", "resources", "openai", "autoEmbeddings", "webhookSecret"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalNConfigAIResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + case "openai": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("openai")) + data, err := ec.unmarshalNConfigAIOpenaiInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Openai = data + case "autoEmbeddings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoEmbeddings")) + data, err := ec.unmarshalOConfigAIAutoEmbeddingsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsInsertInput(ctx, v) + if err != nil { + return it, err + } + it.AutoEmbeddings = data + case "webhookSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookSecret")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.WebhookSecret = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIOpenaiComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIOpenaiComparisonExp, error) { + var it model.ConfigAIOpenaiComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "organization", "apiKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "organization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Organization = data + case "apiKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiKey")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ApiKey = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIOpenaiInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIOpenaiInsertInput, error) { + var it model.ConfigAIOpenaiInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"organization", "apiKey"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "organization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Organization = data + case "apiKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiKey")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.ApiKey = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIResourcesComparisonExp, error) { + var it model.ConfigAIResourcesComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "compute"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "compute": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("compute")) + data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Compute = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAIResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIResourcesInsertInput, error) { + var it model.ConfigAIResourcesInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"compute"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "compute": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("compute")) + data, err := ec.unmarshalNConfigComputeResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Compute = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthComparisonExp, error) { + var it model.ConfigAuthComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "version", "resources", "elevatedPrivileges", "redirections", "signUp", "user", "session", "method", "totp", "misc", "rateLimit"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOConfigResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + case "elevatedPrivileges": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("elevatedPrivileges")) + data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ElevatedPrivileges = data + case "redirections": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirections")) + data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Redirections = data + case "signUp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signUp")) + data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.SignUp = data + case "user": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.User = data + case "session": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("session")) + data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Session = data + case "method": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) + data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Method = data + case "totp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totp")) + data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Totp = data + case "misc": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("misc")) + data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Misc = data + case "rateLimit": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) + data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.RateLimit = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthElevatedPrivilegesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthElevatedPrivilegesComparisonExp, error) { + var it model.ConfigAuthElevatedPrivilegesComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "mode"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "mode": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Mode = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthElevatedPrivilegesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthElevatedPrivilegesInsertInput, error) { + var it model.ConfigAuthElevatedPrivilegesInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"mode"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "mode": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Mode = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthInsertInput, error) { + var it model.ConfigAuthInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"version", "resources", "elevatedPrivileges", "redirections", "signUp", "user", "session", "method", "totp", "misc", "rateLimit"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOConfigResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Resources = data + case "elevatedPrivileges": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("elevatedPrivileges")) + data, err := ec.unmarshalOConfigAuthElevatedPrivilegesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesInsertInput(ctx, v) + if err != nil { + return it, err + } + it.ElevatedPrivileges = data + case "redirections": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirections")) + data, err := ec.unmarshalOConfigAuthRedirectionsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Redirections = data + case "signUp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signUp")) + data, err := ec.unmarshalOConfigAuthSignUpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpInsertInput(ctx, v) + if err != nil { + return it, err + } + it.SignUp = data + case "user": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + data, err := ec.unmarshalOConfigAuthUserInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserInsertInput(ctx, v) + if err != nil { + return it, err + } + it.User = data + case "session": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("session")) + data, err := ec.unmarshalOConfigAuthSessionInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Session = data + case "method": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) + data, err := ec.unmarshalOConfigAuthMethodInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Method = data + case "totp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totp")) + data, err := ec.unmarshalOConfigAuthTotpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Totp = data + case "misc": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("misc")) + data, err := ec.unmarshalOConfigAuthMiscInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Misc = data + case "rateLimit": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) + data, err := ec.unmarshalOConfigAuthRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitInsertInput(ctx, v) + if err != nil { + return it, err + } + it.RateLimit = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodAnonymousComparisonExp, error) { + var it model.ConfigAuthMethodAnonymousComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodAnonymousInsertInput, error) { + var it model.ConfigAuthMethodAnonymousInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"enabled"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthMethodComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodComparisonExp, error) { + var it model.ConfigAuthMethodComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "anonymous", "emailPasswordless", "emailPassword", "smsPasswordless", "oauth", "webauthn"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "anonymous": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("anonymous")) + data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Anonymous = data + case "emailPasswordless": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPasswordless")) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.EmailPasswordless = data + case "emailPassword": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPassword")) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.EmailPassword = data + case "smsPasswordless": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smsPasswordless")) + data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.SmsPasswordless = data + case "oauth": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth")) + data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Oauth = data + case "webauthn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthn")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Webauthn = data + } + } -// region **************************** input.gotpl ***************************** + return it, nil +} -func (ec *executionContext) unmarshalInputConfigAIAutoEmbeddingsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIAutoEmbeddingsComparisonExp, error) { - var it model.ConfigAIAutoEmbeddingsComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordComparisonExp, error) { + var it model.ConfigAuthMethodEmailPasswordComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "synchPeriodMinutes"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "hibpEnabled", "emailVerificationRequired", "passwordMinLength"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25288,73 +28184,101 @@ func (ec *executionContext) unmarshalInputConfigAIAutoEmbeddingsComparisonExp(ct switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "synchPeriodMinutes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("synchPeriodMinutes")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "hibpEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hibpEnabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.SynchPeriodMinutes = data + it.HibpEnabled = data + case "emailVerificationRequired": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationRequired")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.EmailVerificationRequired = data + case "passwordMinLength": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordMinLength")) + data, err := ec.unmarshalOConfigUint8ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.PasswordMinLength = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIAutoEmbeddingsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIAutoEmbeddingsInsertInput, error) { - var it model.ConfigAIAutoEmbeddingsInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordInsertInput, error) { + var it model.ConfigAuthMethodEmailPasswordInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"synchPeriodMinutes"} + fieldsInOrder := [...]string{"hibpEnabled", "emailVerificationRequired", "passwordMinLength"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "synchPeriodMinutes": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("synchPeriodMinutes")) - data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) + case "hibpEnabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hibpEnabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.SynchPeriodMinutes = data + it.HibpEnabled = data + case "emailVerificationRequired": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationRequired")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.EmailVerificationRequired = data + case "passwordMinLength": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordMinLength")) + data, err := ec.unmarshalOConfigUint82ᚖuint8(ctx, v) + if err != nil { + return it, err + } + it.PasswordMinLength = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIComparisonExp, error) { - var it model.ConfigAIComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordlessComparisonExp, error) { + var it model.ConfigAuthMethodEmailPasswordlessComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "version", "resources", "openai", "autoEmbeddings", "webhookSecret"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25363,129 +28287,135 @@ func (ec *executionContext) unmarshalInputConfigAIComparisonExp(ctx context.Cont switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAIComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAIComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAIComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Version = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Resources = data - case "openai": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("openai")) - data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Openai = data - case "autoEmbeddings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoEmbeddings")) - data, err := ec.unmarshalOConfigAIAutoEmbeddingsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsComparisonExp(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.AutoEmbeddings = data - case "webhookSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookSecret")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Enabled = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordlessInsertInput, error) { + var it model.ConfigAuthMethodEmailPasswordlessInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"enabled"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.WebhookSecret = data + it.Enabled = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIInsertInput, error) { - var it model.ConfigAIInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodInsertInput, error) { + var it model.ConfigAuthMethodInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"version", "resources", "openai", "autoEmbeddings", "webhookSecret"} + fieldsInOrder := [...]string{"anonymous", "emailPasswordless", "emailPassword", "smsPasswordless", "oauth", "webauthn"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "anonymous": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("anonymous")) + data, err := ec.unmarshalOConfigAuthMethodAnonymousInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousInsertInput(ctx, v) if err != nil { return it, err } - it.Version = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalNConfigAIResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesInsertInput(ctx, v) + it.Anonymous = data + case "emailPasswordless": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPasswordless")) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessInsertInput(ctx, v) if err != nil { return it, err } - it.Resources = data - case "openai": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("openai")) - data, err := ec.unmarshalNConfigAIOpenaiInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiInsertInput(ctx, v) + it.EmailPasswordless = data + case "emailPassword": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPassword")) + data, err := ec.unmarshalOConfigAuthMethodEmailPasswordInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordInsertInput(ctx, v) if err != nil { return it, err } - it.Openai = data - case "autoEmbeddings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("autoEmbeddings")) - data, err := ec.unmarshalOConfigAIAutoEmbeddingsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIAutoEmbeddingsInsertInput(ctx, v) + it.EmailPassword = data + case "smsPasswordless": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smsPasswordless")) + data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessInsertInput(ctx, v) if err != nil { return it, err } - it.AutoEmbeddings = data - case "webhookSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhookSecret")) - data, err := ec.unmarshalNString2string(ctx, v) + it.SmsPasswordless = data + case "oauth": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth")) + data, err := ec.unmarshalOConfigAuthMethodOauthInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthInsertInput(ctx, v) if err != nil { return it, err } - it.WebhookSecret = data + it.Oauth = data + case "webauthn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthn")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Webauthn = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIOpenaiComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIOpenaiComparisonExp, error) { - var it model.ConfigAIOpenaiComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAppleComparisonExp, error) { + var it model.ConfigAuthMethodOauthAppleComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "organization", "apiKey"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "clientId", "keyId", "teamId", "scope", "privateKey"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25494,87 +28424,143 @@ func (ec *executionContext) unmarshalInputConfigAIOpenaiComparisonExp(ctx contex switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAIOpenaiComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIOpenaiComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "organization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Organization = data - case "apiKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiKey")) + it.ClientId = data + case "keyId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyId")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ApiKey = data + it.KeyId = data + case "teamId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamId")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.TeamId = data + case "scope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scope")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Scope = data + case "privateKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privateKey")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.PrivateKey = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIOpenaiInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIOpenaiInsertInput, error) { - var it model.ConfigAIOpenaiInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAppleInsertInput, error) { + var it model.ConfigAuthMethodOauthAppleInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"organization", "apiKey"} + fieldsInOrder := [...]string{"enabled", "clientId", "keyId", "teamId", "scope", "privateKey"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "organization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Organization = data - case "apiKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apiKey")) - data, err := ec.unmarshalNString2string(ctx, v) + it.ClientId = data + case "keyId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyId")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ApiKey = data + it.KeyId = data + case "teamId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamId")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TeamId = data + case "scope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scope")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Scope = data + case "privateKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privateKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.PrivateKey = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAIResourcesComparisonExp, error) { - var it model.ConfigAIResourcesComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAzureadComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAzureadComparisonExp, error) { + var it model.ConfigAuthMethodOauthAzureadComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "compute"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "tenant", "enabled", "clientId", "clientSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25583,73 +28569,115 @@ func (ec *executionContext) unmarshalInputConfigAIResourcesComparisonExp(ctx con switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAIResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "compute": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("compute")) - data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExp(ctx, v) + case "tenant": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tenant")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Compute = data + it.Tenant = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ClientId = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ClientSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAIResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAIResourcesInsertInput, error) { - var it model.ConfigAIResourcesInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAzureadInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAzureadInsertInput, error) { + var it model.ConfigAuthMethodOauthAzureadInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"compute"} + fieldsInOrder := [...]string{"tenant", "enabled", "clientId", "clientSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "compute": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("compute")) - data, err := ec.unmarshalNConfigComputeResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesInsertInput(ctx, v) + case "tenant": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tenant")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Compute = data + it.Tenant = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientId = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ClientSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthComparisonExp, error) { - var it model.ConfigAuthComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthComparisonExp, error) { + var it model.ConfigAuthMethodOauthComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "version", "resources", "elevatedPrivileges", "redirections", "signUp", "user", "session", "method", "totp", "misc", "rateLimit"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "apple", "azuread", "bitbucket", "discord", "facebook", "github", "gitlab", "google", "linkedin", "spotify", "strava", "twitch", "twitter", "windowslive", "workos"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25658,288 +28686,269 @@ func (ec *executionContext) unmarshalInputConfigAuthComparisonExp(ctx context.Co switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "apple": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apple")) + data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExp(ctx, v) if err != nil { return it, err } - it.Version = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalOConfigResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesComparisonExp(ctx, v) + it.Apple = data + case "azuread": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("azuread")) + data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExp(ctx, v) if err != nil { return it, err } - it.Resources = data - case "elevatedPrivileges": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("elevatedPrivileges")) - data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExp(ctx, v) + it.Azuread = data + case "bitbucket": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bitbucket")) + data, err := ec.unmarshalOConfigStandardOauthProviderComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderComparisonExp(ctx, v) if err != nil { return it, err } - it.ElevatedPrivileges = data - case "redirections": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirections")) - data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExp(ctx, v) + it.Bitbucket = data + case "discord": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.Redirections = data - case "signUp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signUp")) - data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExp(ctx, v) + it.Discord = data + case "facebook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("facebook")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.SignUp = data - case "user": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) - data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExp(ctx, v) + it.Facebook = data + case "github": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("github")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.User = data - case "session": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("session")) - data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExp(ctx, v) + it.Github = data + case "gitlab": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitlab")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.Session = data - case "method": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) - data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExp(ctx, v) + it.Gitlab = data + case "google": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("google")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.Method = data - case "totp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totp")) - data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExp(ctx, v) + it.Google = data + case "linkedin": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("linkedin")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.Totp = data - case "misc": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("misc")) - data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExp(ctx, v) + it.Linkedin = data + case "spotify": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spotify")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.Misc = data - case "rateLimit": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) - data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExp(ctx, v) + it.Spotify = data + case "strava": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strava")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.RateLimit = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigAuthElevatedPrivilegesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthElevatedPrivilegesComparisonExp, error) { - var it model.ConfigAuthElevatedPrivilegesComparisonExp - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"_and", "_not", "_or", "mode"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExpᚄ(ctx, v) + it.Strava = data + case "twitch": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitch")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExp(ctx, v) + it.Twitch = data + case "twitter": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitter")) + data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExp(ctx, v) if err != nil { return it, err } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthElevatedPrivilegesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesComparisonExpᚄ(ctx, v) + it.Twitter = data + case "windowslive": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("windowslive")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) if err != nil { return it, err - } - it.Or = data - case "mode": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + } + it.Windowslive = data + case "workos": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workos")) + data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExp(ctx, v) if err != nil { return it, err } - it.Mode = data + it.Workos = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthElevatedPrivilegesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthElevatedPrivilegesInsertInput, error) { - var it model.ConfigAuthElevatedPrivilegesInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthInsertInput, error) { + var it model.ConfigAuthMethodOauthInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"mode"} + fieldsInOrder := [...]string{"apple", "azuread", "bitbucket", "discord", "facebook", "github", "gitlab", "google", "linkedin", "spotify", "strava", "twitch", "twitter", "windowslive", "workos"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "mode": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "apple": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apple")) + data, err := ec.unmarshalOConfigAuthMethodOauthAppleInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleInsertInput(ctx, v) if err != nil { return it, err } - it.Mode = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigAuthInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthInsertInput, error) { - var it model.ConfigAuthInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"version", "resources", "elevatedPrivileges", "redirections", "signUp", "user", "session", "method", "totp", "misc", "rateLimit"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Apple = data + case "azuread": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("azuread")) + data, err := ec.unmarshalOConfigAuthMethodOauthAzureadInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadInsertInput(ctx, v) if err != nil { return it, err } - it.Version = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalOConfigResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigResourcesInsertInput(ctx, v) + it.Azuread = data + case "bitbucket": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bitbucket")) + data, err := ec.unmarshalOConfigStandardOauthProviderInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderInsertInput(ctx, v) if err != nil { return it, err } - it.Resources = data - case "elevatedPrivileges": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("elevatedPrivileges")) - data, err := ec.unmarshalOConfigAuthElevatedPrivilegesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthElevatedPrivilegesInsertInput(ctx, v) + it.Bitbucket = data + case "discord": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.ElevatedPrivileges = data - case "redirections": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("redirections")) - data, err := ec.unmarshalOConfigAuthRedirectionsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsInsertInput(ctx, v) + it.Discord = data + case "facebook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("facebook")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.Redirections = data - case "signUp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signUp")) - data, err := ec.unmarshalOConfigAuthSignUpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpInsertInput(ctx, v) + it.Facebook = data + case "github": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("github")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.SignUp = data - case "user": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) - data, err := ec.unmarshalOConfigAuthUserInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserInsertInput(ctx, v) + it.Github = data + case "gitlab": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitlab")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.User = data - case "session": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("session")) - data, err := ec.unmarshalOConfigAuthSessionInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionInsertInput(ctx, v) + it.Gitlab = data + case "google": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("google")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.Session = data - case "method": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("method")) - data, err := ec.unmarshalOConfigAuthMethodInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodInsertInput(ctx, v) + it.Google = data + case "linkedin": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("linkedin")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.Method = data - case "totp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("totp")) - data, err := ec.unmarshalOConfigAuthTotpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpInsertInput(ctx, v) + it.Linkedin = data + case "spotify": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spotify")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.Totp = data - case "misc": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("misc")) - data, err := ec.unmarshalOConfigAuthMiscInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscInsertInput(ctx, v) + it.Spotify = data + case "strava": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strava")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.Misc = data - case "rateLimit": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) - data, err := ec.unmarshalOConfigAuthRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitInsertInput(ctx, v) + it.Strava = data + case "twitch": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitch")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) if err != nil { return it, err } - it.RateLimit = data + it.Twitch = data + case "twitter": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitter")) + data, err := ec.unmarshalOConfigAuthMethodOauthTwitterInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Twitter = data + case "windowslive": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("windowslive")) + data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Windowslive = data + case "workos": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workos")) + data, err := ec.unmarshalOConfigAuthMethodOauthWorkosInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Workos = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodAnonymousComparisonExp, error) { - var it model.ConfigAuthMethodAnonymousComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthTwitterComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthTwitterComparisonExp, error) { + var it model.ConfigAuthMethodOauthTwitterComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "consumerKey", "consumerSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -25948,21 +28957,21 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousComparisonExp switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExpᚄ(ctx, v) if err != nil { return it, err } @@ -25974,20 +28983,34 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousComparisonExp return it, err } it.Enabled = data + case "consumerKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerKey")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ConsumerKey = data + case "consumerSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerSecret")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.ConsumerSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodAnonymousInsertInput, error) { - var it model.ConfigAuthMethodAnonymousInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthTwitterInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthTwitterInsertInput, error) { + var it model.ConfigAuthMethodOauthTwitterInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled"} + fieldsInOrder := [...]string{"enabled", "consumerKey", "consumerSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26001,20 +29024,34 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodAnonymousInsertInput(c return it, err } it.Enabled = data + case "consumerKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerKey")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ConsumerKey = data + case "consumerSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerSecret")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ConsumerSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodComparisonExp, error) { - var it model.ConfigAuthMethodComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthWorkosComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthWorkosComparisonExp, error) { + var it model.ConfigAuthMethodOauthWorkosComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "anonymous", "emailPasswordless", "emailPassword", "smsPasswordless", "oauth", "webauthn"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "connection", "enabled", "clientId", "organization", "clientSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26023,178 +29060,123 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodComparisonExp(ctx cont switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "anonymous": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("anonymous")) - data, err := ec.unmarshalOConfigAuthMethodAnonymousComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Anonymous = data - case "emailPasswordless": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPasswordless")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExp(ctx, v) + case "connection": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connection")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.EmailPasswordless = data - case "emailPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPassword")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExp(ctx, v) + it.Connection = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.EmailPassword = data - case "smsPasswordless": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smsPasswordless")) - data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExp(ctx, v) + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.SmsPasswordless = data - case "oauth": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth")) - data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExp(ctx, v) + it.ClientId = data + case "organization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Oauth = data - case "webauthn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthn")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExp(ctx, v) + it.Organization = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Webauthn = data + it.ClientSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordComparisonExp, error) { - var it model.ConfigAuthMethodEmailPasswordComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodOauthWorkosInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthWorkosInsertInput, error) { + var it model.ConfigAuthMethodOauthWorkosInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "hibpEnabled", "emailVerificationRequired", "passwordMinLength"} + fieldsInOrder := [...]string{"connection", "enabled", "clientId", "organization", "clientSecret"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "hibpEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hibpEnabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.HibpEnabled = data - case "emailVerificationRequired": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationRequired")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "connection": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connection")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailVerificationRequired = data - case "passwordMinLength": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordMinLength")) - data, err := ec.unmarshalOConfigUint8ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Connection = data + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.PasswordMinLength = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordInsertInput, error) { - var it model.ConfigAuthMethodEmailPasswordInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"hibpEnabled", "emailVerificationRequired", "passwordMinLength"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "hibpEnabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hibpEnabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Enabled = data + case "clientId": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.HibpEnabled = data - case "emailVerificationRequired": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailVerificationRequired")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.ClientId = data + case "organization": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.EmailVerificationRequired = data - case "passwordMinLength": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("passwordMinLength")) - data, err := ec.unmarshalOConfigUint82ᚖuint8(ctx, v) + it.Organization = data + case "clientSecret": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.PasswordMinLength = data + it.ClientSecret = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordlessComparisonExp, error) { - var it model.ConfigAuthMethodEmailPasswordlessComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodSmsPasswordlessComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodSmsPasswordlessComparisonExp, error) { + var it model.ConfigAuthMethodSmsPasswordlessComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v @@ -26209,21 +29191,21 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessCompa switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExpᚄ(ctx, v) if err != nil { return it, err } @@ -26241,8 +29223,8 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessCompa return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodEmailPasswordlessInsertInput, error) { - var it model.ConfigAuthMethodEmailPasswordlessInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodSmsPasswordlessInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodSmsPasswordlessInsertInput, error) { + var it model.ConfigAuthMethodSmsPasswordlessInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v @@ -26268,76 +29250,89 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodEmailPasswordlessInser return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodInsertInput, error) { - var it model.ConfigAuthMethodInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnAttestationComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnAttestationComparisonExp, error) { + var it model.ConfigAuthMethodWebauthnAttestationComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"anonymous", "emailPasswordless", "emailPassword", "smsPasswordless", "oauth", "webauthn"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "timeout"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "anonymous": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("anonymous")) - data, err := ec.unmarshalOConfigAuthMethodAnonymousInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodAnonymousInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Anonymous = data - case "emailPasswordless": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPasswordless")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordlessInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordlessInsertInput(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.EmailPasswordless = data - case "emailPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailPassword")) - data, err := ec.unmarshalOConfigAuthMethodEmailPasswordInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodEmailPasswordInsertInput(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExp(ctx, v) if err != nil { return it, err } - it.EmailPassword = data - case "smsPasswordless": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smsPasswordless")) - data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessInsertInput(ctx, v) + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.SmsPasswordless = data - case "oauth": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("oauth")) - data, err := ec.unmarshalOConfigAuthMethodOauthInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthInsertInput(ctx, v) + it.Or = data + case "timeout": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeout")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Oauth = data - case "webauthn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webauthn")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnInsertInput(ctx, v) + it.Timeout = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnAttestationInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnAttestationInsertInput, error) { + var it model.ConfigAuthMethodWebauthnAttestationInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"timeout"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "timeout": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeout")) + data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) if err != nil { return it, err } - it.Webauthn = data + it.Timeout = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAppleComparisonExp, error) { - var it model.ConfigAuthMethodOauthAppleComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnComparisonExp, error) { + var it model.ConfigAuthMethodWebauthnComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "clientId", "keyId", "teamId", "scope", "privateKey"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "relyingParty", "attestation"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26346,21 +29341,21 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleComparisonEx switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExpᚄ(ctx, v) if err != nil { return it, err } @@ -26372,55 +29367,34 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleComparisonEx return it, err } it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.ClientId = data - case "keyId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyId")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.KeyId = data - case "teamId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamId")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.TeamId = data - case "scope": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scope")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "relyingParty": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("relyingParty")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx, v) if err != nil { return it, err } - it.Scope = data - case "privateKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privateKey")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.RelyingParty = data + case "attestation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attestation")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExp(ctx, v) if err != nil { return it, err } - it.PrivateKey = data + it.Attestation = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAppleInsertInput, error) { - var it model.ConfigAuthMethodOauthAppleInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnInsertInput, error) { + var it model.ConfigAuthMethodWebauthnInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled", "clientId", "keyId", "teamId", "scope", "privateKey"} + fieldsInOrder := [...]string{"enabled", "relyingParty", "attestation"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26433,56 +29407,35 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAppleInsertInput( if err != nil { return it, err } - it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientId = data - case "keyId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("keyId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.KeyId = data - case "teamId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("teamId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.TeamId = data - case "scope": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("scope")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Enabled = data + case "relyingParty": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("relyingParty")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyInsertInput(ctx, v) if err != nil { return it, err } - it.Scope = data - case "privateKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("privateKey")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.RelyingParty = data + case "attestation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attestation")) + data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationInsertInput(ctx, v) if err != nil { return it, err } - it.PrivateKey = data + it.Attestation = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAzureadComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAzureadComparisonExp, error) { - var it model.ConfigAuthMethodOauthAzureadComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnRelyingPartyComparisonExp, error) { + var it model.ConfigAuthMethodWebauthnRelyingPartyComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "tenant", "enabled", "clientId", "clientSecret"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "id", "name", "origins"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26491,115 +29444,101 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAzureadComparison switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "tenant": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tenant")) + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Tenant = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + it.Id = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ClientId = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Name = data + case "origins": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins")) + data, err := ec.unmarshalOConfigUrlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUrlComparisonExp(ctx, v) if err != nil { return it, err } - it.ClientSecret = data + it.Origins = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthAzureadInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthAzureadInsertInput, error) { - var it model.ConfigAuthMethodOauthAzureadInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnRelyingPartyInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnRelyingPartyInsertInput, error) { + var it model.ConfigAuthMethodWebauthnRelyingPartyInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"tenant", "enabled", "clientId", "clientSecret"} + fieldsInOrder := [...]string{"id", "name", "origins"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "tenant": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tenant")) + case "id": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Tenant = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) + it.Id = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.ClientId = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Name = data + case "origins": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins")) + data, err := ec.unmarshalOConfigUrl2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientSecret = data + it.Origins = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthComparisonExp, error) { - var it model.ConfigAuthMethodOauthComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthMiscComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMiscComparisonExp, error) { + var it model.ConfigAuthMiscComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "apple", "azuread", "bitbucket", "discord", "facebook", "github", "gitlab", "google", "linkedin", "spotify", "strava", "twitch", "twitter", "windowslive", "workos"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "concealErrors"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26608,269 +29547,73 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthComparisonExp(ctx switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodOauthComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "apple": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apple")) - data, err := ec.unmarshalOConfigAuthMethodOauthAppleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Apple = data - case "azuread": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("azuread")) - data, err := ec.unmarshalOConfigAuthMethodOauthAzureadComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Azuread = data - case "bitbucket": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bitbucket")) - data, err := ec.unmarshalOConfigStandardOauthProviderComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Bitbucket = data - case "discord": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Discord = data - case "facebook": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("facebook")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Facebook = data - case "github": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("github")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Github = data - case "gitlab": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitlab")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Gitlab = data - case "google": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("google")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Google = data - case "linkedin": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("linkedin")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Linkedin = data - case "spotify": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spotify")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Spotify = data - case "strava": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strava")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Strava = data - case "twitch": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitch")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Twitch = data - case "twitter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitter")) - data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Twitter = data - case "windowslive": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("windowslive")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Windowslive = data - case "workos": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workos")) - data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExp(ctx, v) + case "concealErrors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("concealErrors")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Workos = data + it.ConcealErrors = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthInsertInput, error) { - var it model.ConfigAuthMethodOauthInsertInput +func (ec *executionContext) unmarshalInputConfigAuthMiscInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMiscInsertInput, error) { + var it model.ConfigAuthMiscInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"apple", "azuread", "bitbucket", "discord", "facebook", "github", "gitlab", "google", "linkedin", "spotify", "strava", "twitch", "twitter", "windowslive", "workos"} + fieldsInOrder := [...]string{"concealErrors"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "apple": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("apple")) - data, err := ec.unmarshalOConfigAuthMethodOauthAppleInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAppleInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Apple = data - case "azuread": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("azuread")) - data, err := ec.unmarshalOConfigAuthMethodOauthAzureadInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthAzureadInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Azuread = data - case "bitbucket": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bitbucket")) - data, err := ec.unmarshalOConfigStandardOauthProviderInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Bitbucket = data - case "discord": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Discord = data - case "facebook": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("facebook")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Facebook = data - case "github": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("github")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Github = data - case "gitlab": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gitlab")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Gitlab = data - case "google": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("google")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Google = data - case "linkedin": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("linkedin")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Linkedin = data - case "spotify": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("spotify")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Spotify = data - case "strava": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("strava")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Strava = data - case "twitch": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitch")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Twitch = data - case "twitter": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("twitter")) - data, err := ec.unmarshalOConfigAuthMethodOauthTwitterInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Twitter = data - case "windowslive": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("windowslive")) - data, err := ec.unmarshalOConfigStandardOauthProviderWithScopeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStandardOauthProviderWithScopeInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Windowslive = data - case "workos": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("workos")) - data, err := ec.unmarshalOConfigAuthMethodOauthWorkosInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosInsertInput(ctx, v) + case "concealErrors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("concealErrors")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Workos = data + it.ConcealErrors = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthTwitterComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthTwitterComparisonExp, error) { - var it model.ConfigAuthMethodOauthTwitterComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthRateLimitComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthRateLimitComparisonExp, error) { + var it model.ConfigAuthRateLimitComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "consumerKey", "consumerSecret"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "emails", "sms", "bruteForce", "signups", "global"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26879,101 +29622,129 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthTwitterComparison switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodOauthTwitterComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthTwitterComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "emails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "consumerKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerKey")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Emails = data + case "sms": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sms")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) if err != nil { return it, err } - it.ConsumerKey = data - case "consumerSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerSecret")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Sms = data + case "bruteForce": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bruteForce")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) if err != nil { return it, err } - it.ConsumerSecret = data + it.BruteForce = data + case "signups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signups")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Signups = data + case "global": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Global = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthTwitterInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthTwitterInsertInput, error) { - var it model.ConfigAuthMethodOauthTwitterInsertInput +func (ec *executionContext) unmarshalInputConfigAuthRateLimitInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthRateLimitInsertInput, error) { + var it model.ConfigAuthRateLimitInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled", "consumerKey", "consumerSecret"} + fieldsInOrder := [...]string{"emails", "sms", "bruteForce", "signups", "global"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + case "emails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "consumerKey": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerKey")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Emails = data + case "sms": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sms")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) if err != nil { return it, err } - it.ConsumerKey = data - case "consumerSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("consumerSecret")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Sms = data + case "bruteForce": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bruteForce")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) if err != nil { return it, err } - it.ConsumerSecret = data + it.BruteForce = data + case "signups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signups")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Signups = data + case "global": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Global = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthWorkosComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthWorkosComparisonExp, error) { - var it model.ConfigAuthMethodOauthWorkosComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthRedirectionsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthRedirectionsComparisonExp, error) { + var it model.ConfigAuthRedirectionsComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "connection", "enabled", "clientId", "organization", "clientSecret"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "clientUrl", "allowedUrls"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -26982,129 +29753,87 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodOauthWorkosComparisonE switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodOauthWorkosComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodOauthWorkosComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "connection": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connection")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Connection = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.ClientId = data - case "organization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "clientUrl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientUrl")) + data, err := ec.unmarshalOConfigUrlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUrlComparisonExp(ctx, v) if err != nil { return it, err } - it.Organization = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) + it.ClientUrl = data + case "allowedUrls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowedUrls")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ClientSecret = data + it.AllowedUrls = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodOauthWorkosInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodOauthWorkosInsertInput, error) { - var it model.ConfigAuthMethodOauthWorkosInsertInput +func (ec *executionContext) unmarshalInputConfigAuthRedirectionsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthRedirectionsInsertInput, error) { + var it model.ConfigAuthRedirectionsInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"connection", "enabled", "clientId", "organization", "clientSecret"} + fieldsInOrder := [...]string{"clientUrl", "allowedUrls"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "connection": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("connection")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Connection = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "clientId": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientId")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ClientId = data - case "organization": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("organization")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "clientUrl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientUrl")) + data, err := ec.unmarshalOConfigUrl2ᚖstring(ctx, v) if err != nil { return it, err } - it.Organization = data - case "clientSecret": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientSecret")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.ClientUrl = data + case "allowedUrls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowedUrls")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientSecret = data + it.AllowedUrls = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodSmsPasswordlessComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodSmsPasswordlessComparisonExp, error) { - var it model.ConfigAuthMethodSmsPasswordlessComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthSessionAccessTokenComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionAccessTokenComparisonExp, error) { + var it model.ConfigAuthSessionAccessTokenComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "expiresIn", "customClaims"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27113,73 +29842,87 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodSmsPasswordlessCompari switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodSmsPasswordlessComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodSmsPasswordlessComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "expiresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Enabled = data + it.ExpiresIn = data + case "customClaims": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customClaims")) + data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.CustomClaims = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodSmsPasswordlessInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodSmsPasswordlessInsertInput, error) { - var it model.ConfigAuthMethodSmsPasswordlessInsertInput +func (ec *executionContext) unmarshalInputConfigAuthSessionAccessTokenInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionAccessTokenInsertInput, error) { + var it model.ConfigAuthSessionAccessTokenInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled"} + fieldsInOrder := [...]string{"expiresIn", "customClaims"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + case "expiresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) + data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) if err != nil { return it, err } - it.Enabled = data + it.ExpiresIn = data + case "customClaims": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customClaims")) + data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsInsertInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.CustomClaims = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnAttestationComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnAttestationComparisonExp, error) { - var it model.ConfigAuthMethodWebauthnAttestationComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthSessionComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionComparisonExp, error) { + var it model.ConfigAuthSessionComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "timeout"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "accessToken", "refreshToken"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27188,73 +29931,87 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnAttestationCom switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "timeout": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeout")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "accessToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessToken")) + data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExp(ctx, v) if err != nil { return it, err } - it.Timeout = data + it.AccessToken = data + case "refreshToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refreshToken")) + data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.RefreshToken = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnAttestationInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnAttestationInsertInput, error) { - var it model.ConfigAuthMethodWebauthnAttestationInsertInput +func (ec *executionContext) unmarshalInputConfigAuthSessionInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionInsertInput, error) { + var it model.ConfigAuthSessionInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"timeout"} + fieldsInOrder := [...]string{"accessToken", "refreshToken"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "timeout": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("timeout")) - data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) + case "accessToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessToken")) + data, err := ec.unmarshalOConfigAuthSessionAccessTokenInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenInsertInput(ctx, v) if err != nil { return it, err } - it.Timeout = data + it.AccessToken = data + case "refreshToken": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refreshToken")) + data, err := ec.unmarshalOConfigAuthSessionRefreshTokenInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenInsertInput(ctx, v) + if err != nil { + return it, err + } + it.RefreshToken = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnComparisonExp, error) { - var it model.ConfigAuthMethodWebauthnComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthSessionRefreshTokenComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionRefreshTokenComparisonExp, error) { + var it model.ConfigAuthSessionRefreshTokenComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "relyingParty", "attestation"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "expiresIn"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27263,101 +30020,73 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnComparisonExp( switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "relyingParty": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("relyingParty")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.RelyingParty = data - case "attestation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attestation")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationComparisonExp(ctx, v) + case "expiresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Attestation = data + it.ExpiresIn = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnInsertInput, error) { - var it model.ConfigAuthMethodWebauthnInsertInput +func (ec *executionContext) unmarshalInputConfigAuthSessionRefreshTokenInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionRefreshTokenInsertInput, error) { + var it model.ConfigAuthSessionRefreshTokenInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled", "relyingParty", "attestation"} + fieldsInOrder := [...]string{"expiresIn"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.Enabled = data - case "relyingParty": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("relyingParty")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyInsertInput(ctx, v) - if err != nil { - return it, err - } - it.RelyingParty = data - case "attestation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("attestation")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnAttestationInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnAttestationInsertInput(ctx, v) + case "expiresIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) + data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) if err != nil { return it, err } - it.Attestation = data + it.ExpiresIn = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnRelyingPartyComparisonExp, error) { - var it model.ConfigAuthMethodWebauthnRelyingPartyComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthSignUpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSignUpComparisonExp, error) { + var it model.ConfigAuthSignUpComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "id", "name", "origins"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "disableNewUsers"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27366,101 +30095,87 @@ func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnRelyingPartyCo switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMethodWebauthnRelyingPartyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMethodWebauthnRelyingPartyComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Id = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Name = data - case "origins": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins")) - data, err := ec.unmarshalOConfigUrlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUrlComparisonExp(ctx, v) + it.Enabled = data + case "disableNewUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("disableNewUsers")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Origins = data + it.DisableNewUsers = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMethodWebauthnRelyingPartyInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMethodWebauthnRelyingPartyInsertInput, error) { - var it model.ConfigAuthMethodWebauthnRelyingPartyInsertInput +func (ec *executionContext) unmarshalInputConfigAuthSignUpInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSignUpInsertInput, error) { + var it model.ConfigAuthSignUpInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"id", "name", "origins"} + fieldsInOrder := [...]string{"enabled", "disableNewUsers"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "id": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Id = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Name = data - case "origins": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("origins")) - data, err := ec.unmarshalOConfigUrl2ᚕstringᚄ(ctx, v) + it.Enabled = data + case "disableNewUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("disableNewUsers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Origins = data + it.DisableNewUsers = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMiscComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthMiscComparisonExp, error) { - var it model.ConfigAuthMiscComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthTotpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthTotpComparisonExp, error) { + var it model.ConfigAuthTotpComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "concealErrors"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "issuer"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27469,73 +30184,87 @@ func (ec *executionContext) unmarshalInputConfigAuthMiscComparisonExp(ctx contex switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthMiscComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthMiscComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "concealErrors": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("concealErrors")) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ConcealErrors = data + it.Enabled = data + case "issuer": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issuer")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Issuer = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthMiscInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthMiscInsertInput, error) { - var it model.ConfigAuthMiscInsertInput +func (ec *executionContext) unmarshalInputConfigAuthTotpInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthTotpInsertInput, error) { + var it model.ConfigAuthTotpInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"concealErrors"} + fieldsInOrder := [...]string{"enabled", "issuer"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "concealErrors": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("concealErrors")) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.ConcealErrors = data + it.Enabled = data + case "issuer": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issuer")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Issuer = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthRateLimitComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthRateLimitComparisonExp, error) { - var it model.ConfigAuthRateLimitComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthUserComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserComparisonExp, error) { + var it model.ConfigAuthUserComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "emails", "sms", "bruteForce", "signups", "global"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "roles", "locale", "gravatar", "email", "emailDomains"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27544,129 +30273,129 @@ func (ec *executionContext) unmarshalInputConfigAuthRateLimitComparisonExp(ctx c switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthRateLimitComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRateLimitComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "emails": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + case "roles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) + data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExp(ctx, v) if err != nil { return it, err } - it.Emails = data - case "sms": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sms")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + it.Roles = data + case "locale": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale")) + data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExp(ctx, v) if err != nil { return it, err } - it.Sms = data - case "bruteForce": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bruteForce")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + it.Locale = data + case "gravatar": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatar")) + data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExp(ctx, v) if err != nil { return it, err } - it.BruteForce = data - case "signups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signups")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + it.Gravatar = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExp(ctx, v) if err != nil { return it, err } - it.Signups = data - case "global": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + it.Email = data + case "emailDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomains")) + data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExp(ctx, v) if err != nil { return it, err } - it.Global = data + it.EmailDomains = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthRateLimitInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthRateLimitInsertInput, error) { - var it model.ConfigAuthRateLimitInsertInput +func (ec *executionContext) unmarshalInputConfigAuthUserEmailComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailComparisonExp, error) { + var it model.ConfigAuthUserEmailComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"emails", "sms", "bruteForce", "signups", "global"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "allowed", "blocked"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "emails": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Emails = data - case "sms": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sms")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExp(ctx, v) if err != nil { return it, err } - it.Sms = data - case "bruteForce": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("bruteForce")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.BruteForce = data - case "signups": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("signups")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + it.Or = data + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEmailComparisonExp(ctx, v) if err != nil { return it, err } - it.Signups = data - case "global": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + it.Allowed = data + case "blocked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) + data, err := ec.unmarshalOConfigEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEmailComparisonExp(ctx, v) if err != nil { return it, err } - it.Global = data + it.Blocked = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthRedirectionsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthRedirectionsComparisonExp, error) { - var it model.ConfigAuthRedirectionsComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthUserEmailDomainsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailDomainsComparisonExp, error) { + var it model.ConfigAuthUserEmailDomainsComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "clientUrl", "allowedUrls"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "allowed", "blocked"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27675,87 +30404,121 @@ func (ec *executionContext) unmarshalInputConfigAuthRedirectionsComparisonExp(ct switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthRedirectionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthRedirectionsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "clientUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientUrl")) - data, err := ec.unmarshalOConfigUrlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUrlComparisonExp(ctx, v) + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ClientUrl = data - case "allowedUrls": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowedUrls")) + it.Allowed = data + case "blocked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.AllowedUrls = data + it.Blocked = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthRedirectionsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthRedirectionsInsertInput, error) { - var it model.ConfigAuthRedirectionsInsertInput +func (ec *executionContext) unmarshalInputConfigAuthUserEmailDomainsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailDomainsInsertInput, error) { + var it model.ConfigAuthUserEmailDomainsInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"clientUrl", "allowedUrls"} + fieldsInOrder := [...]string{"allowed", "blocked"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "clientUrl": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clientUrl")) - data, err := ec.unmarshalOConfigUrl2ᚖstring(ctx, v) + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.ClientUrl = data - case "allowedUrls": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowedUrls")) + it.Allowed = data + case "blocked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.AllowedUrls = data + it.Blocked = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionAccessTokenComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionAccessTokenComparisonExp, error) { - var it model.ConfigAuthSessionAccessTokenComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthUserEmailInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailInsertInput, error) { + var it model.ConfigAuthUserEmailInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "expiresIn", "customClaims"} + fieldsInOrder := [...]string{"allowed", "blocked"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Allowed = data + case "blocked": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) + data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Blocked = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthUserGravatarComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserGravatarComparisonExp, error) { + var it model.ConfigAuthUserGravatarComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "default", "rating"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27764,87 +30527,156 @@ func (ec *executionContext) unmarshalInputConfigAuthSessionAccessTokenComparison switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "expiresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.ExpiresIn = data - case "customClaims": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customClaims")) - data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx, v) + it.Enabled = data + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.CustomClaims = data + it.Default = data + case "rating": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rating")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Rating = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAuthUserGravatarInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserGravatarInsertInput, error) { + var it model.ConfigAuthUserGravatarInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"enabled", "default", "rating"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.Enabled = data + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Default = data + case "rating": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rating")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Rating = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionAccessTokenInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionAccessTokenInsertInput, error) { - var it model.ConfigAuthSessionAccessTokenInsertInput +func (ec *executionContext) unmarshalInputConfigAuthUserInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserInsertInput, error) { + var it model.ConfigAuthUserInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"expiresIn", "customClaims"} + fieldsInOrder := [...]string{"roles", "locale", "gravatar", "email", "emailDomains"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "expiresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) - data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) + case "roles": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) + data, err := ec.unmarshalOConfigAuthUserRolesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesInsertInput(ctx, v) if err != nil { return it, err } - it.ExpiresIn = data - case "customClaims": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("customClaims")) - data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsInsertInputᚄ(ctx, v) + it.Roles = data + case "locale": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale")) + data, err := ec.unmarshalOConfigAuthUserLocaleInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleInsertInput(ctx, v) if err != nil { return it, err } - it.CustomClaims = data + it.Locale = data + case "gravatar": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatar")) + data, err := ec.unmarshalOConfigAuthUserGravatarInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Gravatar = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOConfigAuthUserEmailInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Email = data + case "emailDomains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomains")) + data, err := ec.unmarshalOConfigAuthUserEmailDomainsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsInsertInput(ctx, v) + if err != nil { + return it, err + } + it.EmailDomains = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionComparisonExp, error) { - var it model.ConfigAuthSessionComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthUserLocaleComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserLocaleComparisonExp, error) { + var it model.ConfigAuthUserLocaleComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "accessToken", "refreshToken"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "default", "allowed"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27853,87 +30685,87 @@ func (ec *executionContext) unmarshalInputConfigAuthSessionComparisonExp(ctx con switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthSessionComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "accessToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessToken")) - data, err := ec.unmarshalOConfigAuthSessionAccessTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenComparisonExp(ctx, v) + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigLocaleComparisonExp(ctx, v) if err != nil { return it, err } - it.AccessToken = data - case "refreshToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refreshToken")) - data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExp(ctx, v) + it.Default = data + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigLocaleComparisonExp(ctx, v) if err != nil { return it, err } - it.RefreshToken = data + it.Allowed = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionInsertInput, error) { - var it model.ConfigAuthSessionInsertInput +func (ec *executionContext) unmarshalInputConfigAuthUserLocaleInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserLocaleInsertInput, error) { + var it model.ConfigAuthUserLocaleInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"accessToken", "refreshToken"} + fieldsInOrder := [...]string{"default", "allowed"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "accessToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("accessToken")) - data, err := ec.unmarshalOConfigAuthSessionAccessTokenInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionAccessTokenInsertInput(ctx, v) + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigLocale2ᚖstring(ctx, v) if err != nil { return it, err } - it.AccessToken = data - case "refreshToken": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refreshToken")) - data, err := ec.unmarshalOConfigAuthSessionRefreshTokenInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenInsertInput(ctx, v) + it.Default = data + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigLocale2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RefreshToken = data + it.Allowed = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionRefreshTokenComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSessionRefreshTokenComparisonExp, error) { - var it model.ConfigAuthSessionRefreshTokenComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthUserRolesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserRolesComparisonExp, error) { + var it model.ConfigAuthUserRolesComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "expiresIn"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "default", "allowed"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -27942,73 +30774,87 @@ func (ec *executionContext) unmarshalInputConfigAuthSessionRefreshTokenCompariso switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthSessionRefreshTokenComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSessionRefreshTokenComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "expiresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigUserRoleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUserRoleComparisonExp(ctx, v) if err != nil { return it, err } - it.ExpiresIn = data + it.Default = data + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigUserRoleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUserRoleComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Allowed = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSessionRefreshTokenInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSessionRefreshTokenInsertInput, error) { - var it model.ConfigAuthSessionRefreshTokenInsertInput +func (ec *executionContext) unmarshalInputConfigAuthUserRolesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserRolesInsertInput, error) { + var it model.ConfigAuthUserRolesInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"expiresIn"} + fieldsInOrder := [...]string{"default", "allowed"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "expiresIn": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("expiresIn")) - data, err := ec.unmarshalOConfigUint322ᚖuint32(ctx, v) + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigUserRole2ᚖstring(ctx, v) if err != nil { return it, err } - it.ExpiresIn = data + it.Default = data + case "allowed": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) + data, err := ec.unmarshalOConfigUserRole2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Allowed = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSignUpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthSignUpComparisonExp, error) { - var it model.ConfigAuthSignUpComparisonExp +func (ec *executionContext) unmarshalInputConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthsessionaccessTokenCustomClaimsComparisonExp, error) { + var it model.ConfigAuthsessionaccessTokenCustomClaimsComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "disableNewUsers"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "key", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28017,87 +30863,87 @@ func (ec *executionContext) unmarshalInputConfigAuthSignUpComparisonExp(ctx cont switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthSignUpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthSignUpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "key": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "disableNewUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("disableNewUsers")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Key = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.DisableNewUsers = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthSignUpInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthSignUpInsertInput, error) { - var it model.ConfigAuthSignUpInsertInput +func (ec *executionContext) unmarshalInputConfigAuthsessionaccessTokenCustomClaimsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthsessionaccessTokenCustomClaimsInsertInput, error) { + var it model.ConfigAuthsessionaccessTokenCustomClaimsInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled", "disableNewUsers"} + fieldsInOrder := [...]string{"key", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + case "key": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "disableNewUsers": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("disableNewUsers")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Key = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.DisableNewUsers = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthTotpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthTotpComparisonExp, error) { - var it model.ConfigAuthTotpComparisonExp +func (ec *executionContext) unmarshalInputConfigAutoscalerComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAutoscalerComparisonExp, error) { + var it model.ConfigAutoscalerComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "issuer"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "maxReplicas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28106,87 +30952,121 @@ func (ec *executionContext) unmarshalInputConfigAuthTotpComparisonExp(ctx contex switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthTotpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthTotpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "maxReplicas": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxReplicas")) + data, err := ec.unmarshalOConfigUint8ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "issuer": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issuer")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.MaxReplicas = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigAutoscalerInsertInput(ctx context.Context, obj interface{}) (model.ConfigAutoscalerInsertInput, error) { + var it model.ConfigAutoscalerInsertInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"maxReplicas"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "maxReplicas": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxReplicas")) + data, err := ec.unmarshalNConfigUint82uint8(ctx, v) if err != nil { return it, err } - it.Issuer = data + it.MaxReplicas = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthTotpInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthTotpInsertInput, error) { - var it model.ConfigAuthTotpInsertInput +func (ec *executionContext) unmarshalInputConfigBooleanComparisonExp(ctx context.Context, obj interface{}) (model.GenericComparisonExp[bool], error) { + var it model.GenericComparisonExp[bool] asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"enabled", "issuer"} + fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + case "_eq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "issuer": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("issuer")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Eq = data + case "_neq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Issuer = data + it.Neq = data + case "_in": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) + data, err := ec.unmarshalOBoolean2ᚕboolᚄ(ctx, v) + if err != nil { + return it, err + } + it.In = data + case "_nin": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) + data, err := ec.unmarshalOBoolean2ᚕboolᚄ(ctx, v) + if err != nil { + return it, err + } + it.Nin = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserComparisonExp, error) { - var it model.ConfigAuthUserComparisonExp +func (ec *executionContext) unmarshalInputConfigClaimMapComparisonExp(ctx context.Context, obj interface{}) (model.ConfigClaimMapComparisonExp, error) { + var it model.ConfigClaimMapComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "roles", "locale", "gravatar", "email", "emailDomains"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "claim", "value", "path", "default"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28195,129 +31075,115 @@ func (ec *executionContext) unmarshalInputConfigAuthUserComparisonExp(ctx contex switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "roles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) - data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Roles = data - case "locale": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale")) - data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExp(ctx, v) + case "claim": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claim")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Locale = data - case "gravatar": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatar")) - data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExp(ctx, v) + it.Claim = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Gravatar = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExp(ctx, v) + it.Value = data + case "path": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Email = data - case "emailDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomains")) - data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExp(ctx, v) + it.Path = data + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.EmailDomains = data + it.Default = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserEmailComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailComparisonExp, error) { - var it model.ConfigAuthUserEmailComparisonExp +func (ec *executionContext) unmarshalInputConfigClaimMapInsertInput(ctx context.Context, obj interface{}) (model.ConfigClaimMapInsertInput, error) { + var it model.ConfigClaimMapInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "allowed", "blocked"} + fieldsInOrder := [...]string{"claim", "value", "path", "default"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExp(ctx, v) + case "claim": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claim")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserEmailComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailComparisonExpᚄ(ctx, v) + it.Claim = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Or = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEmailComparisonExp(ctx, v) + it.Value = data + case "path": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Allowed = data - case "blocked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) - data, err := ec.unmarshalOConfigEmailComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEmailComparisonExp(ctx, v) + it.Path = data + case "default": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Blocked = data + it.Default = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserEmailDomainsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailDomainsComparisonExp, error) { - var it model.ConfigAuthUserEmailDomainsComparisonExp +func (ec *executionContext) unmarshalInputConfigComputeResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigComputeResourcesComparisonExp, error) { + var it model.ConfigComputeResourcesComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "allowed", "blocked"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "cpu", "memory"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28326,279 +31192,336 @@ func (ec *executionContext) unmarshalInputConfigAuthUserEmailDomainsComparisonEx switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserEmailDomainsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "cpu": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpu")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Allowed = data - case "blocked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Cpu = data + case "memory": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("memory")) + data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Blocked = data + it.Memory = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserEmailDomainsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailDomainsInsertInput, error) { - var it model.ConfigAuthUserEmailDomainsInsertInput +func (ec *executionContext) unmarshalInputConfigComputeResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigComputeResourcesInsertInput, error) { + var it model.ConfigComputeResourcesInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"allowed", "blocked"} + fieldsInOrder := [...]string{"cpu", "memory"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + case "cpu": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpu")) + data, err := ec.unmarshalNConfigUint322uint32(ctx, v) if err != nil { return it, err } - it.Allowed = data - case "blocked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + it.Cpu = data + case "memory": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("memory")) + data, err := ec.unmarshalNConfigUint322uint32(ctx, v) if err != nil { return it, err } - it.Blocked = data + it.Memory = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserEmailInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserEmailInsertInput, error) { - var it model.ConfigAuthUserEmailInsertInput +func (ec *executionContext) unmarshalInputConfigConfigComparisonExp(ctx context.Context, obj interface{}) (model.ConfigConfigComparisonExp, error) { + var it model.ConfigConfigComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"allowed", "blocked"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "global", "hasura", "graphql", "functions", "auth", "postgres", "provider", "storage", "ai", "observability"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigConfigComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Allowed = data - case "blocked": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blocked")) - data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigConfigComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigConfigComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExpᚄ(ctx, v) + if err != nil { + return it, err + } + it.Or = data + case "global": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) + data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Global = data + case "hasura": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasura")) + data, err := ec.unmarshalOConfigHasuraComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Hasura = data + case "graphql": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("graphql")) + data, err := ec.unmarshalOConfigGraphqlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Graphql = data + case "functions": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("functions")) + data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Functions = data + case "auth": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auth")) + data, err := ec.unmarshalOConfigAuthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Auth = data + case "postgres": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postgres")) + data, err := ec.unmarshalOConfigPostgresComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Postgres = data + case "provider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("provider")) + data, err := ec.unmarshalOConfigProviderComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigProviderComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Provider = data + case "storage": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storage")) + data, err := ec.unmarshalOConfigStorageComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Storage = data + case "ai": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ai")) + data, err := ec.unmarshalOConfigAIComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Ai = data + case "observability": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("observability")) + data, err := ec.unmarshalOConfigObservabilityComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigObservabilityComparisonExp(ctx, v) if err != nil { return it, err } - it.Blocked = data + it.Observability = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserGravatarComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserGravatarComparisonExp, error) { - var it model.ConfigAuthUserGravatarComparisonExp +func (ec *executionContext) unmarshalInputConfigConfigInsertInput(ctx context.Context, obj interface{}) (model.ConfigConfigInsertInput, error) { + var it model.ConfigConfigInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled", "default", "rating"} + fieldsInOrder := [...]string{"global", "hasura", "graphql", "functions", "auth", "postgres", "provider", "storage", "ai", "observability"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExpᚄ(ctx, v) + case "global": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) + data, err := ec.unmarshalOConfigGlobalInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalInsertInput(ctx, v) if err != nil { return it, err } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExp(ctx, v) + it.Global = data + case "hasura": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasura")) + data, err := ec.unmarshalNConfigHasuraInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraInsertInput(ctx, v) if err != nil { return it, err } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserGravatarComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarComparisonExpᚄ(ctx, v) + it.Hasura = data + case "graphql": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("graphql")) + data, err := ec.unmarshalOConfigGraphqlInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlInsertInput(ctx, v) if err != nil { return it, err } - it.Or = data - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Graphql = data + case "functions": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("functions")) + data, err := ec.unmarshalOConfigFunctionsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsInsertInput(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Functions = data + case "auth": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auth")) + data, err := ec.unmarshalOConfigAuthInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthInsertInput(ctx, v) if err != nil { return it, err } - it.Default = data - case "rating": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rating")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Auth = data + case "postgres": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postgres")) + data, err := ec.unmarshalOConfigPostgresInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresInsertInput(ctx, v) if err != nil { return it, err } - it.Rating = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigAuthUserGravatarInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserGravatarInsertInput, error) { - var it model.ConfigAuthUserGravatarInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"enabled", "default", "rating"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "enabled": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.Postgres = data + case "provider": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("provider")) + data, err := ec.unmarshalOConfigProviderInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigProviderInsertInput(ctx, v) if err != nil { return it, err } - it.Enabled = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Provider = data + case "storage": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storage")) + data, err := ec.unmarshalOConfigStorageInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageInsertInput(ctx, v) if err != nil { return it, err } - it.Default = data - case "rating": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rating")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Storage = data + case "ai": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ai")) + data, err := ec.unmarshalOConfigAIInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIInsertInput(ctx, v) if err != nil { return it, err } - it.Rating = data + it.Ai = data + case "observability": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("observability")) + data, err := ec.unmarshalNConfigObservabilityInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigObservabilityInsertInput(ctx, v) + if err != nil { + return it, err + } + it.Observability = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserInsertInput, error) { - var it model.ConfigAuthUserInsertInput +func (ec *executionContext) unmarshalInputConfigEmailComparisonExp(ctx context.Context, obj interface{}) (model.ConfigEmailComparisonExp, error) { + var it model.ConfigEmailComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"roles", "locale", "gravatar", "email", "emailDomains"} + fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "roles": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("roles")) - data, err := ec.unmarshalOConfigAuthUserRolesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Roles = data - case "locale": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("locale")) - data, err := ec.unmarshalOConfigAuthUserLocaleInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleInsertInput(ctx, v) + case "_eq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) + data, err := ec.unmarshalOConfigEmail2ᚖstring(ctx, v) if err != nil { return it, err } - it.Locale = data - case "gravatar": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("gravatar")) - data, err := ec.unmarshalOConfigAuthUserGravatarInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserGravatarInsertInput(ctx, v) + it.Eq = data + case "_neq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) + data, err := ec.unmarshalOConfigEmail2ᚖstring(ctx, v) if err != nil { return it, err } - it.Gravatar = data - case "email": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - data, err := ec.unmarshalOConfigAuthUserEmailInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailInsertInput(ctx, v) + it.Neq = data + case "_in": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) + data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Email = data - case "emailDomains": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailDomains")) - data, err := ec.unmarshalOConfigAuthUserEmailDomainsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserEmailDomainsInsertInput(ctx, v) + it.In = data + case "_nin": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) + data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.EmailDomains = data + it.Nin = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserLocaleComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserLocaleComparisonExp, error) { - var it model.ConfigAuthUserLocaleComparisonExp +func (ec *executionContext) unmarshalInputConfigEnvironmentVariableComparisonExp(ctx context.Context, obj interface{}) (model.ConfigEnvironmentVariableComparisonExp, error) { + var it model.ConfigEnvironmentVariableComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "default", "allowed"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "name", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28607,176 +31530,135 @@ func (ec *executionContext) unmarshalInputConfigAuthUserLocaleComparisonExp(ctx switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserLocaleComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserLocaleComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigLocaleComparisonExp(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Default = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigLocaleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigLocaleComparisonExp(ctx, v) + it.Name = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Allowed = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserLocaleInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserLocaleInsertInput, error) { - var it model.ConfigAuthUserLocaleInsertInput +func (ec *executionContext) unmarshalInputConfigEnvironmentVariableInsertInput(ctx context.Context, obj interface{}) (model.ConfigEnvironmentVariableInsertInput, error) { + var it model.ConfigEnvironmentVariableInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"default", "allowed"} + fieldsInOrder := [...]string{"name", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigLocale2ᚖstring(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Default = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigLocale2ᚕstringᚄ(ctx, v) + it.Name = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Allowed = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthUserRolesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthUserRolesComparisonExp, error) { - var it model.ConfigAuthUserRolesComparisonExp +func (ec *executionContext) unmarshalInputConfigFloatComparisonExp(ctx context.Context, obj interface{}) (model.GenericComparisonExp[float64], error) { + var it model.GenericComparisonExp[float64] asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "default", "allowed"} + fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthUserRolesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthUserRolesComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigUserRoleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUserRoleComparisonExp(ctx, v) + case "_eq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) + data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } - it.Default = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigUserRoleComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigUserRoleComparisonExp(ctx, v) + it.Eq = data + case "_neq": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) + data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) if err != nil { return it, err } - it.Allowed = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigAuthUserRolesInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthUserRolesInsertInput, error) { - var it model.ConfigAuthUserRolesInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"default", "allowed"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigUserRole2ᚖstring(ctx, v) + it.Neq = data + case "_in": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) + data, err := ec.unmarshalOFloat2ᚕfloat64ᚄ(ctx, v) if err != nil { return it, err } - it.Default = data - case "allowed": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("allowed")) - data, err := ec.unmarshalOConfigUserRole2ᚕstringᚄ(ctx, v) + it.In = data + case "_nin": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) + data, err := ec.unmarshalOFloat2ᚕfloat64ᚄ(ctx, v) if err != nil { return it, err } - it.Allowed = data + it.Nin = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAuthsessionaccessTokenCustomClaimsComparisonExp, error) { - var it model.ConfigAuthsessionaccessTokenCustomClaimsComparisonExp +func (ec *executionContext) unmarshalInputConfigFunctionsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsComparisonExp, error) { + var it model.ConfigFunctionsComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "key", "value"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "node", "resources", "rateLimit"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28785,87 +31667,101 @@ func (ec *executionContext) unmarshalInputConfigAuthsessionaccessTokenCustomClai switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAuthsessionaccessTokenCustomClaimsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthsessionaccessTokenCustomClaimsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "key": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "node": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("node")) + data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExp(ctx, v) if err != nil { return it, err } - it.Key = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Node = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExp(ctx, v) if err != nil { return it, err } - it.Value = data + it.Resources = data + case "rateLimit": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) + data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.RateLimit = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAuthsessionaccessTokenCustomClaimsInsertInput(ctx context.Context, obj interface{}) (model.ConfigAuthsessionaccessTokenCustomClaimsInsertInput, error) { - var it model.ConfigAuthsessionaccessTokenCustomClaimsInsertInput +func (ec *executionContext) unmarshalInputConfigFunctionsInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsInsertInput, error) { + var it model.ConfigFunctionsInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"key", "value"} + fieldsInOrder := [...]string{"node", "resources", "rateLimit"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "key": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("key")) - data, err := ec.unmarshalNString2string(ctx, v) + case "node": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("node")) + data, err := ec.unmarshalOConfigFunctionsNodeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeInsertInput(ctx, v) if err != nil { return it, err } - it.Key = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalNString2string(ctx, v) + it.Node = data + case "resources": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) + data, err := ec.unmarshalOConfigFunctionsResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesInsertInput(ctx, v) if err != nil { return it, err } - it.Value = data + it.Resources = data + case "rateLimit": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) + data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + if err != nil { + return it, err + } + it.RateLimit = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAutoscalerComparisonExp(ctx context.Context, obj interface{}) (model.ConfigAutoscalerComparisonExp, error) { - var it model.ConfigAutoscalerComparisonExp +func (ec *executionContext) unmarshalInputConfigFunctionsNodeComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsNodeComparisonExp, error) { + var it model.ConfigFunctionsNodeComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "maxReplicas"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "version"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -28874,238 +31770,196 @@ func (ec *executionContext) unmarshalInputConfigAutoscalerComparisonExp(ctx cont switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigAutoscalerComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAutoscalerComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "maxReplicas": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxReplicas")) - data, err := ec.unmarshalOConfigUint8ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOConfigIntComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.MaxReplicas = data + it.Version = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigAutoscalerInsertInput(ctx context.Context, obj interface{}) (model.ConfigAutoscalerInsertInput, error) { - var it model.ConfigAutoscalerInsertInput +func (ec *executionContext) unmarshalInputConfigFunctionsNodeInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsNodeInsertInput, error) { + var it model.ConfigFunctionsNodeInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"maxReplicas"} + fieldsInOrder := [...]string{"version"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "maxReplicas": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxReplicas")) - data, err := ec.unmarshalNConfigUint82uint8(ctx, v) + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOInt2ᚖint(ctx, v) if err != nil { return it, err } - it.MaxReplicas = data + it.Version = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigBooleanComparisonExp(ctx context.Context, obj interface{}) (model.GenericComparisonExp[bool], error) { - var it model.GenericComparisonExp[bool] +func (ec *executionContext) unmarshalInputConfigFunctionsResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsResourcesComparisonExp, error) { + var it model.ConfigFunctionsResourcesComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "networking"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_eq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Eq = data - case "_neq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExp(ctx, v) if err != nil { return it, err } - it.Neq = data - case "_in": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) - data, err := ec.unmarshalOBoolean2ᚕboolᚄ(ctx, v) + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.In = data - case "_nin": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) - data, err := ec.unmarshalOBoolean2ᚕboolᚄ(ctx, v) + it.Or = data + case "networking": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("networking")) + data, err := ec.unmarshalOConfigNetworkingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworkingComparisonExp(ctx, v) if err != nil { return it, err } - it.Nin = data + it.Networking = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigClaimMapComparisonExp(ctx context.Context, obj interface{}) (model.ConfigClaimMapComparisonExp, error) { - var it model.ConfigClaimMapComparisonExp +func (ec *executionContext) unmarshalInputConfigFunctionsResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsResourcesInsertInput, error) { + var it model.ConfigFunctionsResourcesInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "claim", "value", "path", "default"} + fieldsInOrder := [...]string{"networking"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigClaimMapComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigClaimMapComparisonExpᚄ(ctx, v) - if err != nil { - return it, err - } - it.Or = data - case "claim": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claim")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Claim = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Value = data - case "path": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Path = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "networking": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("networking")) + data, err := ec.unmarshalOConfigNetworkingInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworkingInsertInput(ctx, v) if err != nil { return it, err } - it.Default = data + it.Networking = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigClaimMapInsertInput(ctx context.Context, obj interface{}) (model.ConfigClaimMapInsertInput, error) { - var it model.ConfigClaimMapInsertInput +func (ec *executionContext) unmarshalInputConfigGlobalComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGlobalComparisonExp, error) { + var it model.ConfigGlobalComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"claim", "value", "path", "default"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "environment"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "claim": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("claim")) - data, err := ec.unmarshalNString2string(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Claim = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExp(ctx, v) if err != nil { return it, err } - it.Value = data - case "path": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("path")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Path = data - case "default": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("default")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) + it.Or = data + case "environment": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environment")) + data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExp(ctx, v) if err != nil { return it, err } - it.Default = data + it.Environment = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigComputeResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigComputeResourcesComparisonExp, error) { - var it model.ConfigComputeResourcesComparisonExp +func (ec *executionContext) unmarshalInputConfigGlobalEnvironmentVariableComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGlobalEnvironmentVariableComparisonExp, error) { + var it model.ConfigGlobalEnvironmentVariableComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "cpu", "memory"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "name", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29114,87 +31968,114 @@ func (ec *executionContext) unmarshalInputConfigComputeResourcesComparisonExp(ct switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigComputeResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigComputeResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "cpu": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpu")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Cpu = data - case "memory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("memory")) - data, err := ec.unmarshalOConfigUint32ComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Name = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Memory = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigComputeResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigComputeResourcesInsertInput, error) { - var it model.ConfigComputeResourcesInsertInput +func (ec *executionContext) unmarshalInputConfigGlobalEnvironmentVariableInsertInput(ctx context.Context, obj interface{}) (model.ConfigGlobalEnvironmentVariableInsertInput, error) { + var it model.ConfigGlobalEnvironmentVariableInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"cpu", "memory"} + fieldsInOrder := [...]string{"name", "value"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "cpu": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("cpu")) - data, err := ec.unmarshalNConfigUint322uint32(ctx, v) + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Cpu = data - case "memory": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("memory")) - data, err := ec.unmarshalNConfigUint322uint32(ctx, v) + it.Name = data + case "value": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Memory = data + it.Value = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigConfigComparisonExp(ctx context.Context, obj interface{}) (model.ConfigConfigComparisonExp, error) { - var it model.ConfigConfigComparisonExp +func (ec *executionContext) unmarshalInputConfigGlobalInsertInput(ctx context.Context, obj interface{}) (model.ConfigGlobalInsertInput, error) { + var it model.ConfigGlobalInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "global", "hasura", "graphql", "functions", "auth", "postgres", "provider", "storage", "ai", "observability"} + fieldsInOrder := [...]string{"environment"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "environment": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environment")) + data, err := ec.unmarshalOConfigGlobalEnvironmentVariableInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableInsertInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Environment = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputConfigGrafanaAlertingComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaAlertingComparisonExp, error) { + var it model.ConfigGrafanaAlertingComparisonExp + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"_and", "_not", "_or", "enabled"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29203,247 +32084,142 @@ func (ec *executionContext) unmarshalInputConfigConfigComparisonExp(ctx context. switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigConfigComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaAlertingComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigConfigComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanaAlertingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigConfigComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigConfigComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaAlertingComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "global": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) - data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Global = data - case "hasura": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasura")) - data, err := ec.unmarshalOConfigHasuraComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Hasura = data - case "graphql": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("graphql")) - data, err := ec.unmarshalOConfigGraphqlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Graphql = data - case "functions": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("functions")) - data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Functions = data - case "auth": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auth")) - data, err := ec.unmarshalOConfigAuthComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Auth = data - case "postgres": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postgres")) - data, err := ec.unmarshalOConfigPostgresComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Postgres = data - case "provider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("provider")) - data, err := ec.unmarshalOConfigProviderComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigProviderComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Provider = data - case "storage": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storage")) - data, err := ec.unmarshalOConfigStorageComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Storage = data - case "ai": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ai")) - data, err := ec.unmarshalOConfigAIComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Ai = data - case "observability": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("observability")) - data, err := ec.unmarshalOConfigObservabilityComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigObservabilityComparisonExp(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOConfigBooleanComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Observability = data + it.Enabled = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigConfigInsertInput(ctx context.Context, obj interface{}) (model.ConfigConfigInsertInput, error) { - var it model.ConfigConfigInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanaAlertingInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaAlertingInsertInput, error) { + var it model.ConfigGrafanaAlertingInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"global", "hasura", "graphql", "functions", "auth", "postgres", "provider", "storage", "ai", "observability"} + fieldsInOrder := [...]string{"enabled"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "global": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("global")) - data, err := ec.unmarshalOConfigGlobalInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Global = data - case "hasura": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasura")) - data, err := ec.unmarshalNConfigHasuraInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigHasuraInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Hasura = data - case "graphql": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("graphql")) - data, err := ec.unmarshalOConfigGraphqlInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Graphql = data - case "functions": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("functions")) - data, err := ec.unmarshalOConfigFunctionsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Functions = data - case "auth": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("auth")) - data, err := ec.unmarshalOConfigAuthInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAuthInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Auth = data - case "postgres": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("postgres")) - data, err := ec.unmarshalOConfigPostgresInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPostgresInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Postgres = data - case "provider": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("provider")) - data, err := ec.unmarshalOConfigProviderInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigProviderInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Provider = data - case "storage": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("storage")) - data, err := ec.unmarshalOConfigStorageInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigStorageInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Storage = data - case "ai": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ai")) - data, err := ec.unmarshalOConfigAIInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigAIInsertInput(ctx, v) - if err != nil { - return it, err - } - it.Ai = data - case "observability": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("observability")) - data, err := ec.unmarshalNConfigObservabilityInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigObservabilityInsertInput(ctx, v) + case "enabled": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("enabled")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.Observability = data + it.Enabled = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigEmailComparisonExp(ctx context.Context, obj interface{}) (model.ConfigEmailComparisonExp, error) { - var it model.ConfigEmailComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanaComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaComparisonExp, error) { + var it model.ConfigGrafanaComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "adminPassword", "smtp", "alerting", "contacts"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_eq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) - data, err := ec.unmarshalOConfigEmail2ᚖstring(ctx, v) + case "_and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) + data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.Eq = data - case "_neq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) - data, err := ec.unmarshalOConfigEmail2ᚖstring(ctx, v) + it.And = data + case "_not": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) + data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExp(ctx, v) if err != nil { return it, err } - it.Neq = data - case "_in": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) - data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + it.Not = data + case "_or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) + data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExpᚄ(ctx, v) if err != nil { return it, err } - it.In = data - case "_nin": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) - data, err := ec.unmarshalOConfigEmail2ᚕstringᚄ(ctx, v) + it.Or = data + case "adminPassword": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adminPassword")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Nin = data + it.AdminPassword = data + case "smtp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smtp")) + data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Smtp = data + case "alerting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("alerting")) + data, err := ec.unmarshalOConfigGrafanaAlertingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Alerting = data + case "contacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contacts")) + data, err := ec.unmarshalOConfigGrafanaContactsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Contacts = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigEnvironmentVariableComparisonExp(ctx context.Context, obj interface{}) (model.ConfigEnvironmentVariableComparisonExp, error) { - var it model.ConfigEnvironmentVariableComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanaContactsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaContactsComparisonExp, error) { + var it model.ConfigGrafanaContactsComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "name", "value"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "emails", "pagerduty", "discord", "slack", "webhook"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29452,135 +32228,177 @@ func (ec *executionContext) unmarshalInputConfigEnvironmentVariableComparisonExp switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaContactsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanaContactsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigEnvironmentVariableComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaContactsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + case "emails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Name = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Emails = data + case "pagerduty": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagerduty")) + data, err := ec.unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExp(ctx, v) if err != nil { return it, err } - it.Value = data + it.Pagerduty = data + case "discord": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) + data, err := ec.unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Discord = data + case "slack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("slack")) + data, err := ec.unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Slack = data + case "webhook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhook")) + data, err := ec.unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Webhook = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigEnvironmentVariableInsertInput(ctx context.Context, obj interface{}) (model.ConfigEnvironmentVariableInsertInput, error) { - var it model.ConfigEnvironmentVariableInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanaContactsInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaContactsInsertInput, error) { + var it model.ConfigGrafanaContactsInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"name", "value"} + fieldsInOrder := [...]string{"emails", "pagerduty", "discord", "slack", "webhook"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - data, err := ec.unmarshalNString2string(ctx, v) + case "emails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emails")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Name = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) - data, err := ec.unmarshalNString2string(ctx, v) + it.Emails = data + case "pagerduty": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pagerduty")) + data, err := ec.unmarshalOConfigGrafanacontactsPagerdutyInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyInsertInputᚄ(ctx, v) if err != nil { return it, err } - it.Value = data + it.Pagerduty = data + case "discord": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("discord")) + data, err := ec.unmarshalOConfigGrafanacontactsDiscordInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordInsertInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Discord = data + case "slack": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("slack")) + data, err := ec.unmarshalOConfigGrafanacontactsSlackInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackInsertInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Slack = data + case "webhook": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("webhook")) + data, err := ec.unmarshalOConfigGrafanacontactsWebhookInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookInsertInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Webhook = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigFloatComparisonExp(ctx context.Context, obj interface{}) (model.GenericComparisonExp[float64], error) { - var it model.GenericComparisonExp[float64] +func (ec *executionContext) unmarshalInputConfigGrafanaInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaInsertInput, error) { + var it model.ConfigGrafanaInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_eq", "_neq", "_in", "_nin"} + fieldsInOrder := [...]string{"adminPassword", "smtp", "alerting", "contacts"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_eq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_eq")) - data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) + case "adminPassword": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adminPassword")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Eq = data - case "_neq": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_neq")) - data, err := ec.unmarshalOFloat2ᚖfloat64(ctx, v) + it.AdminPassword = data + case "smtp": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smtp")) + data, err := ec.unmarshalOConfigGrafanaSmtpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpInsertInput(ctx, v) if err != nil { return it, err } - it.Neq = data - case "_in": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_in")) - data, err := ec.unmarshalOFloat2ᚕfloat64ᚄ(ctx, v) + it.Smtp = data + case "alerting": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("alerting")) + data, err := ec.unmarshalOConfigGrafanaAlertingInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingInsertInput(ctx, v) if err != nil { return it, err } - it.In = data - case "_nin": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_nin")) - data, err := ec.unmarshalOFloat2ᚕfloat64ᚄ(ctx, v) + it.Alerting = data + case "contacts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contacts")) + data, err := ec.unmarshalOConfigGrafanaContactsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsInsertInput(ctx, v) if err != nil { return it, err } - it.Nin = data + it.Contacts = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigFunctionsComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsComparisonExp, error) { - var it model.ConfigFunctionsComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanaSmtpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaSmtpComparisonExp, error) { + var it model.ConfigGrafanaSmtpComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "node", "resources", "rateLimit"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "host", "port", "sender", "user", "password"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29589,176 +32407,129 @@ func (ec *executionContext) unmarshalInputConfigFunctionsComparisonExp(ctx conte switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigFunctionsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "node": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("node")) - data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Node = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExp(ctx, v) + case "host": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("host")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Resources = data - case "rateLimit": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) - data, err := ec.unmarshalOConfigRateLimitComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitComparisonExp(ctx, v) + it.Host = data + case "port": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) + data, err := ec.unmarshalOConfigPortComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPortComparisonExp(ctx, v) if err != nil { return it, err } - it.RateLimit = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigFunctionsInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsInsertInput, error) { - var it model.ConfigFunctionsInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"node", "resources", "rateLimit"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "node": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("node")) - data, err := ec.unmarshalOConfigFunctionsNodeInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeInsertInput(ctx, v) + it.Port = data + case "sender": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sender")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Node = data - case "resources": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("resources")) - data, err := ec.unmarshalOConfigFunctionsResourcesInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesInsertInput(ctx, v) + it.Sender = data + case "user": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Resources = data - case "rateLimit": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("rateLimit")) - data, err := ec.unmarshalOConfigRateLimitInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigRateLimitInsertInput(ctx, v) + it.User = data + case "password": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.RateLimit = data + it.Password = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigFunctionsNodeComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsNodeComparisonExp, error) { - var it model.ConfigFunctionsNodeComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanaSmtpInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaSmtpInsertInput, error) { + var it model.ConfigGrafanaSmtpInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "version"} + fieldsInOrder := [...]string{"host", "port", "sender", "user", "password"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExpᚄ(ctx, v) + case "host": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("host")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExp(ctx, v) + it.Host = data + case "port": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) + data, err := ec.unmarshalNConfigPort2uint16(ctx, v) if err != nil { return it, err } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigFunctionsNodeComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsNodeComparisonExpᚄ(ctx, v) + it.Port = data + case "sender": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sender")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Or = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOConfigIntComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + it.Sender = data + case "user": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Version = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigFunctionsNodeInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsNodeInsertInput, error) { - var it model.ConfigFunctionsNodeInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"version"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOInt2ᚖint(ctx, v) + it.User = data + case "password": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Version = data + it.Password = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigFunctionsResourcesComparisonExp(ctx context.Context, obj interface{}) (model.ConfigFunctionsResourcesComparisonExp, error) { - var it model.ConfigFunctionsResourcesComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanacontactsDiscordComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsDiscordComparisonExp, error) { + var it model.ConfigGrafanacontactsDiscordComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "networking"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "url", "avatarUrl"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29767,73 +32538,87 @@ func (ec *executionContext) unmarshalInputConfigFunctionsResourcesComparisonExp( switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigFunctionsResourcesComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigFunctionsResourcesComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "networking": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("networking")) - data, err := ec.unmarshalOConfigNetworkingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworkingComparisonExp(ctx, v) + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Networking = data + it.Url = data + case "avatarUrl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUrl")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.AvatarUrl = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigFunctionsResourcesInsertInput(ctx context.Context, obj interface{}) (model.ConfigFunctionsResourcesInsertInput, error) { - var it model.ConfigFunctionsResourcesInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanacontactsDiscordInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsDiscordInsertInput, error) { + var it model.ConfigGrafanacontactsDiscordInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"networking"} + fieldsInOrder := [...]string{"url", "avatarUrl"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "networking": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("networking")) - data, err := ec.unmarshalOConfigNetworkingInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigNetworkingInsertInput(ctx, v) + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Networking = data + it.Url = data + case "avatarUrl": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarUrl")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.AvatarUrl = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGlobalComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGlobalComparisonExp, error) { - var it model.ConfigGlobalComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanacontactsPagerdutyComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsPagerdutyComparisonExp, error) { + var it model.ConfigGrafanacontactsPagerdutyComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "environment"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "integrationKey", "severity", "class", "component", "group"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -29842,162 +32627,129 @@ func (ec *executionContext) unmarshalInputConfigGlobalComparisonExp(ctx context. switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigGlobalComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "environment": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environment")) - data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Environment = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigGlobalEnvironmentVariableComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGlobalEnvironmentVariableComparisonExp, error) { - var it model.ConfigGlobalEnvironmentVariableComparisonExp - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"_and", "_not", "_or", "name", "value"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "_and": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExpᚄ(ctx, v) + case "integrationKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationKey")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.And = data - case "_not": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExp(ctx, v) + it.IntegrationKey = data + case "severity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Not = data - case "_or": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigGlobalEnvironmentVariableComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableComparisonExpᚄ(ctx, v) + it.Severity = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Or = data - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + it.Class = data + case "component": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Name = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + it.Component = data + case "group": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Value = data + it.Group = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGlobalEnvironmentVariableInsertInput(ctx context.Context, obj interface{}) (model.ConfigGlobalEnvironmentVariableInsertInput, error) { - var it model.ConfigGlobalEnvironmentVariableInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanacontactsPagerdutyInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsPagerdutyInsertInput, error) { + var it model.ConfigGrafanacontactsPagerdutyInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"name", "value"} + fieldsInOrder := [...]string{"integrationKey", "severity", "class", "component", "group"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "name": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + case "integrationKey": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("integrationKey")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Name = data - case "value": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("value")) + it.IntegrationKey = data + case "severity": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("severity")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Value = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputConfigGlobalInsertInput(ctx context.Context, obj interface{}) (model.ConfigGlobalInsertInput, error) { - var it model.ConfigGlobalInsertInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"environment"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "environment": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("environment")) - data, err := ec.unmarshalOConfigGlobalEnvironmentVariableInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGlobalEnvironmentVariableInsertInputᚄ(ctx, v) + it.Severity = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Environment = data + it.Class = data + case "component": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Component = data + case "group": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("group")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Group = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGrafanaComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaComparisonExp, error) { - var it model.ConfigGrafanaComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanacontactsSlackComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsSlackComparisonExp, error) { + var it model.ConfigGrafanacontactsSlackComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "adminPassword", "smtp"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "recipient", "token", "username", "iconEmoji", "iconURL", "mentionUsers", "mentionGroups", "mentionChannel", "url", "endpointURL"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -30006,87 +32758,199 @@ func (ec *executionContext) unmarshalInputConfigGrafanaComparisonExp(ctx context switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigGrafanaComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "adminPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adminPassword")) + case "recipient": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.AdminPassword = data - case "smtp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smtp")) - data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExp(ctx, v) + it.Recipient = data + case "token": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Smtp = data + it.Token = data + case "username": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Username = data + case "iconEmoji": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("iconEmoji")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.IconEmoji = data + case "iconURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("iconURL")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.IconURL = data + case "mentionUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionUsers")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.MentionUsers = data + case "mentionGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionGroups")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.MentionGroups = data + case "mentionChannel": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionChannel")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.MentionChannel = data + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.Url = data + case "endpointURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpointURL")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.EndpointURL = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGrafanaInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaInsertInput, error) { - var it model.ConfigGrafanaInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanacontactsSlackInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsSlackInsertInput, error) { + var it model.ConfigGrafanacontactsSlackInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"adminPassword", "smtp"} + fieldsInOrder := [...]string{"recipient", "token", "username", "iconEmoji", "iconURL", "mentionUsers", "mentionGroups", "mentionChannel", "url", "endpointURL"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "adminPassword": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("adminPassword")) + case "recipient": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("recipient")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.AdminPassword = data - case "smtp": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("smtp")) - data, err := ec.unmarshalOConfigGrafanaSmtpInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpInsertInput(ctx, v) + it.Recipient = data + case "token": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("token")) + data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Smtp = data + it.Token = data + case "username": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Username = data + case "iconEmoji": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("iconEmoji")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.IconEmoji = data + case "iconURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("iconURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.IconURL = data + case "mentionUsers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionUsers")) + data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MentionUsers = data + case "mentionGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionGroups")) + data, err := ec.unmarshalNString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.MentionGroups = data + case "mentionChannel": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mentionChannel")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.MentionChannel = data + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Url = data + case "endpointURL": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("endpointURL")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.EndpointURL = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGrafanaSmtpComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanaSmtpComparisonExp, error) { - var it model.ConfigGrafanaSmtpComparisonExp +func (ec *executionContext) unmarshalInputConfigGrafanacontactsWebhookComparisonExp(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsWebhookComparisonExp, error) { + var it model.ConfigGrafanacontactsWebhookComparisonExp asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"_and", "_not", "_or", "host", "port", "sender", "user", "password"} + fieldsInOrder := [...]string{"_and", "_not", "_or", "url", "httpMethod", "username", "password", "authorizationScheme", "authorizationCredentials", "maxAlerts"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -30095,53 +32959,46 @@ func (ec *executionContext) unmarshalInputConfigGrafanaSmtpComparisonExp(ctx con switch k { case "_and": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_and")) - data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.And = data case "_not": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_not")) - data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExp(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExp(ctx, v) if err != nil { return it, err } it.Not = data case "_or": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("_or")) - data, err := ec.unmarshalOConfigGrafanaSmtpComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtpComparisonExpᚄ(ctx, v) + data, err := ec.unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExpᚄ(ctx, v) if err != nil { return it, err } it.Or = data - case "host": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("host")) + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Host = data - case "port": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) - data, err := ec.unmarshalOConfigPortComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigPortComparisonExp(ctx, v) - if err != nil { - return it, err - } - it.Port = data - case "sender": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sender")) + it.Url = data + case "httpMethod": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("httpMethod")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.Sender = data - case "user": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + it.HttpMethod = data + case "username": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) if err != nil { return it, err } - it.User = data + it.Username = data case "password": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) @@ -30149,54 +33006,68 @@ func (ec *executionContext) unmarshalInputConfigGrafanaSmtpComparisonExp(ctx con return it, err } it.Password = data + case "authorizationScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authorizationScheme")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.AuthorizationScheme = data + case "authorizationCredentials": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authorizationCredentials")) + data, err := ec.unmarshalOConfigStringComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.AuthorizationCredentials = data + case "maxAlerts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxAlerts")) + data, err := ec.unmarshalOConfigIntComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐGenericComparisonExp(ctx, v) + if err != nil { + return it, err + } + it.MaxAlerts = data } } return it, nil } -func (ec *executionContext) unmarshalInputConfigGrafanaSmtpInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanaSmtpInsertInput, error) { - var it model.ConfigGrafanaSmtpInsertInput +func (ec *executionContext) unmarshalInputConfigGrafanacontactsWebhookInsertInput(ctx context.Context, obj interface{}) (model.ConfigGrafanacontactsWebhookInsertInput, error) { + var it model.ConfigGrafanacontactsWebhookInsertInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"host", "port", "sender", "user", "password"} + fieldsInOrder := [...]string{"url", "httpMethod", "username", "password", "authorizationScheme", "authorizationCredentials", "maxAlerts"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "host": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("host")) + case "url": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Host = data - case "port": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("port")) - data, err := ec.unmarshalNConfigPort2uint16(ctx, v) - if err != nil { - return it, err - } - it.Port = data - case "sender": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("sender")) + it.Url = data + case "httpMethod": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("httpMethod")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.Sender = data - case "user": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("user")) + it.HttpMethod = data + case "username": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("username")) data, err := ec.unmarshalNString2string(ctx, v) if err != nil { return it, err } - it.User = data + it.Username = data case "password": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("password")) data, err := ec.unmarshalNString2string(ctx, v) @@ -30204,6 +33075,27 @@ func (ec *executionContext) unmarshalInputConfigGrafanaSmtpInsertInput(ctx conte return it, err } it.Password = data + case "authorizationScheme": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authorizationScheme")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.AuthorizationScheme = data + case "authorizationCredentials": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("authorizationCredentials")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.AuthorizationCredentials = data + case "maxAlerts": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("maxAlerts")) + data, err := ec.unmarshalNInt2int(ctx, v) + if err != nil { + return it, err + } + it.MaxAlerts = data } } @@ -35910,19 +38802,247 @@ func (ec *executionContext) _ConfigAuthMethod(ctx context.Context, sel ast.Selec return out } -var configAuthMethodAnonymousImplementors = []string{"ConfigAuthMethodAnonymous"} +var configAuthMethodAnonymousImplementors = []string{"ConfigAuthMethodAnonymous"} + +func (ec *executionContext) _ConfigAuthMethodAnonymous(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodAnonymous) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodAnonymousImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigAuthMethodAnonymous") + case "enabled": + out.Values[i] = ec._ConfigAuthMethodAnonymous_enabled(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configAuthMethodEmailPasswordImplementors = []string{"ConfigAuthMethodEmailPassword"} + +func (ec *executionContext) _ConfigAuthMethodEmailPassword(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodEmailPassword) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodEmailPasswordImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigAuthMethodEmailPassword") + case "hibpEnabled": + out.Values[i] = ec._ConfigAuthMethodEmailPassword_hibpEnabled(ctx, field, obj) + case "emailVerificationRequired": + out.Values[i] = ec._ConfigAuthMethodEmailPassword_emailVerificationRequired(ctx, field, obj) + case "passwordMinLength": + out.Values[i] = ec._ConfigAuthMethodEmailPassword_passwordMinLength(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configAuthMethodEmailPasswordlessImplementors = []string{"ConfigAuthMethodEmailPasswordless"} + +func (ec *executionContext) _ConfigAuthMethodEmailPasswordless(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodEmailPasswordless) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodEmailPasswordlessImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigAuthMethodEmailPasswordless") + case "enabled": + out.Values[i] = ec._ConfigAuthMethodEmailPasswordless_enabled(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configAuthMethodOauthImplementors = []string{"ConfigAuthMethodOauth"} + +func (ec *executionContext) _ConfigAuthMethodOauth(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauth) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauth") + case "apple": + out.Values[i] = ec._ConfigAuthMethodOauth_apple(ctx, field, obj) + case "azuread": + out.Values[i] = ec._ConfigAuthMethodOauth_azuread(ctx, field, obj) + case "bitbucket": + out.Values[i] = ec._ConfigAuthMethodOauth_bitbucket(ctx, field, obj) + case "discord": + out.Values[i] = ec._ConfigAuthMethodOauth_discord(ctx, field, obj) + case "facebook": + out.Values[i] = ec._ConfigAuthMethodOauth_facebook(ctx, field, obj) + case "github": + out.Values[i] = ec._ConfigAuthMethodOauth_github(ctx, field, obj) + case "gitlab": + out.Values[i] = ec._ConfigAuthMethodOauth_gitlab(ctx, field, obj) + case "google": + out.Values[i] = ec._ConfigAuthMethodOauth_google(ctx, field, obj) + case "linkedin": + out.Values[i] = ec._ConfigAuthMethodOauth_linkedin(ctx, field, obj) + case "spotify": + out.Values[i] = ec._ConfigAuthMethodOauth_spotify(ctx, field, obj) + case "strava": + out.Values[i] = ec._ConfigAuthMethodOauth_strava(ctx, field, obj) + case "twitch": + out.Values[i] = ec._ConfigAuthMethodOauth_twitch(ctx, field, obj) + case "twitter": + out.Values[i] = ec._ConfigAuthMethodOauth_twitter(ctx, field, obj) + case "windowslive": + out.Values[i] = ec._ConfigAuthMethodOauth_windowslive(ctx, field, obj) + case "workos": + out.Values[i] = ec._ConfigAuthMethodOauth_workos(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configAuthMethodOauthAppleImplementors = []string{"ConfigAuthMethodOauthApple"} + +func (ec *executionContext) _ConfigAuthMethodOauthApple(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthApple) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthAppleImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthApple") + case "enabled": + out.Values[i] = ec._ConfigAuthMethodOauthApple_enabled(ctx, field, obj) + case "clientId": + out.Values[i] = ec._ConfigAuthMethodOauthApple_clientId(ctx, field, obj) + case "keyId": + out.Values[i] = ec._ConfigAuthMethodOauthApple_keyId(ctx, field, obj) + case "teamId": + out.Values[i] = ec._ConfigAuthMethodOauthApple_teamId(ctx, field, obj) + case "scope": + out.Values[i] = ec._ConfigAuthMethodOauthApple_scope(ctx, field, obj) + case "privateKey": + out.Values[i] = ec._ConfigAuthMethodOauthApple_privateKey(ctx, field, obj) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configAuthMethodOauthAzureadImplementors = []string{"ConfigAuthMethodOauthAzuread"} -func (ec *executionContext) _ConfigAuthMethodAnonymous(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodAnonymous) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodAnonymousImplementors) +func (ec *executionContext) _ConfigAuthMethodOauthAzuread(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthAzuread) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthAzureadImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodAnonymous") + out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthAzuread") + case "tenant": + out.Values[i] = ec._ConfigAuthMethodOauthAzuread_tenant(ctx, field, obj) case "enabled": - out.Values[i] = ec._ConfigAuthMethodAnonymous_enabled(ctx, field, obj) + out.Values[i] = ec._ConfigAuthMethodOauthAzuread_enabled(ctx, field, obj) + case "clientId": + out.Values[i] = ec._ConfigAuthMethodOauthAzuread_clientId(ctx, field, obj) + case "clientSecret": + out.Values[i] = ec._ConfigAuthMethodOauthAzuread_clientSecret(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -35946,23 +39066,23 @@ func (ec *executionContext) _ConfigAuthMethodAnonymous(ctx context.Context, sel return out } -var configAuthMethodEmailPasswordImplementors = []string{"ConfigAuthMethodEmailPassword"} +var configAuthMethodOauthTwitterImplementors = []string{"ConfigAuthMethodOauthTwitter"} -func (ec *executionContext) _ConfigAuthMethodEmailPassword(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodEmailPassword) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodEmailPasswordImplementors) +func (ec *executionContext) _ConfigAuthMethodOauthTwitter(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthTwitter) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthTwitterImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodEmailPassword") - case "hibpEnabled": - out.Values[i] = ec._ConfigAuthMethodEmailPassword_hibpEnabled(ctx, field, obj) - case "emailVerificationRequired": - out.Values[i] = ec._ConfigAuthMethodEmailPassword_emailVerificationRequired(ctx, field, obj) - case "passwordMinLength": - out.Values[i] = ec._ConfigAuthMethodEmailPassword_passwordMinLength(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthTwitter") + case "enabled": + out.Values[i] = ec._ConfigAuthMethodOauthTwitter_enabled(ctx, field, obj) + case "consumerKey": + out.Values[i] = ec._ConfigAuthMethodOauthTwitter_consumerKey(ctx, field, obj) + case "consumerSecret": + out.Values[i] = ec._ConfigAuthMethodOauthTwitter_consumerSecret(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -35986,19 +39106,27 @@ func (ec *executionContext) _ConfigAuthMethodEmailPassword(ctx context.Context, return out } -var configAuthMethodEmailPasswordlessImplementors = []string{"ConfigAuthMethodEmailPasswordless"} +var configAuthMethodOauthWorkosImplementors = []string{"ConfigAuthMethodOauthWorkos"} -func (ec *executionContext) _ConfigAuthMethodEmailPasswordless(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodEmailPasswordless) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodEmailPasswordlessImplementors) +func (ec *executionContext) _ConfigAuthMethodOauthWorkos(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthWorkos) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthWorkosImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodEmailPasswordless") + out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthWorkos") + case "connection": + out.Values[i] = ec._ConfigAuthMethodOauthWorkos_connection(ctx, field, obj) case "enabled": - out.Values[i] = ec._ConfigAuthMethodEmailPasswordless_enabled(ctx, field, obj) + out.Values[i] = ec._ConfigAuthMethodOauthWorkos_enabled(ctx, field, obj) + case "clientId": + out.Values[i] = ec._ConfigAuthMethodOauthWorkos_clientId(ctx, field, obj) + case "organization": + out.Values[i] = ec._ConfigAuthMethodOauthWorkos_organization(ctx, field, obj) + case "clientSecret": + out.Values[i] = ec._ConfigAuthMethodOauthWorkos_clientSecret(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36022,47 +39150,19 @@ func (ec *executionContext) _ConfigAuthMethodEmailPasswordless(ctx context.Conte return out } -var configAuthMethodOauthImplementors = []string{"ConfigAuthMethodOauth"} +var configAuthMethodSmsPasswordlessImplementors = []string{"ConfigAuthMethodSmsPasswordless"} -func (ec *executionContext) _ConfigAuthMethodOauth(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauth) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthImplementors) +func (ec *executionContext) _ConfigAuthMethodSmsPasswordless(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodSmsPasswordless) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodSmsPasswordlessImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauth") - case "apple": - out.Values[i] = ec._ConfigAuthMethodOauth_apple(ctx, field, obj) - case "azuread": - out.Values[i] = ec._ConfigAuthMethodOauth_azuread(ctx, field, obj) - case "bitbucket": - out.Values[i] = ec._ConfigAuthMethodOauth_bitbucket(ctx, field, obj) - case "discord": - out.Values[i] = ec._ConfigAuthMethodOauth_discord(ctx, field, obj) - case "facebook": - out.Values[i] = ec._ConfigAuthMethodOauth_facebook(ctx, field, obj) - case "github": - out.Values[i] = ec._ConfigAuthMethodOauth_github(ctx, field, obj) - case "gitlab": - out.Values[i] = ec._ConfigAuthMethodOauth_gitlab(ctx, field, obj) - case "google": - out.Values[i] = ec._ConfigAuthMethodOauth_google(ctx, field, obj) - case "linkedin": - out.Values[i] = ec._ConfigAuthMethodOauth_linkedin(ctx, field, obj) - case "spotify": - out.Values[i] = ec._ConfigAuthMethodOauth_spotify(ctx, field, obj) - case "strava": - out.Values[i] = ec._ConfigAuthMethodOauth_strava(ctx, field, obj) - case "twitch": - out.Values[i] = ec._ConfigAuthMethodOauth_twitch(ctx, field, obj) - case "twitter": - out.Values[i] = ec._ConfigAuthMethodOauth_twitter(ctx, field, obj) - case "windowslive": - out.Values[i] = ec._ConfigAuthMethodOauth_windowslive(ctx, field, obj) - case "workos": - out.Values[i] = ec._ConfigAuthMethodOauth_workos(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthMethodSmsPasswordless") + case "enabled": + out.Values[i] = ec._ConfigAuthMethodSmsPasswordless_enabled(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36086,29 +39186,23 @@ func (ec *executionContext) _ConfigAuthMethodOauth(ctx context.Context, sel ast. return out } -var configAuthMethodOauthAppleImplementors = []string{"ConfigAuthMethodOauthApple"} +var configAuthMethodWebauthnImplementors = []string{"ConfigAuthMethodWebauthn"} -func (ec *executionContext) _ConfigAuthMethodOauthApple(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthApple) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthAppleImplementors) +func (ec *executionContext) _ConfigAuthMethodWebauthn(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthn) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthApple") + out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthn") case "enabled": - out.Values[i] = ec._ConfigAuthMethodOauthApple_enabled(ctx, field, obj) - case "clientId": - out.Values[i] = ec._ConfigAuthMethodOauthApple_clientId(ctx, field, obj) - case "keyId": - out.Values[i] = ec._ConfigAuthMethodOauthApple_keyId(ctx, field, obj) - case "teamId": - out.Values[i] = ec._ConfigAuthMethodOauthApple_teamId(ctx, field, obj) - case "scope": - out.Values[i] = ec._ConfigAuthMethodOauthApple_scope(ctx, field, obj) - case "privateKey": - out.Values[i] = ec._ConfigAuthMethodOauthApple_privateKey(ctx, field, obj) + out.Values[i] = ec._ConfigAuthMethodWebauthn_enabled(ctx, field, obj) + case "relyingParty": + out.Values[i] = ec._ConfigAuthMethodWebauthn_relyingParty(ctx, field, obj) + case "attestation": + out.Values[i] = ec._ConfigAuthMethodWebauthn_attestation(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36132,25 +39226,19 @@ func (ec *executionContext) _ConfigAuthMethodOauthApple(ctx context.Context, sel return out } -var configAuthMethodOauthAzureadImplementors = []string{"ConfigAuthMethodOauthAzuread"} +var configAuthMethodWebauthnAttestationImplementors = []string{"ConfigAuthMethodWebauthnAttestation"} -func (ec *executionContext) _ConfigAuthMethodOauthAzuread(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthAzuread) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthAzureadImplementors) +func (ec *executionContext) _ConfigAuthMethodWebauthnAttestation(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthnAttestation) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnAttestationImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthAzuread") - case "tenant": - out.Values[i] = ec._ConfigAuthMethodOauthAzuread_tenant(ctx, field, obj) - case "enabled": - out.Values[i] = ec._ConfigAuthMethodOauthAzuread_enabled(ctx, field, obj) - case "clientId": - out.Values[i] = ec._ConfigAuthMethodOauthAzuread_clientId(ctx, field, obj) - case "clientSecret": - out.Values[i] = ec._ConfigAuthMethodOauthAzuread_clientSecret(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthnAttestation") + case "timeout": + out.Values[i] = ec._ConfigAuthMethodWebauthnAttestation_timeout(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36174,23 +39262,23 @@ func (ec *executionContext) _ConfigAuthMethodOauthAzuread(ctx context.Context, s return out } -var configAuthMethodOauthTwitterImplementors = []string{"ConfigAuthMethodOauthTwitter"} +var configAuthMethodWebauthnRelyingPartyImplementors = []string{"ConfigAuthMethodWebauthnRelyingParty"} -func (ec *executionContext) _ConfigAuthMethodOauthTwitter(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthTwitter) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthTwitterImplementors) +func (ec *executionContext) _ConfigAuthMethodWebauthnRelyingParty(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthnRelyingParty) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnRelyingPartyImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthTwitter") - case "enabled": - out.Values[i] = ec._ConfigAuthMethodOauthTwitter_enabled(ctx, field, obj) - case "consumerKey": - out.Values[i] = ec._ConfigAuthMethodOauthTwitter_consumerKey(ctx, field, obj) - case "consumerSecret": - out.Values[i] = ec._ConfigAuthMethodOauthTwitter_consumerSecret(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthnRelyingParty") + case "id": + out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_id(ctx, field, obj) + case "name": + out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_name(ctx, field, obj) + case "origins": + out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_origins(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36214,27 +39302,19 @@ func (ec *executionContext) _ConfigAuthMethodOauthTwitter(ctx context.Context, s return out } -var configAuthMethodOauthWorkosImplementors = []string{"ConfigAuthMethodOauthWorkos"} +var configAuthMiscImplementors = []string{"ConfigAuthMisc"} -func (ec *executionContext) _ConfigAuthMethodOauthWorkos(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodOauthWorkos) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodOauthWorkosImplementors) +func (ec *executionContext) _ConfigAuthMisc(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMisc) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMiscImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodOauthWorkos") - case "connection": - out.Values[i] = ec._ConfigAuthMethodOauthWorkos_connection(ctx, field, obj) - case "enabled": - out.Values[i] = ec._ConfigAuthMethodOauthWorkos_enabled(ctx, field, obj) - case "clientId": - out.Values[i] = ec._ConfigAuthMethodOauthWorkos_clientId(ctx, field, obj) - case "organization": - out.Values[i] = ec._ConfigAuthMethodOauthWorkos_organization(ctx, field, obj) - case "clientSecret": - out.Values[i] = ec._ConfigAuthMethodOauthWorkos_clientSecret(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthMisc") + case "concealErrors": + out.Values[i] = ec._ConfigAuthMisc_concealErrors(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36258,19 +39338,27 @@ func (ec *executionContext) _ConfigAuthMethodOauthWorkos(ctx context.Context, se return out } -var configAuthMethodSmsPasswordlessImplementors = []string{"ConfigAuthMethodSmsPasswordless"} +var configAuthRateLimitImplementors = []string{"ConfigAuthRateLimit"} -func (ec *executionContext) _ConfigAuthMethodSmsPasswordless(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodSmsPasswordless) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodSmsPasswordlessImplementors) +func (ec *executionContext) _ConfigAuthRateLimit(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthRateLimit) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthRateLimitImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodSmsPasswordless") - case "enabled": - out.Values[i] = ec._ConfigAuthMethodSmsPasswordless_enabled(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthRateLimit") + case "emails": + out.Values[i] = ec._ConfigAuthRateLimit_emails(ctx, field, obj) + case "sms": + out.Values[i] = ec._ConfigAuthRateLimit_sms(ctx, field, obj) + case "bruteForce": + out.Values[i] = ec._ConfigAuthRateLimit_bruteForce(ctx, field, obj) + case "signups": + out.Values[i] = ec._ConfigAuthRateLimit_signups(ctx, field, obj) + case "global": + out.Values[i] = ec._ConfigAuthRateLimit_global(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36294,23 +39382,21 @@ func (ec *executionContext) _ConfigAuthMethodSmsPasswordless(ctx context.Context return out } -var configAuthMethodWebauthnImplementors = []string{"ConfigAuthMethodWebauthn"} +var configAuthRedirectionsImplementors = []string{"ConfigAuthRedirections"} -func (ec *executionContext) _ConfigAuthMethodWebauthn(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthn) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnImplementors) +func (ec *executionContext) _ConfigAuthRedirections(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthRedirections) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthRedirectionsImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthn") - case "enabled": - out.Values[i] = ec._ConfigAuthMethodWebauthn_enabled(ctx, field, obj) - case "relyingParty": - out.Values[i] = ec._ConfigAuthMethodWebauthn_relyingParty(ctx, field, obj) - case "attestation": - out.Values[i] = ec._ConfigAuthMethodWebauthn_attestation(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthRedirections") + case "clientUrl": + out.Values[i] = ec._ConfigAuthRedirections_clientUrl(ctx, field, obj) + case "allowedUrls": + out.Values[i] = ec._ConfigAuthRedirections_allowedUrls(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36334,19 +39420,21 @@ func (ec *executionContext) _ConfigAuthMethodWebauthn(ctx context.Context, sel a return out } -var configAuthMethodWebauthnAttestationImplementors = []string{"ConfigAuthMethodWebauthnAttestation"} +var configAuthSessionImplementors = []string{"ConfigAuthSession"} -func (ec *executionContext) _ConfigAuthMethodWebauthnAttestation(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthnAttestation) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnAttestationImplementors) +func (ec *executionContext) _ConfigAuthSession(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSession) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthnAttestation") - case "timeout": - out.Values[i] = ec._ConfigAuthMethodWebauthnAttestation_timeout(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthSession") + case "accessToken": + out.Values[i] = ec._ConfigAuthSession_accessToken(ctx, field, obj) + case "refreshToken": + out.Values[i] = ec._ConfigAuthSession_refreshToken(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36370,23 +39458,21 @@ func (ec *executionContext) _ConfigAuthMethodWebauthnAttestation(ctx context.Con return out } -var configAuthMethodWebauthnRelyingPartyImplementors = []string{"ConfigAuthMethodWebauthnRelyingParty"} +var configAuthSessionAccessTokenImplementors = []string{"ConfigAuthSessionAccessToken"} -func (ec *executionContext) _ConfigAuthMethodWebauthnRelyingParty(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMethodWebauthnRelyingParty) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMethodWebauthnRelyingPartyImplementors) +func (ec *executionContext) _ConfigAuthSessionAccessToken(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSessionAccessToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionAccessTokenImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMethodWebauthnRelyingParty") - case "id": - out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_id(ctx, field, obj) - case "name": - out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_name(ctx, field, obj) - case "origins": - out.Values[i] = ec._ConfigAuthMethodWebauthnRelyingParty_origins(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthSessionAccessToken") + case "expiresIn": + out.Values[i] = ec._ConfigAuthSessionAccessToken_expiresIn(ctx, field, obj) + case "customClaims": + out.Values[i] = ec._ConfigAuthSessionAccessToken_customClaims(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36410,19 +39496,19 @@ func (ec *executionContext) _ConfigAuthMethodWebauthnRelyingParty(ctx context.Co return out } -var configAuthMiscImplementors = []string{"ConfigAuthMisc"} +var configAuthSessionRefreshTokenImplementors = []string{"ConfigAuthSessionRefreshToken"} -func (ec *executionContext) _ConfigAuthMisc(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthMisc) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthMiscImplementors) +func (ec *executionContext) _ConfigAuthSessionRefreshToken(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSessionRefreshToken) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionRefreshTokenImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthMisc") - case "concealErrors": - out.Values[i] = ec._ConfigAuthMisc_concealErrors(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthSessionRefreshToken") + case "expiresIn": + out.Values[i] = ec._ConfigAuthSessionRefreshToken_expiresIn(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36446,27 +39532,21 @@ func (ec *executionContext) _ConfigAuthMisc(ctx context.Context, sel ast.Selecti return out } -var configAuthRateLimitImplementors = []string{"ConfigAuthRateLimit"} +var configAuthSignUpImplementors = []string{"ConfigAuthSignUp"} -func (ec *executionContext) _ConfigAuthRateLimit(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthRateLimit) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthRateLimitImplementors) +func (ec *executionContext) _ConfigAuthSignUp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSignUp) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSignUpImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthRateLimit") - case "emails": - out.Values[i] = ec._ConfigAuthRateLimit_emails(ctx, field, obj) - case "sms": - out.Values[i] = ec._ConfigAuthRateLimit_sms(ctx, field, obj) - case "bruteForce": - out.Values[i] = ec._ConfigAuthRateLimit_bruteForce(ctx, field, obj) - case "signups": - out.Values[i] = ec._ConfigAuthRateLimit_signups(ctx, field, obj) - case "global": - out.Values[i] = ec._ConfigAuthRateLimit_global(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthSignUp") + case "enabled": + out.Values[i] = ec._ConfigAuthSignUp_enabled(ctx, field, obj) + case "disableNewUsers": + out.Values[i] = ec._ConfigAuthSignUp_disableNewUsers(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36490,21 +39570,21 @@ func (ec *executionContext) _ConfigAuthRateLimit(ctx context.Context, sel ast.Se return out } -var configAuthRedirectionsImplementors = []string{"ConfigAuthRedirections"} +var configAuthTotpImplementors = []string{"ConfigAuthTotp"} -func (ec *executionContext) _ConfigAuthRedirections(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthRedirections) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthRedirectionsImplementors) +func (ec *executionContext) _ConfigAuthTotp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthTotp) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthTotpImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthRedirections") - case "clientUrl": - out.Values[i] = ec._ConfigAuthRedirections_clientUrl(ctx, field, obj) - case "allowedUrls": - out.Values[i] = ec._ConfigAuthRedirections_allowedUrls(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthTotp") + case "enabled": + out.Values[i] = ec._ConfigAuthTotp_enabled(ctx, field, obj) + case "issuer": + out.Values[i] = ec._ConfigAuthTotp_issuer(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36528,21 +39608,27 @@ func (ec *executionContext) _ConfigAuthRedirections(ctx context.Context, sel ast return out } -var configAuthSessionImplementors = []string{"ConfigAuthSession"} +var configAuthUserImplementors = []string{"ConfigAuthUser"} -func (ec *executionContext) _ConfigAuthSession(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSession) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionImplementors) +func (ec *executionContext) _ConfigAuthUser(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUser) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthSession") - case "accessToken": - out.Values[i] = ec._ConfigAuthSession_accessToken(ctx, field, obj) - case "refreshToken": - out.Values[i] = ec._ConfigAuthSession_refreshToken(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthUser") + case "roles": + out.Values[i] = ec._ConfigAuthUser_roles(ctx, field, obj) + case "locale": + out.Values[i] = ec._ConfigAuthUser_locale(ctx, field, obj) + case "gravatar": + out.Values[i] = ec._ConfigAuthUser_gravatar(ctx, field, obj) + case "email": + out.Values[i] = ec._ConfigAuthUser_email(ctx, field, obj) + case "emailDomains": + out.Values[i] = ec._ConfigAuthUser_emailDomains(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36566,21 +39652,21 @@ func (ec *executionContext) _ConfigAuthSession(ctx context.Context, sel ast.Sele return out } -var configAuthSessionAccessTokenImplementors = []string{"ConfigAuthSessionAccessToken"} +var configAuthUserEmailImplementors = []string{"ConfigAuthUserEmail"} -func (ec *executionContext) _ConfigAuthSessionAccessToken(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSessionAccessToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionAccessTokenImplementors) +func (ec *executionContext) _ConfigAuthUserEmail(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserEmail) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserEmailImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthSessionAccessToken") - case "expiresIn": - out.Values[i] = ec._ConfigAuthSessionAccessToken_expiresIn(ctx, field, obj) - case "customClaims": - out.Values[i] = ec._ConfigAuthSessionAccessToken_customClaims(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthUserEmail") + case "allowed": + out.Values[i] = ec._ConfigAuthUserEmail_allowed(ctx, field, obj) + case "blocked": + out.Values[i] = ec._ConfigAuthUserEmail_blocked(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36604,19 +39690,21 @@ func (ec *executionContext) _ConfigAuthSessionAccessToken(ctx context.Context, s return out } -var configAuthSessionRefreshTokenImplementors = []string{"ConfigAuthSessionRefreshToken"} +var configAuthUserEmailDomainsImplementors = []string{"ConfigAuthUserEmailDomains"} -func (ec *executionContext) _ConfigAuthSessionRefreshToken(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSessionRefreshToken) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSessionRefreshTokenImplementors) +func (ec *executionContext) _ConfigAuthUserEmailDomains(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserEmailDomains) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserEmailDomainsImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthSessionRefreshToken") - case "expiresIn": - out.Values[i] = ec._ConfigAuthSessionRefreshToken_expiresIn(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthUserEmailDomains") + case "allowed": + out.Values[i] = ec._ConfigAuthUserEmailDomains_allowed(ctx, field, obj) + case "blocked": + out.Values[i] = ec._ConfigAuthUserEmailDomains_blocked(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36640,21 +39728,23 @@ func (ec *executionContext) _ConfigAuthSessionRefreshToken(ctx context.Context, return out } -var configAuthSignUpImplementors = []string{"ConfigAuthSignUp"} +var configAuthUserGravatarImplementors = []string{"ConfigAuthUserGravatar"} -func (ec *executionContext) _ConfigAuthSignUp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthSignUp) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthSignUpImplementors) +func (ec *executionContext) _ConfigAuthUserGravatar(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserGravatar) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserGravatarImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthSignUp") + out.Values[i] = graphql.MarshalString("ConfigAuthUserGravatar") case "enabled": - out.Values[i] = ec._ConfigAuthSignUp_enabled(ctx, field, obj) - case "disableNewUsers": - out.Values[i] = ec._ConfigAuthSignUp_disableNewUsers(ctx, field, obj) + out.Values[i] = ec._ConfigAuthUserGravatar_enabled(ctx, field, obj) + case "default": + out.Values[i] = ec._ConfigAuthUserGravatar_default(ctx, field, obj) + case "rating": + out.Values[i] = ec._ConfigAuthUserGravatar_rating(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36678,21 +39768,21 @@ func (ec *executionContext) _ConfigAuthSignUp(ctx context.Context, sel ast.Selec return out } -var configAuthTotpImplementors = []string{"ConfigAuthTotp"} +var configAuthUserLocaleImplementors = []string{"ConfigAuthUserLocale"} -func (ec *executionContext) _ConfigAuthTotp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthTotp) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthTotpImplementors) +func (ec *executionContext) _ConfigAuthUserLocale(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserLocale) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserLocaleImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthTotp") - case "enabled": - out.Values[i] = ec._ConfigAuthTotp_enabled(ctx, field, obj) - case "issuer": - out.Values[i] = ec._ConfigAuthTotp_issuer(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthUserLocale") + case "default": + out.Values[i] = ec._ConfigAuthUserLocale_default(ctx, field, obj) + case "allowed": + out.Values[i] = ec._ConfigAuthUserLocale_allowed(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36716,27 +39806,21 @@ func (ec *executionContext) _ConfigAuthTotp(ctx context.Context, sel ast.Selecti return out } -var configAuthUserImplementors = []string{"ConfigAuthUser"} +var configAuthUserRolesImplementors = []string{"ConfigAuthUserRoles"} -func (ec *executionContext) _ConfigAuthUser(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUser) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserImplementors) +func (ec *executionContext) _ConfigAuthUserRoles(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserRoles) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserRolesImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUser") - case "roles": - out.Values[i] = ec._ConfigAuthUser_roles(ctx, field, obj) - case "locale": - out.Values[i] = ec._ConfigAuthUser_locale(ctx, field, obj) - case "gravatar": - out.Values[i] = ec._ConfigAuthUser_gravatar(ctx, field, obj) - case "email": - out.Values[i] = ec._ConfigAuthUser_email(ctx, field, obj) - case "emailDomains": - out.Values[i] = ec._ConfigAuthUser_emailDomains(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthUserRoles") + case "default": + out.Values[i] = ec._ConfigAuthUserRoles_default(ctx, field, obj) + case "allowed": + out.Values[i] = ec._ConfigAuthUserRoles_allowed(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36760,21 +39844,27 @@ func (ec *executionContext) _ConfigAuthUser(ctx context.Context, sel ast.Selecti return out } -var configAuthUserEmailImplementors = []string{"ConfigAuthUserEmail"} +var configAuthsessionaccessTokenCustomClaimsImplementors = []string{"ConfigAuthsessionaccessTokenCustomClaims"} -func (ec *executionContext) _ConfigAuthUserEmail(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserEmail) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserEmailImplementors) +func (ec *executionContext) _ConfigAuthsessionaccessTokenCustomClaims(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthsessionaccessTokenCustomClaims) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAuthsessionaccessTokenCustomClaimsImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUserEmail") - case "allowed": - out.Values[i] = ec._ConfigAuthUserEmail_allowed(ctx, field, obj) - case "blocked": - out.Values[i] = ec._ConfigAuthUserEmail_blocked(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAuthsessionaccessTokenCustomClaims") + case "key": + out.Values[i] = ec._ConfigAuthsessionaccessTokenCustomClaims_key(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "value": + out.Values[i] = ec._ConfigAuthsessionaccessTokenCustomClaims_value(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36798,21 +39888,22 @@ func (ec *executionContext) _ConfigAuthUserEmail(ctx context.Context, sel ast.Se return out } -var configAuthUserEmailDomainsImplementors = []string{"ConfigAuthUserEmailDomains"} +var configAutoscalerImplementors = []string{"ConfigAutoscaler"} -func (ec *executionContext) _ConfigAuthUserEmailDomains(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserEmailDomains) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserEmailDomainsImplementors) +func (ec *executionContext) _ConfigAutoscaler(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAutoscaler) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configAutoscalerImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUserEmailDomains") - case "allowed": - out.Values[i] = ec._ConfigAuthUserEmailDomains_allowed(ctx, field, obj) - case "blocked": - out.Values[i] = ec._ConfigAuthUserEmailDomains_blocked(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigAutoscaler") + case "maxReplicas": + out.Values[i] = ec._ConfigAutoscaler_maxReplicas(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36836,23 +39927,28 @@ func (ec *executionContext) _ConfigAuthUserEmailDomains(ctx context.Context, sel return out } -var configAuthUserGravatarImplementors = []string{"ConfigAuthUserGravatar"} +var configClaimMapImplementors = []string{"ConfigClaimMap"} -func (ec *executionContext) _ConfigAuthUserGravatar(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserGravatar) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserGravatarImplementors) +func (ec *executionContext) _ConfigClaimMap(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigClaimMap) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configClaimMapImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUserGravatar") - case "enabled": - out.Values[i] = ec._ConfigAuthUserGravatar_enabled(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigClaimMap") + case "claim": + out.Values[i] = ec._ConfigClaimMap_claim(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "value": + out.Values[i] = ec._ConfigClaimMap_value(ctx, field, obj) + case "path": + out.Values[i] = ec._ConfigClaimMap_path(ctx, field, obj) case "default": - out.Values[i] = ec._ConfigAuthUserGravatar_default(ctx, field, obj) - case "rating": - out.Values[i] = ec._ConfigAuthUserGravatar_rating(ctx, field, obj) + out.Values[i] = ec._ConfigClaimMap_default(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36876,21 +39972,27 @@ func (ec *executionContext) _ConfigAuthUserGravatar(ctx context.Context, sel ast return out } -var configAuthUserLocaleImplementors = []string{"ConfigAuthUserLocale"} +var configComputeResourcesImplementors = []string{"ConfigComputeResources"} -func (ec *executionContext) _ConfigAuthUserLocale(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserLocale) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserLocaleImplementors) +func (ec *executionContext) _ConfigComputeResources(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigComputeResources) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configComputeResourcesImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUserLocale") - case "default": - out.Values[i] = ec._ConfigAuthUserLocale_default(ctx, field, obj) - case "allowed": - out.Values[i] = ec._ConfigAuthUserLocale_allowed(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigComputeResources") + case "cpu": + out.Values[i] = ec._ConfigComputeResources_cpu(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "memory": + out.Values[i] = ec._ConfigComputeResources_memory(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36914,21 +40016,43 @@ func (ec *executionContext) _ConfigAuthUserLocale(ctx context.Context, sel ast.S return out } -var configAuthUserRolesImplementors = []string{"ConfigAuthUserRoles"} +var configConfigImplementors = []string{"ConfigConfig"} -func (ec *executionContext) _ConfigAuthUserRoles(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthUserRoles) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthUserRolesImplementors) +func (ec *executionContext) _ConfigConfig(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigConfig) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configConfigImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthUserRoles") - case "default": - out.Values[i] = ec._ConfigAuthUserRoles_default(ctx, field, obj) - case "allowed": - out.Values[i] = ec._ConfigAuthUserRoles_allowed(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigConfig") + case "global": + out.Values[i] = ec._ConfigConfig_global(ctx, field, obj) + case "hasura": + out.Values[i] = ec._ConfigConfig_hasura(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "graphql": + out.Values[i] = ec._ConfigConfig_graphql(ctx, field, obj) + case "functions": + out.Values[i] = ec._ConfigConfig_functions(ctx, field, obj) + case "auth": + out.Values[i] = ec._ConfigConfig_auth(ctx, field, obj) + case "postgres": + out.Values[i] = ec._ConfigConfig_postgres(ctx, field, obj) + case "provider": + out.Values[i] = ec._ConfigConfig_provider(ctx, field, obj) + case "storage": + out.Values[i] = ec._ConfigConfig_storage(ctx, field, obj) + case "ai": + out.Values[i] = ec._ConfigConfig_ai(ctx, field, obj) + case "observability": + out.Values[i] = ec._ConfigConfig_observability(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -36952,24 +40076,24 @@ func (ec *executionContext) _ConfigAuthUserRoles(ctx context.Context, sel ast.Se return out } -var configAuthsessionaccessTokenCustomClaimsImplementors = []string{"ConfigAuthsessionaccessTokenCustomClaims"} +var configEnvironmentVariableImplementors = []string{"ConfigEnvironmentVariable"} -func (ec *executionContext) _ConfigAuthsessionaccessTokenCustomClaims(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAuthsessionaccessTokenCustomClaims) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAuthsessionaccessTokenCustomClaimsImplementors) +func (ec *executionContext) _ConfigEnvironmentVariable(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigEnvironmentVariable) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configEnvironmentVariableImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAuthsessionaccessTokenCustomClaims") - case "key": - out.Values[i] = ec._ConfigAuthsessionaccessTokenCustomClaims_key(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigEnvironmentVariable") + case "name": + out.Values[i] = ec._ConfigEnvironmentVariable_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "value": - out.Values[i] = ec._ConfigAuthsessionaccessTokenCustomClaims_value(ctx, field, obj) + out.Values[i] = ec._ConfigEnvironmentVariable_value(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -36996,22 +40120,23 @@ func (ec *executionContext) _ConfigAuthsessionaccessTokenCustomClaims(ctx contex return out } -var configAutoscalerImplementors = []string{"ConfigAutoscaler"} +var configFunctionsImplementors = []string{"ConfigFunctions"} -func (ec *executionContext) _ConfigAutoscaler(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigAutoscaler) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configAutoscalerImplementors) +func (ec *executionContext) _ConfigFunctions(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctions) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigAutoscaler") - case "maxReplicas": - out.Values[i] = ec._ConfigAutoscaler_maxReplicas(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("ConfigFunctions") + case "node": + out.Values[i] = ec._ConfigFunctions_node(ctx, field, obj) + case "resources": + out.Values[i] = ec._ConfigFunctions_resources(ctx, field, obj) + case "rateLimit": + out.Values[i] = ec._ConfigFunctions_rateLimit(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37035,28 +40160,19 @@ func (ec *executionContext) _ConfigAutoscaler(ctx context.Context, sel ast.Selec return out } -var configClaimMapImplementors = []string{"ConfigClaimMap"} +var configFunctionsNodeImplementors = []string{"ConfigFunctionsNode"} -func (ec *executionContext) _ConfigClaimMap(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigClaimMap) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configClaimMapImplementors) +func (ec *executionContext) _ConfigFunctionsNode(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctionsNode) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsNodeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigClaimMap") - case "claim": - out.Values[i] = ec._ConfigClaimMap_claim(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "value": - out.Values[i] = ec._ConfigClaimMap_value(ctx, field, obj) - case "path": - out.Values[i] = ec._ConfigClaimMap_path(ctx, field, obj) - case "default": - out.Values[i] = ec._ConfigClaimMap_default(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigFunctionsNode") + case "version": + out.Values[i] = ec._ConfigFunctionsNode_version(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37080,27 +40196,19 @@ func (ec *executionContext) _ConfigClaimMap(ctx context.Context, sel ast.Selecti return out } -var configComputeResourcesImplementors = []string{"ConfigComputeResources"} +var configFunctionsResourcesImplementors = []string{"ConfigFunctionsResources"} -func (ec *executionContext) _ConfigComputeResources(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigComputeResources) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configComputeResourcesImplementors) +func (ec *executionContext) _ConfigFunctionsResources(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctionsResources) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsResourcesImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigComputeResources") - case "cpu": - out.Values[i] = ec._ConfigComputeResources_cpu(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "memory": - out.Values[i] = ec._ConfigComputeResources_memory(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("ConfigFunctionsResources") + case "networking": + out.Values[i] = ec._ConfigFunctionsResources_networking(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37124,43 +40232,19 @@ func (ec *executionContext) _ConfigComputeResources(ctx context.Context, sel ast return out } -var configConfigImplementors = []string{"ConfigConfig"} +var configGlobalImplementors = []string{"ConfigGlobal"} -func (ec *executionContext) _ConfigConfig(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigConfig) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configConfigImplementors) +func (ec *executionContext) _ConfigGlobal(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGlobal) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGlobalImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigConfig") - case "global": - out.Values[i] = ec._ConfigConfig_global(ctx, field, obj) - case "hasura": - out.Values[i] = ec._ConfigConfig_hasura(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "graphql": - out.Values[i] = ec._ConfigConfig_graphql(ctx, field, obj) - case "functions": - out.Values[i] = ec._ConfigConfig_functions(ctx, field, obj) - case "auth": - out.Values[i] = ec._ConfigConfig_auth(ctx, field, obj) - case "postgres": - out.Values[i] = ec._ConfigConfig_postgres(ctx, field, obj) - case "provider": - out.Values[i] = ec._ConfigConfig_provider(ctx, field, obj) - case "storage": - out.Values[i] = ec._ConfigConfig_storage(ctx, field, obj) - case "ai": - out.Values[i] = ec._ConfigConfig_ai(ctx, field, obj) - case "observability": - out.Values[i] = ec._ConfigConfig_observability(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } + out.Values[i] = graphql.MarshalString("ConfigGlobal") + case "environment": + out.Values[i] = ec._ConfigGlobal_environment(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37184,24 +40268,24 @@ func (ec *executionContext) _ConfigConfig(ctx context.Context, sel ast.Selection return out } -var configEnvironmentVariableImplementors = []string{"ConfigEnvironmentVariable"} +var configGlobalEnvironmentVariableImplementors = []string{"ConfigGlobalEnvironmentVariable"} -func (ec *executionContext) _ConfigEnvironmentVariable(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigEnvironmentVariable) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configEnvironmentVariableImplementors) +func (ec *executionContext) _ConfigGlobalEnvironmentVariable(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGlobalEnvironmentVariable) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGlobalEnvironmentVariableImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigEnvironmentVariable") + out.Values[i] = graphql.MarshalString("ConfigGlobalEnvironmentVariable") case "name": - out.Values[i] = ec._ConfigEnvironmentVariable_name(ctx, field, obj) + out.Values[i] = ec._ConfigGlobalEnvironmentVariable_name(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "value": - out.Values[i] = ec._ConfigEnvironmentVariable_value(ctx, field, obj) + out.Values[i] = ec._ConfigGlobalEnvironmentVariable_value(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -37228,23 +40312,28 @@ func (ec *executionContext) _ConfigEnvironmentVariable(ctx context.Context, sel return out } -var configFunctionsImplementors = []string{"ConfigFunctions"} +var configGrafanaImplementors = []string{"ConfigGrafana"} -func (ec *executionContext) _ConfigFunctions(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctions) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsImplementors) +func (ec *executionContext) _ConfigGrafana(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafana) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigFunctions") - case "node": - out.Values[i] = ec._ConfigFunctions_node(ctx, field, obj) - case "resources": - out.Values[i] = ec._ConfigFunctions_resources(ctx, field, obj) - case "rateLimit": - out.Values[i] = ec._ConfigFunctions_rateLimit(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafana") + case "adminPassword": + out.Values[i] = ec._ConfigGrafana_adminPassword(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "smtp": + out.Values[i] = ec._ConfigGrafana_smtp(ctx, field, obj) + case "alerting": + out.Values[i] = ec._ConfigGrafana_alerting(ctx, field, obj) + case "contacts": + out.Values[i] = ec._ConfigGrafana_contacts(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37268,19 +40357,19 @@ func (ec *executionContext) _ConfigFunctions(ctx context.Context, sel ast.Select return out } -var configFunctionsNodeImplementors = []string{"ConfigFunctionsNode"} +var configGrafanaAlertingImplementors = []string{"ConfigGrafanaAlerting"} -func (ec *executionContext) _ConfigFunctionsNode(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctionsNode) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsNodeImplementors) +func (ec *executionContext) _ConfigGrafanaAlerting(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanaAlerting) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaAlertingImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigFunctionsNode") - case "version": - out.Values[i] = ec._ConfigFunctionsNode_version(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanaAlerting") + case "enabled": + out.Values[i] = ec._ConfigGrafanaAlerting_enabled(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37304,19 +40393,27 @@ func (ec *executionContext) _ConfigFunctionsNode(ctx context.Context, sel ast.Se return out } -var configFunctionsResourcesImplementors = []string{"ConfigFunctionsResources"} +var configGrafanaContactsImplementors = []string{"ConfigGrafanaContacts"} -func (ec *executionContext) _ConfigFunctionsResources(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigFunctionsResources) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configFunctionsResourcesImplementors) +func (ec *executionContext) _ConfigGrafanaContacts(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanaContacts) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaContactsImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigFunctionsResources") - case "networking": - out.Values[i] = ec._ConfigFunctionsResources_networking(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanaContacts") + case "emails": + out.Values[i] = ec._ConfigGrafanaContacts_emails(ctx, field, obj) + case "pagerduty": + out.Values[i] = ec._ConfigGrafanaContacts_pagerduty(ctx, field, obj) + case "discord": + out.Values[i] = ec._ConfigGrafanaContacts_discord(ctx, field, obj) + case "slack": + out.Values[i] = ec._ConfigGrafanaContacts_slack(ctx, field, obj) + case "webhook": + out.Values[i] = ec._ConfigGrafanaContacts_webhook(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37340,19 +40437,42 @@ func (ec *executionContext) _ConfigFunctionsResources(ctx context.Context, sel a return out } -var configGlobalImplementors = []string{"ConfigGlobal"} +var configGrafanaSmtpImplementors = []string{"ConfigGrafanaSmtp"} -func (ec *executionContext) _ConfigGlobal(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGlobal) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configGlobalImplementors) +func (ec *executionContext) _ConfigGrafanaSmtp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanaSmtp) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaSmtpImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigGlobal") - case "environment": - out.Values[i] = ec._ConfigGlobal_environment(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanaSmtp") + case "host": + out.Values[i] = ec._ConfigGrafanaSmtp_host(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "port": + out.Values[i] = ec._ConfigGrafanaSmtp_port(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sender": + out.Values[i] = ec._ConfigGrafanaSmtp_sender(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "user": + out.Values[i] = ec._ConfigGrafanaSmtp_user(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "password": + out.Values[i] = ec._ConfigGrafanaSmtp_password(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37376,24 +40496,24 @@ func (ec *executionContext) _ConfigGlobal(ctx context.Context, sel ast.Selection return out } -var configGlobalEnvironmentVariableImplementors = []string{"ConfigGlobalEnvironmentVariable"} +var configGrafanacontactsDiscordImplementors = []string{"ConfigGrafanacontactsDiscord"} -func (ec *executionContext) _ConfigGlobalEnvironmentVariable(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGlobalEnvironmentVariable) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configGlobalEnvironmentVariableImplementors) +func (ec *executionContext) _ConfigGrafanacontactsDiscord(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanacontactsDiscord) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanacontactsDiscordImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigGlobalEnvironmentVariable") - case "name": - out.Values[i] = ec._ConfigGlobalEnvironmentVariable_name(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanacontactsDiscord") + case "url": + out.Values[i] = ec._ConfigGrafanacontactsDiscord_url(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "value": - out.Values[i] = ec._ConfigGlobalEnvironmentVariable_value(ctx, field, obj) + case "avatarUrl": + out.Values[i] = ec._ConfigGrafanacontactsDiscord_avatarUrl(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -37420,24 +40540,42 @@ func (ec *executionContext) _ConfigGlobalEnvironmentVariable(ctx context.Context return out } -var configGrafanaImplementors = []string{"ConfigGrafana"} +var configGrafanacontactsPagerdutyImplementors = []string{"ConfigGrafanacontactsPagerduty"} -func (ec *executionContext) _ConfigGrafana(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafana) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaImplementors) +func (ec *executionContext) _ConfigGrafanacontactsPagerduty(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanacontactsPagerduty) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanacontactsPagerdutyImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigGrafana") - case "adminPassword": - out.Values[i] = ec._ConfigGrafana_adminPassword(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanacontactsPagerduty") + case "integrationKey": + out.Values[i] = ec._ConfigGrafanacontactsPagerduty_integrationKey(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "severity": + out.Values[i] = ec._ConfigGrafanacontactsPagerduty_severity(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "class": + out.Values[i] = ec._ConfigGrafanacontactsPagerduty_class(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "component": + out.Values[i] = ec._ConfigGrafanacontactsPagerduty_component(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "group": + out.Values[i] = ec._ConfigGrafanacontactsPagerduty_group(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "smtp": - out.Values[i] = ec._ConfigGrafana_smtp(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -37461,39 +40599,133 @@ func (ec *executionContext) _ConfigGrafana(ctx context.Context, sel ast.Selectio return out } -var configGrafanaSmtpImplementors = []string{"ConfigGrafanaSmtp"} +var configGrafanacontactsSlackImplementors = []string{"ConfigGrafanacontactsSlack"} -func (ec *executionContext) _ConfigGrafanaSmtp(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanaSmtp) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanaSmtpImplementors) +func (ec *executionContext) _ConfigGrafanacontactsSlack(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanacontactsSlack) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanacontactsSlackImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("ConfigGrafanaSmtp") - case "host": - out.Values[i] = ec._ConfigGrafanaSmtp_host(ctx, field, obj) + out.Values[i] = graphql.MarshalString("ConfigGrafanacontactsSlack") + case "recipient": + out.Values[i] = ec._ConfigGrafanacontactsSlack_recipient(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "port": - out.Values[i] = ec._ConfigGrafanaSmtp_port(ctx, field, obj) + case "token": + out.Values[i] = ec._ConfigGrafanacontactsSlack_token(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "sender": - out.Values[i] = ec._ConfigGrafanaSmtp_sender(ctx, field, obj) + case "username": + out.Values[i] = ec._ConfigGrafanacontactsSlack_username(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "user": - out.Values[i] = ec._ConfigGrafanaSmtp_user(ctx, field, obj) + case "iconEmoji": + out.Values[i] = ec._ConfigGrafanacontactsSlack_iconEmoji(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "iconURL": + out.Values[i] = ec._ConfigGrafanacontactsSlack_iconURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mentionUsers": + out.Values[i] = ec._ConfigGrafanacontactsSlack_mentionUsers(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mentionGroups": + out.Values[i] = ec._ConfigGrafanacontactsSlack_mentionGroups(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "mentionChannel": + out.Values[i] = ec._ConfigGrafanacontactsSlack_mentionChannel(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "url": + out.Values[i] = ec._ConfigGrafanacontactsSlack_url(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "endpointURL": + out.Values[i] = ec._ConfigGrafanacontactsSlack_endpointURL(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(len(deferred))) + + for label, dfs := range deferred { + ec.processDeferredGroup(graphql.DeferredGroup{ + Label: label, + Path: graphql.GetPath(ctx), + FieldSet: dfs, + Context: ctx, + }) + } + + return out +} + +var configGrafanacontactsWebhookImplementors = []string{"ConfigGrafanacontactsWebhook"} + +func (ec *executionContext) _ConfigGrafanacontactsWebhook(ctx context.Context, sel ast.SelectionSet, obj *model.ConfigGrafanacontactsWebhook) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, configGrafanacontactsWebhookImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ConfigGrafanacontactsWebhook") + case "url": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_url(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "httpMethod": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_httpMethod(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "username": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_username(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "password": - out.Values[i] = ec._ConfigGrafanaSmtp_password(ctx, field, obj) + out.Values[i] = ec._ConfigGrafanacontactsWebhook_password(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorizationScheme": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_authorizationScheme(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "authorizationCredentials": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_authorizationCredentials(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "maxAlerts": + out.Values[i] = ec._ConfigGrafanacontactsWebhook_maxAlerts(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -40669,11 +43901,21 @@ func (ec *executionContext) marshalNConfigGrafana2ᚖgithubᚗcomᚋnhostᚋbe return ec._ConfigGrafana(ctx, sel, v) } +func (ec *executionContext) unmarshalNConfigGrafanaAlertingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanaAlertingComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanaAlertingComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNConfigGrafanaComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanaComparisonExp, error) { res, err := ec.unmarshalInputConfigGrafanaComparisonExp(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalNConfigGrafanaContactsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanaContactsComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanaContactsComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNConfigGrafanaInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanaInsertInput, error) { res, err := ec.unmarshalInputConfigGrafanaInsertInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -40684,6 +43926,110 @@ func (ec *executionContext) unmarshalNConfigGrafanaSmtpComparisonExp2ᚖgithub return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalNConfigGrafanacontactsDiscord2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscord(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanacontactsDiscord) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ConfigGrafanacontactsDiscord(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsDiscordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsDiscordComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsDiscordComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsDiscordInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsDiscordInsertInput, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsDiscordInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsDiscordUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsDiscordUpdateInput, error) { + var res = new(model.ConfigGrafanacontactsDiscordUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNConfigGrafanacontactsPagerduty2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerduty(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanacontactsPagerduty) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ConfigGrafanacontactsPagerduty(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsPagerdutyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsPagerdutyComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsPagerdutyComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsPagerdutyInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsPagerdutyInsertInput, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsPagerdutyInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsPagerdutyUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsPagerdutyUpdateInput, error) { + var res = new(model.ConfigGrafanacontactsPagerdutyUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNConfigGrafanacontactsSlack2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlack(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanacontactsSlack) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ConfigGrafanacontactsSlack(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsSlackComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsSlackComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsSlackComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsSlackInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsSlackInsertInput, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsSlackInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsSlackUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsSlackUpdateInput, error) { + var res = new(model.ConfigGrafanacontactsSlackUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNConfigGrafanacontactsWebhook2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhook(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanacontactsWebhook) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ConfigGrafanacontactsWebhook(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsWebhookComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsWebhookComparisonExp, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsWebhookComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsWebhookInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsWebhookInsertInput, error) { + res, err := ec.unmarshalInputConfigGrafanacontactsWebhookInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNConfigGrafanacontactsWebhookUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsWebhookUpdateInput, error) { + var res = new(model.ConfigGrafanacontactsWebhookUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNConfigGraphqlComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphqlComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGraphqlComparisonExp, error) { res, err := ec.unmarshalInputConfigGraphqlComparisonExp(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -41441,6 +44787,38 @@ func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.S return res } +func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]string, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNString2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNString2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { return ec.___Directive(ctx, sel, &v) } @@ -44383,6 +47761,58 @@ func (ec *executionContext) unmarshalOConfigGlobalUpdateInput2ᚖgithubᚗcomᚋ return res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOConfigGrafanaAlerting2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlerting(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanaAlerting) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ConfigGrafanaAlerting(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOConfigGrafanaAlertingComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanaAlertingComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanaAlertingComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanaAlertingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanaAlertingComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanaAlertingComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanaAlertingComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanaAlertingInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanaAlertingInsertInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanaAlertingInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanaAlertingUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaAlertingUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanaAlertingUpdateInput, error) { + if v == nil { + return nil, nil + } + var res = new(model.ConfigGrafanaAlertingUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalOConfigGrafanaComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanaComparisonExp, error) { if v == nil { return nil, nil @@ -44411,6 +47841,58 @@ func (ec *executionContext) unmarshalOConfigGrafanaComparisonExp2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOConfigGrafanaContacts2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContacts(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanaContacts) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ConfigGrafanaContacts(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOConfigGrafanaContactsComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanaContactsComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanaContactsComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanaContactsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanaContactsComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanaContactsComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanaContactsComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanaContactsInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsInsertInput(ctx context.Context, v interface{}) (*model.ConfigGrafanaContactsInsertInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanaContactsInsertInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanaContactsUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaContactsUpdateInput(ctx context.Context, v interface{}) (*model.ConfigGrafanaContactsUpdateInput, error) { + if v == nil { + return nil, nil + } + var res = new(model.ConfigGrafanaContactsUpdateInput) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOConfigGrafanaSmtp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanaSmtp(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGrafanaSmtp) graphql.Marshaler { if v == nil { return graphql.Null @@ -44472,6 +47954,466 @@ func (ec *executionContext) unmarshalOConfigGrafanaUpdateInput2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOConfigGrafanacontactsDiscord2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ConfigGrafanacontactsDiscord) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNConfigGrafanacontactsDiscord2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscord(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsDiscordComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsDiscordComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsDiscordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsDiscordComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsDiscordComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanacontactsDiscordComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsDiscordInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordInsertInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsDiscordInsertInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsDiscordInsertInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsDiscordInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordInsertInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsDiscordUpdateInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordUpdateInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsDiscordUpdateInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsDiscordUpdateInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsDiscordUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsDiscordUpdateInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOConfigGrafanacontactsPagerduty2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ConfigGrafanacontactsPagerduty) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNConfigGrafanacontactsPagerduty2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerduty(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsPagerdutyComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsPagerdutyComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsPagerdutyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsPagerdutyComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsPagerdutyComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanacontactsPagerdutyComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsPagerdutyInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyInsertInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsPagerdutyInsertInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsPagerdutyInsertInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsPagerdutyInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyInsertInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsPagerdutyUpdateInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyUpdateInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsPagerdutyUpdateInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsPagerdutyUpdateInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsPagerdutyUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsPagerdutyUpdateInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOConfigGrafanacontactsSlack2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ConfigGrafanacontactsSlack) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNConfigGrafanacontactsSlack2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlack(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsSlackComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsSlackComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsSlackComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsSlackComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsSlackComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanacontactsSlackComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsSlackInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackInsertInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsSlackInsertInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsSlackInsertInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsSlackInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackInsertInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsSlackUpdateInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackUpdateInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsSlackUpdateInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsSlackUpdateInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsSlackUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsSlackUpdateInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOConfigGrafanacontactsWebhook2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ConfigGrafanacontactsWebhook) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + var wg sync.WaitGroup + isLen1 := len(v) == 1 + if !isLen1 { + wg.Add(len(v)) + } + for i := range v { + i := i + fc := &graphql.FieldContext{ + Index: &i, + Result: &v[i], + } + ctx := graphql.WithFieldContext(ctx, fc) + f := func(i int) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = nil + } + }() + if !isLen1 { + defer wg.Done() + } + ret[i] = ec.marshalNConfigGrafanacontactsWebhook2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhook(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExpᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsWebhookComparisonExp, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsWebhookComparisonExp, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsWebhookComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExp(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsWebhookComparisonExp2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookComparisonExp(ctx context.Context, v interface{}) (*model.ConfigGrafanacontactsWebhookComparisonExp, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputConfigGrafanacontactsWebhookComparisonExp(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsWebhookInsertInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookInsertInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsWebhookInsertInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsWebhookInsertInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsWebhookInsertInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookInsertInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOConfigGrafanacontactsWebhookUpdateInput2ᚕᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookUpdateInputᚄ(ctx context.Context, v interface{}) ([]*model.ConfigGrafanacontactsWebhookUpdateInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.ConfigGrafanacontactsWebhookUpdateInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNConfigGrafanacontactsWebhookUpdateInput2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGrafanacontactsWebhookUpdateInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + func (ec *executionContext) marshalOConfigGraphql2ᚖgithubᚗcomᚋnhostᚋbeᚋservicesᚋmimirᚋmodelᚐConfigGraphql(ctx context.Context, sel ast.SelectionSet, v *model.ConfigGraphql) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/vendor/github.com/nhost/be/services/mimir/model/cuegraph_gen.go b/vendor/github.com/nhost/be/services/mimir/model/cuegraph_gen.go index c6a607ab..8b92b480 100644 --- a/vendor/github.com/nhost/be/services/mimir/model/cuegraph_gen.go +++ b/vendor/github.com/nhost/be/services/mimir/model/cuegraph_gen.go @@ -11640,6 +11640,10 @@ type ConfigGrafana struct { AdminPassword string `json:"adminPassword" toml:"adminPassword"` Smtp *ConfigGrafanaSmtp `json:"smtp,omitempty" toml:"smtp,omitempty"` + + Alerting *ConfigGrafanaAlerting `json:"alerting,omitempty" toml:"alerting,omitempty"` + + Contacts *ConfigGrafanaContacts `json:"contacts,omitempty" toml:"contacts,omitempty"` } func (o *ConfigGrafana) MarshalJSON() ([]byte, error) { @@ -11648,6 +11652,12 @@ func (o *ConfigGrafana) MarshalJSON() ([]byte, error) { if o.Smtp != nil { m["smtp"] = o.Smtp } + if o.Alerting != nil { + m["alerting"] = o.Alerting + } + if o.Contacts != nil { + m["contacts"] = o.Contacts + } return json.Marshal(m) } @@ -11665,11 +11675,29 @@ func (o *ConfigGrafana) GetSmtp() *ConfigGrafanaSmtp { return o.Smtp } +func (o *ConfigGrafana) GetAlerting() *ConfigGrafanaAlerting { + if o == nil { + return nil + } + return o.Alerting +} + +func (o *ConfigGrafana) GetContacts() *ConfigGrafanaContacts { + if o == nil { + return nil + } + return o.Contacts +} + type ConfigGrafanaUpdateInput struct { - AdminPassword *string `json:"adminPassword,omitempty" toml:"adminPassword,omitempty"` - IsSetAdminPassword bool `json:"-"` - Smtp *ConfigGrafanaSmtpUpdateInput `json:"smtp,omitempty" toml:"smtp,omitempty"` - IsSetSmtp bool `json:"-"` + AdminPassword *string `json:"adminPassword,omitempty" toml:"adminPassword,omitempty"` + IsSetAdminPassword bool `json:"-"` + Smtp *ConfigGrafanaSmtpUpdateInput `json:"smtp,omitempty" toml:"smtp,omitempty"` + IsSetSmtp bool `json:"-"` + Alerting *ConfigGrafanaAlertingUpdateInput `json:"alerting,omitempty" toml:"alerting,omitempty"` + IsSetAlerting bool `json:"-"` + Contacts *ConfigGrafanaContactsUpdateInput `json:"contacts,omitempty" toml:"contacts,omitempty"` + IsSetContacts bool `json:"-"` } func (o *ConfigGrafanaUpdateInput) UnmarshalGQL(v interface{}) error { @@ -11704,6 +11732,26 @@ func (o *ConfigGrafanaUpdateInput) UnmarshalGQL(v interface{}) error { } o.IsSetSmtp = true } + if x, ok := m["alerting"]; ok { + if x != nil { + t := &ConfigGrafanaAlertingUpdateInput{} + if err := t.UnmarshalGQL(x); err != nil { + return err + } + o.Alerting = t + } + o.IsSetAlerting = true + } + if x, ok := m["contacts"]; ok { + if x != nil { + t := &ConfigGrafanaContactsUpdateInput{} + if err := t.UnmarshalGQL(x); err != nil { + return err + } + o.Contacts = t + } + o.IsSetContacts = true + } return nil } @@ -11729,6 +11777,20 @@ func (o *ConfigGrafanaUpdateInput) GetSmtp() *ConfigGrafanaSmtpUpdateInput { return o.Smtp } +func (o *ConfigGrafanaUpdateInput) GetAlerting() *ConfigGrafanaAlertingUpdateInput { + if o == nil { + return nil + } + return o.Alerting +} + +func (o *ConfigGrafanaUpdateInput) GetContacts() *ConfigGrafanaContactsUpdateInput { + if o == nil { + return nil + } + return o.Contacts +} + func (s *ConfigGrafana) Update(v *ConfigGrafanaUpdateInput) { if v == nil { return @@ -11748,11 +11810,33 @@ func (s *ConfigGrafana) Update(v *ConfigGrafanaUpdateInput) { s.Smtp.Update(v.Smtp) } } + if v.IsSetAlerting || v.Alerting != nil { + if v.Alerting == nil { + s.Alerting = nil + } else { + if s.Alerting == nil { + s.Alerting = &ConfigGrafanaAlerting{} + } + s.Alerting.Update(v.Alerting) + } + } + if v.IsSetContacts || v.Contacts != nil { + if v.Contacts == nil { + s.Contacts = nil + } else { + if s.Contacts == nil { + s.Contacts = &ConfigGrafanaContacts{} + } + s.Contacts.Update(v.Contacts) + } + } } type ConfigGrafanaInsertInput struct { - AdminPassword string `json:"adminPassword,omitempty" toml:"adminPassword,omitempty"` - Smtp *ConfigGrafanaSmtpInsertInput `json:"smtp,omitempty" toml:"smtp,omitempty"` + AdminPassword string `json:"adminPassword,omitempty" toml:"adminPassword,omitempty"` + Smtp *ConfigGrafanaSmtpInsertInput `json:"smtp,omitempty" toml:"smtp,omitempty"` + Alerting *ConfigGrafanaAlertingInsertInput `json:"alerting,omitempty" toml:"alerting,omitempty"` + Contacts *ConfigGrafanaContactsInsertInput `json:"contacts,omitempty" toml:"contacts,omitempty"` } func (o *ConfigGrafanaInsertInput) GetAdminPassword() string { @@ -11769,6 +11853,20 @@ func (o *ConfigGrafanaInsertInput) GetSmtp() *ConfigGrafanaSmtpInsertInput { return o.Smtp } +func (o *ConfigGrafanaInsertInput) GetAlerting() *ConfigGrafanaAlertingInsertInput { + if o == nil { + return nil + } + return o.Alerting +} + +func (o *ConfigGrafanaInsertInput) GetContacts() *ConfigGrafanaContactsInsertInput { + if o == nil { + return nil + } + return o.Contacts +} + func (s *ConfigGrafana) Insert(v *ConfigGrafanaInsertInput) { s.AdminPassword = v.AdminPassword if v.Smtp != nil { @@ -11777,6 +11875,18 @@ func (s *ConfigGrafana) Insert(v *ConfigGrafanaInsertInput) { } s.Smtp.Insert(v.Smtp) } + if v.Alerting != nil { + if s.Alerting == nil { + s.Alerting = &ConfigGrafanaAlerting{} + } + s.Alerting.Insert(v.Alerting) + } + if v.Contacts != nil { + if s.Contacts == nil { + s.Contacts = &ConfigGrafanaContacts{} + } + s.Contacts.Insert(v.Contacts) + } } func (s *ConfigGrafana) Clone() *ConfigGrafana { @@ -11787,15 +11897,19 @@ func (s *ConfigGrafana) Clone() *ConfigGrafana { v := &ConfigGrafana{} v.AdminPassword = s.AdminPassword v.Smtp = s.Smtp.Clone() + v.Alerting = s.Alerting.Clone() + v.Contacts = s.Contacts.Clone() return v } type ConfigGrafanaComparisonExp struct { - And []*ConfigGrafanaComparisonExp `json:"_and,omitempty"` - Not *ConfigGrafanaComparisonExp `json:"_not,omitempty"` - Or []*ConfigGrafanaComparisonExp `json:"_or,omitempty"` - AdminPassword *ConfigStringComparisonExp `json:"adminPassword,omitempty"` - Smtp *ConfigGrafanaSmtpComparisonExp `json:"smtp,omitempty"` + And []*ConfigGrafanaComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanaComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanaComparisonExp `json:"_or,omitempty"` + AdminPassword *ConfigStringComparisonExp `json:"adminPassword,omitempty"` + Smtp *ConfigGrafanaSmtpComparisonExp `json:"smtp,omitempty"` + Alerting *ConfigGrafanaAlertingComparisonExp `json:"alerting,omitempty"` + Contacts *ConfigGrafanaContactsComparisonExp `json:"contacts,omitempty"` } func (exp *ConfigGrafanaComparisonExp) Matches(o *ConfigGrafana) bool { @@ -11805,7 +11919,9 @@ func (exp *ConfigGrafanaComparisonExp) Matches(o *ConfigGrafana) bool { if o == nil { o = &ConfigGrafana{ - Smtp: &ConfigGrafanaSmtp{}, + Smtp: &ConfigGrafanaSmtp{}, + Alerting: &ConfigGrafanaAlerting{}, + Contacts: &ConfigGrafanaContacts{}, } } if !exp.AdminPassword.Matches(o.AdminPassword) { @@ -11814,6 +11930,12 @@ func (exp *ConfigGrafanaComparisonExp) Matches(o *ConfigGrafana) bool { if !exp.Smtp.Matches(o.Smtp) { return false } + if !exp.Alerting.Matches(o.Alerting) { + return false + } + if !exp.Contacts.Matches(o.Contacts) { + return false + } if exp.And != nil && !all(exp.And, o) { return false @@ -11830,234 +11952,2506 @@ func (exp *ConfigGrafanaComparisonExp) Matches(o *ConfigGrafana) bool { return true } -type ConfigGrafanaSmtp struct { - Host string `json:"host" toml:"host"` - - Port uint16 `json:"port" toml:"port"` - - Sender string `json:"sender" toml:"sender"` - - User string `json:"user" toml:"user"` - - Password string `json:"password" toml:"password"` +type ConfigGrafanaAlerting struct { + Enabled *bool `json:"enabled" toml:"enabled"` } -func (o *ConfigGrafanaSmtp) MarshalJSON() ([]byte, error) { +func (o *ConfigGrafanaAlerting) MarshalJSON() ([]byte, error) { m := make(map[string]any) - m["host"] = o.Host - m["port"] = o.Port - m["sender"] = o.Sender - m["user"] = o.User - m["password"] = o.Password - return json.Marshal(m) -} - -func (o *ConfigGrafanaSmtp) GetHost() string { - if o == nil { - o = &ConfigGrafanaSmtp{} - } - return o.Host -} - -func (o *ConfigGrafanaSmtp) GetPort() uint16 { - if o == nil { - o = &ConfigGrafanaSmtp{} - } - return o.Port -} - -func (o *ConfigGrafanaSmtp) GetSender() string { - if o == nil { - o = &ConfigGrafanaSmtp{} - } - return o.Sender -} - -func (o *ConfigGrafanaSmtp) GetUser() string { - if o == nil { - o = &ConfigGrafanaSmtp{} + if o.Enabled != nil { + m["enabled"] = o.Enabled } - return o.User + return json.Marshal(m) } -func (o *ConfigGrafanaSmtp) GetPassword() string { +func (o *ConfigGrafanaAlerting) GetEnabled() *bool { if o == nil { - o = &ConfigGrafanaSmtp{} + o = &ConfigGrafanaAlerting{} } - return o.Password + return o.Enabled } -type ConfigGrafanaSmtpUpdateInput struct { - Host *string `json:"host,omitempty" toml:"host,omitempty"` - IsSetHost bool `json:"-"` - Port *uint16 `json:"port,omitempty" toml:"port,omitempty"` - IsSetPort bool `json:"-"` - Sender *string `json:"sender,omitempty" toml:"sender,omitempty"` - IsSetSender bool `json:"-"` - User *string `json:"user,omitempty" toml:"user,omitempty"` - IsSetUser bool `json:"-"` - Password *string `json:"password,omitempty" toml:"password,omitempty"` - IsSetPassword bool `json:"-"` +type ConfigGrafanaAlertingUpdateInput struct { + Enabled *bool `json:"enabled,omitempty" toml:"enabled,omitempty"` + IsSetEnabled bool `json:"-"` } -func (o *ConfigGrafanaSmtpUpdateInput) UnmarshalGQL(v interface{}) error { +func (o *ConfigGrafanaAlertingUpdateInput) UnmarshalGQL(v interface{}) error { m, ok := v.(map[string]any) if !ok { return fmt.Errorf("must be map[string]interface{}, got %T", v) } - if v, ok := m["host"]; ok { - if v == nil { - o.Host = nil - } else { - // clearly a not very efficient shortcut - b, err := json.Marshal(v) - if err != nil { - return err - } - var x string - if err := json.Unmarshal(b, &x); err != nil { - return err - } - o.Host = &x - } - o.IsSetHost = true - } - if v, ok := m["port"]; ok { - if v == nil { - o.Port = nil - } else { - // clearly a not very efficient shortcut - b, err := json.Marshal(v) - if err != nil { - return err - } - var x uint16 - if err := json.Unmarshal(b, &x); err != nil { - return err - } - o.Port = &x - } - o.IsSetPort = true - } - if v, ok := m["sender"]; ok { - if v == nil { - o.Sender = nil - } else { - // clearly a not very efficient shortcut - b, err := json.Marshal(v) - if err != nil { - return err - } - var x string - if err := json.Unmarshal(b, &x); err != nil { - return err - } - o.Sender = &x - } - o.IsSetSender = true - } - if v, ok := m["user"]; ok { - if v == nil { - o.User = nil - } else { - // clearly a not very efficient shortcut - b, err := json.Marshal(v) - if err != nil { - return err - } - var x string - if err := json.Unmarshal(b, &x); err != nil { - return err - } - o.User = &x - } - o.IsSetUser = true - } - if v, ok := m["password"]; ok { + if v, ok := m["enabled"]; ok { if v == nil { - o.Password = nil + o.Enabled = nil } else { // clearly a not very efficient shortcut b, err := json.Marshal(v) if err != nil { return err } - var x string + var x bool if err := json.Unmarshal(b, &x); err != nil { return err } - o.Password = &x + o.Enabled = &x } - o.IsSetPassword = true + o.IsSetEnabled = true } return nil } -func (o *ConfigGrafanaSmtpUpdateInput) MarshalGQL(w io.Writer) { +func (o *ConfigGrafanaAlertingUpdateInput) MarshalGQL(w io.Writer) { enc := json.NewEncoder(w) if err := enc.Encode(o); err != nil { panic(err) } } -func (o *ConfigGrafanaSmtpUpdateInput) GetHost() *string { +func (o *ConfigGrafanaAlertingUpdateInput) GetEnabled() *bool { if o == nil { - o = &ConfigGrafanaSmtpUpdateInput{} + o = &ConfigGrafanaAlertingUpdateInput{} } - return o.Host + return o.Enabled } -func (o *ConfigGrafanaSmtpUpdateInput) GetPort() *uint16 { - if o == nil { - o = &ConfigGrafanaSmtpUpdateInput{} +func (s *ConfigGrafanaAlerting) Update(v *ConfigGrafanaAlertingUpdateInput) { + if v == nil { + return + } + if v.IsSetEnabled || v.Enabled != nil { + s.Enabled = v.Enabled } - return o.Port } -func (o *ConfigGrafanaSmtpUpdateInput) GetSender() *string { - if o == nil { - o = &ConfigGrafanaSmtpUpdateInput{} - } - return o.Sender +type ConfigGrafanaAlertingInsertInput struct { + Enabled *bool `json:"enabled,omitempty" toml:"enabled,omitempty"` } -func (o *ConfigGrafanaSmtpUpdateInput) GetUser() *string { +func (o *ConfigGrafanaAlertingInsertInput) GetEnabled() *bool { if o == nil { - o = &ConfigGrafanaSmtpUpdateInput{} + o = &ConfigGrafanaAlertingInsertInput{} } - return o.User + return o.Enabled } -func (o *ConfigGrafanaSmtpUpdateInput) GetPassword() *string { - if o == nil { - o = &ConfigGrafanaSmtpUpdateInput{} +func (s *ConfigGrafanaAlerting) Insert(v *ConfigGrafanaAlertingInsertInput) { + s.Enabled = v.Enabled +} + +func (s *ConfigGrafanaAlerting) Clone() *ConfigGrafanaAlerting { + if s == nil { + return nil } - return o.Password + + v := &ConfigGrafanaAlerting{} + v.Enabled = s.Enabled + return v } -func (s *ConfigGrafanaSmtp) Update(v *ConfigGrafanaSmtpUpdateInput) { - if v == nil { - return +type ConfigGrafanaAlertingComparisonExp struct { + And []*ConfigGrafanaAlertingComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanaAlertingComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanaAlertingComparisonExp `json:"_or,omitempty"` + Enabled *ConfigBooleanComparisonExp `json:"enabled,omitempty"` +} + +func (exp *ConfigGrafanaAlertingComparisonExp) Matches(o *ConfigGrafanaAlerting) bool { + if exp == nil { + return true } - if v.IsSetHost || v.Host != nil { - if v.Host != nil { - s.Host = *v.Host - } + + if o == nil { + o = &ConfigGrafanaAlerting{} } - if v.IsSetPort || v.Port != nil { + if o.Enabled != nil && !exp.Enabled.Matches(*o.Enabled) { + return false + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanaContacts struct { + Emails []string `json:"emails,omitempty" toml:"emails,omitempty"` + + Pagerduty []*ConfigGrafanacontactsPagerduty `json:"pagerduty,omitempty" toml:"pagerduty,omitempty"` + + Discord []*ConfigGrafanacontactsDiscord `json:"discord,omitempty" toml:"discord,omitempty"` + + Slack []*ConfigGrafanacontactsSlack `json:"slack,omitempty" toml:"slack,omitempty"` + + Webhook []*ConfigGrafanacontactsWebhook `json:"webhook,omitempty" toml:"webhook,omitempty"` +} + +func (o *ConfigGrafanaContacts) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + if o.Emails != nil { + m["emails"] = o.Emails + } + if o.Pagerduty != nil { + m["pagerduty"] = o.Pagerduty + } + if o.Discord != nil { + m["discord"] = o.Discord + } + if o.Slack != nil { + m["slack"] = o.Slack + } + if o.Webhook != nil { + m["webhook"] = o.Webhook + } + return json.Marshal(m) +} + +func (o *ConfigGrafanaContacts) GetEmails() []string { + if o == nil { + o = &ConfigGrafanaContacts{} + } + return o.Emails +} + +func (o *ConfigGrafanaContacts) GetPagerduty() []*ConfigGrafanacontactsPagerduty { + if o == nil { + o = &ConfigGrafanaContacts{} + } + return o.Pagerduty +} + +func (o *ConfigGrafanaContacts) GetDiscord() []*ConfigGrafanacontactsDiscord { + if o == nil { + o = &ConfigGrafanaContacts{} + } + return o.Discord +} + +func (o *ConfigGrafanaContacts) GetSlack() []*ConfigGrafanacontactsSlack { + if o == nil { + o = &ConfigGrafanaContacts{} + } + return o.Slack +} + +func (o *ConfigGrafanaContacts) GetWebhook() []*ConfigGrafanacontactsWebhook { + if o == nil { + o = &ConfigGrafanaContacts{} + } + return o.Webhook +} + +type ConfigGrafanaContactsUpdateInput struct { + Emails []string `json:"emails,omitempty" toml:"emails,omitempty"` + IsSetEmails bool `json:"-"` + Pagerduty []*ConfigGrafanacontactsPagerdutyUpdateInput `json:"pagerduty,omitempty" toml:"pagerduty,omitempty"` + IsSetPagerduty bool `json:"-"` + Discord []*ConfigGrafanacontactsDiscordUpdateInput `json:"discord,omitempty" toml:"discord,omitempty"` + IsSetDiscord bool `json:"-"` + Slack []*ConfigGrafanacontactsSlackUpdateInput `json:"slack,omitempty" toml:"slack,omitempty"` + IsSetSlack bool `json:"-"` + Webhook []*ConfigGrafanacontactsWebhookUpdateInput `json:"webhook,omitempty" toml:"webhook,omitempty"` + IsSetWebhook bool `json:"-"` +} + +func (o *ConfigGrafanaContactsUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["emails"]; ok { + if v != nil { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var l []string + if err := json.Unmarshal(b, &l); err != nil { + return err + } + o.Emails = l + } + o.IsSetEmails = true + } + if v, ok := m["pagerduty"]; ok { + if v != nil { + x, ok := v.([]interface{}) + if !ok { + return fmt.Errorf("Pagerduty must be []interface{}, got %T", v) + } + + l := make([]*ConfigGrafanacontactsPagerdutyUpdateInput, len(x)) + for i, vv := range x { + t := &ConfigGrafanacontactsPagerdutyUpdateInput{} + if err := t.UnmarshalGQL(vv); err != nil { + return err + } + l[i] = t + } + o.Pagerduty = l + } + o.IsSetPagerduty = true + } + if v, ok := m["discord"]; ok { + if v != nil { + x, ok := v.([]interface{}) + if !ok { + return fmt.Errorf("Discord must be []interface{}, got %T", v) + } + + l := make([]*ConfigGrafanacontactsDiscordUpdateInput, len(x)) + for i, vv := range x { + t := &ConfigGrafanacontactsDiscordUpdateInput{} + if err := t.UnmarshalGQL(vv); err != nil { + return err + } + l[i] = t + } + o.Discord = l + } + o.IsSetDiscord = true + } + if v, ok := m["slack"]; ok { + if v != nil { + x, ok := v.([]interface{}) + if !ok { + return fmt.Errorf("Slack must be []interface{}, got %T", v) + } + + l := make([]*ConfigGrafanacontactsSlackUpdateInput, len(x)) + for i, vv := range x { + t := &ConfigGrafanacontactsSlackUpdateInput{} + if err := t.UnmarshalGQL(vv); err != nil { + return err + } + l[i] = t + } + o.Slack = l + } + o.IsSetSlack = true + } + if v, ok := m["webhook"]; ok { + if v != nil { + x, ok := v.([]interface{}) + if !ok { + return fmt.Errorf("Webhook must be []interface{}, got %T", v) + } + + l := make([]*ConfigGrafanacontactsWebhookUpdateInput, len(x)) + for i, vv := range x { + t := &ConfigGrafanacontactsWebhookUpdateInput{} + if err := t.UnmarshalGQL(vv); err != nil { + return err + } + l[i] = t + } + o.Webhook = l + } + o.IsSetWebhook = true + } + + return nil +} + +func (o *ConfigGrafanaContactsUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanaContactsUpdateInput) GetEmails() []string { + if o == nil { + o = &ConfigGrafanaContactsUpdateInput{} + } + return o.Emails +} + +func (o *ConfigGrafanaContactsUpdateInput) GetPagerduty() []*ConfigGrafanacontactsPagerdutyUpdateInput { + if o == nil { + o = &ConfigGrafanaContactsUpdateInput{} + } + return o.Pagerduty +} + +func (o *ConfigGrafanaContactsUpdateInput) GetDiscord() []*ConfigGrafanacontactsDiscordUpdateInput { + if o == nil { + o = &ConfigGrafanaContactsUpdateInput{} + } + return o.Discord +} + +func (o *ConfigGrafanaContactsUpdateInput) GetSlack() []*ConfigGrafanacontactsSlackUpdateInput { + if o == nil { + o = &ConfigGrafanaContactsUpdateInput{} + } + return o.Slack +} + +func (o *ConfigGrafanaContactsUpdateInput) GetWebhook() []*ConfigGrafanacontactsWebhookUpdateInput { + if o == nil { + o = &ConfigGrafanaContactsUpdateInput{} + } + return o.Webhook +} + +func (s *ConfigGrafanaContacts) Update(v *ConfigGrafanaContactsUpdateInput) { + if v == nil { + return + } + if v.IsSetEmails || v.Emails != nil { + if v.Emails == nil { + s.Emails = nil + } else { + s.Emails = make([]string, len(v.Emails)) + for i, e := range v.Emails { + s.Emails[i] = e + } + } + } + if v.IsSetPagerduty || v.Pagerduty != nil { + if v.Pagerduty == nil { + s.Pagerduty = nil + } else { + s.Pagerduty = make([]*ConfigGrafanacontactsPagerduty, len(v.Pagerduty)) + for i, e := range v.Pagerduty { + v := &ConfigGrafanacontactsPagerduty{} + v.Update(e) + s.Pagerduty[i] = v + } + } + } + if v.IsSetDiscord || v.Discord != nil { + if v.Discord == nil { + s.Discord = nil + } else { + s.Discord = make([]*ConfigGrafanacontactsDiscord, len(v.Discord)) + for i, e := range v.Discord { + v := &ConfigGrafanacontactsDiscord{} + v.Update(e) + s.Discord[i] = v + } + } + } + if v.IsSetSlack || v.Slack != nil { + if v.Slack == nil { + s.Slack = nil + } else { + s.Slack = make([]*ConfigGrafanacontactsSlack, len(v.Slack)) + for i, e := range v.Slack { + v := &ConfigGrafanacontactsSlack{} + v.Update(e) + s.Slack[i] = v + } + } + } + if v.IsSetWebhook || v.Webhook != nil { + if v.Webhook == nil { + s.Webhook = nil + } else { + s.Webhook = make([]*ConfigGrafanacontactsWebhook, len(v.Webhook)) + for i, e := range v.Webhook { + v := &ConfigGrafanacontactsWebhook{} + v.Update(e) + s.Webhook[i] = v + } + } + } +} + +type ConfigGrafanaContactsInsertInput struct { + Emails []string `json:"emails,omitempty" toml:"emails,omitempty"` + Pagerduty []*ConfigGrafanacontactsPagerdutyInsertInput `json:"pagerduty,omitempty" toml:"pagerduty,omitempty"` + Discord []*ConfigGrafanacontactsDiscordInsertInput `json:"discord,omitempty" toml:"discord,omitempty"` + Slack []*ConfigGrafanacontactsSlackInsertInput `json:"slack,omitempty" toml:"slack,omitempty"` + Webhook []*ConfigGrafanacontactsWebhookInsertInput `json:"webhook,omitempty" toml:"webhook,omitempty"` +} + +func (o *ConfigGrafanaContactsInsertInput) GetEmails() []string { + if o == nil { + o = &ConfigGrafanaContactsInsertInput{} + } + return o.Emails +} + +func (o *ConfigGrafanaContactsInsertInput) GetPagerduty() []*ConfigGrafanacontactsPagerdutyInsertInput { + if o == nil { + o = &ConfigGrafanaContactsInsertInput{} + } + return o.Pagerduty +} + +func (o *ConfigGrafanaContactsInsertInput) GetDiscord() []*ConfigGrafanacontactsDiscordInsertInput { + if o == nil { + o = &ConfigGrafanaContactsInsertInput{} + } + return o.Discord +} + +func (o *ConfigGrafanaContactsInsertInput) GetSlack() []*ConfigGrafanacontactsSlackInsertInput { + if o == nil { + o = &ConfigGrafanaContactsInsertInput{} + } + return o.Slack +} + +func (o *ConfigGrafanaContactsInsertInput) GetWebhook() []*ConfigGrafanacontactsWebhookInsertInput { + if o == nil { + o = &ConfigGrafanaContactsInsertInput{} + } + return o.Webhook +} + +func (s *ConfigGrafanaContacts) Insert(v *ConfigGrafanaContactsInsertInput) { + if v.Emails != nil { + s.Emails = make([]string, len(v.Emails)) + for i, e := range v.Emails { + s.Emails[i] = e + } + } + if v.Pagerduty != nil { + s.Pagerduty = make([]*ConfigGrafanacontactsPagerduty, len(v.Pagerduty)) + for i, e := range v.Pagerduty { + v := &ConfigGrafanacontactsPagerduty{} + v.Insert(e) + s.Pagerduty[i] = v + } + } + if v.Discord != nil { + s.Discord = make([]*ConfigGrafanacontactsDiscord, len(v.Discord)) + for i, e := range v.Discord { + v := &ConfigGrafanacontactsDiscord{} + v.Insert(e) + s.Discord[i] = v + } + } + if v.Slack != nil { + s.Slack = make([]*ConfigGrafanacontactsSlack, len(v.Slack)) + for i, e := range v.Slack { + v := &ConfigGrafanacontactsSlack{} + v.Insert(e) + s.Slack[i] = v + } + } + if v.Webhook != nil { + s.Webhook = make([]*ConfigGrafanacontactsWebhook, len(v.Webhook)) + for i, e := range v.Webhook { + v := &ConfigGrafanacontactsWebhook{} + v.Insert(e) + s.Webhook[i] = v + } + } +} + +func (s *ConfigGrafanaContacts) Clone() *ConfigGrafanaContacts { + if s == nil { + return nil + } + + v := &ConfigGrafanaContacts{} + if s.Emails != nil { + v.Emails = make([]string, len(s.Emails)) + copy(v.Emails, s.Emails) + } + if s.Pagerduty != nil { + v.Pagerduty = make([]*ConfigGrafanacontactsPagerduty, len(s.Pagerduty)) + for i, e := range s.Pagerduty { + v.Pagerduty[i] = e.Clone() + } + } + if s.Discord != nil { + v.Discord = make([]*ConfigGrafanacontactsDiscord, len(s.Discord)) + for i, e := range s.Discord { + v.Discord[i] = e.Clone() + } + } + if s.Slack != nil { + v.Slack = make([]*ConfigGrafanacontactsSlack, len(s.Slack)) + for i, e := range s.Slack { + v.Slack[i] = e.Clone() + } + } + if s.Webhook != nil { + v.Webhook = make([]*ConfigGrafanacontactsWebhook, len(s.Webhook)) + for i, e := range s.Webhook { + v.Webhook[i] = e.Clone() + } + } + return v +} + +type ConfigGrafanaContactsComparisonExp struct { + And []*ConfigGrafanaContactsComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanaContactsComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanaContactsComparisonExp `json:"_or,omitempty"` + Emails *ConfigStringComparisonExp `json:"emails,omitempty"` + Pagerduty *ConfigGrafanacontactsPagerdutyComparisonExp `json:"pagerduty,omitempty"` + Discord *ConfigGrafanacontactsDiscordComparisonExp `json:"discord,omitempty"` + Slack *ConfigGrafanacontactsSlackComparisonExp `json:"slack,omitempty"` + Webhook *ConfigGrafanacontactsWebhookComparisonExp `json:"webhook,omitempty"` +} + +func (exp *ConfigGrafanaContactsComparisonExp) Matches(o *ConfigGrafanaContacts) bool { + if exp == nil { + return true + } + + if o == nil { + o = &ConfigGrafanaContacts{ + Emails: []string{}, + Pagerduty: []*ConfigGrafanacontactsPagerduty{}, + Discord: []*ConfigGrafanacontactsDiscord{}, + Slack: []*ConfigGrafanacontactsSlack{}, + Webhook: []*ConfigGrafanacontactsWebhook{}, + } + } + { + found := false + for _, o := range o.Emails { + if exp.Emails.Matches(o) { + found = true + break + } + } + if !found && exp.Emails != nil { + return false + } + } + { + found := false + for _, o := range o.Pagerduty { + if exp.Pagerduty.Matches(o) { + found = true + break + } + } + if !found && exp.Pagerduty != nil { + return false + } + } + { + found := false + for _, o := range o.Discord { + if exp.Discord.Matches(o) { + found = true + break + } + } + if !found && exp.Discord != nil { + return false + } + } + { + found := false + for _, o := range o.Slack { + if exp.Slack.Matches(o) { + found = true + break + } + } + if !found && exp.Slack != nil { + return false + } + } + { + found := false + for _, o := range o.Webhook { + if exp.Webhook.Matches(o) { + found = true + break + } + } + if !found && exp.Webhook != nil { + return false + } + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanaSmtp struct { + Host string `json:"host" toml:"host"` + + Port uint16 `json:"port" toml:"port"` + + Sender string `json:"sender" toml:"sender"` + + User string `json:"user" toml:"user"` + + Password string `json:"password" toml:"password"` +} + +func (o *ConfigGrafanaSmtp) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + m["host"] = o.Host + m["port"] = o.Port + m["sender"] = o.Sender + m["user"] = o.User + m["password"] = o.Password + return json.Marshal(m) +} + +func (o *ConfigGrafanaSmtp) GetHost() string { + if o == nil { + o = &ConfigGrafanaSmtp{} + } + return o.Host +} + +func (o *ConfigGrafanaSmtp) GetPort() uint16 { + if o == nil { + o = &ConfigGrafanaSmtp{} + } + return o.Port +} + +func (o *ConfigGrafanaSmtp) GetSender() string { + if o == nil { + o = &ConfigGrafanaSmtp{} + } + return o.Sender +} + +func (o *ConfigGrafanaSmtp) GetUser() string { + if o == nil { + o = &ConfigGrafanaSmtp{} + } + return o.User +} + +func (o *ConfigGrafanaSmtp) GetPassword() string { + if o == nil { + o = &ConfigGrafanaSmtp{} + } + return o.Password +} + +type ConfigGrafanaSmtpUpdateInput struct { + Host *string `json:"host,omitempty" toml:"host,omitempty"` + IsSetHost bool `json:"-"` + Port *uint16 `json:"port,omitempty" toml:"port,omitempty"` + IsSetPort bool `json:"-"` + Sender *string `json:"sender,omitempty" toml:"sender,omitempty"` + IsSetSender bool `json:"-"` + User *string `json:"user,omitempty" toml:"user,omitempty"` + IsSetUser bool `json:"-"` + Password *string `json:"password,omitempty" toml:"password,omitempty"` + IsSetPassword bool `json:"-"` +} + +func (o *ConfigGrafanaSmtpUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["host"]; ok { + if v == nil { + o.Host = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Host = &x + } + o.IsSetHost = true + } + if v, ok := m["port"]; ok { + if v == nil { + o.Port = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x uint16 + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Port = &x + } + o.IsSetPort = true + } + if v, ok := m["sender"]; ok { + if v == nil { + o.Sender = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Sender = &x + } + o.IsSetSender = true + } + if v, ok := m["user"]; ok { + if v == nil { + o.User = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.User = &x + } + o.IsSetUser = true + } + if v, ok := m["password"]; ok { + if v == nil { + o.Password = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Password = &x + } + o.IsSetPassword = true + } + + return nil +} + +func (o *ConfigGrafanaSmtpUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanaSmtpUpdateInput) GetHost() *string { + if o == nil { + o = &ConfigGrafanaSmtpUpdateInput{} + } + return o.Host +} + +func (o *ConfigGrafanaSmtpUpdateInput) GetPort() *uint16 { + if o == nil { + o = &ConfigGrafanaSmtpUpdateInput{} + } + return o.Port +} + +func (o *ConfigGrafanaSmtpUpdateInput) GetSender() *string { + if o == nil { + o = &ConfigGrafanaSmtpUpdateInput{} + } + return o.Sender +} + +func (o *ConfigGrafanaSmtpUpdateInput) GetUser() *string { + if o == nil { + o = &ConfigGrafanaSmtpUpdateInput{} + } + return o.User +} + +func (o *ConfigGrafanaSmtpUpdateInput) GetPassword() *string { + if o == nil { + o = &ConfigGrafanaSmtpUpdateInput{} + } + return o.Password +} + +func (s *ConfigGrafanaSmtp) Update(v *ConfigGrafanaSmtpUpdateInput) { + if v == nil { + return + } + if v.IsSetHost || v.Host != nil { + if v.Host != nil { + s.Host = *v.Host + } + } + if v.IsSetPort || v.Port != nil { if v.Port != nil { s.Port = *v.Port } } - if v.IsSetSender || v.Sender != nil { - if v.Sender != nil { - s.Sender = *v.Sender + if v.IsSetSender || v.Sender != nil { + if v.Sender != nil { + s.Sender = *v.Sender + } + } + if v.IsSetUser || v.User != nil { + if v.User != nil { + s.User = *v.User + } + } + if v.IsSetPassword || v.Password != nil { + if v.Password != nil { + s.Password = *v.Password + } + } +} + +type ConfigGrafanaSmtpInsertInput struct { + Host string `json:"host,omitempty" toml:"host,omitempty"` + Port uint16 `json:"port,omitempty" toml:"port,omitempty"` + Sender string `json:"sender,omitempty" toml:"sender,omitempty"` + User string `json:"user,omitempty" toml:"user,omitempty"` + Password string `json:"password,omitempty" toml:"password,omitempty"` +} + +func (o *ConfigGrafanaSmtpInsertInput) GetHost() string { + if o == nil { + o = &ConfigGrafanaSmtpInsertInput{} + } + return o.Host +} + +func (o *ConfigGrafanaSmtpInsertInput) GetPort() uint16 { + if o == nil { + o = &ConfigGrafanaSmtpInsertInput{} + } + return o.Port +} + +func (o *ConfigGrafanaSmtpInsertInput) GetSender() string { + if o == nil { + o = &ConfigGrafanaSmtpInsertInput{} + } + return o.Sender +} + +func (o *ConfigGrafanaSmtpInsertInput) GetUser() string { + if o == nil { + o = &ConfigGrafanaSmtpInsertInput{} + } + return o.User +} + +func (o *ConfigGrafanaSmtpInsertInput) GetPassword() string { + if o == nil { + o = &ConfigGrafanaSmtpInsertInput{} + } + return o.Password +} + +func (s *ConfigGrafanaSmtp) Insert(v *ConfigGrafanaSmtpInsertInput) { + s.Host = v.Host + s.Port = v.Port + s.Sender = v.Sender + s.User = v.User + s.Password = v.Password +} + +func (s *ConfigGrafanaSmtp) Clone() *ConfigGrafanaSmtp { + if s == nil { + return nil + } + + v := &ConfigGrafanaSmtp{} + v.Host = s.Host + v.Port = s.Port + v.Sender = s.Sender + v.User = s.User + v.Password = s.Password + return v +} + +type ConfigGrafanaSmtpComparisonExp struct { + And []*ConfigGrafanaSmtpComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanaSmtpComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanaSmtpComparisonExp `json:"_or,omitempty"` + Host *ConfigStringComparisonExp `json:"host,omitempty"` + Port *ConfigPortComparisonExp `json:"port,omitempty"` + Sender *ConfigStringComparisonExp `json:"sender,omitempty"` + User *ConfigStringComparisonExp `json:"user,omitempty"` + Password *ConfigStringComparisonExp `json:"password,omitempty"` +} + +func (exp *ConfigGrafanaSmtpComparisonExp) Matches(o *ConfigGrafanaSmtp) bool { + if exp == nil { + return true + } + + if o == nil { + o = &ConfigGrafanaSmtp{} + } + if !exp.Host.Matches(o.Host) { + return false + } + if !exp.Port.Matches(o.Port) { + return false + } + if !exp.Sender.Matches(o.Sender) { + return false + } + if !exp.User.Matches(o.User) { + return false + } + if !exp.Password.Matches(o.Password) { + return false + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanacontactsDiscord struct { + Url string `json:"url" toml:"url"` + + AvatarUrl string `json:"avatarUrl" toml:"avatarUrl"` +} + +func (o *ConfigGrafanacontactsDiscord) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + m["url"] = o.Url + m["avatarUrl"] = o.AvatarUrl + return json.Marshal(m) +} + +func (o *ConfigGrafanacontactsDiscord) GetUrl() string { + if o == nil { + o = &ConfigGrafanacontactsDiscord{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsDiscord) GetAvatarUrl() string { + if o == nil { + o = &ConfigGrafanacontactsDiscord{} + } + return o.AvatarUrl +} + +type ConfigGrafanacontactsDiscordUpdateInput struct { + Url *string `json:"url,omitempty" toml:"url,omitempty"` + IsSetUrl bool `json:"-"` + AvatarUrl *string `json:"avatarUrl,omitempty" toml:"avatarUrl,omitempty"` + IsSetAvatarUrl bool `json:"-"` +} + +func (o *ConfigGrafanacontactsDiscordUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["url"]; ok { + if v == nil { + o.Url = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Url = &x + } + o.IsSetUrl = true + } + if v, ok := m["avatarUrl"]; ok { + if v == nil { + o.AvatarUrl = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.AvatarUrl = &x + } + o.IsSetAvatarUrl = true + } + + return nil +} + +func (o *ConfigGrafanacontactsDiscordUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanacontactsDiscordUpdateInput) GetUrl() *string { + if o == nil { + o = &ConfigGrafanacontactsDiscordUpdateInput{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsDiscordUpdateInput) GetAvatarUrl() *string { + if o == nil { + o = &ConfigGrafanacontactsDiscordUpdateInput{} + } + return o.AvatarUrl +} + +func (s *ConfigGrafanacontactsDiscord) Update(v *ConfigGrafanacontactsDiscordUpdateInput) { + if v == nil { + return + } + if v.IsSetUrl || v.Url != nil { + if v.Url != nil { + s.Url = *v.Url + } + } + if v.IsSetAvatarUrl || v.AvatarUrl != nil { + if v.AvatarUrl != nil { + s.AvatarUrl = *v.AvatarUrl + } + } +} + +type ConfigGrafanacontactsDiscordInsertInput struct { + Url string `json:"url,omitempty" toml:"url,omitempty"` + AvatarUrl string `json:"avatarUrl,omitempty" toml:"avatarUrl,omitempty"` +} + +func (o *ConfigGrafanacontactsDiscordInsertInput) GetUrl() string { + if o == nil { + o = &ConfigGrafanacontactsDiscordInsertInput{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsDiscordInsertInput) GetAvatarUrl() string { + if o == nil { + o = &ConfigGrafanacontactsDiscordInsertInput{} + } + return o.AvatarUrl +} + +func (s *ConfigGrafanacontactsDiscord) Insert(v *ConfigGrafanacontactsDiscordInsertInput) { + s.Url = v.Url + s.AvatarUrl = v.AvatarUrl +} + +func (s *ConfigGrafanacontactsDiscord) Clone() *ConfigGrafanacontactsDiscord { + if s == nil { + return nil + } + + v := &ConfigGrafanacontactsDiscord{} + v.Url = s.Url + v.AvatarUrl = s.AvatarUrl + return v +} + +type ConfigGrafanacontactsDiscordComparisonExp struct { + And []*ConfigGrafanacontactsDiscordComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanacontactsDiscordComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanacontactsDiscordComparisonExp `json:"_or,omitempty"` + Url *ConfigStringComparisonExp `json:"url,omitempty"` + AvatarUrl *ConfigStringComparisonExp `json:"avatarUrl,omitempty"` +} + +func (exp *ConfigGrafanacontactsDiscordComparisonExp) Matches(o *ConfigGrafanacontactsDiscord) bool { + if exp == nil { + return true + } + + if o == nil { + o = &ConfigGrafanacontactsDiscord{} + } + if !exp.Url.Matches(o.Url) { + return false + } + if !exp.AvatarUrl.Matches(o.AvatarUrl) { + return false + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanacontactsPagerduty struct { + IntegrationKey string `json:"integrationKey" toml:"integrationKey"` + + Severity string `json:"severity" toml:"severity"` + + Class string `json:"class" toml:"class"` + + Component string `json:"component" toml:"component"` + + Group string `json:"group" toml:"group"` +} + +func (o *ConfigGrafanacontactsPagerduty) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + m["integrationKey"] = o.IntegrationKey + m["severity"] = o.Severity + m["class"] = o.Class + m["component"] = o.Component + m["group"] = o.Group + return json.Marshal(m) +} + +func (o *ConfigGrafanacontactsPagerduty) GetIntegrationKey() string { + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + return o.IntegrationKey +} + +func (o *ConfigGrafanacontactsPagerduty) GetSeverity() string { + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + return o.Severity +} + +func (o *ConfigGrafanacontactsPagerduty) GetClass() string { + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + return o.Class +} + +func (o *ConfigGrafanacontactsPagerduty) GetComponent() string { + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + return o.Component +} + +func (o *ConfigGrafanacontactsPagerduty) GetGroup() string { + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + return o.Group +} + +type ConfigGrafanacontactsPagerdutyUpdateInput struct { + IntegrationKey *string `json:"integrationKey,omitempty" toml:"integrationKey,omitempty"` + IsSetIntegrationKey bool `json:"-"` + Severity *string `json:"severity,omitempty" toml:"severity,omitempty"` + IsSetSeverity bool `json:"-"` + Class *string `json:"class,omitempty" toml:"class,omitempty"` + IsSetClass bool `json:"-"` + Component *string `json:"component,omitempty" toml:"component,omitempty"` + IsSetComponent bool `json:"-"` + Group *string `json:"group,omitempty" toml:"group,omitempty"` + IsSetGroup bool `json:"-"` +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["integrationKey"]; ok { + if v == nil { + o.IntegrationKey = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.IntegrationKey = &x + } + o.IsSetIntegrationKey = true + } + if v, ok := m["severity"]; ok { + if v == nil { + o.Severity = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Severity = &x + } + o.IsSetSeverity = true + } + if v, ok := m["class"]; ok { + if v == nil { + o.Class = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Class = &x + } + o.IsSetClass = true + } + if v, ok := m["component"]; ok { + if v == nil { + o.Component = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Component = &x + } + o.IsSetComponent = true + } + if v, ok := m["group"]; ok { + if v == nil { + o.Group = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Group = &x + } + o.IsSetGroup = true + } + + return nil +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) GetIntegrationKey() *string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyUpdateInput{} + } + return o.IntegrationKey +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) GetSeverity() *string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyUpdateInput{} + } + return o.Severity +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) GetClass() *string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyUpdateInput{} + } + return o.Class +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) GetComponent() *string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyUpdateInput{} + } + return o.Component +} + +func (o *ConfigGrafanacontactsPagerdutyUpdateInput) GetGroup() *string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyUpdateInput{} + } + return o.Group +} + +func (s *ConfigGrafanacontactsPagerduty) Update(v *ConfigGrafanacontactsPagerdutyUpdateInput) { + if v == nil { + return + } + if v.IsSetIntegrationKey || v.IntegrationKey != nil { + if v.IntegrationKey != nil { + s.IntegrationKey = *v.IntegrationKey + } + } + if v.IsSetSeverity || v.Severity != nil { + if v.Severity != nil { + s.Severity = *v.Severity + } + } + if v.IsSetClass || v.Class != nil { + if v.Class != nil { + s.Class = *v.Class + } + } + if v.IsSetComponent || v.Component != nil { + if v.Component != nil { + s.Component = *v.Component + } + } + if v.IsSetGroup || v.Group != nil { + if v.Group != nil { + s.Group = *v.Group + } + } +} + +type ConfigGrafanacontactsPagerdutyInsertInput struct { + IntegrationKey string `json:"integrationKey,omitempty" toml:"integrationKey,omitempty"` + Severity string `json:"severity,omitempty" toml:"severity,omitempty"` + Class string `json:"class,omitempty" toml:"class,omitempty"` + Component string `json:"component,omitempty" toml:"component,omitempty"` + Group string `json:"group,omitempty" toml:"group,omitempty"` +} + +func (o *ConfigGrafanacontactsPagerdutyInsertInput) GetIntegrationKey() string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyInsertInput{} + } + return o.IntegrationKey +} + +func (o *ConfigGrafanacontactsPagerdutyInsertInput) GetSeverity() string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyInsertInput{} + } + return o.Severity +} + +func (o *ConfigGrafanacontactsPagerdutyInsertInput) GetClass() string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyInsertInput{} + } + return o.Class +} + +func (o *ConfigGrafanacontactsPagerdutyInsertInput) GetComponent() string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyInsertInput{} + } + return o.Component +} + +func (o *ConfigGrafanacontactsPagerdutyInsertInput) GetGroup() string { + if o == nil { + o = &ConfigGrafanacontactsPagerdutyInsertInput{} + } + return o.Group +} + +func (s *ConfigGrafanacontactsPagerduty) Insert(v *ConfigGrafanacontactsPagerdutyInsertInput) { + s.IntegrationKey = v.IntegrationKey + s.Severity = v.Severity + s.Class = v.Class + s.Component = v.Component + s.Group = v.Group +} + +func (s *ConfigGrafanacontactsPagerduty) Clone() *ConfigGrafanacontactsPagerduty { + if s == nil { + return nil + } + + v := &ConfigGrafanacontactsPagerduty{} + v.IntegrationKey = s.IntegrationKey + v.Severity = s.Severity + v.Class = s.Class + v.Component = s.Component + v.Group = s.Group + return v +} + +type ConfigGrafanacontactsPagerdutyComparisonExp struct { + And []*ConfigGrafanacontactsPagerdutyComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanacontactsPagerdutyComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanacontactsPagerdutyComparisonExp `json:"_or,omitempty"` + IntegrationKey *ConfigStringComparisonExp `json:"integrationKey,omitempty"` + Severity *ConfigStringComparisonExp `json:"severity,omitempty"` + Class *ConfigStringComparisonExp `json:"class,omitempty"` + Component *ConfigStringComparisonExp `json:"component,omitempty"` + Group *ConfigStringComparisonExp `json:"group,omitempty"` +} + +func (exp *ConfigGrafanacontactsPagerdutyComparisonExp) Matches(o *ConfigGrafanacontactsPagerduty) bool { + if exp == nil { + return true + } + + if o == nil { + o = &ConfigGrafanacontactsPagerduty{} + } + if !exp.IntegrationKey.Matches(o.IntegrationKey) { + return false + } + if !exp.Severity.Matches(o.Severity) { + return false + } + if !exp.Class.Matches(o.Class) { + return false + } + if !exp.Component.Matches(o.Component) { + return false + } + if !exp.Group.Matches(o.Group) { + return false + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanacontactsSlack struct { + Recipient string `json:"recipient" toml:"recipient"` + + Token string `json:"token" toml:"token"` + + Username string `json:"username" toml:"username"` + + IconEmoji string `json:"iconEmoji" toml:"iconEmoji"` + + IconURL string `json:"iconURL" toml:"iconURL"` + + MentionUsers []string `json:"mentionUsers,omitempty" toml:"mentionUsers,omitempty"` + + MentionGroups []string `json:"mentionGroups,omitempty" toml:"mentionGroups,omitempty"` + + MentionChannel string `json:"mentionChannel" toml:"mentionChannel"` + + Url string `json:"url" toml:"url"` + + EndpointURL string `json:"endpointURL" toml:"endpointURL"` +} + +func (o *ConfigGrafanacontactsSlack) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + m["recipient"] = o.Recipient + m["token"] = o.Token + m["username"] = o.Username + m["iconEmoji"] = o.IconEmoji + m["iconURL"] = o.IconURL + if o.MentionUsers != nil { + m["mentionUsers"] = o.MentionUsers + } + if o.MentionGroups != nil { + m["mentionGroups"] = o.MentionGroups + } + m["mentionChannel"] = o.MentionChannel + m["url"] = o.Url + m["endpointURL"] = o.EndpointURL + return json.Marshal(m) +} + +func (o *ConfigGrafanacontactsSlack) GetRecipient() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.Recipient +} + +func (o *ConfigGrafanacontactsSlack) GetToken() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.Token +} + +func (o *ConfigGrafanacontactsSlack) GetUsername() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.Username +} + +func (o *ConfigGrafanacontactsSlack) GetIconEmoji() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.IconEmoji +} + +func (o *ConfigGrafanacontactsSlack) GetIconURL() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.IconURL +} + +func (o *ConfigGrafanacontactsSlack) GetMentionUsers() []string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.MentionUsers +} + +func (o *ConfigGrafanacontactsSlack) GetMentionGroups() []string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.MentionGroups +} + +func (o *ConfigGrafanacontactsSlack) GetMentionChannel() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.MentionChannel +} + +func (o *ConfigGrafanacontactsSlack) GetUrl() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsSlack) GetEndpointURL() string { + if o == nil { + o = &ConfigGrafanacontactsSlack{} + } + return o.EndpointURL +} + +type ConfigGrafanacontactsSlackUpdateInput struct { + Recipient *string `json:"recipient,omitempty" toml:"recipient,omitempty"` + IsSetRecipient bool `json:"-"` + Token *string `json:"token,omitempty" toml:"token,omitempty"` + IsSetToken bool `json:"-"` + Username *string `json:"username,omitempty" toml:"username,omitempty"` + IsSetUsername bool `json:"-"` + IconEmoji *string `json:"iconEmoji,omitempty" toml:"iconEmoji,omitempty"` + IsSetIconEmoji bool `json:"-"` + IconURL *string `json:"iconURL,omitempty" toml:"iconURL,omitempty"` + IsSetIconURL bool `json:"-"` + MentionUsers []string `json:"mentionUsers,omitempty" toml:"mentionUsers,omitempty"` + IsSetMentionUsers bool `json:"-"` + MentionGroups []string `json:"mentionGroups,omitempty" toml:"mentionGroups,omitempty"` + IsSetMentionGroups bool `json:"-"` + MentionChannel *string `json:"mentionChannel,omitempty" toml:"mentionChannel,omitempty"` + IsSetMentionChannel bool `json:"-"` + Url *string `json:"url,omitempty" toml:"url,omitempty"` + IsSetUrl bool `json:"-"` + EndpointURL *string `json:"endpointURL,omitempty" toml:"endpointURL,omitempty"` + IsSetEndpointURL bool `json:"-"` +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["recipient"]; ok { + if v == nil { + o.Recipient = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Recipient = &x + } + o.IsSetRecipient = true + } + if v, ok := m["token"]; ok { + if v == nil { + o.Token = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Token = &x + } + o.IsSetToken = true + } + if v, ok := m["username"]; ok { + if v == nil { + o.Username = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Username = &x + } + o.IsSetUsername = true + } + if v, ok := m["iconEmoji"]; ok { + if v == nil { + o.IconEmoji = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.IconEmoji = &x + } + o.IsSetIconEmoji = true + } + if v, ok := m["iconURL"]; ok { + if v == nil { + o.IconURL = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.IconURL = &x + } + o.IsSetIconURL = true + } + if v, ok := m["mentionUsers"]; ok { + if v != nil { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var l []string + if err := json.Unmarshal(b, &l); err != nil { + return err + } + o.MentionUsers = l + } + o.IsSetMentionUsers = true + } + if v, ok := m["mentionGroups"]; ok { + if v != nil { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var l []string + if err := json.Unmarshal(b, &l); err != nil { + return err + } + o.MentionGroups = l + } + o.IsSetMentionGroups = true + } + if v, ok := m["mentionChannel"]; ok { + if v == nil { + o.MentionChannel = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.MentionChannel = &x + } + o.IsSetMentionChannel = true + } + if v, ok := m["url"]; ok { + if v == nil { + o.Url = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Url = &x + } + o.IsSetUrl = true + } + if v, ok := m["endpointURL"]; ok { + if v == nil { + o.EndpointURL = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.EndpointURL = &x + } + o.IsSetEndpointURL = true + } + + return nil +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetRecipient() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.Recipient +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetToken() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.Token +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetUsername() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.Username +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetIconEmoji() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.IconEmoji +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetIconURL() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.IconURL +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetMentionUsers() []string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.MentionUsers +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetMentionGroups() []string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.MentionGroups +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetMentionChannel() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.MentionChannel +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetUrl() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsSlackUpdateInput) GetEndpointURL() *string { + if o == nil { + o = &ConfigGrafanacontactsSlackUpdateInput{} + } + return o.EndpointURL +} + +func (s *ConfigGrafanacontactsSlack) Update(v *ConfigGrafanacontactsSlackUpdateInput) { + if v == nil { + return + } + if v.IsSetRecipient || v.Recipient != nil { + if v.Recipient != nil { + s.Recipient = *v.Recipient + } + } + if v.IsSetToken || v.Token != nil { + if v.Token != nil { + s.Token = *v.Token + } + } + if v.IsSetUsername || v.Username != nil { + if v.Username != nil { + s.Username = *v.Username + } + } + if v.IsSetIconEmoji || v.IconEmoji != nil { + if v.IconEmoji != nil { + s.IconEmoji = *v.IconEmoji + } + } + if v.IsSetIconURL || v.IconURL != nil { + if v.IconURL != nil { + s.IconURL = *v.IconURL + } + } + if v.IsSetMentionUsers || v.MentionUsers != nil { + if v.MentionUsers == nil { + s.MentionUsers = nil + } else { + s.MentionUsers = make([]string, len(v.MentionUsers)) + for i, e := range v.MentionUsers { + s.MentionUsers[i] = e + } + } + } + if v.IsSetMentionGroups || v.MentionGroups != nil { + if v.MentionGroups == nil { + s.MentionGroups = nil + } else { + s.MentionGroups = make([]string, len(v.MentionGroups)) + for i, e := range v.MentionGroups { + s.MentionGroups[i] = e + } + } + } + if v.IsSetMentionChannel || v.MentionChannel != nil { + if v.MentionChannel != nil { + s.MentionChannel = *v.MentionChannel + } + } + if v.IsSetUrl || v.Url != nil { + if v.Url != nil { + s.Url = *v.Url + } + } + if v.IsSetEndpointURL || v.EndpointURL != nil { + if v.EndpointURL != nil { + s.EndpointURL = *v.EndpointURL + } + } +} + +type ConfigGrafanacontactsSlackInsertInput struct { + Recipient string `json:"recipient,omitempty" toml:"recipient,omitempty"` + Token string `json:"token,omitempty" toml:"token,omitempty"` + Username string `json:"username,omitempty" toml:"username,omitempty"` + IconEmoji string `json:"iconEmoji,omitempty" toml:"iconEmoji,omitempty"` + IconURL string `json:"iconURL,omitempty" toml:"iconURL,omitempty"` + MentionUsers []string `json:"mentionUsers,omitempty" toml:"mentionUsers,omitempty"` + MentionGroups []string `json:"mentionGroups,omitempty" toml:"mentionGroups,omitempty"` + MentionChannel string `json:"mentionChannel,omitempty" toml:"mentionChannel,omitempty"` + Url string `json:"url,omitempty" toml:"url,omitempty"` + EndpointURL string `json:"endpointURL,omitempty" toml:"endpointURL,omitempty"` +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetRecipient() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.Recipient +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetToken() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.Token +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetUsername() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.Username +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetIconEmoji() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.IconEmoji +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetIconURL() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.IconURL +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetMentionUsers() []string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.MentionUsers +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetMentionGroups() []string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.MentionGroups +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetMentionChannel() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.MentionChannel +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetUrl() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsSlackInsertInput) GetEndpointURL() string { + if o == nil { + o = &ConfigGrafanacontactsSlackInsertInput{} + } + return o.EndpointURL +} + +func (s *ConfigGrafanacontactsSlack) Insert(v *ConfigGrafanacontactsSlackInsertInput) { + s.Recipient = v.Recipient + s.Token = v.Token + s.Username = v.Username + s.IconEmoji = v.IconEmoji + s.IconURL = v.IconURL + if v.MentionUsers != nil { + s.MentionUsers = make([]string, len(v.MentionUsers)) + for i, e := range v.MentionUsers { + s.MentionUsers[i] = e + } + } + if v.MentionGroups != nil { + s.MentionGroups = make([]string, len(v.MentionGroups)) + for i, e := range v.MentionGroups { + s.MentionGroups[i] = e + } + } + s.MentionChannel = v.MentionChannel + s.Url = v.Url + s.EndpointURL = v.EndpointURL +} + +func (s *ConfigGrafanacontactsSlack) Clone() *ConfigGrafanacontactsSlack { + if s == nil { + return nil + } + + v := &ConfigGrafanacontactsSlack{} + v.Recipient = s.Recipient + v.Token = s.Token + v.Username = s.Username + v.IconEmoji = s.IconEmoji + v.IconURL = s.IconURL + if s.MentionUsers != nil { + v.MentionUsers = make([]string, len(s.MentionUsers)) + copy(v.MentionUsers, s.MentionUsers) + } + if s.MentionGroups != nil { + v.MentionGroups = make([]string, len(s.MentionGroups)) + copy(v.MentionGroups, s.MentionGroups) + } + v.MentionChannel = s.MentionChannel + v.Url = s.Url + v.EndpointURL = s.EndpointURL + return v +} + +type ConfigGrafanacontactsSlackComparisonExp struct { + And []*ConfigGrafanacontactsSlackComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanacontactsSlackComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanacontactsSlackComparisonExp `json:"_or,omitempty"` + Recipient *ConfigStringComparisonExp `json:"recipient,omitempty"` + Token *ConfigStringComparisonExp `json:"token,omitempty"` + Username *ConfigStringComparisonExp `json:"username,omitempty"` + IconEmoji *ConfigStringComparisonExp `json:"iconEmoji,omitempty"` + IconURL *ConfigStringComparisonExp `json:"iconURL,omitempty"` + MentionUsers *ConfigStringComparisonExp `json:"mentionUsers,omitempty"` + MentionGroups *ConfigStringComparisonExp `json:"mentionGroups,omitempty"` + MentionChannel *ConfigStringComparisonExp `json:"mentionChannel,omitempty"` + Url *ConfigStringComparisonExp `json:"url,omitempty"` + EndpointURL *ConfigStringComparisonExp `json:"endpointURL,omitempty"` +} + +func (exp *ConfigGrafanacontactsSlackComparisonExp) Matches(o *ConfigGrafanacontactsSlack) bool { + if exp == nil { + return true + } + + if o == nil { + o = &ConfigGrafanacontactsSlack{ + MentionUsers: []string{}, + MentionGroups: []string{}, + } + } + if !exp.Recipient.Matches(o.Recipient) { + return false + } + if !exp.Token.Matches(o.Token) { + return false + } + if !exp.Username.Matches(o.Username) { + return false + } + if !exp.IconEmoji.Matches(o.IconEmoji) { + return false + } + if !exp.IconURL.Matches(o.IconURL) { + return false + } + { + found := false + for _, o := range o.MentionUsers { + if exp.MentionUsers.Matches(o) { + found = true + break + } + } + if !found && exp.MentionUsers != nil { + return false + } + } + { + found := false + for _, o := range o.MentionGroups { + if exp.MentionGroups.Matches(o) { + found = true + break + } + } + if !found && exp.MentionGroups != nil { + return false + } + } + if !exp.MentionChannel.Matches(o.MentionChannel) { + return false + } + if !exp.Url.Matches(o.Url) { + return false + } + if !exp.EndpointURL.Matches(o.EndpointURL) { + return false + } + + if exp.And != nil && !all(exp.And, o) { + return false + } + + if exp.Or != nil && !or(exp.Or, o) { + return false + } + + if exp.Not != nil && exp.Not.Matches(o) { + return false + } + + return true +} + +type ConfigGrafanacontactsWebhook struct { + Url string `json:"url" toml:"url"` + + HttpMethod string `json:"httpMethod" toml:"httpMethod"` + + Username string `json:"username" toml:"username"` + + Password string `json:"password" toml:"password"` + + AuthorizationScheme string `json:"authorizationScheme" toml:"authorizationScheme"` + + AuthorizationCredentials string `json:"authorizationCredentials" toml:"authorizationCredentials"` + + MaxAlerts int `json:"maxAlerts" toml:"maxAlerts"` +} + +func (o *ConfigGrafanacontactsWebhook) MarshalJSON() ([]byte, error) { + m := make(map[string]any) + m["url"] = o.Url + m["httpMethod"] = o.HttpMethod + m["username"] = o.Username + m["password"] = o.Password + m["authorizationScheme"] = o.AuthorizationScheme + m["authorizationCredentials"] = o.AuthorizationCredentials + m["maxAlerts"] = o.MaxAlerts + return json.Marshal(m) +} + +func (o *ConfigGrafanacontactsWebhook) GetUrl() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsWebhook) GetHttpMethod() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.HttpMethod +} + +func (o *ConfigGrafanacontactsWebhook) GetUsername() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.Username +} + +func (o *ConfigGrafanacontactsWebhook) GetPassword() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.Password +} + +func (o *ConfigGrafanacontactsWebhook) GetAuthorizationScheme() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.AuthorizationScheme +} + +func (o *ConfigGrafanacontactsWebhook) GetAuthorizationCredentials() string { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.AuthorizationCredentials +} + +func (o *ConfigGrafanacontactsWebhook) GetMaxAlerts() int { + if o == nil { + o = &ConfigGrafanacontactsWebhook{} + } + return o.MaxAlerts +} + +type ConfigGrafanacontactsWebhookUpdateInput struct { + Url *string `json:"url,omitempty" toml:"url,omitempty"` + IsSetUrl bool `json:"-"` + HttpMethod *string `json:"httpMethod,omitempty" toml:"httpMethod,omitempty"` + IsSetHttpMethod bool `json:"-"` + Username *string `json:"username,omitempty" toml:"username,omitempty"` + IsSetUsername bool `json:"-"` + Password *string `json:"password,omitempty" toml:"password,omitempty"` + IsSetPassword bool `json:"-"` + AuthorizationScheme *string `json:"authorizationScheme,omitempty" toml:"authorizationScheme,omitempty"` + IsSetAuthorizationScheme bool `json:"-"` + AuthorizationCredentials *string `json:"authorizationCredentials,omitempty" toml:"authorizationCredentials,omitempty"` + IsSetAuthorizationCredentials bool `json:"-"` + MaxAlerts *int `json:"maxAlerts,omitempty" toml:"maxAlerts,omitempty"` + IsSetMaxAlerts bool `json:"-"` +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) UnmarshalGQL(v interface{}) error { + m, ok := v.(map[string]any) + if !ok { + return fmt.Errorf("must be map[string]interface{}, got %T", v) + } + if v, ok := m["url"]; ok { + if v == nil { + o.Url = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Url = &x + } + o.IsSetUrl = true + } + if v, ok := m["httpMethod"]; ok { + if v == nil { + o.HttpMethod = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.HttpMethod = &x } + o.IsSetHttpMethod = true } - if v.IsSetUser || v.User != nil { - if v.User != nil { - s.User = *v.User + if v, ok := m["username"]; ok { + if v == nil { + o.Username = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Username = &x + } + o.IsSetUsername = true + } + if v, ok := m["password"]; ok { + if v == nil { + o.Password = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.Password = &x + } + o.IsSetPassword = true + } + if v, ok := m["authorizationScheme"]; ok { + if v == nil { + o.AuthorizationScheme = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.AuthorizationScheme = &x + } + o.IsSetAuthorizationScheme = true + } + if v, ok := m["authorizationCredentials"]; ok { + if v == nil { + o.AuthorizationCredentials = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x string + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.AuthorizationCredentials = &x + } + o.IsSetAuthorizationCredentials = true + } + if v, ok := m["maxAlerts"]; ok { + if v == nil { + o.MaxAlerts = nil + } else { + // clearly a not very efficient shortcut + b, err := json.Marshal(v) + if err != nil { + return err + } + var x int + if err := json.Unmarshal(b, &x); err != nil { + return err + } + o.MaxAlerts = &x + } + o.IsSetMaxAlerts = true + } + + return nil +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) MarshalGQL(w io.Writer) { + enc := json.NewEncoder(w) + if err := enc.Encode(o); err != nil { + panic(err) + } +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetUrl() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.Url +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetHttpMethod() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.HttpMethod +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetUsername() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.Username +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetPassword() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.Password +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetAuthorizationScheme() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.AuthorizationScheme +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetAuthorizationCredentials() *string { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.AuthorizationCredentials +} + +func (o *ConfigGrafanacontactsWebhookUpdateInput) GetMaxAlerts() *int { + if o == nil { + o = &ConfigGrafanacontactsWebhookUpdateInput{} + } + return o.MaxAlerts +} + +func (s *ConfigGrafanacontactsWebhook) Update(v *ConfigGrafanacontactsWebhookUpdateInput) { + if v == nil { + return + } + if v.IsSetUrl || v.Url != nil { + if v.Url != nil { + s.Url = *v.Url + } + } + if v.IsSetHttpMethod || v.HttpMethod != nil { + if v.HttpMethod != nil { + s.HttpMethod = *v.HttpMethod + } + } + if v.IsSetUsername || v.Username != nil { + if v.Username != nil { + s.Username = *v.Username } } if v.IsSetPassword || v.Password != nil { @@ -12065,105 +14459,148 @@ func (s *ConfigGrafanaSmtp) Update(v *ConfigGrafanaSmtpUpdateInput) { s.Password = *v.Password } } + if v.IsSetAuthorizationScheme || v.AuthorizationScheme != nil { + if v.AuthorizationScheme != nil { + s.AuthorizationScheme = *v.AuthorizationScheme + } + } + if v.IsSetAuthorizationCredentials || v.AuthorizationCredentials != nil { + if v.AuthorizationCredentials != nil { + s.AuthorizationCredentials = *v.AuthorizationCredentials + } + } + if v.IsSetMaxAlerts || v.MaxAlerts != nil { + if v.MaxAlerts != nil { + s.MaxAlerts = *v.MaxAlerts + } + } } -type ConfigGrafanaSmtpInsertInput struct { - Host string `json:"host,omitempty" toml:"host,omitempty"` - Port uint16 `json:"port,omitempty" toml:"port,omitempty"` - Sender string `json:"sender,omitempty" toml:"sender,omitempty"` - User string `json:"user,omitempty" toml:"user,omitempty"` - Password string `json:"password,omitempty" toml:"password,omitempty"` +type ConfigGrafanacontactsWebhookInsertInput struct { + Url string `json:"url,omitempty" toml:"url,omitempty"` + HttpMethod string `json:"httpMethod,omitempty" toml:"httpMethod,omitempty"` + Username string `json:"username,omitempty" toml:"username,omitempty"` + Password string `json:"password,omitempty" toml:"password,omitempty"` + AuthorizationScheme string `json:"authorizationScheme,omitempty" toml:"authorizationScheme,omitempty"` + AuthorizationCredentials string `json:"authorizationCredentials,omitempty" toml:"authorizationCredentials,omitempty"` + MaxAlerts int `json:"maxAlerts,omitempty" toml:"maxAlerts,omitempty"` } -func (o *ConfigGrafanaSmtpInsertInput) GetHost() string { +func (o *ConfigGrafanacontactsWebhookInsertInput) GetUrl() string { if o == nil { - o = &ConfigGrafanaSmtpInsertInput{} + o = &ConfigGrafanacontactsWebhookInsertInput{} } - return o.Host + return o.Url } -func (o *ConfigGrafanaSmtpInsertInput) GetPort() uint16 { +func (o *ConfigGrafanacontactsWebhookInsertInput) GetHttpMethod() string { if o == nil { - o = &ConfigGrafanaSmtpInsertInput{} + o = &ConfigGrafanacontactsWebhookInsertInput{} } - return o.Port + return o.HttpMethod } -func (o *ConfigGrafanaSmtpInsertInput) GetSender() string { +func (o *ConfigGrafanacontactsWebhookInsertInput) GetUsername() string { if o == nil { - o = &ConfigGrafanaSmtpInsertInput{} + o = &ConfigGrafanacontactsWebhookInsertInput{} } - return o.Sender + return o.Username } -func (o *ConfigGrafanaSmtpInsertInput) GetUser() string { +func (o *ConfigGrafanacontactsWebhookInsertInput) GetPassword() string { if o == nil { - o = &ConfigGrafanaSmtpInsertInput{} + o = &ConfigGrafanacontactsWebhookInsertInput{} } - return o.User + return o.Password } -func (o *ConfigGrafanaSmtpInsertInput) GetPassword() string { +func (o *ConfigGrafanacontactsWebhookInsertInput) GetAuthorizationScheme() string { if o == nil { - o = &ConfigGrafanaSmtpInsertInput{} + o = &ConfigGrafanacontactsWebhookInsertInput{} } - return o.Password + return o.AuthorizationScheme } -func (s *ConfigGrafanaSmtp) Insert(v *ConfigGrafanaSmtpInsertInput) { - s.Host = v.Host - s.Port = v.Port - s.Sender = v.Sender - s.User = v.User +func (o *ConfigGrafanacontactsWebhookInsertInput) GetAuthorizationCredentials() string { + if o == nil { + o = &ConfigGrafanacontactsWebhookInsertInput{} + } + return o.AuthorizationCredentials +} + +func (o *ConfigGrafanacontactsWebhookInsertInput) GetMaxAlerts() int { + if o == nil { + o = &ConfigGrafanacontactsWebhookInsertInput{} + } + return o.MaxAlerts +} + +func (s *ConfigGrafanacontactsWebhook) Insert(v *ConfigGrafanacontactsWebhookInsertInput) { + s.Url = v.Url + s.HttpMethod = v.HttpMethod + s.Username = v.Username s.Password = v.Password + s.AuthorizationScheme = v.AuthorizationScheme + s.AuthorizationCredentials = v.AuthorizationCredentials + s.MaxAlerts = v.MaxAlerts } -func (s *ConfigGrafanaSmtp) Clone() *ConfigGrafanaSmtp { +func (s *ConfigGrafanacontactsWebhook) Clone() *ConfigGrafanacontactsWebhook { if s == nil { return nil } - v := &ConfigGrafanaSmtp{} - v.Host = s.Host - v.Port = s.Port - v.Sender = s.Sender - v.User = s.User + v := &ConfigGrafanacontactsWebhook{} + v.Url = s.Url + v.HttpMethod = s.HttpMethod + v.Username = s.Username v.Password = s.Password + v.AuthorizationScheme = s.AuthorizationScheme + v.AuthorizationCredentials = s.AuthorizationCredentials + v.MaxAlerts = s.MaxAlerts return v } -type ConfigGrafanaSmtpComparisonExp struct { - And []*ConfigGrafanaSmtpComparisonExp `json:"_and,omitempty"` - Not *ConfigGrafanaSmtpComparisonExp `json:"_not,omitempty"` - Or []*ConfigGrafanaSmtpComparisonExp `json:"_or,omitempty"` - Host *ConfigStringComparisonExp `json:"host,omitempty"` - Port *ConfigPortComparisonExp `json:"port,omitempty"` - Sender *ConfigStringComparisonExp `json:"sender,omitempty"` - User *ConfigStringComparisonExp `json:"user,omitempty"` - Password *ConfigStringComparisonExp `json:"password,omitempty"` +type ConfigGrafanacontactsWebhookComparisonExp struct { + And []*ConfigGrafanacontactsWebhookComparisonExp `json:"_and,omitempty"` + Not *ConfigGrafanacontactsWebhookComparisonExp `json:"_not,omitempty"` + Or []*ConfigGrafanacontactsWebhookComparisonExp `json:"_or,omitempty"` + Url *ConfigStringComparisonExp `json:"url,omitempty"` + HttpMethod *ConfigStringComparisonExp `json:"httpMethod,omitempty"` + Username *ConfigStringComparisonExp `json:"username,omitempty"` + Password *ConfigStringComparisonExp `json:"password,omitempty"` + AuthorizationScheme *ConfigStringComparisonExp `json:"authorizationScheme,omitempty"` + AuthorizationCredentials *ConfigStringComparisonExp `json:"authorizationCredentials,omitempty"` + MaxAlerts *ConfigIntComparisonExp `json:"maxAlerts,omitempty"` } -func (exp *ConfigGrafanaSmtpComparisonExp) Matches(o *ConfigGrafanaSmtp) bool { +func (exp *ConfigGrafanacontactsWebhookComparisonExp) Matches(o *ConfigGrafanacontactsWebhook) bool { if exp == nil { return true } if o == nil { - o = &ConfigGrafanaSmtp{} + o = &ConfigGrafanacontactsWebhook{} } - if !exp.Host.Matches(o.Host) { + if !exp.Url.Matches(o.Url) { return false } - if !exp.Port.Matches(o.Port) { + if !exp.HttpMethod.Matches(o.HttpMethod) { return false } - if !exp.Sender.Matches(o.Sender) { + if !exp.Username.Matches(o.Username) { return false } - if !exp.User.Matches(o.User) { + if !exp.Password.Matches(o.Password) { return false } - if !exp.Password.Matches(o.Password) { + if !exp.AuthorizationScheme.Matches(o.AuthorizationScheme) { + return false + } + if !exp.AuthorizationCredentials.Matches(o.AuthorizationCredentials) { + return false + } + if !exp.MaxAlerts.Matches(o.MaxAlerts) { return false } diff --git a/vendor/github.com/nhost/be/services/mimir/schema/schema.cue b/vendor/github.com/nhost/be/services/mimir/schema/schema.cue index 0a62fb98..13988802 100644 --- a/vendor/github.com/nhost/be/services/mimir/schema/schema.cue +++ b/vendor/github.com/nhost/be/services/mimir/schema/schema.cue @@ -170,8 +170,8 @@ import ( // HASURA_GRAPHQL_ENABLED_APIS enabledAPIs: [...#HasuraAPIs] | *["metadata", "graphql", "pgdump", "config"] - // HASURA_GRAPHQL_INFER_FUNCTION_PERMISSIONS - inferFunctionPermissions: bool | *true + // HASURA_GRAPHQL_INFER_FUNCTION_PERMISSIONS + inferFunctionPermissions: bool | *true // HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL liveQueriesMultiplexedRefetchInterval: uint32 | *1000 @@ -644,13 +644,54 @@ import ( #Grafana: { adminPassword: string - smtp?: { - host: string & net.FQDN | net.IP - port: #Port - sender: string - user: string - password: string - } + smtp?: { + host: string & net.FQDN | net.IP + port: #Port + sender: string + user: string + password: string + } + + alerting: { + enabled: bool | *false + } + + contacts: { + emails?: [...string] + pagerduty?: [{ + integrationKey: string + severity: string + class: string + component: string + group: string + }] + discord?: [{ + url: string + avatarUrl: string + }] + slack?: [{ + recipient: string + token: string + username: string + iconEmoji: string + iconURL: string + mentionUsers: [...string] + mentionGroups: [...string] + mentionChannel: string + url: string + endpointURL: string + }] + webhook?: [{ + url: string + httpMethod: string + username: string + password: string + authorizationScheme: string + authorizationCredentials: string + maxAlerts: int + }] + + } } #RunServicePort: { diff --git a/vendor/github.com/nhost/be/services/mimir/schema/schema_gen.graphqls b/vendor/github.com/nhost/be/services/mimir/schema/schema_gen.graphqls index a3a38132..3bae99b7 100644 --- a/vendor/github.com/nhost/be/services/mimir/schema/schema_gen.graphqls +++ b/vendor/github.com/nhost/be/services/mimir/schema/schema_gen.graphqls @@ -1875,16 +1875,28 @@ type ConfigGrafana { """ smtp: ConfigGrafanaSmtp + """ + + """ + alerting: ConfigGrafanaAlerting + """ + + """ + contacts: ConfigGrafanaContacts } input ConfigGrafanaUpdateInput { adminPassword: String smtp: ConfigGrafanaSmtpUpdateInput + alerting: ConfigGrafanaAlertingUpdateInput + contacts: ConfigGrafanaContactsUpdateInput } input ConfigGrafanaInsertInput { adminPassword: String! smtp: ConfigGrafanaSmtpInsertInput + alerting: ConfigGrafanaAlertingInsertInput + contacts: ConfigGrafanaContactsInsertInput } input ConfigGrafanaComparisonExp { @@ -1893,6 +1905,86 @@ input ConfigGrafanaComparisonExp { _or: [ConfigGrafanaComparisonExp!] adminPassword: ConfigStringComparisonExp smtp: ConfigGrafanaSmtpComparisonExp + alerting: ConfigGrafanaAlertingComparisonExp + contacts: ConfigGrafanaContactsComparisonExp +} + +""" + +""" +type ConfigGrafanaAlerting { + """ + + """ + enabled: Boolean +} + +input ConfigGrafanaAlertingUpdateInput { + enabled: Boolean +} + +input ConfigGrafanaAlertingInsertInput { + enabled: Boolean +} + +input ConfigGrafanaAlertingComparisonExp { + _and: [ConfigGrafanaAlertingComparisonExp!] + _not: ConfigGrafanaAlertingComparisonExp + _or: [ConfigGrafanaAlertingComparisonExp!] + enabled: ConfigBooleanComparisonExp +} + +""" + +""" +type ConfigGrafanaContacts { + """ + + """ + emails: [String!] + """ + + """ + pagerduty: [ConfigGrafanacontactsPagerduty!] + """ + + """ + discord: [ConfigGrafanacontactsDiscord!] + """ + + """ + slack: [ConfigGrafanacontactsSlack!] + """ + + """ + webhook: [ConfigGrafanacontactsWebhook!] +} + +input ConfigGrafanaContactsUpdateInput { + emails: [String!] + pagerduty: [ConfigGrafanacontactsPagerdutyUpdateInput!] + discord: [ConfigGrafanacontactsDiscordUpdateInput!] + slack: [ConfigGrafanacontactsSlackUpdateInput!] + webhook: [ConfigGrafanacontactsWebhookUpdateInput!] +} + +input ConfigGrafanaContactsInsertInput { + emails: [String!] + pagerduty: [ConfigGrafanacontactsPagerdutyInsertInput!] + discord: [ConfigGrafanacontactsDiscordInsertInput!] + slack: [ConfigGrafanacontactsSlackInsertInput!] + webhook: [ConfigGrafanacontactsWebhookInsertInput!] +} + +input ConfigGrafanaContactsComparisonExp { + _and: [ConfigGrafanaContactsComparisonExp!] + _not: ConfigGrafanaContactsComparisonExp + _or: [ConfigGrafanaContactsComparisonExp!] + emails: ConfigStringComparisonExp + pagerduty: ConfigGrafanacontactsPagerdutyComparisonExp + discord: ConfigGrafanacontactsDiscordComparisonExp + slack: ConfigGrafanacontactsSlackComparisonExp + webhook: ConfigGrafanacontactsWebhookComparisonExp } """ @@ -1950,6 +2042,246 @@ input ConfigGrafanaSmtpComparisonExp { """ +""" +type ConfigGrafanacontactsDiscord { + """ + + """ + url: String! + """ + + """ + avatarUrl: String! +} + +input ConfigGrafanacontactsDiscordUpdateInput { + url: String + avatarUrl: String +} + +input ConfigGrafanacontactsDiscordInsertInput { + url: String! + avatarUrl: String! +} + +input ConfigGrafanacontactsDiscordComparisonExp { + _and: [ConfigGrafanacontactsDiscordComparisonExp!] + _not: ConfigGrafanacontactsDiscordComparisonExp + _or: [ConfigGrafanacontactsDiscordComparisonExp!] + url: ConfigStringComparisonExp + avatarUrl: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsPagerduty { + """ + + """ + integrationKey: String! + """ + + """ + severity: String! + """ + + """ + class: String! + """ + + """ + component: String! + """ + + """ + group: String! +} + +input ConfigGrafanacontactsPagerdutyUpdateInput { + integrationKey: String + severity: String + class: String + component: String + group: String +} + +input ConfigGrafanacontactsPagerdutyInsertInput { + integrationKey: String! + severity: String! + class: String! + component: String! + group: String! +} + +input ConfigGrafanacontactsPagerdutyComparisonExp { + _and: [ConfigGrafanacontactsPagerdutyComparisonExp!] + _not: ConfigGrafanacontactsPagerdutyComparisonExp + _or: [ConfigGrafanacontactsPagerdutyComparisonExp!] + integrationKey: ConfigStringComparisonExp + severity: ConfigStringComparisonExp + class: ConfigStringComparisonExp + component: ConfigStringComparisonExp + group: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsSlack { + """ + + """ + recipient: String! + """ + + """ + token: String! + """ + + """ + username: String! + """ + + """ + iconEmoji: String! + """ + + """ + iconURL: String! + """ + + """ + mentionUsers: [String!]! + """ + + """ + mentionGroups: [String!]! + """ + + """ + mentionChannel: String! + """ + + """ + url: String! + """ + + """ + endpointURL: String! +} + +input ConfigGrafanacontactsSlackUpdateInput { + recipient: String + token: String + username: String + iconEmoji: String + iconURL: String + mentionUsers: [String!] + mentionGroups: [String!] + mentionChannel: String + url: String + endpointURL: String +} + +input ConfigGrafanacontactsSlackInsertInput { + recipient: String! + token: String! + username: String! + iconEmoji: String! + iconURL: String! + mentionUsers: [String!]! + mentionGroups: [String!]! + mentionChannel: String! + url: String! + endpointURL: String! +} + +input ConfigGrafanacontactsSlackComparisonExp { + _and: [ConfigGrafanacontactsSlackComparisonExp!] + _not: ConfigGrafanacontactsSlackComparisonExp + _or: [ConfigGrafanacontactsSlackComparisonExp!] + recipient: ConfigStringComparisonExp + token: ConfigStringComparisonExp + username: ConfigStringComparisonExp + iconEmoji: ConfigStringComparisonExp + iconURL: ConfigStringComparisonExp + mentionUsers: ConfigStringComparisonExp + mentionGroups: ConfigStringComparisonExp + mentionChannel: ConfigStringComparisonExp + url: ConfigStringComparisonExp + endpointURL: ConfigStringComparisonExp +} + +""" + +""" +type ConfigGrafanacontactsWebhook { + """ + + """ + url: String! + """ + + """ + httpMethod: String! + """ + + """ + username: String! + """ + + """ + password: String! + """ + + """ + authorizationScheme: String! + """ + + """ + authorizationCredentials: String! + """ + + """ + maxAlerts: Int! +} + +input ConfigGrafanacontactsWebhookUpdateInput { + url: String + httpMethod: String + username: String + password: String + authorizationScheme: String + authorizationCredentials: String + maxAlerts: Int +} + +input ConfigGrafanacontactsWebhookInsertInput { + url: String! + httpMethod: String! + username: String! + password: String! + authorizationScheme: String! + authorizationCredentials: String! + maxAlerts: Int! +} + +input ConfigGrafanacontactsWebhookComparisonExp { + _and: [ConfigGrafanacontactsWebhookComparisonExp!] + _not: ConfigGrafanacontactsWebhookComparisonExp + _or: [ConfigGrafanacontactsWebhookComparisonExp!] + url: ConfigStringComparisonExp + httpMethod: ConfigStringComparisonExp + username: ConfigStringComparisonExp + password: ConfigStringComparisonExp + authorizationScheme: ConfigStringComparisonExp + authorizationCredentials: ConfigStringComparisonExp + maxAlerts: ConfigIntComparisonExp +} + +""" + """ type ConfigGraphql { """ diff --git a/vendor/modules.txt b/vendor/modules.txt index c68adb6e..8416a46a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -541,7 +541,7 @@ github.com/muesli/termenv # github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 ## explicit github.com/munnerz/goautoneg -# github.com/nhost/be v0.0.0-20240912110026-065f6e01492e +# github.com/nhost/be v0.0.0-20240916113452-cf291042e14b ## explicit; go 1.23 github.com/nhost/be/lib/graphql github.com/nhost/be/lib/graphql/context