import * as plugins from '../plugins.js'; import type { IIdentity, IIdentityCredential, IServiceDeploymentGrant } from '../data/user.js'; export interface IReq_Admin_LoginWithUsernameAndPassword extends plugins.typedrequestInterfaces.implementsTR { method: 'adminLoginWithUsernameAndPassword'; request: { username: string; password: string; }; response: { identity: IIdentity; }; } export interface IReq_Admin_ConfigureServiceDeploymentMachineUser extends plugins.typedrequestInterfaces.implementsTR { method: 'configureServiceDeploymentMachineUser'; request: { identity: IIdentityCredential; userId: string; grant: IServiceDeploymentGrant; }; response: { userId: string; grant: IServiceDeploymentGrant; tokenRolesNormalized: true; }; } export interface ICoreflowBaseServiceReconciliationResult { status: 'fulfilled' | 'rejected'; nodeNames: string[]; clusterId?: string; message?: string; routingProof?: ICoreflowRoutingProofResult; } export interface ICoreflowRoutingProofEntry { serviceId: string; hostname: string; destinationPort: number; } export interface ICoreflowRoutingProofRequest { requestId: string; reason?: string; requiredPresent: ICoreflowRoutingProofEntry[]; requiredAbsentHostnames: string[]; } export interface ICoreflowRoutingProofResult { requestId: string; routingGeneration: number; provenPresent: ICoreflowRoutingProofEntry[]; confirmedAbsentHostnames: string[]; requiredFailures: string[]; unrelatedFailures: string[]; } export interface IReq_Any_Cloudly_ReconcileBaseServices extends plugins.typedrequestInterfaces.implementsTR { method: 'reconcileBaseServices'; request: { identity: IIdentity; }; response: { triggeredCoreflows: number; successfulCoreflows: number; failedCoreflows: number; results: ICoreflowBaseServiceReconciliationResult[]; }; } export interface IReq_Cloudly_Coreflow_ReconcileBaseServices extends plugins.typedrequestInterfaces.implementsTR { method: 'coreflowReconcileBaseServices'; request: { routingProof?: ICoreflowRoutingProofRequest; }; response: { success: boolean; routingProof?: ICoreflowRoutingProofResult; }; }