package providers

const Keap Provider = "keap"

func init() {
	// Keap configuration
	SetInfo(Keap, ProviderInfo{
		DisplayName: "Keap",
		AuthType:    Oauth2,
		BaseURL:     "https://api.infusionsoft.com",
		Oauth2Opts: &Oauth2Opts{
			GrantType:                 AuthorizationCode,
			AuthURL:                   "https://accounts.infusionsoft.com/app/oauth/authorize",
			TokenURL:                  "https://api.infusionsoft.com/token",
			ExplicitScopesRequired:    false,
			ExplicitWorkspaceRequired: false,
		},
		Support: Support{
			BulkWrite: BulkWriteSupport{
				Insert: false,
				Update: false,
				Upsert: false,
				Delete: false,
			},
			Proxy:     true,
			Read:      true,
			Subscribe: false,
			Write:     true,
		},
		Media: &Media{
			DarkMode: &MediaTypeDarkMode{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1724217756/media/Keap_DMI.png",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1722479751/media/keap_1722479749.svg",
			},
			Regular: &MediaTypeRegular{
				IconURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1722479775/media/keap_1722479774.svg",
				LogoURL: "https://res.cloudinary.com/dycvts6vp/image/upload/v1722479775/media/keap_1722479774.svg",
			},
		},
	})
}
