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EzB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACf","file":"rpc-azure-model.d.ts","sourcesContent":["import { RpcBaseData } from '../rpc-base';\r\n\r\n/**\r\n * Azure request RPC call name and version.\r\n */\r\nexport class RpcAzureRequestKey {\r\n    public static command = 'AzureRequest';\r\n    public static version = '0.2.0';\r\n}\r\n\r\n/**\r\n * Azure response RPC call name and version.\r\n */\r\nexport class RpcAzureResponseKey {\r\n    public static command = 'Azure';\r\n    public static version = '0.2.0';\r\n}\r\n\r\n/**\r\n * Identifies the Azure operation type to perform\r\n */\r\nexport enum RpcAzureOperationType {\r\n    /**\r\n     * Get AAD status and information\r\n     */\r\n    GetAadStatus = 0,\r\n\r\n    /**\r\n     * Open register AAD Dialog\r\n     */\r\n    OpenAzureDialog = 1,\r\n\r\n    /**\r\n     * Get AAD user token\r\n     */\r\n    GetAadToken = 2,\r\n\r\n    /**\r\n     * Get AAD user token for Azure AD Graph API\r\n     */\r\n    GetAadGraphToken = 3,\r\n\r\n    /**\r\n     * Sign in to Azure.\r\n     */\r\n    SignIn = 4,\r\n\r\n    /**\r\n     * Sign out of Azure.\r\n     */\r\n    SignOut = 5,\r\n\r\n    /**\r\n     * Sign in with a different account\r\n     */\r\n    SwitchAccounts = 6,\r\n\r\n    /**\r\n     * Check if user is signed in.\r\n     */\r\n    CheckUserSignedIn = 7,\r\n\r\n    /**\r\n     * Get AAD user token for Microsoft Graph API\r\n     */\r\n    GetMicrosoftGraphToken = 8\r\n}\r\n\r\n/**\r\n * Azure Manager operation/action RPC message.\r\n */\r\nexport interface RpcAzureOperation extends RpcBaseData {\r\n    /**\r\n     * Request specific Id to track completion.\r\n     */\r\n    requestId: string;\r\n\r\n    /**\r\n     * Type of Azure operation to perform\r\n     */\r\n    operation: RpcAzureOperationType;\r\n\r\n    /**\r\n     * The set of permissions for which the token has to be requested.\r\n     */\r\n    tokenScopes?: string[];\r\n}\r\n\r\n/**\r\n * Azure RPC app info.\r\n */\r\nexport interface RpcAzureAppInfo {\r\n    /**\r\n     * Logged in AAD user name\r\n     */\r\n    aadUserName: string;\r\n    /**\r\n     * Application id\r\n     */\r\n    appId: string;\r\n    /**\r\n     * Tenant id\r\n     */\r\n    tenantId: string;\r\n    /**\r\n     * Application name in AAD\r\n     */\r\n    appDisplayName: string;\r\n    /**\r\n     * Register AAD application verify url\r\n     */\r\n    appVerifyAddress: string;\r\n\r\n    /**\r\n     * Application token\r\n     */\r\n    token: string;\r\n}\r\n\r\n/**\r\n * Azure operation/action RPC message result.\r\n */\r\nexport interface RpcAzureOperationResult {\r\n    /**\r\n     * Request specific Id to track completion.\r\n     */\r\n    requestId: string;\r\n\r\n    /**\r\n     * Application information\r\n     */\r\n    appInfo: RpcAzureAppInfo;\r\n\r\n    /**\r\n     * Error if any\r\n     */\r\n    error?: any;\r\n}\r\n"]}