| |
|
|
| package runtime |
|
|
| import ( |
| "time" |
|
|
| "github.com/Wei-Shaw/sub2api/ent/account" |
| "github.com/Wei-Shaw/sub2api/ent/accountgroup" |
| "github.com/Wei-Shaw/sub2api/ent/announcement" |
| "github.com/Wei-Shaw/sub2api/ent/announcementread" |
| "github.com/Wei-Shaw/sub2api/ent/apikey" |
| "github.com/Wei-Shaw/sub2api/ent/authidentity" |
| "github.com/Wei-Shaw/sub2api/ent/authidentitychannel" |
| "github.com/Wei-Shaw/sub2api/ent/channelmonitor" |
| "github.com/Wei-Shaw/sub2api/ent/channelmonitordailyrollup" |
| "github.com/Wei-Shaw/sub2api/ent/channelmonitorhistory" |
| "github.com/Wei-Shaw/sub2api/ent/channelmonitorrequesttemplate" |
| "github.com/Wei-Shaw/sub2api/ent/errorpassthroughrule" |
| "github.com/Wei-Shaw/sub2api/ent/group" |
| "github.com/Wei-Shaw/sub2api/ent/idempotencyrecord" |
| "github.com/Wei-Shaw/sub2api/ent/identityadoptiondecision" |
| "github.com/Wei-Shaw/sub2api/ent/paymentauditlog" |
| "github.com/Wei-Shaw/sub2api/ent/paymentorder" |
| "github.com/Wei-Shaw/sub2api/ent/paymentproviderinstance" |
| "github.com/Wei-Shaw/sub2api/ent/pendingauthsession" |
| "github.com/Wei-Shaw/sub2api/ent/promocode" |
| "github.com/Wei-Shaw/sub2api/ent/promocodeusage" |
| "github.com/Wei-Shaw/sub2api/ent/proxy" |
| "github.com/Wei-Shaw/sub2api/ent/redeemcode" |
| "github.com/Wei-Shaw/sub2api/ent/schema" |
| "github.com/Wei-Shaw/sub2api/ent/securitysecret" |
| "github.com/Wei-Shaw/sub2api/ent/setting" |
| "github.com/Wei-Shaw/sub2api/ent/subscriptionplan" |
| "github.com/Wei-Shaw/sub2api/ent/tlsfingerprintprofile" |
| "github.com/Wei-Shaw/sub2api/ent/usagecleanuptask" |
| "github.com/Wei-Shaw/sub2api/ent/usagelog" |
| "github.com/Wei-Shaw/sub2api/ent/user" |
| "github.com/Wei-Shaw/sub2api/ent/userallowedgroup" |
| "github.com/Wei-Shaw/sub2api/ent/userattributedefinition" |
| "github.com/Wei-Shaw/sub2api/ent/userattributevalue" |
| "github.com/Wei-Shaw/sub2api/ent/userplatformquota" |
| "github.com/Wei-Shaw/sub2api/ent/usersubscription" |
| "github.com/Wei-Shaw/sub2api/internal/domain" |
| ) |
|
|
| |
| |
| |
| func init() { |
| apikeyMixin := schema.APIKey{}.Mixin() |
| apikeyMixinHooks1 := apikeyMixin[1].Hooks() |
| apikey.Hooks[0] = apikeyMixinHooks1[0] |
| apikeyMixinInters1 := apikeyMixin[1].Interceptors() |
| apikey.Interceptors[0] = apikeyMixinInters1[0] |
| apikeyMixinFields0 := apikeyMixin[0].Fields() |
| _ = apikeyMixinFields0 |
| apikeyFields := schema.APIKey{}.Fields() |
| _ = apikeyFields |
| |
| apikeyDescCreatedAt := apikeyMixinFields0[0].Descriptor() |
| |
| apikey.DefaultCreatedAt = apikeyDescCreatedAt.Default.(func() time.Time) |
| |
| apikeyDescUpdatedAt := apikeyMixinFields0[1].Descriptor() |
| |
| apikey.DefaultUpdatedAt = apikeyDescUpdatedAt.Default.(func() time.Time) |
| |
| apikey.UpdateDefaultUpdatedAt = apikeyDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| apikeyDescKey := apikeyFields[1].Descriptor() |
| |
| apikey.KeyValidator = func() func(string) error { |
| validators := apikeyDescKey.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(key string) error { |
| for _, fn := range fns { |
| if err := fn(key); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| apikeyDescName := apikeyFields[2].Descriptor() |
| |
| apikey.NameValidator = func() func(string) error { |
| validators := apikeyDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| apikeyDescStatus := apikeyFields[4].Descriptor() |
| |
| apikey.DefaultStatus = apikeyDescStatus.Default.(string) |
| |
| apikey.StatusValidator = apikeyDescStatus.Validators[0].(func(string) error) |
| |
| apikeyDescQuota := apikeyFields[8].Descriptor() |
| |
| apikey.DefaultQuota = apikeyDescQuota.Default.(float64) |
| |
| apikeyDescQuotaUsed := apikeyFields[9].Descriptor() |
| |
| apikey.DefaultQuotaUsed = apikeyDescQuotaUsed.Default.(float64) |
| |
| apikeyDescRateLimit5h := apikeyFields[11].Descriptor() |
| |
| apikey.DefaultRateLimit5h = apikeyDescRateLimit5h.Default.(float64) |
| |
| apikeyDescRateLimit1d := apikeyFields[12].Descriptor() |
| |
| apikey.DefaultRateLimit1d = apikeyDescRateLimit1d.Default.(float64) |
| |
| apikeyDescRateLimit7d := apikeyFields[13].Descriptor() |
| |
| apikey.DefaultRateLimit7d = apikeyDescRateLimit7d.Default.(float64) |
| |
| apikeyDescUsage5h := apikeyFields[14].Descriptor() |
| |
| apikey.DefaultUsage5h = apikeyDescUsage5h.Default.(float64) |
| |
| apikeyDescUsage1d := apikeyFields[15].Descriptor() |
| |
| apikey.DefaultUsage1d = apikeyDescUsage1d.Default.(float64) |
| |
| apikeyDescUsage7d := apikeyFields[16].Descriptor() |
| |
| apikey.DefaultUsage7d = apikeyDescUsage7d.Default.(float64) |
| accountMixin := schema.Account{}.Mixin() |
| accountMixinHooks1 := accountMixin[1].Hooks() |
| account.Hooks[0] = accountMixinHooks1[0] |
| accountMixinInters1 := accountMixin[1].Interceptors() |
| account.Interceptors[0] = accountMixinInters1[0] |
| accountMixinFields0 := accountMixin[0].Fields() |
| _ = accountMixinFields0 |
| accountFields := schema.Account{}.Fields() |
| _ = accountFields |
| |
| accountDescCreatedAt := accountMixinFields0[0].Descriptor() |
| |
| account.DefaultCreatedAt = accountDescCreatedAt.Default.(func() time.Time) |
| |
| accountDescUpdatedAt := accountMixinFields0[1].Descriptor() |
| |
| account.DefaultUpdatedAt = accountDescUpdatedAt.Default.(func() time.Time) |
| |
| account.UpdateDefaultUpdatedAt = accountDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| accountDescName := accountFields[0].Descriptor() |
| |
| account.NameValidator = func() func(string) error { |
| validators := accountDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| accountDescPlatform := accountFields[2].Descriptor() |
| |
| account.PlatformValidator = func() func(string) error { |
| validators := accountDescPlatform.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(platform string) error { |
| for _, fn := range fns { |
| if err := fn(platform); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| accountDescType := accountFields[3].Descriptor() |
| |
| account.TypeValidator = func() func(string) error { |
| validators := accountDescType.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(_type string) error { |
| for _, fn := range fns { |
| if err := fn(_type); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| accountDescCredentials := accountFields[4].Descriptor() |
| |
| account.DefaultCredentials = accountDescCredentials.Default.(func() map[string]interface{}) |
| |
| accountDescExtra := accountFields[5].Descriptor() |
| |
| account.DefaultExtra = accountDescExtra.Default.(func() map[string]interface{}) |
| |
| accountDescConcurrency := accountFields[7].Descriptor() |
| |
| account.DefaultConcurrency = accountDescConcurrency.Default.(int) |
| |
| accountDescPriority := accountFields[9].Descriptor() |
| |
| account.DefaultPriority = accountDescPriority.Default.(int) |
| |
| accountDescRateMultiplier := accountFields[10].Descriptor() |
| |
| account.DefaultRateMultiplier = accountDescRateMultiplier.Default.(float64) |
| |
| accountDescStatus := accountFields[11].Descriptor() |
| |
| account.DefaultStatus = accountDescStatus.Default.(string) |
| |
| account.StatusValidator = accountDescStatus.Validators[0].(func(string) error) |
| |
| accountDescAutoPauseOnExpired := accountFields[15].Descriptor() |
| |
| account.DefaultAutoPauseOnExpired = accountDescAutoPauseOnExpired.Default.(bool) |
| |
| accountDescSchedulable := accountFields[16].Descriptor() |
| |
| account.DefaultSchedulable = accountDescSchedulable.Default.(bool) |
| |
| accountDescSessionWindowStatus := accountFields[24].Descriptor() |
| |
| account.SessionWindowStatusValidator = accountDescSessionWindowStatus.Validators[0].(func(string) error) |
| accountgroupFields := schema.AccountGroup{}.Fields() |
| _ = accountgroupFields |
| |
| accountgroupDescPriority := accountgroupFields[2].Descriptor() |
| |
| accountgroup.DefaultPriority = accountgroupDescPriority.Default.(int) |
| |
| accountgroupDescCreatedAt := accountgroupFields[3].Descriptor() |
| |
| accountgroup.DefaultCreatedAt = accountgroupDescCreatedAt.Default.(func() time.Time) |
| announcementFields := schema.Announcement{}.Fields() |
| _ = announcementFields |
| |
| announcementDescTitle := announcementFields[0].Descriptor() |
| |
| announcement.TitleValidator = func() func(string) error { |
| validators := announcementDescTitle.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(title string) error { |
| for _, fn := range fns { |
| if err := fn(title); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| announcementDescContent := announcementFields[1].Descriptor() |
| |
| announcement.ContentValidator = announcementDescContent.Validators[0].(func(string) error) |
| |
| announcementDescStatus := announcementFields[2].Descriptor() |
| |
| announcement.DefaultStatus = announcementDescStatus.Default.(string) |
| |
| announcement.StatusValidator = announcementDescStatus.Validators[0].(func(string) error) |
| |
| announcementDescNotifyMode := announcementFields[3].Descriptor() |
| |
| announcement.DefaultNotifyMode = announcementDescNotifyMode.Default.(string) |
| |
| announcement.NotifyModeValidator = announcementDescNotifyMode.Validators[0].(func(string) error) |
| |
| announcementDescCreatedAt := announcementFields[9].Descriptor() |
| |
| announcement.DefaultCreatedAt = announcementDescCreatedAt.Default.(func() time.Time) |
| |
| announcementDescUpdatedAt := announcementFields[10].Descriptor() |
| |
| announcement.DefaultUpdatedAt = announcementDescUpdatedAt.Default.(func() time.Time) |
| |
| announcement.UpdateDefaultUpdatedAt = announcementDescUpdatedAt.UpdateDefault.(func() time.Time) |
| announcementreadFields := schema.AnnouncementRead{}.Fields() |
| _ = announcementreadFields |
| |
| announcementreadDescReadAt := announcementreadFields[2].Descriptor() |
| |
| announcementread.DefaultReadAt = announcementreadDescReadAt.Default.(func() time.Time) |
| |
| announcementreadDescCreatedAt := announcementreadFields[3].Descriptor() |
| |
| announcementread.DefaultCreatedAt = announcementreadDescCreatedAt.Default.(func() time.Time) |
| authidentityMixin := schema.AuthIdentity{}.Mixin() |
| authidentityMixinFields0 := authidentityMixin[0].Fields() |
| _ = authidentityMixinFields0 |
| authidentityFields := schema.AuthIdentity{}.Fields() |
| _ = authidentityFields |
| |
| authidentityDescCreatedAt := authidentityMixinFields0[0].Descriptor() |
| |
| authidentity.DefaultCreatedAt = authidentityDescCreatedAt.Default.(func() time.Time) |
| |
| authidentityDescUpdatedAt := authidentityMixinFields0[1].Descriptor() |
| |
| authidentity.DefaultUpdatedAt = authidentityDescUpdatedAt.Default.(func() time.Time) |
| |
| authidentity.UpdateDefaultUpdatedAt = authidentityDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| authidentityDescProviderType := authidentityFields[1].Descriptor() |
| |
| authidentity.ProviderTypeValidator = func() func(string) error { |
| validators := authidentityDescProviderType.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| validators[2].(func(string) error), |
| } |
| return func(provider_type string) error { |
| for _, fn := range fns { |
| if err := fn(provider_type); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| authidentityDescProviderKey := authidentityFields[2].Descriptor() |
| |
| authidentity.ProviderKeyValidator = authidentityDescProviderKey.Validators[0].(func(string) error) |
| |
| authidentityDescProviderSubject := authidentityFields[3].Descriptor() |
| |
| authidentity.ProviderSubjectValidator = authidentityDescProviderSubject.Validators[0].(func(string) error) |
| |
| authidentityDescMetadata := authidentityFields[6].Descriptor() |
| |
| authidentity.DefaultMetadata = authidentityDescMetadata.Default.(func() map[string]interface{}) |
| authidentitychannelMixin := schema.AuthIdentityChannel{}.Mixin() |
| authidentitychannelMixinFields0 := authidentitychannelMixin[0].Fields() |
| _ = authidentitychannelMixinFields0 |
| authidentitychannelFields := schema.AuthIdentityChannel{}.Fields() |
| _ = authidentitychannelFields |
| |
| authidentitychannelDescCreatedAt := authidentitychannelMixinFields0[0].Descriptor() |
| |
| authidentitychannel.DefaultCreatedAt = authidentitychannelDescCreatedAt.Default.(func() time.Time) |
| |
| authidentitychannelDescUpdatedAt := authidentitychannelMixinFields0[1].Descriptor() |
| |
| authidentitychannel.DefaultUpdatedAt = authidentitychannelDescUpdatedAt.Default.(func() time.Time) |
| |
| authidentitychannel.UpdateDefaultUpdatedAt = authidentitychannelDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| authidentitychannelDescProviderType := authidentitychannelFields[1].Descriptor() |
| |
| authidentitychannel.ProviderTypeValidator = func() func(string) error { |
| validators := authidentitychannelDescProviderType.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| validators[2].(func(string) error), |
| } |
| return func(provider_type string) error { |
| for _, fn := range fns { |
| if err := fn(provider_type); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| authidentitychannelDescProviderKey := authidentitychannelFields[2].Descriptor() |
| |
| authidentitychannel.ProviderKeyValidator = authidentitychannelDescProviderKey.Validators[0].(func(string) error) |
| |
| authidentitychannelDescChannel := authidentitychannelFields[3].Descriptor() |
| |
| authidentitychannel.ChannelValidator = func() func(string) error { |
| validators := authidentitychannelDescChannel.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(channel string) error { |
| for _, fn := range fns { |
| if err := fn(channel); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| authidentitychannelDescChannelAppID := authidentitychannelFields[4].Descriptor() |
| |
| authidentitychannel.ChannelAppIDValidator = authidentitychannelDescChannelAppID.Validators[0].(func(string) error) |
| |
| authidentitychannelDescChannelSubject := authidentitychannelFields[5].Descriptor() |
| |
| authidentitychannel.ChannelSubjectValidator = authidentitychannelDescChannelSubject.Validators[0].(func(string) error) |
| |
| authidentitychannelDescMetadata := authidentitychannelFields[6].Descriptor() |
| |
| authidentitychannel.DefaultMetadata = authidentitychannelDescMetadata.Default.(func() map[string]interface{}) |
| channelmonitorMixin := schema.ChannelMonitor{}.Mixin() |
| channelmonitorMixinFields0 := channelmonitorMixin[0].Fields() |
| _ = channelmonitorMixinFields0 |
| channelmonitorFields := schema.ChannelMonitor{}.Fields() |
| _ = channelmonitorFields |
| |
| channelmonitorDescCreatedAt := channelmonitorMixinFields0[0].Descriptor() |
| |
| channelmonitor.DefaultCreatedAt = channelmonitorDescCreatedAt.Default.(func() time.Time) |
| |
| channelmonitorDescUpdatedAt := channelmonitorMixinFields0[1].Descriptor() |
| |
| channelmonitor.DefaultUpdatedAt = channelmonitorDescUpdatedAt.Default.(func() time.Time) |
| |
| channelmonitor.UpdateDefaultUpdatedAt = channelmonitorDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| channelmonitorDescName := channelmonitorFields[0].Descriptor() |
| |
| channelmonitor.NameValidator = func() func(string) error { |
| validators := channelmonitorDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitorDescAPIMode := channelmonitorFields[2].Descriptor() |
| |
| channelmonitor.DefaultAPIMode = channelmonitorDescAPIMode.Default.(string) |
| |
| channelmonitor.APIModeValidator = channelmonitorDescAPIMode.Validators[0].(func(string) error) |
| |
| channelmonitorDescEndpoint := channelmonitorFields[3].Descriptor() |
| |
| channelmonitor.EndpointValidator = func() func(string) error { |
| validators := channelmonitorDescEndpoint.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(endpoint string) error { |
| for _, fn := range fns { |
| if err := fn(endpoint); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitorDescAPIKeyEncrypted := channelmonitorFields[4].Descriptor() |
| |
| channelmonitor.APIKeyEncryptedValidator = channelmonitorDescAPIKeyEncrypted.Validators[0].(func(string) error) |
| |
| channelmonitorDescPrimaryModel := channelmonitorFields[5].Descriptor() |
| |
| channelmonitor.PrimaryModelValidator = func() func(string) error { |
| validators := channelmonitorDescPrimaryModel.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(primary_model string) error { |
| for _, fn := range fns { |
| if err := fn(primary_model); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitorDescExtraModels := channelmonitorFields[6].Descriptor() |
| |
| channelmonitor.DefaultExtraModels = channelmonitorDescExtraModels.Default.([]string) |
| |
| channelmonitorDescGroupName := channelmonitorFields[7].Descriptor() |
| |
| channelmonitor.DefaultGroupName = channelmonitorDescGroupName.Default.(string) |
| |
| channelmonitor.GroupNameValidator = channelmonitorDescGroupName.Validators[0].(func(string) error) |
| |
| channelmonitorDescEnabled := channelmonitorFields[8].Descriptor() |
| |
| channelmonitor.DefaultEnabled = channelmonitorDescEnabled.Default.(bool) |
| |
| channelmonitorDescIntervalSeconds := channelmonitorFields[9].Descriptor() |
| |
| channelmonitor.IntervalSecondsValidator = channelmonitorDescIntervalSeconds.Validators[0].(func(int) error) |
| |
| channelmonitorDescExtraHeaders := channelmonitorFields[13].Descriptor() |
| |
| channelmonitor.DefaultExtraHeaders = channelmonitorDescExtraHeaders.Default.(map[string]string) |
| |
| channelmonitorDescBodyOverrideMode := channelmonitorFields[14].Descriptor() |
| |
| channelmonitor.DefaultBodyOverrideMode = channelmonitorDescBodyOverrideMode.Default.(string) |
| |
| channelmonitor.BodyOverrideModeValidator = channelmonitorDescBodyOverrideMode.Validators[0].(func(string) error) |
| channelmonitordailyrollupFields := schema.ChannelMonitorDailyRollup{}.Fields() |
| _ = channelmonitordailyrollupFields |
| |
| channelmonitordailyrollupDescModel := channelmonitordailyrollupFields[1].Descriptor() |
| |
| channelmonitordailyrollup.ModelValidator = func() func(string) error { |
| validators := channelmonitordailyrollupDescModel.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(model string) error { |
| for _, fn := range fns { |
| if err := fn(model); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitordailyrollupDescTotalChecks := channelmonitordailyrollupFields[3].Descriptor() |
| |
| channelmonitordailyrollup.DefaultTotalChecks = channelmonitordailyrollupDescTotalChecks.Default.(int) |
| |
| channelmonitordailyrollupDescOkCount := channelmonitordailyrollupFields[4].Descriptor() |
| |
| channelmonitordailyrollup.DefaultOkCount = channelmonitordailyrollupDescOkCount.Default.(int) |
| |
| channelmonitordailyrollupDescOperationalCount := channelmonitordailyrollupFields[5].Descriptor() |
| |
| channelmonitordailyrollup.DefaultOperationalCount = channelmonitordailyrollupDescOperationalCount.Default.(int) |
| |
| channelmonitordailyrollupDescDegradedCount := channelmonitordailyrollupFields[6].Descriptor() |
| |
| channelmonitordailyrollup.DefaultDegradedCount = channelmonitordailyrollupDescDegradedCount.Default.(int) |
| |
| channelmonitordailyrollupDescFailedCount := channelmonitordailyrollupFields[7].Descriptor() |
| |
| channelmonitordailyrollup.DefaultFailedCount = channelmonitordailyrollupDescFailedCount.Default.(int) |
| |
| channelmonitordailyrollupDescErrorCount := channelmonitordailyrollupFields[8].Descriptor() |
| |
| channelmonitordailyrollup.DefaultErrorCount = channelmonitordailyrollupDescErrorCount.Default.(int) |
| |
| channelmonitordailyrollupDescSumLatencyMs := channelmonitordailyrollupFields[9].Descriptor() |
| |
| channelmonitordailyrollup.DefaultSumLatencyMs = channelmonitordailyrollupDescSumLatencyMs.Default.(int64) |
| |
| channelmonitordailyrollupDescCountLatency := channelmonitordailyrollupFields[10].Descriptor() |
| |
| channelmonitordailyrollup.DefaultCountLatency = channelmonitordailyrollupDescCountLatency.Default.(int) |
| |
| channelmonitordailyrollupDescSumPingLatencyMs := channelmonitordailyrollupFields[11].Descriptor() |
| |
| channelmonitordailyrollup.DefaultSumPingLatencyMs = channelmonitordailyrollupDescSumPingLatencyMs.Default.(int64) |
| |
| channelmonitordailyrollupDescCountPingLatency := channelmonitordailyrollupFields[12].Descriptor() |
| |
| channelmonitordailyrollup.DefaultCountPingLatency = channelmonitordailyrollupDescCountPingLatency.Default.(int) |
| |
| channelmonitordailyrollupDescComputedAt := channelmonitordailyrollupFields[13].Descriptor() |
| |
| channelmonitordailyrollup.DefaultComputedAt = channelmonitordailyrollupDescComputedAt.Default.(func() time.Time) |
| |
| channelmonitordailyrollup.UpdateDefaultComputedAt = channelmonitordailyrollupDescComputedAt.UpdateDefault.(func() time.Time) |
| channelmonitorhistoryFields := schema.ChannelMonitorHistory{}.Fields() |
| _ = channelmonitorhistoryFields |
| |
| channelmonitorhistoryDescModel := channelmonitorhistoryFields[1].Descriptor() |
| |
| channelmonitorhistory.ModelValidator = func() func(string) error { |
| validators := channelmonitorhistoryDescModel.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(model string) error { |
| for _, fn := range fns { |
| if err := fn(model); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitorhistoryDescMessage := channelmonitorhistoryFields[5].Descriptor() |
| |
| channelmonitorhistory.DefaultMessage = channelmonitorhistoryDescMessage.Default.(string) |
| |
| channelmonitorhistory.MessageValidator = channelmonitorhistoryDescMessage.Validators[0].(func(string) error) |
| |
| channelmonitorhistoryDescCheckedAt := channelmonitorhistoryFields[6].Descriptor() |
| |
| channelmonitorhistory.DefaultCheckedAt = channelmonitorhistoryDescCheckedAt.Default.(func() time.Time) |
| channelmonitorrequesttemplateMixin := schema.ChannelMonitorRequestTemplate{}.Mixin() |
| channelmonitorrequesttemplateMixinFields0 := channelmonitorrequesttemplateMixin[0].Fields() |
| _ = channelmonitorrequesttemplateMixinFields0 |
| channelmonitorrequesttemplateFields := schema.ChannelMonitorRequestTemplate{}.Fields() |
| _ = channelmonitorrequesttemplateFields |
| |
| channelmonitorrequesttemplateDescCreatedAt := channelmonitorrequesttemplateMixinFields0[0].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultCreatedAt = channelmonitorrequesttemplateDescCreatedAt.Default.(func() time.Time) |
| |
| channelmonitorrequesttemplateDescUpdatedAt := channelmonitorrequesttemplateMixinFields0[1].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultUpdatedAt = channelmonitorrequesttemplateDescUpdatedAt.Default.(func() time.Time) |
| |
| channelmonitorrequesttemplate.UpdateDefaultUpdatedAt = channelmonitorrequesttemplateDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| channelmonitorrequesttemplateDescName := channelmonitorrequesttemplateFields[0].Descriptor() |
| |
| channelmonitorrequesttemplate.NameValidator = func() func(string) error { |
| validators := channelmonitorrequesttemplateDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| channelmonitorrequesttemplateDescAPIMode := channelmonitorrequesttemplateFields[2].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultAPIMode = channelmonitorrequesttemplateDescAPIMode.Default.(string) |
| |
| channelmonitorrequesttemplate.APIModeValidator = channelmonitorrequesttemplateDescAPIMode.Validators[0].(func(string) error) |
| |
| channelmonitorrequesttemplateDescDescription := channelmonitorrequesttemplateFields[3].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultDescription = channelmonitorrequesttemplateDescDescription.Default.(string) |
| |
| channelmonitorrequesttemplate.DescriptionValidator = channelmonitorrequesttemplateDescDescription.Validators[0].(func(string) error) |
| |
| channelmonitorrequesttemplateDescExtraHeaders := channelmonitorrequesttemplateFields[4].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultExtraHeaders = channelmonitorrequesttemplateDescExtraHeaders.Default.(map[string]string) |
| |
| channelmonitorrequesttemplateDescBodyOverrideMode := channelmonitorrequesttemplateFields[5].Descriptor() |
| |
| channelmonitorrequesttemplate.DefaultBodyOverrideMode = channelmonitorrequesttemplateDescBodyOverrideMode.Default.(string) |
| |
| channelmonitorrequesttemplate.BodyOverrideModeValidator = channelmonitorrequesttemplateDescBodyOverrideMode.Validators[0].(func(string) error) |
| errorpassthroughruleMixin := schema.ErrorPassthroughRule{}.Mixin() |
| errorpassthroughruleMixinFields0 := errorpassthroughruleMixin[0].Fields() |
| _ = errorpassthroughruleMixinFields0 |
| errorpassthroughruleFields := schema.ErrorPassthroughRule{}.Fields() |
| _ = errorpassthroughruleFields |
| |
| errorpassthroughruleDescCreatedAt := errorpassthroughruleMixinFields0[0].Descriptor() |
| |
| errorpassthroughrule.DefaultCreatedAt = errorpassthroughruleDescCreatedAt.Default.(func() time.Time) |
| |
| errorpassthroughruleDescUpdatedAt := errorpassthroughruleMixinFields0[1].Descriptor() |
| |
| errorpassthroughrule.DefaultUpdatedAt = errorpassthroughruleDescUpdatedAt.Default.(func() time.Time) |
| |
| errorpassthroughrule.UpdateDefaultUpdatedAt = errorpassthroughruleDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| errorpassthroughruleDescName := errorpassthroughruleFields[0].Descriptor() |
| |
| errorpassthroughrule.NameValidator = func() func(string) error { |
| validators := errorpassthroughruleDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| errorpassthroughruleDescEnabled := errorpassthroughruleFields[1].Descriptor() |
| |
| errorpassthroughrule.DefaultEnabled = errorpassthroughruleDescEnabled.Default.(bool) |
| |
| errorpassthroughruleDescPriority := errorpassthroughruleFields[2].Descriptor() |
| |
| errorpassthroughrule.DefaultPriority = errorpassthroughruleDescPriority.Default.(int) |
| |
| errorpassthroughruleDescMatchMode := errorpassthroughruleFields[5].Descriptor() |
| |
| errorpassthroughrule.DefaultMatchMode = errorpassthroughruleDescMatchMode.Default.(string) |
| |
| errorpassthroughrule.MatchModeValidator = errorpassthroughruleDescMatchMode.Validators[0].(func(string) error) |
| |
| errorpassthroughruleDescPassthroughCode := errorpassthroughruleFields[7].Descriptor() |
| |
| errorpassthroughrule.DefaultPassthroughCode = errorpassthroughruleDescPassthroughCode.Default.(bool) |
| |
| errorpassthroughruleDescPassthroughBody := errorpassthroughruleFields[9].Descriptor() |
| |
| errorpassthroughrule.DefaultPassthroughBody = errorpassthroughruleDescPassthroughBody.Default.(bool) |
| |
| errorpassthroughruleDescSkipMonitoring := errorpassthroughruleFields[11].Descriptor() |
| |
| errorpassthroughrule.DefaultSkipMonitoring = errorpassthroughruleDescSkipMonitoring.Default.(bool) |
| groupMixin := schema.Group{}.Mixin() |
| groupMixinHooks1 := groupMixin[1].Hooks() |
| group.Hooks[0] = groupMixinHooks1[0] |
| groupMixinInters1 := groupMixin[1].Interceptors() |
| group.Interceptors[0] = groupMixinInters1[0] |
| groupMixinFields0 := groupMixin[0].Fields() |
| _ = groupMixinFields0 |
| groupFields := schema.Group{}.Fields() |
| _ = groupFields |
| |
| groupDescCreatedAt := groupMixinFields0[0].Descriptor() |
| |
| group.DefaultCreatedAt = groupDescCreatedAt.Default.(func() time.Time) |
| |
| groupDescUpdatedAt := groupMixinFields0[1].Descriptor() |
| |
| group.DefaultUpdatedAt = groupDescUpdatedAt.Default.(func() time.Time) |
| |
| group.UpdateDefaultUpdatedAt = groupDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| groupDescName := groupFields[0].Descriptor() |
| |
| group.NameValidator = func() func(string) error { |
| validators := groupDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| groupDescRateMultiplier := groupFields[2].Descriptor() |
| |
| group.DefaultRateMultiplier = groupDescRateMultiplier.Default.(float64) |
| |
| groupDescIsExclusive := groupFields[3].Descriptor() |
| |
| group.DefaultIsExclusive = groupDescIsExclusive.Default.(bool) |
| |
| groupDescStatus := groupFields[4].Descriptor() |
| |
| group.DefaultStatus = groupDescStatus.Default.(string) |
| |
| group.StatusValidator = groupDescStatus.Validators[0].(func(string) error) |
| |
| groupDescPlatform := groupFields[5].Descriptor() |
| |
| group.DefaultPlatform = groupDescPlatform.Default.(string) |
| |
| group.PlatformValidator = groupDescPlatform.Validators[0].(func(string) error) |
| |
| groupDescSubscriptionType := groupFields[6].Descriptor() |
| |
| group.DefaultSubscriptionType = groupDescSubscriptionType.Default.(string) |
| |
| group.SubscriptionTypeValidator = groupDescSubscriptionType.Validators[0].(func(string) error) |
| |
| groupDescDefaultValidityDays := groupFields[10].Descriptor() |
| |
| group.DefaultDefaultValidityDays = groupDescDefaultValidityDays.Default.(int) |
| |
| groupDescAllowImageGeneration := groupFields[11].Descriptor() |
| |
| group.DefaultAllowImageGeneration = groupDescAllowImageGeneration.Default.(bool) |
| |
| groupDescImageRateIndependent := groupFields[12].Descriptor() |
| |
| group.DefaultImageRateIndependent = groupDescImageRateIndependent.Default.(bool) |
| |
| groupDescImageRateMultiplier := groupFields[13].Descriptor() |
| |
| group.DefaultImageRateMultiplier = groupDescImageRateMultiplier.Default.(float64) |
| |
| groupDescClaudeCodeOnly := groupFields[17].Descriptor() |
| |
| group.DefaultClaudeCodeOnly = groupDescClaudeCodeOnly.Default.(bool) |
| |
| groupDescModelRoutingEnabled := groupFields[21].Descriptor() |
| |
| group.DefaultModelRoutingEnabled = groupDescModelRoutingEnabled.Default.(bool) |
| |
| groupDescMcpXMLInject := groupFields[22].Descriptor() |
| |
| group.DefaultMcpXMLInject = groupDescMcpXMLInject.Default.(bool) |
| |
| groupDescSupportedModelScopes := groupFields[23].Descriptor() |
| |
| group.DefaultSupportedModelScopes = groupDescSupportedModelScopes.Default.([]string) |
| |
| groupDescSortOrder := groupFields[24].Descriptor() |
| |
| group.DefaultSortOrder = groupDescSortOrder.Default.(int) |
| |
| groupDescAllowMessagesDispatch := groupFields[25].Descriptor() |
| |
| group.DefaultAllowMessagesDispatch = groupDescAllowMessagesDispatch.Default.(bool) |
| |
| groupDescRequireOauthOnly := groupFields[26].Descriptor() |
| |
| group.DefaultRequireOauthOnly = groupDescRequireOauthOnly.Default.(bool) |
| |
| groupDescRequirePrivacySet := groupFields[27].Descriptor() |
| |
| group.DefaultRequirePrivacySet = groupDescRequirePrivacySet.Default.(bool) |
| |
| groupDescDefaultMappedModel := groupFields[28].Descriptor() |
| |
| group.DefaultDefaultMappedModel = groupDescDefaultMappedModel.Default.(string) |
| |
| group.DefaultMappedModelValidator = groupDescDefaultMappedModel.Validators[0].(func(string) error) |
| |
| groupDescMessagesDispatchModelConfig := groupFields[29].Descriptor() |
| |
| group.DefaultMessagesDispatchModelConfig = groupDescMessagesDispatchModelConfig.Default.(domain.OpenAIMessagesDispatchModelConfig) |
| |
| groupDescModelsListConfig := groupFields[30].Descriptor() |
| |
| group.DefaultModelsListConfig = groupDescModelsListConfig.Default.(domain.GroupModelsListConfig) |
| |
| groupDescRpmLimit := groupFields[31].Descriptor() |
| |
| group.DefaultRpmLimit = groupDescRpmLimit.Default.(int) |
| idempotencyrecordMixin := schema.IdempotencyRecord{}.Mixin() |
| idempotencyrecordMixinFields0 := idempotencyrecordMixin[0].Fields() |
| _ = idempotencyrecordMixinFields0 |
| idempotencyrecordFields := schema.IdempotencyRecord{}.Fields() |
| _ = idempotencyrecordFields |
| |
| idempotencyrecordDescCreatedAt := idempotencyrecordMixinFields0[0].Descriptor() |
| |
| idempotencyrecord.DefaultCreatedAt = idempotencyrecordDescCreatedAt.Default.(func() time.Time) |
| |
| idempotencyrecordDescUpdatedAt := idempotencyrecordMixinFields0[1].Descriptor() |
| |
| idempotencyrecord.DefaultUpdatedAt = idempotencyrecordDescUpdatedAt.Default.(func() time.Time) |
| |
| idempotencyrecord.UpdateDefaultUpdatedAt = idempotencyrecordDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| idempotencyrecordDescScope := idempotencyrecordFields[0].Descriptor() |
| |
| idempotencyrecord.ScopeValidator = idempotencyrecordDescScope.Validators[0].(func(string) error) |
| |
| idempotencyrecordDescIdempotencyKeyHash := idempotencyrecordFields[1].Descriptor() |
| |
| idempotencyrecord.IdempotencyKeyHashValidator = idempotencyrecordDescIdempotencyKeyHash.Validators[0].(func(string) error) |
| |
| idempotencyrecordDescRequestFingerprint := idempotencyrecordFields[2].Descriptor() |
| |
| idempotencyrecord.RequestFingerprintValidator = idempotencyrecordDescRequestFingerprint.Validators[0].(func(string) error) |
| |
| idempotencyrecordDescStatus := idempotencyrecordFields[3].Descriptor() |
| |
| idempotencyrecord.StatusValidator = idempotencyrecordDescStatus.Validators[0].(func(string) error) |
| |
| idempotencyrecordDescErrorReason := idempotencyrecordFields[6].Descriptor() |
| |
| idempotencyrecord.ErrorReasonValidator = idempotencyrecordDescErrorReason.Validators[0].(func(string) error) |
| identityadoptiondecisionMixin := schema.IdentityAdoptionDecision{}.Mixin() |
| identityadoptiondecisionMixinFields0 := identityadoptiondecisionMixin[0].Fields() |
| _ = identityadoptiondecisionMixinFields0 |
| identityadoptiondecisionFields := schema.IdentityAdoptionDecision{}.Fields() |
| _ = identityadoptiondecisionFields |
| |
| identityadoptiondecisionDescCreatedAt := identityadoptiondecisionMixinFields0[0].Descriptor() |
| |
| identityadoptiondecision.DefaultCreatedAt = identityadoptiondecisionDescCreatedAt.Default.(func() time.Time) |
| |
| identityadoptiondecisionDescUpdatedAt := identityadoptiondecisionMixinFields0[1].Descriptor() |
| |
| identityadoptiondecision.DefaultUpdatedAt = identityadoptiondecisionDescUpdatedAt.Default.(func() time.Time) |
| |
| identityadoptiondecision.UpdateDefaultUpdatedAt = identityadoptiondecisionDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| identityadoptiondecisionDescAdoptDisplayName := identityadoptiondecisionFields[2].Descriptor() |
| |
| identityadoptiondecision.DefaultAdoptDisplayName = identityadoptiondecisionDescAdoptDisplayName.Default.(bool) |
| |
| identityadoptiondecisionDescAdoptAvatar := identityadoptiondecisionFields[3].Descriptor() |
| |
| identityadoptiondecision.DefaultAdoptAvatar = identityadoptiondecisionDescAdoptAvatar.Default.(bool) |
| |
| identityadoptiondecisionDescDecidedAt := identityadoptiondecisionFields[4].Descriptor() |
| |
| identityadoptiondecision.DefaultDecidedAt = identityadoptiondecisionDescDecidedAt.Default.(func() time.Time) |
| paymentauditlogFields := schema.PaymentAuditLog{}.Fields() |
| _ = paymentauditlogFields |
| |
| paymentauditlogDescOrderID := paymentauditlogFields[0].Descriptor() |
| |
| paymentauditlog.OrderIDValidator = paymentauditlogDescOrderID.Validators[0].(func(string) error) |
| |
| paymentauditlogDescAction := paymentauditlogFields[1].Descriptor() |
| |
| paymentauditlog.ActionValidator = paymentauditlogDescAction.Validators[0].(func(string) error) |
| |
| paymentauditlogDescDetail := paymentauditlogFields[2].Descriptor() |
| |
| paymentauditlog.DefaultDetail = paymentauditlogDescDetail.Default.(string) |
| |
| paymentauditlogDescOperator := paymentauditlogFields[3].Descriptor() |
| |
| paymentauditlog.DefaultOperator = paymentauditlogDescOperator.Default.(string) |
| |
| paymentauditlog.OperatorValidator = paymentauditlogDescOperator.Validators[0].(func(string) error) |
| |
| paymentauditlogDescCreatedAt := paymentauditlogFields[4].Descriptor() |
| |
| paymentauditlog.DefaultCreatedAt = paymentauditlogDescCreatedAt.Default.(func() time.Time) |
| paymentorderFields := schema.PaymentOrder{}.Fields() |
| _ = paymentorderFields |
| |
| paymentorderDescUserEmail := paymentorderFields[1].Descriptor() |
| |
| paymentorder.UserEmailValidator = paymentorderDescUserEmail.Validators[0].(func(string) error) |
| |
| paymentorderDescUserName := paymentorderFields[2].Descriptor() |
| |
| paymentorder.UserNameValidator = paymentorderDescUserName.Validators[0].(func(string) error) |
| |
| paymentorderDescFeeRate := paymentorderFields[6].Descriptor() |
| |
| paymentorder.DefaultFeeRate = paymentorderDescFeeRate.Default.(float64) |
| |
| paymentorderDescRechargeCode := paymentorderFields[7].Descriptor() |
| |
| paymentorder.RechargeCodeValidator = paymentorderDescRechargeCode.Validators[0].(func(string) error) |
| |
| paymentorderDescOutTradeNo := paymentorderFields[8].Descriptor() |
| |
| paymentorder.DefaultOutTradeNo = paymentorderDescOutTradeNo.Default.(string) |
| |
| paymentorder.OutTradeNoValidator = paymentorderDescOutTradeNo.Validators[0].(func(string) error) |
| |
| paymentorderDescPaymentType := paymentorderFields[9].Descriptor() |
| |
| paymentorder.PaymentTypeValidator = paymentorderDescPaymentType.Validators[0].(func(string) error) |
| |
| paymentorderDescPaymentTradeNo := paymentorderFields[10].Descriptor() |
| |
| paymentorder.PaymentTradeNoValidator = paymentorderDescPaymentTradeNo.Validators[0].(func(string) error) |
| |
| paymentorderDescOrderType := paymentorderFields[14].Descriptor() |
| |
| paymentorder.DefaultOrderType = paymentorderDescOrderType.Default.(string) |
| |
| paymentorder.OrderTypeValidator = paymentorderDescOrderType.Validators[0].(func(string) error) |
| |
| paymentorderDescProviderInstanceID := paymentorderFields[18].Descriptor() |
| |
| paymentorder.ProviderInstanceIDValidator = paymentorderDescProviderInstanceID.Validators[0].(func(string) error) |
| |
| paymentorderDescProviderKey := paymentorderFields[19].Descriptor() |
| |
| paymentorder.ProviderKeyValidator = paymentorderDescProviderKey.Validators[0].(func(string) error) |
| |
| paymentorderDescStatus := paymentorderFields[21].Descriptor() |
| |
| paymentorder.DefaultStatus = paymentorderDescStatus.Default.(string) |
| |
| paymentorder.StatusValidator = paymentorderDescStatus.Validators[0].(func(string) error) |
| |
| paymentorderDescRefundAmount := paymentorderFields[22].Descriptor() |
| |
| paymentorder.DefaultRefundAmount = paymentorderDescRefundAmount.Default.(float64) |
| |
| paymentorderDescForceRefund := paymentorderFields[25].Descriptor() |
| |
| paymentorder.DefaultForceRefund = paymentorderDescForceRefund.Default.(bool) |
| |
| paymentorderDescRefundRequestedBy := paymentorderFields[28].Descriptor() |
| |
| paymentorder.RefundRequestedByValidator = paymentorderDescRefundRequestedBy.Validators[0].(func(string) error) |
| |
| paymentorderDescClientIP := paymentorderFields[34].Descriptor() |
| |
| paymentorder.ClientIPValidator = paymentorderDescClientIP.Validators[0].(func(string) error) |
| |
| paymentorderDescSrcHost := paymentorderFields[35].Descriptor() |
| |
| paymentorder.SrcHostValidator = paymentorderDescSrcHost.Validators[0].(func(string) error) |
| |
| paymentorderDescCreatedAt := paymentorderFields[37].Descriptor() |
| |
| paymentorder.DefaultCreatedAt = paymentorderDescCreatedAt.Default.(func() time.Time) |
| |
| paymentorderDescUpdatedAt := paymentorderFields[38].Descriptor() |
| |
| paymentorder.DefaultUpdatedAt = paymentorderDescUpdatedAt.Default.(func() time.Time) |
| |
| paymentorder.UpdateDefaultUpdatedAt = paymentorderDescUpdatedAt.UpdateDefault.(func() time.Time) |
| paymentproviderinstanceFields := schema.PaymentProviderInstance{}.Fields() |
| _ = paymentproviderinstanceFields |
| |
| paymentproviderinstanceDescProviderKey := paymentproviderinstanceFields[0].Descriptor() |
| |
| paymentproviderinstance.ProviderKeyValidator = func() func(string) error { |
| validators := paymentproviderinstanceDescProviderKey.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(provider_key string) error { |
| for _, fn := range fns { |
| if err := fn(provider_key); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| paymentproviderinstanceDescName := paymentproviderinstanceFields[1].Descriptor() |
| |
| paymentproviderinstance.DefaultName = paymentproviderinstanceDescName.Default.(string) |
| |
| paymentproviderinstance.NameValidator = paymentproviderinstanceDescName.Validators[0].(func(string) error) |
| |
| paymentproviderinstanceDescSupportedTypes := paymentproviderinstanceFields[3].Descriptor() |
| |
| paymentproviderinstance.DefaultSupportedTypes = paymentproviderinstanceDescSupportedTypes.Default.(string) |
| |
| paymentproviderinstance.SupportedTypesValidator = paymentproviderinstanceDescSupportedTypes.Validators[0].(func(string) error) |
| |
| paymentproviderinstanceDescEnabled := paymentproviderinstanceFields[4].Descriptor() |
| |
| paymentproviderinstance.DefaultEnabled = paymentproviderinstanceDescEnabled.Default.(bool) |
| |
| paymentproviderinstanceDescPaymentMode := paymentproviderinstanceFields[5].Descriptor() |
| |
| paymentproviderinstance.DefaultPaymentMode = paymentproviderinstanceDescPaymentMode.Default.(string) |
| |
| paymentproviderinstance.PaymentModeValidator = paymentproviderinstanceDescPaymentMode.Validators[0].(func(string) error) |
| |
| paymentproviderinstanceDescSortOrder := paymentproviderinstanceFields[6].Descriptor() |
| |
| paymentproviderinstance.DefaultSortOrder = paymentproviderinstanceDescSortOrder.Default.(int) |
| |
| paymentproviderinstanceDescLimits := paymentproviderinstanceFields[7].Descriptor() |
| |
| paymentproviderinstance.DefaultLimits = paymentproviderinstanceDescLimits.Default.(string) |
| |
| paymentproviderinstanceDescRefundEnabled := paymentproviderinstanceFields[8].Descriptor() |
| |
| paymentproviderinstance.DefaultRefundEnabled = paymentproviderinstanceDescRefundEnabled.Default.(bool) |
| |
| paymentproviderinstanceDescAllowUserRefund := paymentproviderinstanceFields[9].Descriptor() |
| |
| paymentproviderinstance.DefaultAllowUserRefund = paymentproviderinstanceDescAllowUserRefund.Default.(bool) |
| |
| paymentproviderinstanceDescCreatedAt := paymentproviderinstanceFields[10].Descriptor() |
| |
| paymentproviderinstance.DefaultCreatedAt = paymentproviderinstanceDescCreatedAt.Default.(func() time.Time) |
| |
| paymentproviderinstanceDescUpdatedAt := paymentproviderinstanceFields[11].Descriptor() |
| |
| paymentproviderinstance.DefaultUpdatedAt = paymentproviderinstanceDescUpdatedAt.Default.(func() time.Time) |
| |
| paymentproviderinstance.UpdateDefaultUpdatedAt = paymentproviderinstanceDescUpdatedAt.UpdateDefault.(func() time.Time) |
| pendingauthsessionMixin := schema.PendingAuthSession{}.Mixin() |
| pendingauthsessionMixinFields0 := pendingauthsessionMixin[0].Fields() |
| _ = pendingauthsessionMixinFields0 |
| pendingauthsessionFields := schema.PendingAuthSession{}.Fields() |
| _ = pendingauthsessionFields |
| |
| pendingauthsessionDescCreatedAt := pendingauthsessionMixinFields0[0].Descriptor() |
| |
| pendingauthsession.DefaultCreatedAt = pendingauthsessionDescCreatedAt.Default.(func() time.Time) |
| |
| pendingauthsessionDescUpdatedAt := pendingauthsessionMixinFields0[1].Descriptor() |
| |
| pendingauthsession.DefaultUpdatedAt = pendingauthsessionDescUpdatedAt.Default.(func() time.Time) |
| |
| pendingauthsession.UpdateDefaultUpdatedAt = pendingauthsessionDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| pendingauthsessionDescSessionToken := pendingauthsessionFields[0].Descriptor() |
| |
| pendingauthsession.SessionTokenValidator = func() func(string) error { |
| validators := pendingauthsessionDescSessionToken.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(session_token string) error { |
| for _, fn := range fns { |
| if err := fn(session_token); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| pendingauthsessionDescIntent := pendingauthsessionFields[1].Descriptor() |
| |
| pendingauthsession.IntentValidator = func() func(string) error { |
| validators := pendingauthsessionDescIntent.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| validators[2].(func(string) error), |
| } |
| return func(intent string) error { |
| for _, fn := range fns { |
| if err := fn(intent); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| pendingauthsessionDescProviderType := pendingauthsessionFields[2].Descriptor() |
| |
| pendingauthsession.ProviderTypeValidator = func() func(string) error { |
| validators := pendingauthsessionDescProviderType.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| validators[2].(func(string) error), |
| } |
| return func(provider_type string) error { |
| for _, fn := range fns { |
| if err := fn(provider_type); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| pendingauthsessionDescProviderKey := pendingauthsessionFields[3].Descriptor() |
| |
| pendingauthsession.ProviderKeyValidator = pendingauthsessionDescProviderKey.Validators[0].(func(string) error) |
| |
| pendingauthsessionDescProviderSubject := pendingauthsessionFields[4].Descriptor() |
| |
| pendingauthsession.ProviderSubjectValidator = pendingauthsessionDescProviderSubject.Validators[0].(func(string) error) |
| |
| pendingauthsessionDescRedirectTo := pendingauthsessionFields[6].Descriptor() |
| |
| pendingauthsession.DefaultRedirectTo = pendingauthsessionDescRedirectTo.Default.(string) |
| |
| pendingauthsessionDescResolvedEmail := pendingauthsessionFields[7].Descriptor() |
| |
| pendingauthsession.DefaultResolvedEmail = pendingauthsessionDescResolvedEmail.Default.(string) |
| |
| pendingauthsessionDescRegistrationPasswordHash := pendingauthsessionFields[8].Descriptor() |
| |
| pendingauthsession.DefaultRegistrationPasswordHash = pendingauthsessionDescRegistrationPasswordHash.Default.(string) |
| |
| pendingauthsessionDescUpstreamIdentityClaims := pendingauthsessionFields[9].Descriptor() |
| |
| pendingauthsession.DefaultUpstreamIdentityClaims = pendingauthsessionDescUpstreamIdentityClaims.Default.(func() map[string]interface{}) |
| |
| pendingauthsessionDescLocalFlowState := pendingauthsessionFields[10].Descriptor() |
| |
| pendingauthsession.DefaultLocalFlowState = pendingauthsessionDescLocalFlowState.Default.(func() map[string]interface{}) |
| |
| pendingauthsessionDescBrowserSessionKey := pendingauthsessionFields[11].Descriptor() |
| |
| pendingauthsession.DefaultBrowserSessionKey = pendingauthsessionDescBrowserSessionKey.Default.(string) |
| |
| pendingauthsessionDescCompletionCodeHash := pendingauthsessionFields[12].Descriptor() |
| |
| pendingauthsession.DefaultCompletionCodeHash = pendingauthsessionDescCompletionCodeHash.Default.(string) |
| promocodeFields := schema.PromoCode{}.Fields() |
| _ = promocodeFields |
| |
| promocodeDescCode := promocodeFields[0].Descriptor() |
| |
| promocode.CodeValidator = func() func(string) error { |
| validators := promocodeDescCode.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(code string) error { |
| for _, fn := range fns { |
| if err := fn(code); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| promocodeDescBonusAmount := promocodeFields[1].Descriptor() |
| |
| promocode.DefaultBonusAmount = promocodeDescBonusAmount.Default.(float64) |
| |
| promocodeDescMaxUses := promocodeFields[2].Descriptor() |
| |
| promocode.DefaultMaxUses = promocodeDescMaxUses.Default.(int) |
| |
| promocodeDescUsedCount := promocodeFields[3].Descriptor() |
| |
| promocode.DefaultUsedCount = promocodeDescUsedCount.Default.(int) |
| |
| promocodeDescStatus := promocodeFields[4].Descriptor() |
| |
| promocode.DefaultStatus = promocodeDescStatus.Default.(string) |
| |
| promocode.StatusValidator = promocodeDescStatus.Validators[0].(func(string) error) |
| |
| promocodeDescCreatedAt := promocodeFields[7].Descriptor() |
| |
| promocode.DefaultCreatedAt = promocodeDescCreatedAt.Default.(func() time.Time) |
| |
| promocodeDescUpdatedAt := promocodeFields[8].Descriptor() |
| |
| promocode.DefaultUpdatedAt = promocodeDescUpdatedAt.Default.(func() time.Time) |
| |
| promocode.UpdateDefaultUpdatedAt = promocodeDescUpdatedAt.UpdateDefault.(func() time.Time) |
| promocodeusageFields := schema.PromoCodeUsage{}.Fields() |
| _ = promocodeusageFields |
| |
| promocodeusageDescUsedAt := promocodeusageFields[3].Descriptor() |
| |
| promocodeusage.DefaultUsedAt = promocodeusageDescUsedAt.Default.(func() time.Time) |
| proxyMixin := schema.Proxy{}.Mixin() |
| proxyMixinHooks1 := proxyMixin[1].Hooks() |
| proxy.Hooks[0] = proxyMixinHooks1[0] |
| proxyMixinInters1 := proxyMixin[1].Interceptors() |
| proxy.Interceptors[0] = proxyMixinInters1[0] |
| proxyMixinFields0 := proxyMixin[0].Fields() |
| _ = proxyMixinFields0 |
| proxyFields := schema.Proxy{}.Fields() |
| _ = proxyFields |
| |
| proxyDescCreatedAt := proxyMixinFields0[0].Descriptor() |
| |
| proxy.DefaultCreatedAt = proxyDescCreatedAt.Default.(func() time.Time) |
| |
| proxyDescUpdatedAt := proxyMixinFields0[1].Descriptor() |
| |
| proxy.DefaultUpdatedAt = proxyDescUpdatedAt.Default.(func() time.Time) |
| |
| proxy.UpdateDefaultUpdatedAt = proxyDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| proxyDescName := proxyFields[0].Descriptor() |
| |
| proxy.NameValidator = func() func(string) error { |
| validators := proxyDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| proxyDescProtocol := proxyFields[1].Descriptor() |
| |
| proxy.ProtocolValidator = func() func(string) error { |
| validators := proxyDescProtocol.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(protocol string) error { |
| for _, fn := range fns { |
| if err := fn(protocol); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| proxyDescHost := proxyFields[2].Descriptor() |
| |
| proxy.HostValidator = func() func(string) error { |
| validators := proxyDescHost.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(host string) error { |
| for _, fn := range fns { |
| if err := fn(host); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| proxyDescUsername := proxyFields[4].Descriptor() |
| |
| proxy.UsernameValidator = proxyDescUsername.Validators[0].(func(string) error) |
| |
| proxyDescPassword := proxyFields[5].Descriptor() |
| |
| proxy.PasswordValidator = proxyDescPassword.Validators[0].(func(string) error) |
| |
| proxyDescStatus := proxyFields[6].Descriptor() |
| |
| proxy.DefaultStatus = proxyDescStatus.Default.(string) |
| |
| proxy.StatusValidator = proxyDescStatus.Validators[0].(func(string) error) |
| redeemcodeFields := schema.RedeemCode{}.Fields() |
| _ = redeemcodeFields |
| |
| redeemcodeDescCode := redeemcodeFields[0].Descriptor() |
| |
| redeemcode.CodeValidator = func() func(string) error { |
| validators := redeemcodeDescCode.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(code string) error { |
| for _, fn := range fns { |
| if err := fn(code); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| redeemcodeDescType := redeemcodeFields[1].Descriptor() |
| |
| redeemcode.DefaultType = redeemcodeDescType.Default.(string) |
| |
| redeemcode.TypeValidator = redeemcodeDescType.Validators[0].(func(string) error) |
| |
| redeemcodeDescValue := redeemcodeFields[2].Descriptor() |
| |
| redeemcode.DefaultValue = redeemcodeDescValue.Default.(float64) |
| |
| redeemcodeDescStatus := redeemcodeFields[3].Descriptor() |
| |
| redeemcode.DefaultStatus = redeemcodeDescStatus.Default.(string) |
| |
| redeemcode.StatusValidator = redeemcodeDescStatus.Validators[0].(func(string) error) |
| |
| redeemcodeDescCreatedAt := redeemcodeFields[7].Descriptor() |
| |
| redeemcode.DefaultCreatedAt = redeemcodeDescCreatedAt.Default.(func() time.Time) |
| |
| redeemcodeDescValidityDays := redeemcodeFields[10].Descriptor() |
| |
| redeemcode.DefaultValidityDays = redeemcodeDescValidityDays.Default.(int) |
| securitysecretMixin := schema.SecuritySecret{}.Mixin() |
| securitysecretMixinFields0 := securitysecretMixin[0].Fields() |
| _ = securitysecretMixinFields0 |
| securitysecretFields := schema.SecuritySecret{}.Fields() |
| _ = securitysecretFields |
| |
| securitysecretDescCreatedAt := securitysecretMixinFields0[0].Descriptor() |
| |
| securitysecret.DefaultCreatedAt = securitysecretDescCreatedAt.Default.(func() time.Time) |
| |
| securitysecretDescUpdatedAt := securitysecretMixinFields0[1].Descriptor() |
| |
| securitysecret.DefaultUpdatedAt = securitysecretDescUpdatedAt.Default.(func() time.Time) |
| |
| securitysecret.UpdateDefaultUpdatedAt = securitysecretDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| securitysecretDescKey := securitysecretFields[0].Descriptor() |
| |
| securitysecret.KeyValidator = func() func(string) error { |
| validators := securitysecretDescKey.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(key string) error { |
| for _, fn := range fns { |
| if err := fn(key); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| securitysecretDescValue := securitysecretFields[1].Descriptor() |
| |
| securitysecret.ValueValidator = securitysecretDescValue.Validators[0].(func(string) error) |
| settingFields := schema.Setting{}.Fields() |
| _ = settingFields |
| |
| settingDescKey := settingFields[0].Descriptor() |
| |
| setting.KeyValidator = func() func(string) error { |
| validators := settingDescKey.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(key string) error { |
| for _, fn := range fns { |
| if err := fn(key); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| settingDescUpdatedAt := settingFields[2].Descriptor() |
| |
| setting.DefaultUpdatedAt = settingDescUpdatedAt.Default.(func() time.Time) |
| |
| setting.UpdateDefaultUpdatedAt = settingDescUpdatedAt.UpdateDefault.(func() time.Time) |
| subscriptionplanFields := schema.SubscriptionPlan{}.Fields() |
| _ = subscriptionplanFields |
| |
| subscriptionplanDescName := subscriptionplanFields[1].Descriptor() |
| |
| subscriptionplan.NameValidator = func() func(string) error { |
| validators := subscriptionplanDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| subscriptionplanDescDescription := subscriptionplanFields[2].Descriptor() |
| |
| subscriptionplan.DefaultDescription = subscriptionplanDescDescription.Default.(string) |
| |
| subscriptionplanDescValidityDays := subscriptionplanFields[5].Descriptor() |
| |
| subscriptionplan.DefaultValidityDays = subscriptionplanDescValidityDays.Default.(int) |
| |
| subscriptionplanDescValidityUnit := subscriptionplanFields[6].Descriptor() |
| |
| subscriptionplan.DefaultValidityUnit = subscriptionplanDescValidityUnit.Default.(string) |
| |
| subscriptionplan.ValidityUnitValidator = subscriptionplanDescValidityUnit.Validators[0].(func(string) error) |
| |
| subscriptionplanDescFeatures := subscriptionplanFields[7].Descriptor() |
| |
| subscriptionplan.DefaultFeatures = subscriptionplanDescFeatures.Default.(string) |
| |
| subscriptionplanDescProductName := subscriptionplanFields[8].Descriptor() |
| |
| subscriptionplan.DefaultProductName = subscriptionplanDescProductName.Default.(string) |
| |
| subscriptionplan.ProductNameValidator = subscriptionplanDescProductName.Validators[0].(func(string) error) |
| |
| subscriptionplanDescForSale := subscriptionplanFields[9].Descriptor() |
| |
| subscriptionplan.DefaultForSale = subscriptionplanDescForSale.Default.(bool) |
| |
| subscriptionplanDescSortOrder := subscriptionplanFields[10].Descriptor() |
| |
| subscriptionplan.DefaultSortOrder = subscriptionplanDescSortOrder.Default.(int) |
| |
| subscriptionplanDescCreatedAt := subscriptionplanFields[11].Descriptor() |
| |
| subscriptionplan.DefaultCreatedAt = subscriptionplanDescCreatedAt.Default.(func() time.Time) |
| |
| subscriptionplanDescUpdatedAt := subscriptionplanFields[12].Descriptor() |
| |
| subscriptionplan.DefaultUpdatedAt = subscriptionplanDescUpdatedAt.Default.(func() time.Time) |
| |
| subscriptionplan.UpdateDefaultUpdatedAt = subscriptionplanDescUpdatedAt.UpdateDefault.(func() time.Time) |
| tlsfingerprintprofileMixin := schema.TLSFingerprintProfile{}.Mixin() |
| tlsfingerprintprofileMixinFields0 := tlsfingerprintprofileMixin[0].Fields() |
| _ = tlsfingerprintprofileMixinFields0 |
| tlsfingerprintprofileFields := schema.TLSFingerprintProfile{}.Fields() |
| _ = tlsfingerprintprofileFields |
| |
| tlsfingerprintprofileDescCreatedAt := tlsfingerprintprofileMixinFields0[0].Descriptor() |
| |
| tlsfingerprintprofile.DefaultCreatedAt = tlsfingerprintprofileDescCreatedAt.Default.(func() time.Time) |
| |
| tlsfingerprintprofileDescUpdatedAt := tlsfingerprintprofileMixinFields0[1].Descriptor() |
| |
| tlsfingerprintprofile.DefaultUpdatedAt = tlsfingerprintprofileDescUpdatedAt.Default.(func() time.Time) |
| |
| tlsfingerprintprofile.UpdateDefaultUpdatedAt = tlsfingerprintprofileDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| tlsfingerprintprofileDescName := tlsfingerprintprofileFields[0].Descriptor() |
| |
| tlsfingerprintprofile.NameValidator = func() func(string) error { |
| validators := tlsfingerprintprofileDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| tlsfingerprintprofileDescEnableGrease := tlsfingerprintprofileFields[2].Descriptor() |
| |
| tlsfingerprintprofile.DefaultEnableGrease = tlsfingerprintprofileDescEnableGrease.Default.(bool) |
| usagecleanuptaskMixin := schema.UsageCleanupTask{}.Mixin() |
| usagecleanuptaskMixinFields0 := usagecleanuptaskMixin[0].Fields() |
| _ = usagecleanuptaskMixinFields0 |
| usagecleanuptaskFields := schema.UsageCleanupTask{}.Fields() |
| _ = usagecleanuptaskFields |
| |
| usagecleanuptaskDescCreatedAt := usagecleanuptaskMixinFields0[0].Descriptor() |
| |
| usagecleanuptask.DefaultCreatedAt = usagecleanuptaskDescCreatedAt.Default.(func() time.Time) |
| |
| usagecleanuptaskDescUpdatedAt := usagecleanuptaskMixinFields0[1].Descriptor() |
| |
| usagecleanuptask.DefaultUpdatedAt = usagecleanuptaskDescUpdatedAt.Default.(func() time.Time) |
| |
| usagecleanuptask.UpdateDefaultUpdatedAt = usagecleanuptaskDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| usagecleanuptaskDescStatus := usagecleanuptaskFields[0].Descriptor() |
| |
| usagecleanuptask.StatusValidator = func() func(string) error { |
| validators := usagecleanuptaskDescStatus.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(status string) error { |
| for _, fn := range fns { |
| if err := fn(status); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| usagecleanuptaskDescDeletedRows := usagecleanuptaskFields[3].Descriptor() |
| |
| usagecleanuptask.DefaultDeletedRows = usagecleanuptaskDescDeletedRows.Default.(int64) |
| usagelogFields := schema.UsageLog{}.Fields() |
| _ = usagelogFields |
| |
| usagelogDescRequestID := usagelogFields[3].Descriptor() |
| |
| usagelog.RequestIDValidator = func() func(string) error { |
| validators := usagelogDescRequestID.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(request_id string) error { |
| for _, fn := range fns { |
| if err := fn(request_id); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| usagelogDescModel := usagelogFields[4].Descriptor() |
| |
| usagelog.ModelValidator = func() func(string) error { |
| validators := usagelogDescModel.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(model string) error { |
| for _, fn := range fns { |
| if err := fn(model); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| usagelogDescRequestedModel := usagelogFields[5].Descriptor() |
| |
| usagelog.RequestedModelValidator = usagelogDescRequestedModel.Validators[0].(func(string) error) |
| |
| usagelogDescUpstreamModel := usagelogFields[6].Descriptor() |
| |
| usagelog.UpstreamModelValidator = usagelogDescUpstreamModel.Validators[0].(func(string) error) |
| |
| usagelogDescModelMappingChain := usagelogFields[8].Descriptor() |
| |
| usagelog.ModelMappingChainValidator = usagelogDescModelMappingChain.Validators[0].(func(string) error) |
| |
| usagelogDescBillingTier := usagelogFields[9].Descriptor() |
| |
| usagelog.BillingTierValidator = usagelogDescBillingTier.Validators[0].(func(string) error) |
| |
| usagelogDescBillingMode := usagelogFields[10].Descriptor() |
| |
| usagelog.BillingModeValidator = usagelogDescBillingMode.Validators[0].(func(string) error) |
| |
| usagelogDescInputTokens := usagelogFields[13].Descriptor() |
| |
| usagelog.DefaultInputTokens = usagelogDescInputTokens.Default.(int) |
| |
| usagelogDescOutputTokens := usagelogFields[14].Descriptor() |
| |
| usagelog.DefaultOutputTokens = usagelogDescOutputTokens.Default.(int) |
| |
| usagelogDescCacheCreationTokens := usagelogFields[15].Descriptor() |
| |
| usagelog.DefaultCacheCreationTokens = usagelogDescCacheCreationTokens.Default.(int) |
| |
| usagelogDescCacheReadTokens := usagelogFields[16].Descriptor() |
| |
| usagelog.DefaultCacheReadTokens = usagelogDescCacheReadTokens.Default.(int) |
| |
| usagelogDescCacheCreation5mTokens := usagelogFields[17].Descriptor() |
| |
| usagelog.DefaultCacheCreation5mTokens = usagelogDescCacheCreation5mTokens.Default.(int) |
| |
| usagelogDescCacheCreation1hTokens := usagelogFields[18].Descriptor() |
| |
| usagelog.DefaultCacheCreation1hTokens = usagelogDescCacheCreation1hTokens.Default.(int) |
| |
| usagelogDescInputCost := usagelogFields[19].Descriptor() |
| |
| usagelog.DefaultInputCost = usagelogDescInputCost.Default.(float64) |
| |
| usagelogDescOutputCost := usagelogFields[20].Descriptor() |
| |
| usagelog.DefaultOutputCost = usagelogDescOutputCost.Default.(float64) |
| |
| usagelogDescCacheCreationCost := usagelogFields[21].Descriptor() |
| |
| usagelog.DefaultCacheCreationCost = usagelogDescCacheCreationCost.Default.(float64) |
| |
| usagelogDescCacheReadCost := usagelogFields[22].Descriptor() |
| |
| usagelog.DefaultCacheReadCost = usagelogDescCacheReadCost.Default.(float64) |
| |
| usagelogDescTotalCost := usagelogFields[23].Descriptor() |
| |
| usagelog.DefaultTotalCost = usagelogDescTotalCost.Default.(float64) |
| |
| usagelogDescActualCost := usagelogFields[24].Descriptor() |
| |
| usagelog.DefaultActualCost = usagelogDescActualCost.Default.(float64) |
| |
| usagelogDescRateMultiplier := usagelogFields[25].Descriptor() |
| |
| usagelog.DefaultRateMultiplier = usagelogDescRateMultiplier.Default.(float64) |
| |
| usagelogDescBillingType := usagelogFields[27].Descriptor() |
| |
| usagelog.DefaultBillingType = usagelogDescBillingType.Default.(int8) |
| |
| usagelogDescStream := usagelogFields[28].Descriptor() |
| |
| usagelog.DefaultStream = usagelogDescStream.Default.(bool) |
| |
| usagelogDescUserAgent := usagelogFields[31].Descriptor() |
| |
| usagelog.UserAgentValidator = usagelogDescUserAgent.Validators[0].(func(string) error) |
| |
| usagelogDescIPAddress := usagelogFields[32].Descriptor() |
| |
| usagelog.IPAddressValidator = usagelogDescIPAddress.Validators[0].(func(string) error) |
| |
| usagelogDescImageCount := usagelogFields[33].Descriptor() |
| |
| usagelog.DefaultImageCount = usagelogDescImageCount.Default.(int) |
| |
| usagelogDescImageSize := usagelogFields[34].Descriptor() |
| |
| usagelog.ImageSizeValidator = usagelogDescImageSize.Validators[0].(func(string) error) |
| |
| usagelogDescImageInputSize := usagelogFields[35].Descriptor() |
| |
| usagelog.ImageInputSizeValidator = usagelogDescImageInputSize.Validators[0].(func(string) error) |
| |
| usagelogDescImageOutputSize := usagelogFields[36].Descriptor() |
| |
| usagelog.ImageOutputSizeValidator = usagelogDescImageOutputSize.Validators[0].(func(string) error) |
| |
| usagelogDescImageSizeSource := usagelogFields[37].Descriptor() |
| |
| usagelog.ImageSizeSourceValidator = usagelogDescImageSizeSource.Validators[0].(func(string) error) |
| |
| usagelogDescCacheTTLOverridden := usagelogFields[39].Descriptor() |
| |
| usagelog.DefaultCacheTTLOverridden = usagelogDescCacheTTLOverridden.Default.(bool) |
| |
| usagelogDescCreatedAt := usagelogFields[40].Descriptor() |
| |
| usagelog.DefaultCreatedAt = usagelogDescCreatedAt.Default.(func() time.Time) |
| userMixin := schema.User{}.Mixin() |
| userMixinHooks1 := userMixin[1].Hooks() |
| user.Hooks[0] = userMixinHooks1[0] |
| userMixinInters1 := userMixin[1].Interceptors() |
| user.Interceptors[0] = userMixinInters1[0] |
| userMixinFields0 := userMixin[0].Fields() |
| _ = userMixinFields0 |
| userFields := schema.User{}.Fields() |
| _ = userFields |
| |
| userDescCreatedAt := userMixinFields0[0].Descriptor() |
| |
| user.DefaultCreatedAt = userDescCreatedAt.Default.(func() time.Time) |
| |
| userDescUpdatedAt := userMixinFields0[1].Descriptor() |
| |
| user.DefaultUpdatedAt = userDescUpdatedAt.Default.(func() time.Time) |
| |
| user.UpdateDefaultUpdatedAt = userDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| userDescEmail := userFields[0].Descriptor() |
| |
| user.EmailValidator = func() func(string) error { |
| validators := userDescEmail.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(email string) error { |
| for _, fn := range fns { |
| if err := fn(email); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userDescPasswordHash := userFields[1].Descriptor() |
| |
| user.PasswordHashValidator = func() func(string) error { |
| validators := userDescPasswordHash.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(password_hash string) error { |
| for _, fn := range fns { |
| if err := fn(password_hash); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userDescRole := userFields[2].Descriptor() |
| |
| user.DefaultRole = userDescRole.Default.(string) |
| |
| user.RoleValidator = userDescRole.Validators[0].(func(string) error) |
| |
| userDescBalance := userFields[3].Descriptor() |
| |
| user.DefaultBalance = userDescBalance.Default.(float64) |
| |
| userDescConcurrency := userFields[4].Descriptor() |
| |
| user.DefaultConcurrency = userDescConcurrency.Default.(int) |
| |
| userDescStatus := userFields[5].Descriptor() |
| |
| user.DefaultStatus = userDescStatus.Default.(string) |
| |
| user.StatusValidator = userDescStatus.Validators[0].(func(string) error) |
| |
| userDescUsername := userFields[6].Descriptor() |
| |
| user.DefaultUsername = userDescUsername.Default.(string) |
| |
| user.UsernameValidator = userDescUsername.Validators[0].(func(string) error) |
| |
| userDescNotes := userFields[7].Descriptor() |
| |
| user.DefaultNotes = userDescNotes.Default.(string) |
| |
| userDescTotpEnabled := userFields[9].Descriptor() |
| |
| user.DefaultTotpEnabled = userDescTotpEnabled.Default.(bool) |
| |
| userDescSignupSource := userFields[11].Descriptor() |
| |
| user.DefaultSignupSource = userDescSignupSource.Default.(string) |
| |
| user.SignupSourceValidator = userDescSignupSource.Validators[0].(func(string) error) |
| |
| userDescBalanceNotifyEnabled := userFields[14].Descriptor() |
| |
| user.DefaultBalanceNotifyEnabled = userDescBalanceNotifyEnabled.Default.(bool) |
| |
| userDescBalanceNotifyThresholdType := userFields[15].Descriptor() |
| |
| user.DefaultBalanceNotifyThresholdType = userDescBalanceNotifyThresholdType.Default.(string) |
| |
| userDescBalanceNotifyExtraEmails := userFields[17].Descriptor() |
| |
| user.DefaultBalanceNotifyExtraEmails = userDescBalanceNotifyExtraEmails.Default.(string) |
| |
| userDescTotalRecharged := userFields[18].Descriptor() |
| |
| user.DefaultTotalRecharged = userDescTotalRecharged.Default.(float64) |
| |
| userDescRpmLimit := userFields[19].Descriptor() |
| |
| user.DefaultRpmLimit = userDescRpmLimit.Default.(int) |
| userallowedgroupFields := schema.UserAllowedGroup{}.Fields() |
| _ = userallowedgroupFields |
| |
| userallowedgroupDescCreatedAt := userallowedgroupFields[2].Descriptor() |
| |
| userallowedgroup.DefaultCreatedAt = userallowedgroupDescCreatedAt.Default.(func() time.Time) |
| userattributedefinitionMixin := schema.UserAttributeDefinition{}.Mixin() |
| userattributedefinitionMixinHooks1 := userattributedefinitionMixin[1].Hooks() |
| userattributedefinition.Hooks[0] = userattributedefinitionMixinHooks1[0] |
| userattributedefinitionMixinInters1 := userattributedefinitionMixin[1].Interceptors() |
| userattributedefinition.Interceptors[0] = userattributedefinitionMixinInters1[0] |
| userattributedefinitionMixinFields0 := userattributedefinitionMixin[0].Fields() |
| _ = userattributedefinitionMixinFields0 |
| userattributedefinitionFields := schema.UserAttributeDefinition{}.Fields() |
| _ = userattributedefinitionFields |
| |
| userattributedefinitionDescCreatedAt := userattributedefinitionMixinFields0[0].Descriptor() |
| |
| userattributedefinition.DefaultCreatedAt = userattributedefinitionDescCreatedAt.Default.(func() time.Time) |
| |
| userattributedefinitionDescUpdatedAt := userattributedefinitionMixinFields0[1].Descriptor() |
| |
| userattributedefinition.DefaultUpdatedAt = userattributedefinitionDescUpdatedAt.Default.(func() time.Time) |
| |
| userattributedefinition.UpdateDefaultUpdatedAt = userattributedefinitionDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| userattributedefinitionDescKey := userattributedefinitionFields[0].Descriptor() |
| |
| userattributedefinition.KeyValidator = func() func(string) error { |
| validators := userattributedefinitionDescKey.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(key string) error { |
| for _, fn := range fns { |
| if err := fn(key); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userattributedefinitionDescName := userattributedefinitionFields[1].Descriptor() |
| |
| userattributedefinition.NameValidator = func() func(string) error { |
| validators := userattributedefinitionDescName.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(name string) error { |
| for _, fn := range fns { |
| if err := fn(name); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userattributedefinitionDescDescription := userattributedefinitionFields[2].Descriptor() |
| |
| userattributedefinition.DefaultDescription = userattributedefinitionDescDescription.Default.(string) |
| |
| userattributedefinitionDescType := userattributedefinitionFields[3].Descriptor() |
| |
| userattributedefinition.TypeValidator = func() func(string) error { |
| validators := userattributedefinitionDescType.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| } |
| return func(_type string) error { |
| for _, fn := range fns { |
| if err := fn(_type); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userattributedefinitionDescOptions := userattributedefinitionFields[4].Descriptor() |
| |
| userattributedefinition.DefaultOptions = userattributedefinitionDescOptions.Default.([]map[string]interface{}) |
| |
| userattributedefinitionDescRequired := userattributedefinitionFields[5].Descriptor() |
| |
| userattributedefinition.DefaultRequired = userattributedefinitionDescRequired.Default.(bool) |
| |
| userattributedefinitionDescValidation := userattributedefinitionFields[6].Descriptor() |
| |
| userattributedefinition.DefaultValidation = userattributedefinitionDescValidation.Default.(map[string]interface{}) |
| |
| userattributedefinitionDescPlaceholder := userattributedefinitionFields[7].Descriptor() |
| |
| userattributedefinition.DefaultPlaceholder = userattributedefinitionDescPlaceholder.Default.(string) |
| |
| userattributedefinition.PlaceholderValidator = userattributedefinitionDescPlaceholder.Validators[0].(func(string) error) |
| |
| userattributedefinitionDescDisplayOrder := userattributedefinitionFields[8].Descriptor() |
| |
| userattributedefinition.DefaultDisplayOrder = userattributedefinitionDescDisplayOrder.Default.(int) |
| |
| userattributedefinitionDescEnabled := userattributedefinitionFields[9].Descriptor() |
| |
| userattributedefinition.DefaultEnabled = userattributedefinitionDescEnabled.Default.(bool) |
| userattributevalueMixin := schema.UserAttributeValue{}.Mixin() |
| userattributevalueMixinFields0 := userattributevalueMixin[0].Fields() |
| _ = userattributevalueMixinFields0 |
| userattributevalueFields := schema.UserAttributeValue{}.Fields() |
| _ = userattributevalueFields |
| |
| userattributevalueDescCreatedAt := userattributevalueMixinFields0[0].Descriptor() |
| |
| userattributevalue.DefaultCreatedAt = userattributevalueDescCreatedAt.Default.(func() time.Time) |
| |
| userattributevalueDescUpdatedAt := userattributevalueMixinFields0[1].Descriptor() |
| |
| userattributevalue.DefaultUpdatedAt = userattributevalueDescUpdatedAt.Default.(func() time.Time) |
| |
| userattributevalue.UpdateDefaultUpdatedAt = userattributevalueDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| userattributevalueDescValue := userattributevalueFields[2].Descriptor() |
| |
| userattributevalue.DefaultValue = userattributevalueDescValue.Default.(string) |
| userplatformquotaMixin := schema.UserPlatformQuota{}.Mixin() |
| userplatformquotaMixinHooks1 := userplatformquotaMixin[1].Hooks() |
| userplatformquota.Hooks[0] = userplatformquotaMixinHooks1[0] |
| userplatformquotaMixinInters1 := userplatformquotaMixin[1].Interceptors() |
| userplatformquota.Interceptors[0] = userplatformquotaMixinInters1[0] |
| userplatformquotaMixinFields0 := userplatformquotaMixin[0].Fields() |
| _ = userplatformquotaMixinFields0 |
| userplatformquotaFields := schema.UserPlatformQuota{}.Fields() |
| _ = userplatformquotaFields |
| |
| userplatformquotaDescCreatedAt := userplatformquotaMixinFields0[0].Descriptor() |
| |
| userplatformquota.DefaultCreatedAt = userplatformquotaDescCreatedAt.Default.(func() time.Time) |
| |
| userplatformquotaDescUpdatedAt := userplatformquotaMixinFields0[1].Descriptor() |
| |
| userplatformquota.DefaultUpdatedAt = userplatformquotaDescUpdatedAt.Default.(func() time.Time) |
| |
| userplatformquota.UpdateDefaultUpdatedAt = userplatformquotaDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| userplatformquotaDescPlatform := userplatformquotaFields[1].Descriptor() |
| |
| userplatformquota.PlatformValidator = func() func(string) error { |
| validators := userplatformquotaDescPlatform.Validators |
| fns := [...]func(string) error{ |
| validators[0].(func(string) error), |
| validators[1].(func(string) error), |
| validators[2].(func(string) error), |
| } |
| return func(platform string) error { |
| for _, fn := range fns { |
| if err := fn(platform); err != nil { |
| return err |
| } |
| } |
| return nil |
| } |
| }() |
| |
| userplatformquotaDescDailyUsageUsd := userplatformquotaFields[5].Descriptor() |
| |
| userplatformquota.DefaultDailyUsageUsd = userplatformquotaDescDailyUsageUsd.Default.(float64) |
| |
| userplatformquotaDescWeeklyUsageUsd := userplatformquotaFields[6].Descriptor() |
| |
| userplatformquota.DefaultWeeklyUsageUsd = userplatformquotaDescWeeklyUsageUsd.Default.(float64) |
| |
| userplatformquotaDescMonthlyUsageUsd := userplatformquotaFields[7].Descriptor() |
| |
| userplatformquota.DefaultMonthlyUsageUsd = userplatformquotaDescMonthlyUsageUsd.Default.(float64) |
| usersubscriptionMixin := schema.UserSubscription{}.Mixin() |
| usersubscriptionMixinHooks1 := usersubscriptionMixin[1].Hooks() |
| usersubscription.Hooks[0] = usersubscriptionMixinHooks1[0] |
| usersubscriptionMixinInters1 := usersubscriptionMixin[1].Interceptors() |
| usersubscription.Interceptors[0] = usersubscriptionMixinInters1[0] |
| usersubscriptionMixinFields0 := usersubscriptionMixin[0].Fields() |
| _ = usersubscriptionMixinFields0 |
| usersubscriptionFields := schema.UserSubscription{}.Fields() |
| _ = usersubscriptionFields |
| |
| usersubscriptionDescCreatedAt := usersubscriptionMixinFields0[0].Descriptor() |
| |
| usersubscription.DefaultCreatedAt = usersubscriptionDescCreatedAt.Default.(func() time.Time) |
| |
| usersubscriptionDescUpdatedAt := usersubscriptionMixinFields0[1].Descriptor() |
| |
| usersubscription.DefaultUpdatedAt = usersubscriptionDescUpdatedAt.Default.(func() time.Time) |
| |
| usersubscription.UpdateDefaultUpdatedAt = usersubscriptionDescUpdatedAt.UpdateDefault.(func() time.Time) |
| |
| usersubscriptionDescStatus := usersubscriptionFields[4].Descriptor() |
| |
| usersubscription.DefaultStatus = usersubscriptionDescStatus.Default.(string) |
| |
| usersubscription.StatusValidator = usersubscriptionDescStatus.Validators[0].(func(string) error) |
| |
| usersubscriptionDescDailyUsageUsd := usersubscriptionFields[8].Descriptor() |
| |
| usersubscription.DefaultDailyUsageUsd = usersubscriptionDescDailyUsageUsd.Default.(float64) |
| |
| usersubscriptionDescWeeklyUsageUsd := usersubscriptionFields[9].Descriptor() |
| |
| usersubscription.DefaultWeeklyUsageUsd = usersubscriptionDescWeeklyUsageUsd.Default.(float64) |
| |
| usersubscriptionDescMonthlyUsageUsd := usersubscriptionFields[10].Descriptor() |
| |
| usersubscription.DefaultMonthlyUsageUsd = usersubscriptionDescMonthlyUsageUsd.Default.(float64) |
| |
| usersubscriptionDescAssignedAt := usersubscriptionFields[12].Descriptor() |
| |
| usersubscription.DefaultAssignedAt = usersubscriptionDescAssignedAt.Default.(func() time.Time) |
| } |
|
|
| const ( |
| Version = "v0.14.5" |
| Sum = "h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=" |
| ) |
|
|