import * as wmill from "windmill-client"
import { google } from "googleapis";
type CGoogleServiceAccount = {
type: string;
auth_uri: string;
client_id: string;
token_uri: string;
project_id: string;
private_key: string;
client_email: string;
private_key_id: string;
universe_domain: string;
client_x509_cert_url: string;
auth_provider_x509_cert_url: string;
};
export async function main(serviceAccount: CGoogleServiceAccount) {
new google.auth.GoogleAuth({
credentials: {
client_email: serviceAccount.client_email,
private_key: serviceAccount.private_key,
},
scopes: ["https://www.googleapis.com/auth/drive"],
});
return
}
import * as wmill from "windmill-client"
import { google } from "googleapis";
type CGoogleServiceAccount = {
type: string;
auth_uri: string;
client_id: string;
token_uri: string;
project_id: string;
private_key: string;
client_email: string;
private_key_id: string;
universe_domain: string;
client_x509_cert_url: string;
auth_provider_x509_cert_url: string;
};
export async function main(serviceAccount: CGoogleServiceAccount) {
new google.auth.GoogleAuth({
credentials: {
client_email: serviceAccount.client_email,
private_key: serviceAccount.private_key,
},
scopes: ["https://www.googleapis.com/auth/drive"],
});
return
}