diff --git a/Taskfile.yaml b/Taskfile.yaml index f5615c65b..23616353e 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -9,7 +9,7 @@ tasks: cmds: - | BASE_URL=dev.kloudlite.io - COOKIE_DOMAIN=".kloudlite.io" + COOKIE_DOMAIN=".dev.kloudlite.io" GATEWAY_URL="http://gateway-api.kloudlite.svc.cluster.local:3000" case {{.app}} in "auth") diff --git a/gql-queries-generator/doc/queries.graphql b/gql-queries-generator/doc/queries.graphql index be22aa33f..c6a113d12 100644 --- a/gql-queries-generator/doc/queries.graphql +++ b/gql-queries-generator/doc/queries.graphql @@ -787,6 +787,10 @@ mutation consoleCreateEnvironment($env: EnvironmentIn!) { } } +mutation consoleSetupDefaultEnvironment { + core_setupDefaultEnvironment +} + mutation consoleUpdateEnvironment($env: EnvironmentIn!) { core_updateEnvironment(env: $env) { id @@ -4526,1690 +4530,155 @@ query consoleListRegistryImages($pq: CursorPaginationIn) { } } -query iotconsoleAccountCheckNameAvailability($name: String!) { - accounts_checkNameAvailability(name: $name) { - result - suggestedNames - } -} - -query iotconsoleCrCheckNameAvailability($name: String!) { - cr_checkUserNameAvailability(name: $name) { - result - suggestedNames - } -} - -query iotconsoleInfraCheckNameAvailability($resType: ResType!, $name: String!, $clusterName: String) { - infra_checkNameAvailability( - resType: $resType - name: $name - clusterName: $clusterName - ) { - suggestedNames - result - } -} - -query iotconsoleCoreCheckNameAvailability($resType: ConsoleResType!, $name: String!, $projectName: String, $envName: String) { - core_checkNameAvailability(resType: $resType, name: $name, envName: $envName) { - result - } -} - -query iotconsoleWhoAmI { - auth_me { - id - email - providerGitlab - providerGithub - providerGoogle - } -} - -mutation iotconsoleCreateAccount($account: AccountIn!) { - accounts_createAccount(account: $account) { - displayName - } -} - -query iotconsoleListAccounts { - accounts_listAccounts { - id - metadata { - name - annotations - } - updateTime - displayName - } -} - -mutation iotconsoleUpdateAccount($account: AccountIn!) { - accounts_updateAccount(account: $account) { - id - } -} - -query iotconsoleGetAccount($accountName: String!) { - accounts_getAccount(accountName: $accountName) { - metadata { - name - annotations - } - targetNamespace - updateTime - contactEmail - displayName - } -} - -mutation iotconsoleDeleteAccount($accountName: String!) { - accounts_deleteAccount(accountName: $accountName) -} - -mutation iotconsoleDeleteIotProject($name: String!) { - iot_deleteProject(name: $name) -} - -mutation iotconsoleCreateIotProject($project: IOTProjectIn!) { - iot_createProject(project: $project) { - id - } -} - -mutation iotconsoleUpdateIotProject($project: IOTProjectIn!) { - iot_updateProject(project: $project) { - id - } -} - -query iotconsoleGetIotProject($name: String!) { - iot_getProject(name: $name) { +mutation authCli_createGlobalVPNDevice($gvpnDevice: GlobalVPNDeviceIn!) { + infra_createGlobalVPNDevice(gvpnDevice: $gvpnDevice) { accountName + creationTime createdBy { userEmail userId userName } - creationTime displayName + globalVPNName id + ipAddr lastUpdatedBy { - userEmail - userId userName + userId + userEmail } markedForDeletion - name + metadata { + annotations + creationTimestamp + deletionTimestamp + generation + labels + name + namespace + } + privateKey + publicKey recordVersion updateTime - } -} - -query iotconsoleListIotProjects($search: SearchIOTProjects, $pq: CursorPaginationIn) { - iot_listProjects(search: $search, pq: $pq) { - edges { - node { - displayName - name - creationTime - markedForDeletion - updateTime - createdBy { - userEmail - userName - userId - } - lastUpdatedBy { - userEmail - userName - userId - } - } - cursor - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor + wireguardConfig { + value + encoding } - totalCount } } -mutation iotconsoleDeleteIotDeviceBlueprint($projectName: String!, $name: String!) { - iot_deleteDeviceBlueprint(projectName: $projectName, name: $name) -} - -mutation iotconsoleCreateIotDeviceBlueprint($deviceBlueprint: IOTDeviceBlueprintIn!, $projectName: String!) { - iot_createDeviceBlueprint( - projectName: $projectName - deviceBlueprint: $deviceBlueprint - ) { - id - } +query authCli_getDNSHostSuffix { + core_getDNSHostSuffix } -mutation iotconsoleUpdateIotDeviceBlueprint($deviceBlueprint: IOTDeviceBlueprintIn!, $projectName: String!) { - iot_updateDeviceBlueprint( - projectName: $projectName - deviceBlueprint: $deviceBlueprint - ) { - id +query authCli_getMresOutputKeyValues($msvcName: String!, $keyrefs: [ManagedResourceKeyRefIn]) { + core_getManagedResouceOutputKeyValues(msvcName: $msvcName, keyrefs: $keyrefs) { + key + mresName + value } } -query iotconsoleGetIotDeviceBlueprint($projectName: String!, $name: String!) { - iot_getDeviceBlueprint(projectName: $projectName, name: $name) { +query authCli_getGlobalVpnDevice($gvpn: String!, $deviceName: String!) { + infra_getGlobalVPNDevice(gvpn: $gvpn, deviceName: $deviceName) { accountName - bluePrintType + creationTime createdBy { userEmail userId userName } - creationTime displayName + globalVPNName id + ipAddr lastUpdatedBy { - userEmail - userId userName + userId + userEmail } markedForDeletion - name + metadata { + annotations + creationTimestamp + deletionTimestamp + generation + labels + name + namespace + } + privateKey + publicKey recordVersion updateTime - version + wireguardConfig { + value + encoding + } + } +} + +query authCli_coreCheckNameAvailability($resType: ConsoleResType!, $name: String!) { + core_checkNameAvailability(resType: $resType, name: $name) { + result + suggestedNames } } -query iotconsoleListIotDeviceBlueprints($search: SearchIOTDeviceBlueprints, $pq: CursorPaginationIn, $projectName: String!) { - iot_listDeviceBlueprints(projectName: $projectName, search: $search, pq: $pq) { +query authCli_getMresKeys($name: String!, $envName: String) { + core_getManagedResouceOutputKeys(name: $name, envName: $envName) +} + +query authCli_listMreses($pq: CursorPaginationIn, $search: SearchManagedResources) { + core_listManagedResources(pq: $pq, search: $search) { edges { - cursor node { - accountName - bluePrintType - createdBy { - userEmail - userId - userName - } - creationTime displayName - id - lastUpdatedBy { - userEmail - userId - userName + metadata { + name + namespace } - markedForDeletion - name - recordVersion - updateTime - version } } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount } } -mutation iotconsoleDeleteIotDeployment($projectName: String!, $name: String!) { - iot_deleteDeployment(projectName: $projectName, name: $name) +query authCli_getMresConfigsValues($keyrefs: [ManagedResourceKeyRefIn], $envName: String) { + core_getManagedResouceOutputKeyValues(keyrefs: $keyrefs, envName: $envName) { + key + mresName + value + } } -mutation iotconsoleCreateIotDeployment($projectName: String!, $deployment: IOTDeploymentIn!) { - iot_createDeployment(projectName: $projectName, deployment: $deployment) { - id +query authCli_infraCheckNameAvailability($resType: ResType!, $name: String!, $clusterName: String) { + infra_checkNameAvailability( + resType: $resType + name: $name + clusterName: $clusterName + ) { + result + suggestedNames } } -mutation iotconsoleUpdateIotDeployment($projectName: String!, $deployment: IOTDeploymentIn!) { - iot_updateDeployment(projectName: $projectName, deployment: $deployment) { - id - } -} - -query iotconsoleGetIotDeployment($projectName: String!, $name: String!) { - iot_getDeployment(projectName: $projectName, name: $name) { - accountName - CIDR - createdBy { - userEmail - userId - userName - } - creationTime - displayName - exposedServices { - ip - name - } - id - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - recordVersion - updateTime - } -} - -query iotconsoleListIotDeployments($search: SearchIOTDeployments, $pq: CursorPaginationIn, $projectName: String!) { - iot_listDeployments(projectName: $projectName, search: $search, pq: $pq) { - edges { - cursor - node { - accountName - CIDR - createdBy { - userEmail - userId - userName - } - creationTime - displayName - exposedServices { - ip - name - } - id - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - recordVersion - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleDeleteIotApp($projectName: String!, $deviceBlueprintName: String!, $name: String!) { - iot_deleteApp( - projectName: $projectName - deviceBlueprintName: $deviceBlueprintName - name: $name - ) -} - -mutation iotconsoleCreateIotApp($deviceBlueprintName: String!, $app: IOTAppIn!, $projectName: String!) { - iot_createApp( - projectName: $projectName - deviceBlueprintName: $deviceBlueprintName - app: $app - ) { - id - } -} - -mutation iotconsoleUpdateIotApp($projectName: String!, $deviceBlueprintName: String!, $app: IOTAppIn!) { - iot_updateApp( - projectName: $projectName - deviceBlueprintName: $deviceBlueprintName - app: $app - ) { - id - } -} - -query iotconsoleGetIotApp($projectName: String!, $deviceBlueprintName: String!, $name: String!) { - iot_getApp( - projectName: $projectName - deviceBlueprintName: $deviceBlueprintName - name: $name - ) { - accountName - apiVersion - createdBy { - userEmail - userId - userName - } - creationTime - deviceBlueprintName - displayName - enabled - id - kind - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - metadata { - annotations - labels - name - namespace - } - recordVersion - spec { - containers { - args - command - env { - key - optional - refKey - refName - type - value - } - envFrom { - refName - type - } - image - imagePullPolicy - livenessProbe { - failureThreshold - httpGet { - httpHeaders - path - port - } - initialDelay - interval - shell { - command - } - tcp { - port - } - type - } - name - readinessProbe { - failureThreshold - initialDelay - interval - type - } - resourceCpu { - max - min - } - resourceMemory { - max - min - } - volumes { - items { - fileName - key - } - mountPath - refName - type - } - } - displayName - freeze - hpa { - enabled - maxReplicas - minReplicas - thresholdCpu - thresholdMemory - } - intercept { - enabled - toDevice - } - nodeSelector - region - replicas - serviceAccount - services { - port - } - tolerations { - effect - key - operator - tolerationSeconds - value - } - topologySpreadConstraints { - labelSelector { - matchExpressions { - key - operator - values - } - matchLabels - } - matchLabelKeys - maxSkew - minDomains - nodeAffinityPolicy - nodeTaintsPolicy - topologyKey - whenUnsatisfiable - } - } - status { - checkList { - debug - description - name - title - } - checks - isReady - lastReadyGeneration - lastReconcileTime - message { - RawMessage - } - resources { - apiVersion - kind - name - namespace - } - } - updateTime - } -} - -query iotconsoleListIotApps($deviceBlueprintName: String!, $search: SearchIOTApps, $pq: CursorPaginationIn, $projectName: String!) { - iot_listApps( - projectName: $projectName - deviceBlueprintName: $deviceBlueprintName - search: $search - pq: $pq - ) { - edges { - cursor - node { - accountName - apiVersion - createdBy { - userEmail - userId - userName - } - creationTime - deviceBlueprintName - displayName - enabled - id - kind - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - metadata { - annotations - creationTimestamp - labels - name - namespace - } - recordVersion - spec { - containers { - args - command - env { - key - optional - refKey - refName - type - value - } - envFrom { - refName - type - } - image - imagePullPolicy - livenessProbe { - failureThreshold - httpGet { - httpHeaders - path - port - } - initialDelay - interval - shell { - command - } - tcp { - port - } - type - } - name - readinessProbe { - failureThreshold - initialDelay - interval - type - } - resourceCpu { - max - min - } - resourceMemory { - max - min - } - volumes { - items { - fileName - key - } - mountPath - refName - type - } - } - displayName - freeze - hpa { - enabled - maxReplicas - minReplicas - thresholdCpu - thresholdMemory - } - intercept { - enabled - toDevice - } - nodeSelector - region - replicas - serviceAccount - services { - port - } - tolerations { - effect - key - operator - tolerationSeconds - value - } - topologySpreadConstraints { - labelSelector { - matchExpressions { - key - operator - values - } - matchLabels - } - matchLabelKeys - maxSkew - minDomains - nodeAffinityPolicy - nodeTaintsPolicy - topologyKey - whenUnsatisfiable - } - } - status { - checkList { - debug - description - name - title - } - checks - isReady - lastReadyGeneration - lastReconcileTime - message { - RawMessage - } - resources { - apiVersion - kind - name - namespace - } - } - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleDeleteIotDevice($projectName: String!, $deploymentName: String!, $name: String!) { - iot_deleteDevice( - projectName: $projectName - deploymentName: $deploymentName - name: $name - ) -} - -mutation iotconsoleCreateIotDevice($deploymentName: String!, $device: IOTDeviceIn!, $projectName: String!) { - iot_createDevice( - projectName: $projectName - deploymentName: $deploymentName - device: $device - ) { - id - } -} - -mutation iotconsoleUpdateIotDevice($deploymentName: String!, $device: IOTDeviceIn!, $projectName: String!) { - iot_updateDevice( - projectName: $projectName - deploymentName: $deploymentName - device: $device - ) { - id - } -} - -query iotconsoleGetIotDevice($projectName: String!, $deploymentName: String!, $name: String!) { - iot_getDevice( - projectName: $projectName - deploymentName: $deploymentName - name: $name - ) { - accountName - createdBy { - userEmail - userId - userName - } - creationTime - deploymentName - displayName - id - ip - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - podCIDR - publicKey - recordVersion - serviceCIDR - updateTime - version - } -} - -query iotconsoleListIotDevices($deploymentName: String!, $search: SearchIOTDevices, $pq: CursorPaginationIn, $projectName: String!) { - iot_listDevices( - projectName: $projectName - deploymentName: $deploymentName - search: $search - pq: $pq - ) { - edges { - cursor - node { - accountName - createdBy { - userEmail - userId - userName - } - creationTime - deploymentName - displayName - id - ip - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - podCIDR - publicKey - recordVersion - serviceCIDR - updateTime - version - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -query iotconsoleListRepo($search: SearchRepos, $pagination: CursorPaginationIn) { - cr_listRepos(search: $search, pagination: $pagination) { - edges { - cursor - node { - accountName - createdBy { - userEmail - userId - userName - } - creationTime - id - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - recordVersion - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleCreateRepo($repository: RepositoryIn!) { - cr_createRepo(repository: $repository) { - id - } -} - -mutation iotconsoleDeleteRepo($name: String!) { - cr_deleteRepo(name: $name) -} - -query iotconsoleListDigest($repoName: String!, $search: SearchRepos, $pagination: CursorPaginationIn) { - cr_listDigests(repoName: $repoName, search: $search, pagination: $pagination) { - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - edges { - cursor - node { - url - updateTime - tags - size - repository - digest - creationTime - } - } - } -} - -mutation iotconsoleDeleteDigest($repoName: String!, $digest: String!) { - cr_deleteDigest(repoName: $repoName, digest: $digest) -} - -mutation iotconsoleUpdateConfig($envName: String!, $config: ConfigIn!) { - core_updateConfig(envName: $envName, config: $config) { - id - } -} - -mutation iotconsoleDeleteConfig($envName: String!, $configName: String!) { - core_deleteConfig(envName: $envName, configName: $configName) -} - -query iotconsoleGetConfig($envName: String!, $name: String!) { - core_getConfig(envName: $envName, name: $name) { - binaryData - data - displayName - environmentName - immutable - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - } -} - -query iotconsoleListConfigs($envName: String!, $search: SearchConfigs, $pq: CursorPaginationIn) { - core_listConfigs(envName: $envName, search: $search, pq: $pq) { - edges { - cursor - node { - createdBy { - userEmail - userId - userName - } - creationTime - displayName - data - environmentName - immutable - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleCreateConfig($envName: String!, $config: ConfigIn!) { - core_createConfig(envName: $envName, config: $config) { - id - } -} - -query iotconsoleListSecrets($envName: String!, $search: SearchSecrets, $pq: CursorPaginationIn) { - core_listSecrets(envName: $envName, search: $search, pq: $pq) { - edges { - cursor - node { - createdBy { - userEmail - userId - userName - } - creationTime - displayName - stringData - environmentName - isReadyOnly - immutable - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - type - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleCreateSecret($envName: String!, $secret: SecretIn!) { - core_createSecret(envName: $envName, secret: $secret) { - id - } -} - -query iotconsoleGetSecret($envName: String!, $name: String!) { - core_getSecret(envName: $envName, name: $name) { - data - displayName - environmentName - immutable - markedForDeletion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - stringData - type - } -} - -mutation iotconsoleUpdateSecret($envName: String!, $secret: SecretIn!) { - core_updateSecret(envName: $envName, secret: $secret) { - id - } -} - -mutation iotconsoleDeleteSecret($envName: String!, $secretName: String!) { - core_deleteSecret(envName: $envName, secretName: $secretName) -} - -query iotconsoleGetCredToken($username: String!) { - cr_getCredToken(username: $username) -} - -query iotconsoleListCred($search: SearchCreds, $pagination: CursorPaginationIn) { - cr_listCreds(search: $search, pagination: $pagination) { - edges { - cursor - node { - access - accountName - createdBy { - userEmail - userId - userName - } - creationTime - expiration { - unit - value - } - id - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - recordVersion - updateTime - username - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleCreateCred($credential: CredentialIn!) { - cr_createCred(credential: $credential) { - id - } -} - -mutation iotconsoleDeleteCred($username: String!) { - cr_deleteCred(username: $username) -} - -query iotconsoleGetGitConnections($state: String) { - auth_me { - providerGitlab - providerGithub - providerGoogle - } - githubLoginUrl: oAuth_requestLogin(provider: "github", state: $state) - gitlabLoginUrl: oAuth_requestLogin(provider: "gitlab", state: $state) -} - -query iotconsoleGetLogins { - auth_me { - providerGithub - providerGitlab - } -} - -query iotconsoleLoginUrls { - githubLoginUrl: oAuth_requestLogin( - provider: "github" - state: "redirect:add-provider" - ) - gitlabLoginUrl: oAuth_requestLogin( - provider: "gitlab" - state: "redirect:add-provider" - ) -} - -query iotconsoleListGithubRepos($installationId: Int!, $pagination: PaginationIn) { - cr_listGithubRepos(installationId: $installationId, pagination: $pagination) { - repositories { - cloneUrl - defaultBranch - fullName - private - updatedAt - } - totalCount - } -} - -query iotconsoleListGithubInstalltions($pagination: PaginationIn) { - cr_listGithubInstallations(pagination: $pagination) { - account { - avatarUrl - id - login - nodeId - type - } - appId - id - nodeId - repositoriesUrl - targetId - targetType - } -} - -query iotconsoleListGithubBranches($repoUrl: String!, $pagination: PaginationIn) { - cr_listGithubBranches(repoUrl: $repoUrl, pagination: $pagination) { - name - } -} - -query iotconsoleSearchGithubRepos($organization: String!, $search: String!, $pagination: PaginationIn) { - cr_searchGithubRepos( - organization: $organization - search: $search - pagination: $pagination - ) { - repositories { - cloneUrl - defaultBranch - fullName - private - updatedAt - } - } -} - -query iotconsoleListGitlabGroups($query: String, $pagination: PaginationIn) { - cr_listGitlabGroups(query: $query, pagination: $pagination) { - fullName - id - } -} - -query iotconsoleListGitlabRepos($query: String, $pagination: PaginationIn, $groupId: String!) { - cr_listGitlabRepositories( - query: $query - pagination: $pagination - groupId: $groupId - ) { - createdAt - name - id - public - httpUrlToRepo - } -} - -query iotconsoleListGitlabBranches($repoId: String!, $query: String, $pagination: PaginationIn) { - cr_listGitlabBranches(repoId: $repoId, query: $query, pagination: $pagination) { - name - protected - } -} - -query iotconsoleListBuilds($repoName: String!, $search: SearchBuilds, $pagination: CursorPaginationIn) { - cr_listBuilds(repoName: $repoName, search: $search, pagination: $pagination) { - edges { - cursor - node { - createdBy { - userEmail - userId - userName - } - creationTime - buildClusterName - credUser { - userEmail - userId - userName - } - errorMessages - id - lastUpdatedBy { - userEmail - userId - userName - } - markedForDeletion - name - source { - branch - provider - repository - webhookId - } - spec { - buildOptions { - buildArgs - buildContexts - contextDir - dockerfileContent - dockerfilePath - targetPlatforms - } - registry { - repo { - name - tags - } - } - resource { - cpu - memoryInMb - } - caches { - name - path - } - } - status - updateTime - latestBuildRun { - recordVersion - status { - checkList { - debug - description - name - title - } - checks - isReady - lastReadyGeneration - lastReconcileTime - message { - RawMessage - } - resources { - apiVersion - kind - name - namespace - } - } - syncStatus { - action - error - lastSyncedAt - recordVersion - state - syncScheduledAt - } - markedForDeletion - } - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -mutation iotconsoleCreateBuild($build: BuildIn!) { - cr_addBuild(build: $build) { - id - } -} - -mutation iotconsoleUpdateBuild($crUpdateBuildId: ID!, $build: BuildIn!) { - cr_updateBuild(id: $crUpdateBuildId, build: $build) { - id - } -} - -mutation iotconsoleDeleteBuild($crDeleteBuildId: ID!) { - cr_deleteBuild(id: $crDeleteBuildId) -} - -mutation iotconsoleTriggerBuild($crTriggerBuildId: ID!) { - cr_triggerBuild(id: $crTriggerBuildId) -} - -query iotconsoleListBuildRuns($search: SearchBuildRuns, $pq: CursorPaginationIn) { - cr_listBuildRuns(search: $search, pq: $pq) { - edges { - cursor - node { - id - clusterName - creationTime - markedForDeletion - recordVersion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - spec { - accountName - buildOptions { - buildArgs - buildContexts - contextDir - dockerfileContent - dockerfilePath - targetPlatforms - } - registry { - repo { - name - tags - } - } - resource { - cpu - memoryInMb - } - } - status { - checks - checkList { - description - debug - name - title - } - isReady - lastReadyGeneration - lastReconcileTime - message { - RawMessage - } - resources { - apiVersion - kind - name - namespace - } - } - syncStatus { - action - error - lastSyncedAt - recordVersion - state - syncScheduledAt - } - updateTime - } - } - pageInfo { - endCursor - hasNextPage - hasPrevPage - startCursor - } - totalCount - } -} - -query iotconsoleGetBuildRun($buildId: ID!, $buildRunName: String!) { - cr_getBuildRun(buildID: $buildId, buildRunName: $buildRunName) { - clusterName - creationTime - markedForDeletion - recordVersion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - spec { - accountName - buildOptions { - buildArgs - buildContexts - contextDir - dockerfileContent - dockerfilePath - targetPlatforms - } - registry { - repo { - name - tags - } - } - resource { - cpu - memoryInMb - } - } - status { - checks - checkList { - description - debug - name - title - } - isReady - lastReadyGeneration - lastReconcileTime - message { - RawMessage - } - resources { - apiVersion - kind - name - namespace - } - } - syncStatus { - action - error - lastSyncedAt - recordVersion - state - syncScheduledAt - } - updateTime - } -} - -query iotconsoleListInvitationsForAccount($accountName: String!) { - accounts_listInvitations(accountName: $accountName) { - accepted - accountName - creationTime - id - inviteToken - invitedBy - markedForDeletion - recordVersion - rejected - updateTime - userEmail - userName - userRole - } -} - -query iotconsoleListMembershipsForAccount($accountName: String!) { - accounts_listMembershipsForAccount(accountName: $accountName) { - user { - verified - name - joined - email - } - role - } -} - -mutation iotconsoleDeleteAccountInvitation($accountName: String!, $invitationId: String!) { - accounts_deleteInvitation( - accountName: $accountName - invitationId: $invitationId - ) -} - -mutation iotconsoleInviteMembersForAccount($accountName: String!, $invitations: [InvitationIn!]!) { - accounts_inviteMembers(accountName: $accountName, invitations: $invitations) { - id - } -} - -query iotconsoleListInvitationsForUser($onlyPending: Boolean!) { - accounts_listInvitationsForUser(onlyPending: $onlyPending) { - accountName - id - updateTime - inviteToken - } -} - -mutation iotconsoleAcceptInvitation($accountName: String!, $inviteToken: String!) { - accounts_acceptInvitation(accountName: $accountName, inviteToken: $inviteToken) -} - -mutation iotconsoleRejectInvitation($accountName: String!, $inviteToken: String!) { - accounts_rejectInvitation(accountName: $accountName, inviteToken: $inviteToken) -} - -mutation iotconsoleUpdateAccountMembership($accountName: String!, $memberId: ID!, $role: Github__com___kloudlite___api___apps___iam___types__Role!) { - accounts_updateAccountMembership( - accountName: $accountName - memberId: $memberId - role: $role - ) -} - -mutation iotconsoleDeleteAccountMembership($accountName: String!, $memberId: ID!) { - accounts_removeAccountMembership(accountName: $accountName, memberId: $memberId) -} - -mutation authCli_createGlobalVPNDevice($gvpnDevice: GlobalVPNDeviceIn!) { - infra_createGlobalVPNDevice(gvpnDevice: $gvpnDevice) { - accountName - creationTime - createdBy { - userEmail - userId - userName - } - displayName - globalVPNName - id - ipAddr - lastUpdatedBy { - userName - userId - userEmail - } - markedForDeletion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - privateKey - publicKey - recordVersion - updateTime - wireguardConfig { - value - encoding - } - } -} - -query authCli_getDNSHostSuffix { - core_getDNSHostSuffix -} - -query authCli_getMresOutputKeyValues($msvcName: String!, $keyrefs: [ManagedResourceKeyRefIn]) { - core_getManagedResouceOutputKeyValues(msvcName: $msvcName, keyrefs: $keyrefs) { - key - mresName - value - } -} - -query authCli_getGlobalVpnDevice($gvpn: String!, $deviceName: String!) { - infra_getGlobalVPNDevice(gvpn: $gvpn, deviceName: $deviceName) { - accountName - creationTime - createdBy { - userEmail - userId - userName - } - displayName - globalVPNName - id - ipAddr - lastUpdatedBy { - userName - userId - userEmail - } - markedForDeletion - metadata { - annotations - creationTimestamp - deletionTimestamp - generation - labels - name - namespace - } - privateKey - publicKey - recordVersion - updateTime - wireguardConfig { - value - encoding - } - } -} - -query authCli_coreCheckNameAvailability($resType: ConsoleResType!, $name: String!) { - core_checkNameAvailability(resType: $resType, name: $name) { - result - suggestedNames - } -} - -query authCli_getMresKeys($name: String!, $envName: String) { - core_getManagedResouceOutputKeys(name: $name, envName: $envName) -} - -query authCli_listMreses($pq: CursorPaginationIn, $search: SearchManagedResources) { - core_listManagedResources(pq: $pq, search: $search) { - edges { - node { - displayName - metadata { - name - namespace - } - } - } - } -} - -query authCli_getMresConfigsValues($keyrefs: [ManagedResourceKeyRefIn], $envName: String) { - core_getManagedResouceOutputKeyValues(keyrefs: $keyrefs, envName: $envName) { - key - mresName - value - } -} - -query authCli_infraCheckNameAvailability($resType: ResType!, $name: String!, $clusterName: String) { - infra_checkNameAvailability( - resType: $resType - name: $name - clusterName: $clusterName - ) { - result - suggestedNames - } -} - -query authCli_getConfigSecretMap($envName: String!, $configQueries: [ConfigKeyRefIn!], $secretQueries: [SecretKeyRefIn!], $mresQueries: [SecretKeyRefIn!]) { - configs: core_getConfigValues(envName: $envName, queries: $configQueries) { - configName - key - value - } - secrets: core_getSecretValues(envName: $envName, queries: $secretQueries) { - key - secretName - value - } - mreses: core_getSecretValues(envName: $envName, queries: $mresQueries) { - key - secretName - value +query authCli_getConfigSecretMap($envName: String!, $configQueries: [ConfigKeyRefIn!], $secretQueries: [SecretKeyRefIn!], $mresQueries: [SecretKeyRefIn!]) { + configs: core_getConfigValues(envName: $envName, queries: $configQueries) { + configName + key + value + } + secrets: core_getSecretValues(envName: $envName, queries: $secretQueries) { + key + secretName + value + } + mreses: core_getSecretValues(envName: $envName, queries: $mresQueries) { + key + secretName + value } } @@ -6673,8 +5142,8 @@ mutation authAddOauthCredientials($provider: String!, $state: String!, $code: St oAuth_addLogin(provider: $provider, state: $state, code: $code) } -mutation authRequestResetPassword($email: String!) { - auth_requestResetPassword(email: $email) +mutation authRequestResetPassword($email: String!, $captchaToken: String!) { + auth_requestResetPassword(email: $email, captchaToken: $captchaToken) } mutation authResetPassword($token: String!, $password: String!) { @@ -6713,8 +5182,13 @@ mutation authLogout { auth_logout } -mutation authSignUpWithEmail($name: String!, $password: String!, $email: String!) { - auth_signup(name: $name, password: $password, email: $email) { +mutation authSignUpWithEmail($name: String!, $email: String!, $password: String!, $captchaToken: String!) { + auth_signup( + name: $name + email: $email + password: $password + captchaToken: $captchaToken + ) { id } } diff --git a/gql-queries-generator/index.ts b/gql-queries-generator/index.ts index 637f01af3..3871c74e9 100644 --- a/gql-queries-generator/index.ts +++ b/gql-queries-generator/index.ts @@ -1,7 +1,7 @@ import { GQLServerHandler as consoleHandler } from '~/console/server/gql/saved-queries'; -import { GQLServerHandler as iotconsoleHandler } from '~/iotconsole/server/gql/saved-queries'; -import { GQLServerHandler as authHandler } from '~/auth/server/gql/saved-queries'; +// import { GQLServerHandler as iotconsoleHandler } from '~/iotconsole/server/gql/saved-queries'; import fs from 'fs'; +import { GQLServerHandler as authHandler } from '~/auth/server/gql/saved-queries'; import { GQLServerHandler as libHandler } from '../lib/server/gql/saved-queries'; import { docPath, ensureDirectoryExistence, loader } from './loader'; @@ -9,7 +9,7 @@ const init = () => { ensureDirectoryExistence(docPath); const results = [ loader(consoleHandler, 'console'), - loader(iotconsoleHandler, 'iotconsole'), + // loader(iotconsoleHandler, 'iotconsole'), loader(authHandler, 'auth'), loader(libHandler, 'lib'), ]; diff --git a/lib/app-setup/with-contxt.ts b/lib/app-setup/with-contxt.ts index e6452df0a..d0ec032d3 100644 --- a/lib/app-setup/with-contxt.ts +++ b/lib/app-setup/with-contxt.ts @@ -1,11 +1,11 @@ import { redirect } from 'react-router-dom'; import { IExtRemixCtx, MapType } from '../types/common'; -const withContext = ( +const withContext = ( ctx: IExtRemixCtx, - props: MapType, + props: T, headers: MapType = {} -) => { +): T => { let _props = props; if (ctx.authProps) { @@ -23,7 +23,7 @@ const withContext = ( 'set-cookie': [...(ctx.request.cookies || [])].join('; '), ...headers, }, - }); + }) as T; }; export const redirectWithContext = ( diff --git a/src/apps/auth/routes/_main+/forgot-password.tsx b/src/apps/auth/routes/_main+/forgot-password.tsx index 6f3422743..f8d688643 100644 --- a/src/apps/auth/routes/_main+/forgot-password.tsx +++ b/src/apps/auth/routes/_main+/forgot-password.tsx @@ -1,16 +1,16 @@ +import { Link } from '@remix-run/react'; +import { RECAPTCHA_SITE_KEY } from '~/auth/consts'; +import { useAuthApi } from '~/auth/server/gql/api-provider'; import { Button } from '~/components/atoms/button'; import { TextInput } from '~/components/atoms/input'; -import { Link } from '@remix-run/react'; -import useForm from '~/root/lib/client/hooks/use-form'; -import Yup from '~/root/lib/server/helpers/yup'; +import { ArrowRight } from '~/components/icons'; import { toast } from '~/components/molecule/toast'; import { cn } from '~/components/utils'; +import grecaptcha from '~/root/lib/client/helpers/g-recaptcha'; +import useForm from '~/root/lib/client/hooks/use-form'; +import Yup from '~/root/lib/server/helpers/yup'; import { handleError } from '~/root/lib/utils/common'; -import { useAuthApi } from '~/auth/server/gql/api-provider'; -import { ArrowRight } from '~/components/icons'; import Container from '../../components/container'; -import grecaptcha from '~/root/lib/client/helpers/g-recaptcha'; -import { RECAPTCHA_SITE_KEY } from '~/auth/consts'; const ForgetPassword = () => { const api = useAuthApi(); @@ -28,8 +28,8 @@ const ForgetPassword = () => { }); const { errors: e } = await api.requestResetPassword({ email: val.email, - //@ts-ignore - token, + // @ts-ignore + captchaToken: token, }); if (e) { throw e[0]; diff --git a/src/apps/auth/routes/_providers+/signup.tsx b/src/apps/auth/routes/_providers+/signup.tsx index 72e9f8b60..814893956 100644 --- a/src/apps/auth/routes/_providers+/signup.tsx +++ b/src/apps/auth/routes/_providers+/signup.tsx @@ -1,4 +1,3 @@ -import { Button } from '~/components/atoms/button.jsx'; import { Envelope, GithubLogoFill, @@ -6,23 +5,24 @@ import { GoogleLogo, } from '@jengaicons/react'; import { - useSearchParams, Link, useNavigate, useOutletContext, + useSearchParams, } from '@remix-run/react'; -import { TextInput, PasswordInput } from '~/components/atoms/input.jsx'; -import useForm from '~/root/lib/client/hooks/use-form'; -import Yup from '~/root/lib/server/helpers/yup'; +import { RECAPTCHA_SITE_KEY, mainUrl } from '~/auth/consts'; +import { Button } from '~/components/atoms/button.jsx'; +import { PasswordInput, TextInput } from '~/components/atoms/input.jsx'; +import { ArrowLeft, ArrowRight } from '~/components/icons'; import { toast } from '~/components/molecule/toast'; +import { cn } from '~/components/utils'; +import grecaptcha from '~/root/lib/client/helpers/g-recaptcha'; import { useAPIClient } from '~/root/lib/client/hooks/api-provider'; +import useForm from '~/root/lib/client/hooks/use-form'; +import Yup from '~/root/lib/server/helpers/yup'; import { handleError } from '~/root/lib/utils/common'; -import { ArrowLeft, ArrowRight } from '~/components/icons'; -import { cn } from '~/components/utils'; -import { RECAPTCHA_SITE_KEY, mainUrl } from '~/auth/consts'; import Container from '../../components/container'; import { IProviderContext } from './_layout'; -import grecaptcha from '~/root/lib/client/helpers/g-recaptcha'; const CustomGoogleIcon = (props: any) => { return ; @@ -55,7 +55,7 @@ const SignUpWithEmail = () => { email: v.email, name: v.name, password: v.password, - token, + captchaToken: token, }); if (_errors) { throw _errors[0]; diff --git a/src/apps/auth/server/gql/saved-queries.ts b/src/apps/auth/server/gql/saved-queries.ts index ccab30de7..50eb58b3c 100644 --- a/src/apps/auth/server/gql/saved-queries.ts +++ b/src/apps/auth/server/gql/saved-queries.ts @@ -3,6 +3,8 @@ import { ExecuteQueryWithContext } from '~/root/lib/server/helpers/execute-query import { IGQLServerProps } from '~/root/lib/types/common'; import { AuthAddOauthCredientialsMutation, + AuthCheckOauthEnabledQuery, + AuthCheckOauthEnabledQueryVariables, AuthLoginMutation, AuthLoginMutationVariables, AuthLoginPageInitUrlsQuery, @@ -13,20 +15,18 @@ import { AuthOauthLoginMutationVariables, AuthRequestResetPasswordMutation, AuthRequestResetPasswordMutationVariables, + AuthResendVerificationEmailMutation, + AuthResendVerificationEmailMutationVariables, AuthResetPasswordMutation, AuthResetPasswordMutationVariables, + AuthSetRemoteAuthHeaderMutation, + AuthSetRemoteAuthHeaderMutationVariables, AuthSignUpWithEmailMutation, AuthSignUpWithEmailMutationVariables, AuthVerifyEmailMutation, AuthVerifyEmailMutationVariables, AuthWhoAmIQuery, AuthWhoAmIQueryVariables, - AuthCheckOauthEnabledQuery, - AuthCheckOauthEnabledQueryVariables, - AuthSetRemoteAuthHeaderMutation, - AuthSetRemoteAuthHeaderMutationVariables, - AuthResendVerificationEmailMutation, - AuthResendVerificationEmailMutationVariables, } from '~/root/src/generated/gql/server'; import { cliQueries } from './cli-queries'; @@ -48,7 +48,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { transformer(data: AuthSetRemoteAuthHeaderMutation) { return data.auth_setRemoteAuthHeader; }, - vars(_: AuthSetRemoteAuthHeaderMutationVariables) {}, + vars(_: AuthSetRemoteAuthHeaderMutationVariables) { }, } ), @@ -65,7 +65,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { transformer(data: AuthCheckOauthEnabledQuery) { return data.auth_listOAuthProviders; }, - vars(_: AuthCheckOauthEnabledQueryVariables) {}, + vars(_: AuthCheckOauthEnabledQueryVariables) { }, } ), addOauthCredientials: executor( @@ -78,20 +78,23 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { transformer(data: AuthAddOauthCredientialsMutation) { return data.oAuth_addLogin; }, - vars(_: AuthOauthLoginMutationVariables) {}, + vars(_: AuthOauthLoginMutationVariables) { }, } ), requestResetPassword: executor( gql` - mutation Auth_requestResetPassword($email: String!) { - auth_requestResetPassword(email: $email) + mutation Auth_requestResetPassword( + $email: String! + $captchaToken: String! + ) { + auth_requestResetPassword(email: $email, captchaToken: $captchaToken) } `, { transformer: (data: AuthRequestResetPasswordMutation) => data.auth_requestResetPassword, - vars(_: AuthRequestResetPasswordMutationVariables) {}, + vars(_: AuthRequestResetPasswordMutationVariables) { }, } ), @@ -107,7 +110,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { { transformer: (data: AuthResetPasswordMutation) => data.auth_resetPassword, - vars(_: AuthResetPasswordMutationVariables) {}, + vars(_: AuthResetPasswordMutationVariables) { }, } ), @@ -122,7 +125,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { { transformer: (data: AuthOauthLoginMutation) => data.oAuth_login, - vars(_: AuthOauthLoginMutationVariables) {}, + vars(_: AuthOauthLoginMutationVariables) { }, } ), @@ -136,7 +139,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { `, { transformer: (data: AuthVerifyEmailMutation) => data.auth_verifyEmail, - vars(_: AuthVerifyEmailMutationVariables) {}, + vars(_: AuthVerifyEmailMutationVariables) { }, } ), @@ -149,7 +152,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { { transformer: (data: AuthResendVerificationEmailMutation) => data.auth_resendVerificationEmail, - vars(_: AuthResendVerificationEmailMutationVariables) {}, + vars(_: AuthResendVerificationEmailMutationVariables) { }, } ), @@ -163,7 +166,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { `, { transformer: (data: AuthLoginPageInitUrlsQuery) => data, - vars(_: AuthLoginPageInitUrlsQueryVariables) {}, + vars(_: AuthLoginPageInitUrlsQueryVariables) { }, } ), @@ -177,7 +180,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { `, { transformer: (data: AuthLoginMutation) => data.auth_login, - vars(_: AuthLoginMutationVariables) {}, + vars(_: AuthLoginMutationVariables) { }, } ), @@ -189,7 +192,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { `, { transformer: (data: AuthLogoutMutation) => data.auth_logout, - vars(_: AuthLogoutMutationVariables) {}, + vars(_: AuthLogoutMutationVariables) { }, } ), @@ -197,17 +200,23 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { gql` mutation Auth_signup( $name: String! - $password: String! $email: String! + $password: String! + $captchaToken: String! ) { - auth_signup(name: $name, password: $password, email: $email) { + auth_signup( + name: $name + email: $email + password: $password + captchaToken: $captchaToken + ) { id } } `, { transformer: (data: AuthSignUpWithEmailMutation) => data.auth_signup, - vars(_: AuthSignUpWithEmailMutationVariables) {}, + vars(_: AuthSignUpWithEmailMutationVariables) { }, } ), @@ -225,7 +234,7 @@ export const GQLServerHandler = ({ headers, cookies }: IGQLServerProps) => { `, { transformer: (data: AuthWhoAmIQuery) => data.auth_me, - vars(_: AuthWhoAmIQueryVariables) {}, + vars(_: AuthWhoAmIQueryVariables) { }, } ), }; diff --git a/src/apps/console/components/icons.tsx b/src/apps/console/components/icons.tsx index ebabba279..9012767e9 100644 --- a/src/apps/console/components/icons.tsx +++ b/src/apps/console/components/icons.tsx @@ -138,4 +138,5 @@ export { Play, Pause, Dockerlogo, + Note, } from '@jengaicons/react'; diff --git a/src/apps/console/components/multi-step-progress.tsx b/src/apps/console/components/multi-step-progress.tsx index 438e5f5ce..cc8def773 100644 --- a/src/apps/console/components/multi-step-progress.tsx +++ b/src/apps/console/components/multi-step-progress.tsx @@ -1,6 +1,6 @@ -import { Check } from '~/console/components/icons'; import React, { Children, ReactElement, ReactNode, useState } from 'react'; import { cn } from '~/components/utils'; +import { Check } from '~/console/components/icons'; interface IUseMultiStepProgress { defaultStep: number; @@ -50,6 +50,7 @@ type IProgressTrackerItem = { noJump?: (step: number) => boolean; editable?: boolean; step: number; + hasPages?: boolean; }; function ProgressTrackerItem( @@ -65,7 +66,18 @@ function ProgressTrackerItem( noJump, editable, step, + hasPages, } = props; + + if (!hasPages) { + return ( +
+ {label} + {children} +
+ ); + } + return (
void; noJump?: (step: number) => boolean; editable?: boolean; + hasPages?: boolean; } const Root = ({ children, @@ -150,6 +163,7 @@ const Root = ({ jumpStep, noJump, editable = true, + hasPages = true, }: IMultiStepProgress) => { let child = children; // @ts-ignore @@ -171,6 +185,7 @@ const Root = ({ noJump={noJump || (() => !(index + 1 < currentStep))} editable={editable} completed={currentStep > ch.props.step} + hasPages={hasPages} onClick={() => { if (noJump ? !noJump?.(ch.props.step) : index + 1 < currentStep) { jumpStep(index + 1); diff --git a/src/apps/console/components/template-avatar.tsx b/src/apps/console/components/template-avatar.tsx new file mode 100644 index 000000000..db4e79d08 --- /dev/null +++ b/src/apps/console/components/template-avatar.tsx @@ -0,0 +1,24 @@ +import { Avatar } from '~/components/atoms/avatar'; +import { titleCase } from '~/components/utils'; +import generateColor from '~/root/lib/utils/color-generator'; + +const TemplateAvatar = ({ + name, + color, + size, +}: { + name: string; + color?: string; + size?: string; +}) => { + return ( + {titleCase(name)}} + isTemplate + /> + ); +}; + +export default TemplateAvatar; diff --git a/src/apps/console/page-components/handle-environment.tsx b/src/apps/console/page-components/handle-environment.tsx index 350f587fa..5b7b7c6d4 100644 --- a/src/apps/console/page-components/handle-environment.tsx +++ b/src/apps/console/page-components/handle-environment.tsx @@ -213,8 +213,8 @@ const HandleEnvironment = ({ show, setShow }: IDialog) => { handleChange('radioType')(dummyEvent(value)); }} > - Use Compute - Use Template + Environment + Environment Template {values.radioType === 'compute' && ( diff --git a/src/apps/console/routes/_a+/new-team.tsx b/src/apps/console/routes/_a+/new-team.tsx index c700cd5f9..5c7fc2691 100644 --- a/src/apps/console/routes/_a+/new-team.tsx +++ b/src/apps/console/routes/_a+/new-team.tsx @@ -1,4 +1,4 @@ -import { useNavigate, useParams } from '@remix-run/react'; +import { useNavigate } from '@remix-run/react'; import { Button } from '~/components/atoms/button'; import Select from '~/components/atoms/select'; import { toast } from '~/components/molecule/toast'; @@ -25,7 +25,7 @@ const NewAccount = () => { const navigate = useNavigate(); const user = useDataFromMatches('user', {}); - const { a: accountName } = useParams(); + // const { a: accountName } = useParams(); const { data: accountsData } = useCustomSwr('/list_accounts', async () => { return api.listAccounts({}); @@ -74,6 +74,10 @@ const NewAccount = () => { if (_errors) { throw _errors[0]; } + const { errors: e } = await api.setupDefaultEnvironment({}); + if (e) { + throw e[0]; + } toast.success('account created'); // navigate(`/onboarding/${v.name}/attach-new-cluster`); navigate(`/${v.name}/environments`); @@ -119,6 +123,7 @@ const NewAccount = () => { })} > true} diff --git a/src/apps/console/routes/_main+/$account+/_layout.tsx b/src/apps/console/routes/_main+/$account+/_layout.tsx index 800590cb0..68b55c13d 100644 --- a/src/apps/console/routes/_main+/$account+/_layout.tsx +++ b/src/apps/console/routes/_main+/$account+/_layout.tsx @@ -1,10 +1,3 @@ -import { - Buildings, - Check, - ChevronUpDown, - Plus, - Search, -} from '~/console/components/icons'; import { redirect } from '@remix-run/node'; import { Link, @@ -17,9 +10,16 @@ import { } from '@remix-run/react'; import { ReactNode, useEffect, useRef, useState } from 'react'; import Popup from '~/components/molecule/popup'; +import { + Buildings, + Check, + ChevronUpDown, + Plus, + Search, +} from '~/console/components/icons'; import { useDataFromMatches } from '~/root/lib/client/hooks/use-custom-matches'; import { useUnsavedChanges } from '~/root/lib/client/hooks/use-unsaved-changes'; -import { IRemixCtx, LoaderResult } from '~/root/lib/types/common'; +import { IExtRemixCtx, LoaderResult } from '~/root/lib/types/common'; import { IAccount, @@ -31,29 +31,30 @@ import { parseNodes, } from '~/console/server/r-utils/common'; +import { Button } from '~/components/atoms/button'; +import OptionList from '~/components/atoms/option-list'; +import { cn } from '~/components/utils'; +import MenuSelect, { SelectItem } from '~/console/components/menu-select'; +import { useClusterStatusV2 } from '~/console/hooks/use-cluster-status-v2'; +import { useConsoleApi } from '~/console/server/gql/api-provider'; +import { IByocClusters } from '~/console/server/gql/queries/byok-cluster-queries'; +import { IMSvTemplates } from '~/console/server/gql/queries/managed-templates-queries'; +import { GQLServerHandler } from '~/console/server/gql/saved-queries'; import { ensureAccountClientSide, ensureAccountSet, } from '~/console/server/utils/auth-utils'; -import { GQLServerHandler } from '~/console/server/gql/saved-queries'; -import MenuSelect, { SelectItem } from '~/console/components/menu-select'; import { BreadcrumButtonContent, BreadcrumSlash, } from '~/console/utils/commons'; -import OptionList from '~/components/atoms/option-list'; -import { Button } from '~/components/atoms/button'; -import { useConsoleApi } from '~/console/server/gql/api-provider'; -import { handleError } from '~/root/lib/utils/common'; -import { cn } from '~/components/utils'; -import useCustomSwr from '~/root/lib/client/hooks/use-custom-swr'; +import withContext from '~/root/lib/app-setup/with-contxt'; import { useSearch } from '~/root/lib/client/helpers/search-filter'; -import { IMSvTemplates } from '~/console/server/gql/queries/managed-templates-queries'; -import { IByocClusters } from '~/console/server/gql/queries/byok-cluster-queries'; +import useCustomSwr from '~/root/lib/client/hooks/use-custom-swr'; +import { handleError } from '~/root/lib/utils/common'; import { IConsoleRootContext } from '../_layout/_layout'; -import { useClusterStatusV2 } from '~/console/hooks/use-cluster-status-v2'; -export const loader = async (ctx: IRemixCtx) => { +export const loader = async (ctx: IExtRemixCtx) => { const { account } = ctx.params; let acccountData: IAccount; @@ -67,14 +68,14 @@ export const loader = async (ctx: IRemixCtx) => { } const { data: msvTemplates, errors: msvError } = await GQLServerHandler( - ctx.request, + ctx.request ).listMSvTemplates({}); if (msvError) { throw msvError[0]; } const { data: clusterList, errors: clusterError } = await GQLServerHandler( - ctx.request, + ctx.request ).listByokClusters({ pagination: { first: 100, @@ -85,20 +86,18 @@ export const loader = async (ctx: IRemixCtx) => { throw clusterError[0]; } - const cMaps = parseNodes(clusterList).reduce( - (acc, c) => { - acc[c.metadata.name] = c; - return acc; - }, - {} as { [key: string]: ExtractNodeType }, - ); + const cMaps = parseNodes(clusterList).reduce((acc, c) => { + acc[c.metadata.name] = c; + return acc; + }, {} as { [key: string]: ExtractNodeType }); acccountData = data; - return { + + return withContext(ctx, { msvtemplates: msvTemplates, account: data, clustersMap: cMaps, - }; + }); } catch (err) { handleError(err); const k = redirect('/teams') as any; @@ -382,7 +381,7 @@ const CurrentBreadcrum = ({ account }: { account: IAccount }) => { const { data: accounts } = useCustomSwr( () => '/accounts', - async () => api.listAccounts({}), + async () => api.listAccounts({}) ); const [searchText, setSearchText] = useState(''); @@ -399,7 +398,7 @@ const CurrentBreadcrum = ({ account }: { account: IAccount }) => { searchText, keys: ['searchField'], }, - [searchText, accounts], + [searchText, accounts] ); const [open, setOpen] = useState(false); @@ -434,7 +433,7 @@ const CurrentBreadcrum = ({ account }: { account: IAccount }) => { aria-label="accounts" className={cn( 'outline-none rounded py-lg px-md mx-md bg-surface-basic-hovered', - open || isMouseOver ? 'bg-surface-basic-pressed' : '', + open || isMouseOver ? 'bg-surface-basic-pressed' : '' )} onMouseOver={() => { setIsMouseOver(true); @@ -482,7 +481,7 @@ const CurrentBreadcrum = ({ account }: { account: IAccount }) => { 'flex flex-row items-center justify-between', parseName(item) === parseName(account) ? 'bg-surface-basic-pressed hover:!bg-surface-basic-pressed' - : '', + : '' )} > {item.displayName} diff --git a/src/apps/console/routes/_main+/$account+/environments/environment-resources-v2.tsx b/src/apps/console/routes/_main+/$account+/environments/environment-resources-v2.tsx index 9f9b2365b..eb5b42227 100644 --- a/src/apps/console/routes/_main+/$account+/environments/environment-resources-v2.tsx +++ b/src/apps/console/routes/_main+/$account+/environments/environment-resources-v2.tsx @@ -20,6 +20,7 @@ import ResourceExtraAction, { IResourceExtraItem, } from '~/console/components/resource-extra-action'; import { SyncStatusV2 } from '~/console/components/sync-status'; +import TemplateAvatar from '~/console/components/template-avatar'; import { findClusterStatus } from '~/console/hooks/use-cluster-status'; import { useClusterStatusV2 } from '~/console/hooks/use-cluster-status-v2'; import { IAccountContext } from '~/console/routes/_main+/$account+/_layout'; @@ -253,15 +254,22 @@ const ListView = ({ items, onAction }: IResource) => { } + avatar={ + i.clusterName === '' ? ( + // + + ) : ( + + ) + } /> ), }, cluster: { render: () => { - // if (i.clusterName === '') { - // return ; - // } + if (i.clusterName === '') { + return ; + } return ( ); @@ -270,7 +278,9 @@ const ListView = ({ items, onAction }: IResource) => { status: { render: () => { if (i.clusterName === '') { - return TEMPLATE; + // return TEMPLATE; + // return ; + return ; } if (i.isArchived) { diff --git a/src/apps/console/server/gql/queries/account-queries.ts b/src/apps/console/server/gql/queries/account-queries.ts index a1a934751..9f46d8617 100644 --- a/src/apps/console/server/gql/queries/account-queries.ts +++ b/src/apps/console/server/gql/queries/account-queries.ts @@ -4,16 +4,16 @@ import { NN } from '~/root/lib/types/common'; import { ConsoleCreateAccountMutation, ConsoleCreateAccountMutationVariables, + ConsoleDeleteAccountMutation, + ConsoleDeleteAccountMutationVariables, ConsoleGetAccountQuery, ConsoleGetAccountQueryVariables, + ConsoleGetAvailableKloudliteRegionsQuery, + ConsoleGetAvailableKloudliteRegionsQueryVariables, ConsoleListAccountsQuery, ConsoleListAccountsQueryVariables, ConsoleUpdateAccountMutation, ConsoleUpdateAccountMutationVariables, - ConsoleDeleteAccountMutation, - ConsoleDeleteAccountMutationVariables, - ConsoleGetAvailableKloudliteRegionsQuery, - ConsoleGetAvailableKloudliteRegionsQueryVariables, } from '~/root/src/generated/gql/server'; export type IAccounts = NN; @@ -31,7 +31,7 @@ export const accountQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleCreateAccountMutation) => data.accounts_createAccount, - vars(_: ConsoleCreateAccountMutationVariables) {}, + vars(_: ConsoleCreateAccountMutationVariables) { }, } ), getAvailableKloudliteRegions: executor( @@ -46,7 +46,7 @@ export const accountQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleGetAvailableKloudliteRegionsQuery) => data.accounts_availableKloudliteRegions, - vars(_: ConsoleGetAvailableKloudliteRegionsQueryVariables) {}, + vars(_: ConsoleGetAvailableKloudliteRegionsQueryVariables) { }, } ), @@ -68,7 +68,7 @@ export const accountQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleListAccountsQuery) => data.accounts_listAccounts, - vars(_: ConsoleListAccountsQueryVariables) {}, + vars(_: ConsoleListAccountsQueryVariables) { }, } ), updateAccount: executor( @@ -82,7 +82,7 @@ export const accountQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleUpdateAccountMutation) => data.accounts_updateAccount, - vars(_: ConsoleUpdateAccountMutationVariables) {}, + vars(_: ConsoleUpdateAccountMutationVariables) { }, } ), getAccount: executor( @@ -103,7 +103,7 @@ export const accountQueries = (executor: IExecutor) => ({ `, { transformer: (data: ConsoleGetAccountQuery) => data.accounts_getAccount, - vars(_: ConsoleGetAccountQueryVariables) {}, + vars(_: ConsoleGetAccountQueryVariables) { }, } ), deleteAccount: executor( @@ -115,7 +115,7 @@ export const accountQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleDeleteAccountMutation) => data.accounts_deleteAccount, - vars(_: ConsoleDeleteAccountMutationVariables) {}, + vars(_: ConsoleDeleteAccountMutationVariables) { }, } ), }); diff --git a/src/apps/console/server/gql/queries/environment-queries.ts b/src/apps/console/server/gql/queries/environment-queries.ts index 4d0d0a31d..044ce22dd 100644 --- a/src/apps/console/server/gql/queries/environment-queries.ts +++ b/src/apps/console/server/gql/queries/environment-queries.ts @@ -12,6 +12,8 @@ import { ConsoleGetEnvironmentQueryVariables, ConsoleListEnvironmentsQuery, ConsoleListEnvironmentsQueryVariables, + ConsoleSetupDefaultEnvironmentMutation, + ConsoleSetupDefaultEnvironmentMutationVariables, ConsoleUpdateEnvironmentMutation, ConsoleUpdateEnvironmentMutationVariables, } from '~/root/src/generated/gql/server'; @@ -91,7 +93,7 @@ export const environmentQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleGetEnvironmentQuery) => data.core_getEnvironment, - vars(_: ConsoleGetEnvironmentQueryVariables) {}, + vars(_: ConsoleGetEnvironmentQueryVariables) { }, } ), createEnvironment: executor( @@ -105,7 +107,19 @@ export const environmentQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleCreateEnvironmentMutation) => data.core_createEnvironment, - vars(_: ConsoleCreateEnvironmentMutationVariables) {}, + vars(_: ConsoleCreateEnvironmentMutationVariables) { }, + } + ), + setupDefaultEnvironment: executor( + gql` + mutation Mutation { + core_setupDefaultEnvironment + } + `, + { + transformer: (data: ConsoleSetupDefaultEnvironmentMutation) => + data.core_setupDefaultEnvironment, + vars(_: ConsoleSetupDefaultEnvironmentMutationVariables) { }, } ), updateEnvironment: executor( @@ -120,7 +134,7 @@ export const environmentQueries = (executor: IExecutor) => ({ transformer(data: ConsoleUpdateEnvironmentMutation) { return data.core_updateEnvironment; }, - vars(_: ConsoleUpdateEnvironmentMutationVariables) {}, + vars(_: ConsoleUpdateEnvironmentMutationVariables) { }, } ), deleteEnvironment: executor( @@ -133,7 +147,7 @@ export const environmentQueries = (executor: IExecutor) => ({ transformer(data: ConsoleDeleteEnvironmentMutation) { return data.core_deleteEnvironment; }, - vars(_: ConsoleDeleteEnvironmentMutationVariables) {}, + vars(_: ConsoleDeleteEnvironmentMutationVariables) { }, } ), listEnvironments: executor( @@ -221,7 +235,7 @@ export const environmentQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleListEnvironmentsQuery) => data.core_listEnvironments, - vars(_: ConsoleListEnvironmentsQueryVariables) {}, + vars(_: ConsoleListEnvironmentsQueryVariables) { }, } ), cloneEnvironment: executor( @@ -247,7 +261,7 @@ export const environmentQueries = (executor: IExecutor) => ({ { transformer: (data: ConsoleCloneEnvironmentMutation) => data.core_cloneEnvironment, - vars(_: ConsoleCloneEnvironmentMutationVariables) {}, + vars(_: ConsoleCloneEnvironmentMutationVariables) { }, } ), }); diff --git a/src/generated/gql/sdl.graphql b/src/generated/gql/sdl.graphql index 1454ee512..71fcce554 100644 --- a/src/generated/gql/sdl.graphql +++ b/src/generated/gql/sdl.graphql @@ -962,21 +962,6 @@ type Github__com___kloudlite___api___apps___infra___internal___entities__OutputF name: String! } -enum Github__com___kloudlite___api___apps___iot____console___internal___entities__BluePrintType { - group_blueprint - singleton_blueprint -} - -type Github__com___kloudlite___api___apps___iot____console___internal___entities__ExposedService { - ip: String! - name: String! -} - -input Github__com___kloudlite___api___apps___iot____console___internal___entities__ExposedServiceIn { - ip: String! - name: String! -} - type Github__com___kloudlite___api___common__CreatedOrUpdatedBy { userEmail: String! userId: String! @@ -1665,12 +1650,14 @@ type Github__com___kloudlite___operator___apis___crds___v1__Intercept { enabled: Boolean! portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappings!] toDevice: String! + toIPAddr: String } input Github__com___kloudlite___operator___apis___crds___v1__InterceptIn { enabled: Boolean! portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!] toDevice: String! + toIPAddr: String } type Github__com___kloudlite___operator___apis___crds___v1__JobVars { @@ -2287,214 +2274,6 @@ type InviteCode { name: String! } -type IOTApp { - accountName: String! - apiVersion: String - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - deviceBlueprintName: String! - displayName: String! - enabled: Boolean - id: ID! - kind: String - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - metadata: Metadata - projectName: String! - recordVersion: Int! - spec: Github__com___kloudlite___operator___apis___crds___v1__AppSpec! - status: Github__com___kloudlite___operator___pkg___operator__Status - updateTime: Date! -} - -type IOTAppEdge { - cursor: String! - node: IOTApp! -} - -input IOTAppIn { - apiVersion: String - displayName: String! - enabled: Boolean - kind: String - metadata: MetadataIn - spec: Github__com___kloudlite___operator___apis___crds___v1__AppSpecIn! -} - -type IOTAppPaginatedRecords { - edges: [IOTAppEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type IOTDeployment { - accountName: String! - CIDR: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - exposedServices: [Github__com___kloudlite___api___apps___iot____console___internal___entities__ExposedService!]! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - projectName: String! - recordVersion: Int! - updateTime: Date! -} - -type IOTDeploymentEdge { - cursor: String! - node: IOTDeployment! -} - -input IOTDeploymentIn { - CIDR: String! - displayName: String! - exposedServices: [Github__com___kloudlite___api___apps___iot____console___internal___entities__ExposedServiceIn!]! - name: String! -} - -type IOTDeploymentPaginatedRecords { - edges: [IOTDeploymentEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type IOTDevice { - accountName: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - deploymentName: String! - displayName: String! - id: ID! - ip: String! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - podCIDR: String! - projectName: String! - publicKey: String! - recordVersion: Int! - serviceCIDR: String! - updateTime: Date! - version: String! -} - -type IOTDeviceBlueprint { - accountName: String! - bluePrintType: Github__com___kloudlite___api___apps___iot____console___internal___entities__BluePrintType! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - projectName: String! - recordVersion: Int! - updateTime: Date! - version: String! -} - -type IOTDeviceBlueprintEdge { - cursor: String! - node: IOTDeviceBlueprint! -} - -input IOTDeviceBlueprintIn { - bluePrintType: Github__com___kloudlite___api___apps___iot____console___internal___entities__BluePrintType! - displayName: String! - name: String! - version: String! -} - -type IOTDeviceBlueprintPaginatedRecords { - edges: [IOTDeviceBlueprintEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type IOTDeviceEdge { - cursor: String! - node: IOTDevice! -} - -input IOTDeviceIn { - displayName: String! - ip: String! - name: String! - podCIDR: String! - publicKey: String! - serviceCIDR: String! - version: String! -} - -type IOTDevicePaginatedRecords { - edges: [IOTDeviceEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type IOTEnvironment { - accountName: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - projectName: String! - recordVersion: Int! - updateTime: Date! -} - -type IOTEnvironmentEdge { - cursor: String! - node: IOTEnvironment! -} - -input IOTEnvironmentIn { - displayName: String! - name: String! -} - -type IOTEnvironmentPaginatedRecords { - edges: [IOTEnvironmentEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type IOTProject { - accountName: String! - createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - creationTime: Date! - displayName: String! - id: ID! - lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy! - markedForDeletion: Boolean - name: String! - recordVersion: Int! - updateTime: Date! -} - -type IOTProjectEdge { - cursor: String! - node: IOTProject! -} - -input IOTProjectIn { - displayName: String! - name: String! -} - -type IOTProjectPaginatedRecords { - edges: [IOTProjectEdge!]! - pageInfo: PageInfo! - totalCount: Int! -} - scalar Json type K8s__io___api___core___v1__Affinity { @@ -3591,12 +3370,12 @@ type Mutation { auth_deleteInviteCode(inviteCodeId: String!): Boolean! auth_login(email: String!, password: String!): Session auth_logout: Boolean! - auth_requestResetPassword(email: String!): Boolean! + auth_requestResetPassword(captchaToken: String!, email: String!): Boolean! auth_resendVerificationEmail: Boolean! auth_resetPassword(password: String!, token: String!): Boolean! auth_setMetadata(values: Json!): User! auth_setRemoteAuthHeader(authHeader: String, loginId: String!): Boolean! - auth_signup(email: String!, name: String!, password: String!): Session + auth_signup(captchaToken: String!, email: String!, name: String!, password: String!): Session! auth_verifyEmail(token: String!): Session! auth_verifyInviteCode(invitationCode: String!): Boolean! comms_markAllNotificationAsRead: Boolean! @@ -3627,6 +3406,7 @@ type Mutation { core_interceptAppOnLocalCluster(appname: String!, clusterName: String!, envName: String!, intercept: Boolean!, ipAddr: String!, portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!]): Boolean! core_interceptExternalApp(deviceName: String!, envName: String!, externalAppName: String!, intercept: Boolean!, portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!]): Boolean! core_removeDeviceIntercepts(deviceName: String!, envName: String!): Boolean! + core_setupDefaultEnvironment: Boolean! core_updateApp(app: AppIn!, envName: String!): App core_updateConfig(config: ConfigIn!, envName: String!): Config core_updateEnvironment(env: EnvironmentIn!): Environment @@ -3674,21 +3454,6 @@ type Mutation { infra_updateNodePool(clusterName: String!, pool: NodePoolIn!): NodePool infra_updateProviderSecret(secret: CloudProviderSecretIn!): CloudProviderSecret infra_upgradeHelmKloudliteAgent(clusterName: String!): Boolean! - iot_createApp(app: IOTAppIn!, deviceBlueprintName: String!, projectName: String!): IOTApp - iot_createDeployment(deployment: IOTDeploymentIn!, projectName: String!): IOTDeployment - iot_createDevice(deploymentName: String!, device: IOTDeviceIn!, projectName: String!): IOTDevice - iot_createDeviceBlueprint(deviceBlueprint: IOTDeviceBlueprintIn!, projectName: String!): IOTDeviceBlueprint - iot_createProject(project: IOTProjectIn!): IOTProject - iot_deleteApp(deviceBlueprintName: String!, name: String!, projectName: String!): Boolean! - iot_deleteDeployment(name: String!, projectName: String!): Boolean! - iot_deleteDevice(deploymentName: String!, name: String!, projectName: String!): Boolean! - iot_deleteDeviceBlueprint(name: String!, projectName: String!): Boolean! - iot_deleteProject(name: String!): Boolean! - iot_updateApp(app: IOTAppIn!, deviceBlueprintName: String!, projectName: String!): IOTApp - iot_updateDeployment(deployment: IOTDeploymentIn!, projectName: String!): IOTDeployment - iot_updateDevice(deploymentName: String!, device: IOTDeviceIn!, projectName: String!): IOTDevice - iot_updateDeviceBlueprint(deviceBlueprint: IOTDeviceBlueprintIn!, projectName: String!): IOTDeviceBlueprint - iot_updateProject(project: IOTProjectIn!): IOTProject oAuth_addLogin(code: String!, provider: String!, state: String!): Boolean! oAuth_login(code: String!, provider: String!, state: String): Session! } @@ -4060,16 +3825,6 @@ type Query { infra_listPVs(clusterName: String!, pq: CursorPaginationIn, search: SearchPersistentVolumes): PersistentVolumePaginatedRecords infra_listVolumeAttachments(clusterName: String!, pq: CursorPaginationIn, search: SearchVolumeAttachments): VolumeAttachmentPaginatedRecords infrat_getBYOKClusterSetupInstructions(name: String!, onlyHelmValues: Boolean): [BYOKSetupInstruction!] - iot_getApp(deviceBlueprintName: String!, name: String!, projectName: String!): IOTApp - iot_getDeployment(name: String!, projectName: String!): IOTDeployment - iot_getDevice(deploymentName: String!, name: String!, projectName: String!): IOTDevice - iot_getDeviceBlueprint(name: String!, projectName: String!): IOTDeviceBlueprint - iot_getProject(name: String!): IOTProject - iot_listApps(deviceBlueprintName: String!, pq: CursorPaginationIn, projectName: String!, search: SearchIOTApps): IOTAppPaginatedRecords - iot_listDeployments(pq: CursorPaginationIn, projectName: String!, search: SearchIOTDeployments): IOTDeploymentPaginatedRecords - iot_listDeviceBlueprints(pq: CursorPaginationIn, projectName: String!, search: SearchIOTDeviceBlueprints): IOTDeviceBlueprintPaginatedRecords - iot_listDevices(deploymentName: String!, pq: CursorPaginationIn, projectName: String!, search: SearchIOTDevices): IOTDevicePaginatedRecords - iot_listProjects(pq: CursorPaginationIn, search: SearchIOTProjects): IOTProjectPaginatedRecords oAuth_requestLogin(provider: String!, state: String): URL! } @@ -4302,36 +4057,6 @@ input SearchImportedManagedResources { text: MatchFilterIn } -input SearchIOTApps { - isReady: MatchFilterIn - markedForDeletion: MatchFilterIn - text: MatchFilterIn -} - -input SearchIOTDeployments { - isReady: MatchFilterIn - markedForDeletion: MatchFilterIn - text: MatchFilterIn -} - -input SearchIOTDeviceBlueprints { - isReady: MatchFilterIn - markedForDeletion: MatchFilterIn - text: MatchFilterIn -} - -input SearchIOTDevices { - isReady: MatchFilterIn - markedForDeletion: MatchFilterIn - text: MatchFilterIn -} - -input SearchIOTProjects { - isReady: MatchFilterIn - markedForDeletion: MatchFilterIn - text: MatchFilterIn -} - input SearchManagedResources { envName: MatchFilterIn isReady: MatchFilterIn diff --git a/src/generated/gql/server.ts b/src/generated/gql/server.ts index 230ed5d47..796ff340d 100644 --- a/src/generated/gql/server.ts +++ b/src/generated/gql/server.ts @@ -382,39 +382,6 @@ export type SearchVolumeAttachments = { text?: InputMaybe; }; -export type Github__Com___Kloudlite___Api___Apps___Iot____Console___Internal___Entities__BluePrintType = - 'group_blueprint' | 'singleton_blueprint'; - -export type SearchIotApps = { - isReady?: InputMaybe; - markedForDeletion?: InputMaybe; - text?: InputMaybe; -}; - -export type SearchIotDeployments = { - isReady?: InputMaybe; - markedForDeletion?: InputMaybe; - text?: InputMaybe; -}; - -export type SearchIotDeviceBlueprints = { - isReady?: InputMaybe; - markedForDeletion?: InputMaybe; - text?: InputMaybe; -}; - -export type SearchIotDevices = { - isReady?: InputMaybe; - markedForDeletion?: InputMaybe; - text?: InputMaybe; -}; - -export type SearchIotProjects = { - isReady?: InputMaybe; - markedForDeletion?: InputMaybe; - text?: InputMaybe; -}; - export type AccountIn = { contactEmail?: InputMaybe; displayName: Scalars['String']['input']; @@ -605,6 +572,7 @@ export type Github__Com___Kloudlite___Operator___Apis___Crds___V1__InterceptIn = Array >; toDevice: Scalars['String']['input']; + toIPAddr?: InputMaybe; }; export type Github__Com___Kloudlite___Operator___Apis___Crds___V1__AppInterceptPortMappingsIn = @@ -1248,50 +1216,6 @@ export type Github__Com___Kloudlite___Api___Apps___Infra___Internal___Entities__ serviceAccountJSON: Scalars['String']['input']; }; -export type IotAppIn = { - apiVersion?: InputMaybe; - displayName: Scalars['String']['input']; - enabled?: InputMaybe; - kind?: InputMaybe; - metadata?: InputMaybe; - spec: Github__Com___Kloudlite___Operator___Apis___Crds___V1__AppSpecIn; -}; - -export type IotDeploymentIn = { - CIDR: Scalars['String']['input']; - displayName: Scalars['String']['input']; - exposedServices: Array; - name: Scalars['String']['input']; -}; - -export type Github__Com___Kloudlite___Api___Apps___Iot____Console___Internal___Entities__ExposedServiceIn = - { - ip: Scalars['String']['input']; - name: Scalars['String']['input']; - }; - -export type IotDeviceIn = { - displayName: Scalars['String']['input']; - ip: Scalars['String']['input']; - name: Scalars['String']['input']; - podCIDR: Scalars['String']['input']; - publicKey: Scalars['String']['input']; - serviceCIDR: Scalars['String']['input']; - version: Scalars['String']['input']; -}; - -export type IotDeviceBlueprintIn = { - bluePrintType: Github__Com___Kloudlite___Api___Apps___Iot____Console___Internal___Entities__BluePrintType; - displayName: Scalars['String']['input']; - name: Scalars['String']['input']; - version: Scalars['String']['input']; -}; - -export type IotProjectIn = { - displayName: Scalars['String']['input']; - name: Scalars['String']['input']; -}; - export type AccountMembershipIn = { accountName: Scalars['String']['input']; role: Github__Com___Kloudlite___Api___Apps___Iam___Types__Role; @@ -1385,11 +1309,6 @@ export type ImportedManagedResourceIn = { syncStatus: Github__Com___Kloudlite___Api___Pkg___Types__SyncStatusIn; }; -export type IotEnvironmentIn = { - displayName: Scalars['String']['input']; - name: Scalars['String']['input']; -}; - export type K8s__Io___Api___Core___V1__AwsElasticBlockStoreVolumeSourceIn = { fsType?: InputMaybe; partition?: InputMaybe; @@ -2555,6 +2474,14 @@ export type ConsoleCreateEnvironmentMutation = { core_createEnvironment?: { id: string }; }; +export type ConsoleSetupDefaultEnvironmentMutationVariables = Exact<{ + [key: string]: never; +}>; + +export type ConsoleSetupDefaultEnvironmentMutation = { + core_setupDefaultEnvironment: boolean; +}; + export type ConsoleUpdateEnvironmentMutationVariables = Exact<{ env: EnvironmentIn; }>; @@ -6177,1728 +6104,185 @@ export type ConsoleListRegistryImagesQuery = { }; }; -export type IotconsoleAccountCheckNameAvailabilityQueryVariables = Exact<{ - name: Scalars['String']['input']; +export type AuthCli_CreateGlobalVpnDeviceMutationVariables = Exact<{ + gvpnDevice: GlobalVpnDeviceIn; }>; -export type IotconsoleAccountCheckNameAvailabilityQuery = { - accounts_checkNameAvailability: { - result: boolean; - suggestedNames?: Array; +export type AuthCli_CreateGlobalVpnDeviceMutation = { + infra_createGlobalVPNDevice?: { + accountName: string; + creationTime: any; + displayName: string; + globalVPNName: string; + id: string; + ipAddr: string; + markedForDeletion?: boolean; + privateKey: string; + publicKey: string; + recordVersion: number; + updateTime: any; + createdBy: { userEmail: string; userId: string; userName: string }; + lastUpdatedBy: { userName: string; userId: string; userEmail: string }; + metadata: { + annotations?: any; + creationTimestamp: any; + deletionTimestamp?: any; + generation: number; + labels?: any; + name: string; + namespace?: string; + }; + wireguardConfig?: { value: string; encoding: string }; }; }; -export type IotconsoleCrCheckNameAvailabilityQueryVariables = Exact<{ - name: Scalars['String']['input']; +export type AuthCli_GetDnsHostSuffixQueryVariables = Exact<{ + [key: string]: never; }>; -export type IotconsoleCrCheckNameAvailabilityQuery = { - cr_checkUserNameAvailability: { - result: boolean; - suggestedNames?: Array; - }; -}; +export type AuthCli_GetDnsHostSuffixQuery = { core_getDNSHostSuffix: string }; -export type IotconsoleInfraCheckNameAvailabilityQueryVariables = Exact<{ - resType: ResType; - name: Scalars['String']['input']; - clusterName?: InputMaybe; +export type AuthCli_GetMresOutputKeyValuesQueryVariables = Exact<{ + msvcName: Scalars['String']['input']; + keyrefs?: InputMaybe< + | Array> + | InputMaybe + >; }>; -export type IotconsoleInfraCheckNameAvailabilityQuery = { - infra_checkNameAvailability: { - suggestedNames: Array; - result: boolean; - }; +export type AuthCli_GetMresOutputKeyValuesQuery = { + core_getManagedResouceOutputKeyValues: Array<{ + key: string; + mresName: string; + value: string; + }>; }; -export type IotconsoleCoreCheckNameAvailabilityQueryVariables = Exact<{ - resType: ConsoleResType; - name: Scalars['String']['input']; - projectName?: InputMaybe; - envName?: InputMaybe; +export type AuthCli_GetGlobalVpnDeviceQueryVariables = Exact<{ + gvpn: Scalars['String']['input']; + deviceName: Scalars['String']['input']; }>; -export type IotconsoleCoreCheckNameAvailabilityQuery = { - core_checkNameAvailability: { result: boolean }; -}; - -export type IotconsoleWhoAmIQueryVariables = Exact<{ [key: string]: never }>; - -export type IotconsoleWhoAmIQuery = { - auth_me?: { +export type AuthCli_GetGlobalVpnDeviceQuery = { + infra_getGlobalVPNDevice?: { + accountName: string; + creationTime: any; + displayName: string; + globalVPNName: string; id: string; - email: string; - providerGitlab?: any; - providerGithub?: any; - providerGoogle?: any; + ipAddr: string; + markedForDeletion?: boolean; + privateKey: string; + publicKey: string; + recordVersion: number; + updateTime: any; + createdBy: { userEmail: string; userId: string; userName: string }; + lastUpdatedBy: { userName: string; userId: string; userEmail: string }; + metadata: { + annotations?: any; + creationTimestamp: any; + deletionTimestamp?: any; + generation: number; + labels?: any; + name: string; + namespace?: string; + }; + wireguardConfig?: { value: string; encoding: string }; }; }; -export type IotconsoleCreateAccountMutationVariables = Exact<{ - account: AccountIn; -}>; - -export type IotconsoleCreateAccountMutation = { - accounts_createAccount: { displayName: string }; -}; - -export type IotconsoleListAccountsQueryVariables = Exact<{ - [key: string]: never; +export type AuthCli_CoreCheckNameAvailabilityQueryVariables = Exact<{ + resType: ConsoleResType; + name: Scalars['String']['input']; }>; -export type IotconsoleListAccountsQuery = { - accounts_listAccounts?: Array<{ - id: string; - updateTime: any; - displayName: string; - metadata?: { name: string; annotations?: any }; - }>; +export type AuthCli_CoreCheckNameAvailabilityQuery = { + core_checkNameAvailability: { + result: boolean; + suggestedNames?: Array; + }; }; -export type IotconsoleUpdateAccountMutationVariables = Exact<{ - account: AccountIn; +export type AuthCli_GetMresKeysQueryVariables = Exact<{ + name: Scalars['String']['input']; + envName?: InputMaybe; }>; -export type IotconsoleUpdateAccountMutation = { - accounts_updateAccount: { id: string }; +export type AuthCli_GetMresKeysQuery = { + core_getManagedResouceOutputKeys: Array; }; -export type IotconsoleGetAccountQueryVariables = Exact<{ - accountName: Scalars['String']['input']; +export type AuthCli_ListMresesQueryVariables = Exact<{ + pq?: InputMaybe; + search?: InputMaybe; }>; -export type IotconsoleGetAccountQuery = { - accounts_getAccount?: { - targetNamespace?: string; - updateTime: any; - contactEmail?: string; - displayName: string; - metadata?: { name: string; annotations?: any }; +export type AuthCli_ListMresesQuery = { + core_listManagedResources?: { + edges: Array<{ + node: { + displayName: string; + metadata?: { name: string; namespace?: string }; + }; + }>; }; }; -export type IotconsoleDeleteAccountMutationVariables = Exact<{ - accountName: Scalars['String']['input']; +export type AuthCli_GetMresConfigsValuesQueryVariables = Exact<{ + keyrefs?: InputMaybe< + | Array> + | InputMaybe + >; + envName?: InputMaybe; }>; -export type IotconsoleDeleteAccountMutation = { - accounts_deleteAccount: boolean; +export type AuthCli_GetMresConfigsValuesQuery = { + core_getManagedResouceOutputKeyValues: Array<{ + key: string; + mresName: string; + value: string; + }>; }; -export type IotconsoleDeleteIotProjectMutationVariables = Exact<{ +export type AuthCli_InfraCheckNameAvailabilityQueryVariables = Exact<{ + resType: ResType; name: Scalars['String']['input']; + clusterName?: InputMaybe; }>; -export type IotconsoleDeleteIotProjectMutation = { iot_deleteProject: boolean }; +export type AuthCli_InfraCheckNameAvailabilityQuery = { + infra_checkNameAvailability: { + result: boolean; + suggestedNames: Array; + }; +}; -export type IotconsoleCreateIotProjectMutationVariables = Exact<{ - project: IotProjectIn; +export type AuthCli_GetConfigSecretMapQueryVariables = Exact<{ + envName: Scalars['String']['input']; + configQueries?: InputMaybe | ConfigKeyRefIn>; + secretQueries?: InputMaybe | SecretKeyRefIn>; + mresQueries?: InputMaybe | SecretKeyRefIn>; }>; -export type IotconsoleCreateIotProjectMutation = { - iot_createProject?: { id: string }; +export type AuthCli_GetConfigSecretMapQuery = { + configs?: Array<{ configName: string; key: string; value: string }>; + secrets?: Array<{ key: string; secretName: string; value: string }>; + mreses?: Array<{ key: string; secretName: string; value: string }>; }; -export type IotconsoleUpdateIotProjectMutationVariables = Exact<{ - project: IotProjectIn; +export type AuthCli_IntercepExternalAppMutationVariables = Exact<{ + envName: Scalars['String']['input']; + appName: Scalars['String']['input']; + deviceName: Scalars['String']['input']; + intercept: Scalars['Boolean']['input']; + portMappings?: InputMaybe< + | Array + | Github__Com___Kloudlite___Operator___Apis___Crds___V1__AppInterceptPortMappingsIn + >; }>; -export type IotconsoleUpdateIotProjectMutation = { - iot_updateProject?: { id: string }; -}; - -export type IotconsoleGetIotProjectQueryVariables = Exact<{ - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetIotProjectQuery = { - iot_getProject?: { - accountName: string; - creationTime: any; - displayName: string; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; -}; - -export type IotconsoleListIotProjectsQueryVariables = Exact<{ - search?: InputMaybe; - pq?: InputMaybe; -}>; - -export type IotconsoleListIotProjectsQuery = { - iot_listProjects?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - displayName: string; - name: string; - creationTime: any; - markedForDeletion?: boolean; - updateTime: any; - createdBy: { userEmail: string; userName: string; userId: string }; - lastUpdatedBy: { userEmail: string; userName: string; userId: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleDeleteIotDeviceBlueprintMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteIotDeviceBlueprintMutation = { - iot_deleteDeviceBlueprint: boolean; -}; - -export type IotconsoleCreateIotDeviceBlueprintMutationVariables = Exact<{ - deviceBlueprint: IotDeviceBlueprintIn; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleCreateIotDeviceBlueprintMutation = { - iot_createDeviceBlueprint?: { id: string }; -}; - -export type IotconsoleUpdateIotDeviceBlueprintMutationVariables = Exact<{ - deviceBlueprint: IotDeviceBlueprintIn; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleUpdateIotDeviceBlueprintMutation = { - iot_updateDeviceBlueprint?: { id: string }; -}; - -export type IotconsoleGetIotDeviceBlueprintQueryVariables = Exact<{ - projectName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetIotDeviceBlueprintQuery = { - iot_getDeviceBlueprint?: { - accountName: string; - bluePrintType: Github__Com___Kloudlite___Api___Apps___Iot____Console___Internal___Entities__BluePrintType; - creationTime: any; - displayName: string; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - version: string; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; -}; - -export type IotconsoleListIotDeviceBlueprintsQueryVariables = Exact<{ - search?: InputMaybe; - pq?: InputMaybe; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleListIotDeviceBlueprintsQuery = { - iot_listDeviceBlueprints?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - accountName: string; - bluePrintType: Github__Com___Kloudlite___Api___Apps___Iot____Console___Internal___Entities__BluePrintType; - creationTime: any; - displayName: string; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - version: string; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleDeleteIotDeploymentMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteIotDeploymentMutation = { - iot_deleteDeployment: boolean; -}; - -export type IotconsoleCreateIotDeploymentMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - deployment: IotDeploymentIn; -}>; - -export type IotconsoleCreateIotDeploymentMutation = { - iot_createDeployment?: { id: string }; -}; - -export type IotconsoleUpdateIotDeploymentMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - deployment: IotDeploymentIn; -}>; - -export type IotconsoleUpdateIotDeploymentMutation = { - iot_updateDeployment?: { id: string }; -}; - -export type IotconsoleGetIotDeploymentQueryVariables = Exact<{ - projectName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetIotDeploymentQuery = { - iot_getDeployment?: { - accountName: string; - CIDR: string; - creationTime: any; - displayName: string; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - exposedServices: Array<{ ip: string; name: string }>; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; -}; - -export type IotconsoleListIotDeploymentsQueryVariables = Exact<{ - search?: InputMaybe; - pq?: InputMaybe; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleListIotDeploymentsQuery = { - iot_listDeployments?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - accountName: string; - CIDR: string; - creationTime: any; - displayName: string; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - exposedServices: Array<{ ip: string; name: string }>; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleDeleteIotAppMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - deviceBlueprintName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteIotAppMutation = { iot_deleteApp: boolean }; - -export type IotconsoleCreateIotAppMutationVariables = Exact<{ - deviceBlueprintName: Scalars['String']['input']; - app: IotAppIn; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleCreateIotAppMutation = { iot_createApp?: { id: string } }; - -export type IotconsoleUpdateIotAppMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - deviceBlueprintName: Scalars['String']['input']; - app: IotAppIn; -}>; - -export type IotconsoleUpdateIotAppMutation = { iot_updateApp?: { id: string } }; - -export type IotconsoleGetIotAppQueryVariables = Exact<{ - projectName: Scalars['String']['input']; - deviceBlueprintName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetIotAppQuery = { - iot_getApp?: { - accountName: string; - apiVersion?: string; - creationTime: any; - deviceBlueprintName: string; - displayName: string; - enabled?: boolean; - id: string; - kind?: string; - markedForDeletion?: boolean; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - metadata?: { - annotations?: any; - labels?: any; - name: string; - namespace?: string; - }; - spec: { - displayName?: string; - freeze?: boolean; - nodeSelector?: any; - region?: string; - replicas?: number; - serviceAccount?: string; - containers: Array<{ - args?: Array; - command?: Array; - image: string; - imagePullPolicy?: string; - name: string; - env?: Array<{ - key: string; - optional?: boolean; - refKey?: string; - refName?: string; - type?: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - value?: string; - }>; - envFrom?: Array<{ - refName: string; - type: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - }>; - livenessProbe?: { - failureThreshold?: number; - initialDelay?: number; - interval?: number; - type: string; - httpGet?: { httpHeaders?: any; path: string; port: number }; - shell?: { command?: Array }; - tcp?: { port: number }; - }; - readinessProbe?: { - failureThreshold?: number; - initialDelay?: number; - interval?: number; - type: string; - }; - resourceCpu?: { max?: string; min?: string }; - resourceMemory?: { max?: string; min?: string }; - volumes?: Array<{ - mountPath: string; - refName: string; - type: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - items?: Array<{ fileName?: string; key: string }>; - }>; - }>; - hpa?: { - enabled: boolean; - maxReplicas?: number; - minReplicas?: number; - thresholdCpu?: number; - thresholdMemory?: number; - }; - intercept?: { enabled: boolean; toDevice: string }; - services?: Array<{ port: number }>; - tolerations?: Array<{ - effect?: K8s__Io___Api___Core___V1__TaintEffect; - key?: string; - operator?: K8s__Io___Api___Core___V1__TolerationOperator; - tolerationSeconds?: number; - value?: string; - }>; - topologySpreadConstraints?: Array<{ - matchLabelKeys?: Array; - maxSkew: number; - minDomains?: number; - nodeAffinityPolicy?: string; - nodeTaintsPolicy?: string; - topologyKey: string; - whenUnsatisfiable: K8s__Io___Api___Core___V1__UnsatisfiableConstraintAction; - labelSelector?: { - matchLabels?: any; - matchExpressions?: Array<{ - key: string; - operator: K8s__Io___Apimachinery___Pkg___Apis___Meta___V1__LabelSelectorOperator; - values?: Array; - }>; - }; - }>; - }; - status?: { - checks?: any; - isReady: boolean; - lastReadyGeneration?: number; - lastReconcileTime?: any; - checkList?: Array<{ - debug?: boolean; - description?: string; - name: string; - title: string; - }>; - message?: { RawMessage?: any }; - resources?: Array<{ - apiVersion: string; - kind: string; - name: string; - namespace: string; - }>; - }; - }; -}; - -export type IotconsoleListIotAppsQueryVariables = Exact<{ - deviceBlueprintName: Scalars['String']['input']; - search?: InputMaybe; - pq?: InputMaybe; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleListIotAppsQuery = { - iot_listApps?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - accountName: string; - apiVersion?: string; - creationTime: any; - deviceBlueprintName: string; - displayName: string; - enabled?: boolean; - id: string; - kind?: string; - markedForDeletion?: boolean; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - metadata?: { - annotations?: any; - creationTimestamp: any; - labels?: any; - name: string; - namespace?: string; - }; - spec: { - displayName?: string; - freeze?: boolean; - nodeSelector?: any; - region?: string; - replicas?: number; - serviceAccount?: string; - containers: Array<{ - args?: Array; - command?: Array; - image: string; - imagePullPolicy?: string; - name: string; - env?: Array<{ - key: string; - optional?: boolean; - refKey?: string; - refName?: string; - type?: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - value?: string; - }>; - envFrom?: Array<{ - refName: string; - type: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - }>; - livenessProbe?: { - failureThreshold?: number; - initialDelay?: number; - interval?: number; - type: string; - httpGet?: { httpHeaders?: any; path: string; port: number }; - shell?: { command?: Array }; - tcp?: { port: number }; - }; - readinessProbe?: { - failureThreshold?: number; - initialDelay?: number; - interval?: number; - type: string; - }; - resourceCpu?: { max?: string; min?: string }; - resourceMemory?: { max?: string; min?: string }; - volumes?: Array<{ - mountPath: string; - refName: string; - type: Github__Com___Kloudlite___Operator___Apis___Crds___V1__ConfigOrSecret; - items?: Array<{ fileName?: string; key: string }>; - }>; - }>; - hpa?: { - enabled: boolean; - maxReplicas?: number; - minReplicas?: number; - thresholdCpu?: number; - thresholdMemory?: number; - }; - intercept?: { enabled: boolean; toDevice: string }; - services?: Array<{ port: number }>; - tolerations?: Array<{ - effect?: K8s__Io___Api___Core___V1__TaintEffect; - key?: string; - operator?: K8s__Io___Api___Core___V1__TolerationOperator; - tolerationSeconds?: number; - value?: string; - }>; - topologySpreadConstraints?: Array<{ - matchLabelKeys?: Array; - maxSkew: number; - minDomains?: number; - nodeAffinityPolicy?: string; - nodeTaintsPolicy?: string; - topologyKey: string; - whenUnsatisfiable: K8s__Io___Api___Core___V1__UnsatisfiableConstraintAction; - labelSelector?: { - matchLabels?: any; - matchExpressions?: Array<{ - key: string; - operator: K8s__Io___Apimachinery___Pkg___Apis___Meta___V1__LabelSelectorOperator; - values?: Array; - }>; - }; - }>; - }; - status?: { - checks?: any; - isReady: boolean; - lastReadyGeneration?: number; - lastReconcileTime?: any; - checkList?: Array<{ - debug?: boolean; - description?: string; - name: string; - title: string; - }>; - message?: { RawMessage?: any }; - resources?: Array<{ - apiVersion: string; - kind: string; - name: string; - namespace: string; - }>; - }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleDeleteIotDeviceMutationVariables = Exact<{ - projectName: Scalars['String']['input']; - deploymentName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteIotDeviceMutation = { iot_deleteDevice: boolean }; - -export type IotconsoleCreateIotDeviceMutationVariables = Exact<{ - deploymentName: Scalars['String']['input']; - device: IotDeviceIn; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleCreateIotDeviceMutation = { - iot_createDevice?: { id: string }; -}; - -export type IotconsoleUpdateIotDeviceMutationVariables = Exact<{ - deploymentName: Scalars['String']['input']; - device: IotDeviceIn; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleUpdateIotDeviceMutation = { - iot_updateDevice?: { id: string }; -}; - -export type IotconsoleGetIotDeviceQueryVariables = Exact<{ - projectName: Scalars['String']['input']; - deploymentName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetIotDeviceQuery = { - iot_getDevice?: { - accountName: string; - creationTime: any; - deploymentName: string; - displayName: string; - id: string; - ip: string; - markedForDeletion?: boolean; - name: string; - podCIDR: string; - publicKey: string; - recordVersion: number; - serviceCIDR: string; - updateTime: any; - version: string; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; -}; - -export type IotconsoleListIotDevicesQueryVariables = Exact<{ - deploymentName: Scalars['String']['input']; - search?: InputMaybe; - pq?: InputMaybe; - projectName: Scalars['String']['input']; -}>; - -export type IotconsoleListIotDevicesQuery = { - iot_listDevices?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - accountName: string; - creationTime: any; - deploymentName: string; - displayName: string; - id: string; - ip: string; - markedForDeletion?: boolean; - name: string; - podCIDR: string; - publicKey: string; - recordVersion: number; - serviceCIDR: string; - updateTime: any; - version: string; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleListRepoQueryVariables = Exact<{ - search?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListRepoQuery = { - cr_listRepos?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - accountName: string; - creationTime: any; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleCreateRepoMutationVariables = Exact<{ - repository: RepositoryIn; -}>; - -export type IotconsoleCreateRepoMutation = { cr_createRepo?: { id: string } }; - -export type IotconsoleDeleteRepoMutationVariables = Exact<{ - name: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteRepoMutation = { cr_deleteRepo: boolean }; - -export type IotconsoleListDigestQueryVariables = Exact<{ - repoName: Scalars['String']['input']; - search?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListDigestQuery = { - cr_listDigests?: { - totalCount: number; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - edges: Array<{ - cursor: string; - node: { - url: string; - updateTime: any; - tags: Array; - size: number; - repository: string; - digest: string; - creationTime: any; - }; - }>; - }; -}; - -export type IotconsoleDeleteDigestMutationVariables = Exact<{ - repoName: Scalars['String']['input']; - digest: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteDigestMutation = { cr_deleteDigest: boolean }; - -export type IotconsoleUpdateConfigMutationVariables = Exact<{ - envName: Scalars['String']['input']; - config: ConfigIn; -}>; - -export type IotconsoleUpdateConfigMutation = { - core_updateConfig?: { id: string }; -}; - -export type IotconsoleDeleteConfigMutationVariables = Exact<{ - envName: Scalars['String']['input']; - configName: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteConfigMutation = { core_deleteConfig: boolean }; - -export type IotconsoleGetConfigQueryVariables = Exact<{ - envName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetConfigQuery = { - core_getConfig?: { - binaryData?: any; - data?: any; - displayName: string; - environmentName: string; - immutable?: boolean; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - }; -}; - -export type IotconsoleListConfigsQueryVariables = Exact<{ - envName: Scalars['String']['input']; - search?: InputMaybe; - pq?: InputMaybe; -}>; - -export type IotconsoleListConfigsQuery = { - core_listConfigs?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - creationTime: any; - displayName: string; - data?: any; - environmentName: string; - immutable?: boolean; - markedForDeletion?: boolean; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleCreateConfigMutationVariables = Exact<{ - envName: Scalars['String']['input']; - config: ConfigIn; -}>; - -export type IotconsoleCreateConfigMutation = { - core_createConfig?: { id: string }; -}; - -export type IotconsoleListSecretsQueryVariables = Exact<{ - envName: Scalars['String']['input']; - search?: InputMaybe; - pq?: InputMaybe; -}>; - -export type IotconsoleListSecretsQuery = { - core_listSecrets?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - creationTime: any; - displayName: string; - stringData?: any; - environmentName: string; - isReadyOnly: boolean; - immutable?: boolean; - markedForDeletion?: boolean; - type?: K8s__Io___Api___Core___V1__SecretType; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleCreateSecretMutationVariables = Exact<{ - envName: Scalars['String']['input']; - secret: SecretIn; -}>; - -export type IotconsoleCreateSecretMutation = { - core_createSecret?: { id: string }; -}; - -export type IotconsoleGetSecretQueryVariables = Exact<{ - envName: Scalars['String']['input']; - name: Scalars['String']['input']; -}>; - -export type IotconsoleGetSecretQuery = { - core_getSecret?: { - data?: any; - displayName: string; - environmentName: string; - immutable?: boolean; - markedForDeletion?: boolean; - stringData?: any; - type?: K8s__Io___Api___Core___V1__SecretType; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - }; -}; - -export type IotconsoleUpdateSecretMutationVariables = Exact<{ - envName: Scalars['String']['input']; - secret: SecretIn; -}>; - -export type IotconsoleUpdateSecretMutation = { - core_updateSecret?: { id: string }; -}; - -export type IotconsoleDeleteSecretMutationVariables = Exact<{ - envName: Scalars['String']['input']; - secretName: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteSecretMutation = { core_deleteSecret: boolean }; - -export type IotconsoleGetCredTokenQueryVariables = Exact<{ - username: Scalars['String']['input']; -}>; - -export type IotconsoleGetCredTokenQuery = { cr_getCredToken: string }; - -export type IotconsoleListCredQueryVariables = Exact<{ - search?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListCredQuery = { - cr_listCreds?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - access: Github__Com___Kloudlite___Api___Apps___Container____Registry___Internal___Domain___Entities__RepoAccess; - accountName: string; - creationTime: any; - id: string; - markedForDeletion?: boolean; - name: string; - recordVersion: number; - updateTime: any; - username: string; - createdBy: { userEmail: string; userId: string; userName: string }; - expiration: { - unit: Github__Com___Kloudlite___Api___Apps___Container____Registry___Internal___Domain___Entities__ExpirationUnit; - value: number; - }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleCreateCredMutationVariables = Exact<{ - credential: CredentialIn; -}>; - -export type IotconsoleCreateCredMutation = { cr_createCred?: { id: string } }; - -export type IotconsoleDeleteCredMutationVariables = Exact<{ - username: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteCredMutation = { cr_deleteCred: boolean }; - -export type IotconsoleGetGitConnectionsQueryVariables = Exact<{ - state?: InputMaybe; -}>; - -export type IotconsoleGetGitConnectionsQuery = { - githubLoginUrl: any; - gitlabLoginUrl: any; - auth_me?: { - providerGitlab?: any; - providerGithub?: any; - providerGoogle?: any; - }; -}; - -export type IotconsoleGetLoginsQueryVariables = Exact<{ [key: string]: never }>; - -export type IotconsoleGetLoginsQuery = { - auth_me?: { providerGithub?: any; providerGitlab?: any }; -}; - -export type IotconsoleLoginUrlsQueryVariables = Exact<{ [key: string]: never }>; - -export type IotconsoleLoginUrlsQuery = { - githubLoginUrl: any; - gitlabLoginUrl: any; -}; - -export type IotconsoleListGithubReposQueryVariables = Exact<{ - installationId: Scalars['Int']['input']; - pagination?: InputMaybe; -}>; - -export type IotconsoleListGithubReposQuery = { - cr_listGithubRepos?: { - totalCount?: number; - repositories: Array<{ - cloneUrl?: string; - defaultBranch?: string; - fullName?: string; - private?: boolean; - updatedAt?: any; - }>; - }; -}; - -export type IotconsoleListGithubInstalltionsQueryVariables = Exact<{ - pagination?: InputMaybe; -}>; - -export type IotconsoleListGithubInstalltionsQuery = { - cr_listGithubInstallations?: Array<{ - appId?: number; - id?: number; - nodeId?: string; - repositoriesUrl?: string; - targetId?: number; - targetType?: string; - account?: { - avatarUrl?: string; - id?: number; - login?: string; - nodeId?: string; - type?: string; - }; - }>; -}; - -export type IotconsoleListGithubBranchesQueryVariables = Exact<{ - repoUrl: Scalars['String']['input']; - pagination?: InputMaybe; -}>; - -export type IotconsoleListGithubBranchesQuery = { - cr_listGithubBranches?: Array<{ name?: string }>; -}; - -export type IotconsoleSearchGithubReposQueryVariables = Exact<{ - organization: Scalars['String']['input']; - search: Scalars['String']['input']; - pagination?: InputMaybe; -}>; - -export type IotconsoleSearchGithubReposQuery = { - cr_searchGithubRepos?: { - repositories: Array<{ - cloneUrl?: string; - defaultBranch?: string; - fullName?: string; - private?: boolean; - updatedAt?: any; - }>; - }; -}; - -export type IotconsoleListGitlabGroupsQueryVariables = Exact<{ - query?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListGitlabGroupsQuery = { - cr_listGitlabGroups?: Array<{ fullName: string; id: string }>; -}; - -export type IotconsoleListGitlabReposQueryVariables = Exact<{ - query?: InputMaybe; - pagination?: InputMaybe; - groupId: Scalars['String']['input']; -}>; - -export type IotconsoleListGitlabReposQuery = { - cr_listGitlabRepositories?: Array<{ - createdAt?: any; - name: string; - id: number; - public: boolean; - httpUrlToRepo: string; - }>; -}; - -export type IotconsoleListGitlabBranchesQueryVariables = Exact<{ - repoId: Scalars['String']['input']; - query?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListGitlabBranchesQuery = { - cr_listGitlabBranches?: Array<{ name?: string; protected?: boolean }>; -}; - -export type IotconsoleListBuildsQueryVariables = Exact<{ - repoName: Scalars['String']['input']; - search?: InputMaybe; - pagination?: InputMaybe; -}>; - -export type IotconsoleListBuildsQuery = { - cr_listBuilds?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - creationTime: any; - buildClusterName: string; - errorMessages: any; - id: string; - markedForDeletion?: boolean; - name: string; - status: Github__Com___Kloudlite___Api___Apps___Container____Registry___Internal___Domain___Entities__BuildStatus; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - credUser: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userEmail: string; userId: string; userName: string }; - source: { - branch: string; - provider: Github__Com___Kloudlite___Api___Apps___Container____Registry___Internal___Domain___Entities__GitProvider; - repository: string; - webhookId?: number; - }; - spec: { - buildOptions?: { - buildArgs?: any; - buildContexts?: any; - contextDir?: string; - dockerfileContent?: string; - dockerfilePath?: string; - targetPlatforms?: Array; - }; - registry: { repo: { name: string; tags: Array } }; - resource: { cpu: number; memoryInMb: number }; - caches?: Array<{ name: string; path: string }>; - }; - latestBuildRun?: { - recordVersion: number; - markedForDeletion?: boolean; - status?: { - checks?: any; - isReady: boolean; - lastReadyGeneration?: number; - lastReconcileTime?: any; - checkList?: Array<{ - debug?: boolean; - description?: string; - name: string; - title: string; - }>; - message?: { RawMessage?: any }; - resources?: Array<{ - apiVersion: string; - kind: string; - name: string; - namespace: string; - }>; - }; - syncStatus: { - action: Github__Com___Kloudlite___Api___Pkg___Types__SyncAction; - error?: string; - lastSyncedAt?: any; - recordVersion: number; - state: Github__Com___Kloudlite___Api___Pkg___Types__SyncState; - syncScheduledAt?: any; - }; - }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleCreateBuildMutationVariables = Exact<{ - build: BuildIn; -}>; - -export type IotconsoleCreateBuildMutation = { cr_addBuild?: { id: string } }; - -export type IotconsoleUpdateBuildMutationVariables = Exact<{ - crUpdateBuildId: Scalars['ID']['input']; - build: BuildIn; -}>; - -export type IotconsoleUpdateBuildMutation = { cr_updateBuild?: { id: string } }; - -export type IotconsoleDeleteBuildMutationVariables = Exact<{ - crDeleteBuildId: Scalars['ID']['input']; -}>; - -export type IotconsoleDeleteBuildMutation = { cr_deleteBuild: boolean }; - -export type IotconsoleTriggerBuildMutationVariables = Exact<{ - crTriggerBuildId: Scalars['ID']['input']; -}>; - -export type IotconsoleTriggerBuildMutation = { cr_triggerBuild: boolean }; - -export type IotconsoleListBuildRunsQueryVariables = Exact<{ - search?: InputMaybe; - pq?: InputMaybe; -}>; - -export type IotconsoleListBuildRunsQuery = { - cr_listBuildRuns?: { - totalCount: number; - edges: Array<{ - cursor: string; - node: { - id: string; - clusterName: string; - creationTime: any; - markedForDeletion?: boolean; - recordVersion: number; - updateTime: any; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - spec?: { - accountName: string; - buildOptions?: { - buildArgs?: any; - buildContexts?: any; - contextDir?: string; - dockerfileContent?: string; - dockerfilePath?: string; - targetPlatforms?: Array; - }; - registry: { repo: { name: string; tags: Array } }; - resource: { cpu: number; memoryInMb: number }; - }; - status?: { - checks?: any; - isReady: boolean; - lastReadyGeneration?: number; - lastReconcileTime?: any; - checkList?: Array<{ - description?: string; - debug?: boolean; - name: string; - title: string; - }>; - message?: { RawMessage?: any }; - resources?: Array<{ - apiVersion: string; - kind: string; - name: string; - namespace: string; - }>; - }; - syncStatus: { - action: Github__Com___Kloudlite___Api___Pkg___Types__SyncAction; - error?: string; - lastSyncedAt?: any; - recordVersion: number; - state: Github__Com___Kloudlite___Api___Pkg___Types__SyncState; - syncScheduledAt?: any; - }; - }; - }>; - pageInfo: { - endCursor?: string; - hasNextPage?: boolean; - hasPrevPage?: boolean; - startCursor?: string; - }; - }; -}; - -export type IotconsoleGetBuildRunQueryVariables = Exact<{ - buildId: Scalars['ID']['input']; - buildRunName: Scalars['String']['input']; -}>; - -export type IotconsoleGetBuildRunQuery = { - cr_getBuildRun?: { - clusterName: string; - creationTime: any; - markedForDeletion?: boolean; - recordVersion: number; - updateTime: any; - metadata?: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - spec?: { - accountName: string; - buildOptions?: { - buildArgs?: any; - buildContexts?: any; - contextDir?: string; - dockerfileContent?: string; - dockerfilePath?: string; - targetPlatforms?: Array; - }; - registry: { repo: { name: string; tags: Array } }; - resource: { cpu: number; memoryInMb: number }; - }; - status?: { - checks?: any; - isReady: boolean; - lastReadyGeneration?: number; - lastReconcileTime?: any; - checkList?: Array<{ - description?: string; - debug?: boolean; - name: string; - title: string; - }>; - message?: { RawMessage?: any }; - resources?: Array<{ - apiVersion: string; - kind: string; - name: string; - namespace: string; - }>; - }; - syncStatus: { - action: Github__Com___Kloudlite___Api___Pkg___Types__SyncAction; - error?: string; - lastSyncedAt?: any; - recordVersion: number; - state: Github__Com___Kloudlite___Api___Pkg___Types__SyncState; - syncScheduledAt?: any; - }; - }; -}; - -export type IotconsoleListInvitationsForAccountQueryVariables = Exact<{ - accountName: Scalars['String']['input']; -}>; - -export type IotconsoleListInvitationsForAccountQuery = { - accounts_listInvitations?: Array<{ - accepted?: boolean; - accountName: string; - creationTime: any; - id: string; - inviteToken: string; - invitedBy: string; - markedForDeletion?: boolean; - recordVersion: number; - rejected?: boolean; - updateTime: any; - userEmail?: string; - userName?: string; - userRole: Github__Com___Kloudlite___Api___Apps___Iam___Types__Role; - }>; -}; - -export type IotconsoleListMembershipsForAccountQueryVariables = Exact<{ - accountName: Scalars['String']['input']; -}>; - -export type IotconsoleListMembershipsForAccountQuery = { - accounts_listMembershipsForAccount?: Array<{ - role: Github__Com___Kloudlite___Api___Apps___Iam___Types__Role; - user: { verified: boolean; name: string; joined: any; email: string }; - }>; -}; - -export type IotconsoleDeleteAccountInvitationMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - invitationId: Scalars['String']['input']; -}>; - -export type IotconsoleDeleteAccountInvitationMutation = { - accounts_deleteInvitation: boolean; -}; - -export type IotconsoleInviteMembersForAccountMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - invitations: Array | InvitationIn; -}>; - -export type IotconsoleInviteMembersForAccountMutation = { - accounts_inviteMembers?: Array<{ id: string }>; -}; - -export type IotconsoleListInvitationsForUserQueryVariables = Exact<{ - onlyPending: Scalars['Boolean']['input']; -}>; - -export type IotconsoleListInvitationsForUserQuery = { - accounts_listInvitationsForUser?: Array<{ - accountName: string; - id: string; - updateTime: any; - inviteToken: string; - }>; -}; - -export type IotconsoleAcceptInvitationMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - inviteToken: Scalars['String']['input']; -}>; - -export type IotconsoleAcceptInvitationMutation = { - accounts_acceptInvitation: boolean; -}; - -export type IotconsoleRejectInvitationMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - inviteToken: Scalars['String']['input']; -}>; - -export type IotconsoleRejectInvitationMutation = { - accounts_rejectInvitation: boolean; -}; - -export type IotconsoleUpdateAccountMembershipMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - memberId: Scalars['ID']['input']; - role: Github__Com___Kloudlite___Api___Apps___Iam___Types__Role; -}>; - -export type IotconsoleUpdateAccountMembershipMutation = { - accounts_updateAccountMembership: boolean; -}; - -export type IotconsoleDeleteAccountMembershipMutationVariables = Exact<{ - accountName: Scalars['String']['input']; - memberId: Scalars['ID']['input']; -}>; - -export type IotconsoleDeleteAccountMembershipMutation = { - accounts_removeAccountMembership: boolean; -}; - -export type AuthCli_CreateGlobalVpnDeviceMutationVariables = Exact<{ - gvpnDevice: GlobalVpnDeviceIn; -}>; - -export type AuthCli_CreateGlobalVpnDeviceMutation = { - infra_createGlobalVPNDevice?: { - accountName: string; - creationTime: any; - displayName: string; - globalVPNName: string; - id: string; - ipAddr: string; - markedForDeletion?: boolean; - privateKey: string; - publicKey: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userName: string; userId: string; userEmail: string }; - metadata: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - wireguardConfig?: { value: string; encoding: string }; - }; -}; - -export type AuthCli_GetDnsHostSuffixQueryVariables = Exact<{ - [key: string]: never; -}>; - -export type AuthCli_GetDnsHostSuffixQuery = { core_getDNSHostSuffix: string }; - -export type AuthCli_GetMresOutputKeyValuesQueryVariables = Exact<{ - msvcName: Scalars['String']['input']; - keyrefs?: InputMaybe< - | Array> - | InputMaybe - >; -}>; - -export type AuthCli_GetMresOutputKeyValuesQuery = { - core_getManagedResouceOutputKeyValues: Array<{ - key: string; - mresName: string; - value: string; - }>; -}; - -export type AuthCli_GetGlobalVpnDeviceQueryVariables = Exact<{ - gvpn: Scalars['String']['input']; - deviceName: Scalars['String']['input']; -}>; - -export type AuthCli_GetGlobalVpnDeviceQuery = { - infra_getGlobalVPNDevice?: { - accountName: string; - creationTime: any; - displayName: string; - globalVPNName: string; - id: string; - ipAddr: string; - markedForDeletion?: boolean; - privateKey: string; - publicKey: string; - recordVersion: number; - updateTime: any; - createdBy: { userEmail: string; userId: string; userName: string }; - lastUpdatedBy: { userName: string; userId: string; userEmail: string }; - metadata: { - annotations?: any; - creationTimestamp: any; - deletionTimestamp?: any; - generation: number; - labels?: any; - name: string; - namespace?: string; - }; - wireguardConfig?: { value: string; encoding: string }; - }; -}; - -export type AuthCli_CoreCheckNameAvailabilityQueryVariables = Exact<{ - resType: ConsoleResType; - name: Scalars['String']['input']; -}>; - -export type AuthCli_CoreCheckNameAvailabilityQuery = { - core_checkNameAvailability: { - result: boolean; - suggestedNames?: Array; - }; -}; - -export type AuthCli_GetMresKeysQueryVariables = Exact<{ - name: Scalars['String']['input']; - envName?: InputMaybe; -}>; - -export type AuthCli_GetMresKeysQuery = { - core_getManagedResouceOutputKeys: Array; -}; - -export type AuthCli_ListMresesQueryVariables = Exact<{ - pq?: InputMaybe; - search?: InputMaybe; -}>; - -export type AuthCli_ListMresesQuery = { - core_listManagedResources?: { - edges: Array<{ - node: { - displayName: string; - metadata?: { name: string; namespace?: string }; - }; - }>; - }; -}; - -export type AuthCli_GetMresConfigsValuesQueryVariables = Exact<{ - keyrefs?: InputMaybe< - | Array> - | InputMaybe - >; - envName?: InputMaybe; -}>; - -export type AuthCli_GetMresConfigsValuesQuery = { - core_getManagedResouceOutputKeyValues: Array<{ - key: string; - mresName: string; - value: string; - }>; -}; - -export type AuthCli_InfraCheckNameAvailabilityQueryVariables = Exact<{ - resType: ResType; - name: Scalars['String']['input']; - clusterName?: InputMaybe; -}>; - -export type AuthCli_InfraCheckNameAvailabilityQuery = { - infra_checkNameAvailability: { - result: boolean; - suggestedNames: Array; - }; -}; - -export type AuthCli_GetConfigSecretMapQueryVariables = Exact<{ - envName: Scalars['String']['input']; - configQueries?: InputMaybe | ConfigKeyRefIn>; - secretQueries?: InputMaybe | SecretKeyRefIn>; - mresQueries?: InputMaybe | SecretKeyRefIn>; -}>; - -export type AuthCli_GetConfigSecretMapQuery = { - configs?: Array<{ configName: string; key: string; value: string }>; - secrets?: Array<{ key: string; secretName: string; value: string }>; - mreses?: Array<{ key: string; secretName: string; value: string }>; -}; - -export type AuthCli_IntercepExternalAppMutationVariables = Exact<{ - envName: Scalars['String']['input']; - appName: Scalars['String']['input']; - deviceName: Scalars['String']['input']; - intercept: Scalars['Boolean']['input']; - portMappings?: InputMaybe< - | Array - | Github__Com___Kloudlite___Operator___Apis___Crds___V1__AppInterceptPortMappingsIn - >; -}>; - -export type AuthCli_IntercepExternalAppMutation = { - core_interceptExternalApp: boolean; +export type AuthCli_IntercepExternalAppMutation = { + core_interceptExternalApp: boolean; }; export type AuthCli_InterceptAppMutationVariables = Exact<{ @@ -8354,6 +6738,7 @@ export type AuthAddOauthCredientialsMutation = { oAuth_addLogin: boolean }; export type AuthRequestResetPasswordMutationVariables = Exact<{ email: Scalars['String']['input']; + captchaToken: Scalars['String']['input']; }>; export type AuthRequestResetPasswordMutation = { @@ -8412,11 +6797,12 @@ export type AuthLogoutMutation = { auth_logout: boolean }; export type AuthSignUpWithEmailMutationVariables = Exact<{ name: Scalars['String']['input']; - password: Scalars['String']['input']; email: Scalars['String']['input']; + password: Scalars['String']['input']; + captchaToken: Scalars['String']['input']; }>; -export type AuthSignUpWithEmailMutation = { auth_signup?: { id: string } }; +export type AuthSignUpWithEmailMutation = { auth_signup: { id: string } }; export type AuthWhoAmIQueryVariables = Exact<{ [key: string]: never }>;