@yoonion/mimi-seed-mcp 0.21.8 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -2
- package/assets/agent-guide.md +1 -0
- package/dist/admob/tools.d.ts +1 -1
- package/dist/ai/client.d.ts +2 -2
- package/dist/ai/client.js +19 -3
- package/dist/ai/notes.js +1 -1
- package/dist/ai/review.js +1 -1
- package/dist/auth/drive-auth.d.ts +26 -0
- package/dist/auth/drive-auth.js +91 -0
- package/dist/auth/drive-setup-cli.d.ts +2 -0
- package/dist/auth/drive-setup-cli.js +157 -0
- package/dist/auth/scopes.d.ts +7 -0
- package/dist/auth/scopes.js +10 -0
- package/dist/core/ai.d.ts +2 -0
- package/dist/core/ai.js +7 -0
- package/dist/drive/tools.d.ts +122 -0
- package/dist/drive/tools.js +281 -0
- package/dist/firebase/tools.d.ts +11 -11
- package/dist/ga4/tools.d.ts +5 -5
- package/dist/gsc/tools.d.ts +5 -5
- package/dist/index.js +23 -9
- package/dist/lib/googleapis-lite.d.ts +20 -18
- package/dist/lib/googleapis-lite.js +45 -24
- package/dist/playstore/edits.d.ts +1 -1
- package/dist/playstore/images.d.ts +2 -2
- package/dist/playstore/listing.d.ts +4 -4
- package/dist/playstore/products.d.ts +5 -5
- package/dist/playstore/recovery.d.ts +2 -2
- package/dist/playstore/releases.d.ts +5 -5
- package/dist/playstore/reviews.d.ts +1 -1
- package/dist/registers/drive.d.ts +2 -0
- package/dist/registers/drive.js +108 -0
- package/dist/registers/video.js +4 -1
- package/dist/server.js +2 -0
- package/dist/video/project.js +1 -1
- package/dist/video/research.js +1 -1
- package/dist/video/youtube-publish.d.ts +14 -0
- package/dist/video/youtube-publish.js +6 -0
- package/dist/youtube/tools.d.ts +3 -1
- package/dist/youtube/tools.js +2 -0
- package/package.json +31 -15
- package/tool-manifest.json +37 -3
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { createReadStream, statSync } from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { google } from '../lib/googleapis-lite.js';
|
|
5
|
+
import { mediaUploadOptions } from '../lib/google-timeouts.js';
|
|
6
|
+
import { authReauthMessage, extractHttpStatus, googleErrorDetail, rawMessage, withCause, } from '../lib/google-errors.js';
|
|
7
|
+
export const FOLDER_MIME = 'application/vnd.google-apps.folder';
|
|
8
|
+
const FIELDS = 'id,name,mimeType,size,md5Checksum,createdTime,modifiedTime,parents,driveId,trashed,webViewLink,description';
|
|
9
|
+
/**
|
|
10
|
+
* Drive 파일·폴더 ID. 영숫자·밑줄·하이픈만 허용한다 — 이 값은 files.list 의 q 문자열 안에
|
|
11
|
+
* 그대로 들어가므로, 따옴표가 섞이면 질의가 다른 뜻이 된다. 'root' 는 내 드라이브 최상위 별칭.
|
|
12
|
+
*/
|
|
13
|
+
export const DRIVE_ID_RE = /^(root|[A-Za-z0-9_-]{10,200})$/;
|
|
14
|
+
function assertDriveId(id, what) {
|
|
15
|
+
if (!DRIVE_ID_RE.test(id))
|
|
16
|
+
throw new Error(`${what} 형식이 올바르지 않아: 영숫자·_·- 만 쓰는 Drive ID 여야 해.`);
|
|
17
|
+
}
|
|
18
|
+
/** files.list q 문자열 리터럴 이스케이프 (\ 와 ' ). */
|
|
19
|
+
export function escapeQueryValue(value) {
|
|
20
|
+
return value.replace(/\\/g, '\\\\').replace(/'/g, "\\'");
|
|
21
|
+
}
|
|
22
|
+
function drive(auth) {
|
|
23
|
+
return google.drive({ version: 'v3', auth: auth });
|
|
24
|
+
}
|
|
25
|
+
function toFile(f) {
|
|
26
|
+
return {
|
|
27
|
+
id: f.id ?? '',
|
|
28
|
+
name: f.name ?? '',
|
|
29
|
+
mimeType: f.mimeType ?? '',
|
|
30
|
+
isFolder: f.mimeType === FOLDER_MIME,
|
|
31
|
+
size: f.size != null ? Number(f.size) : null,
|
|
32
|
+
md5Checksum: f.md5Checksum ?? null,
|
|
33
|
+
createdTime: f.createdTime ?? null,
|
|
34
|
+
modifiedTime: f.modifiedTime ?? null,
|
|
35
|
+
parents: f.parents ?? [],
|
|
36
|
+
driveId: f.driveId ?? null,
|
|
37
|
+
trashed: f.trashed === true,
|
|
38
|
+
webViewLink: f.webViewLink ?? null,
|
|
39
|
+
description: f.description ?? null,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Drive 에러를 "무엇을 고칠지"가 보이는 메시지로. 서비스 계정과 OAuth(drive.file) 는
|
|
44
|
+
* 같은 404 라도 원인이 달라 안내를 나눈다.
|
|
45
|
+
*/
|
|
46
|
+
export function driveError(e, source, clientEmail) {
|
|
47
|
+
const text = rawMessage(e);
|
|
48
|
+
const detail = googleErrorDetail(e);
|
|
49
|
+
const status = extractHttpStatus(e);
|
|
50
|
+
const both = `${text} ${detail ?? ''}`;
|
|
51
|
+
const tail = detail && !text.includes(detail) ? `\nGoogle API: ${detail}` : `\nGoogle API: ${text}`;
|
|
52
|
+
const isSa = source === 'service-account' || source === 'service-account-env';
|
|
53
|
+
const reauth = authReauthMessage(both);
|
|
54
|
+
if (reauth && !isSa)
|
|
55
|
+
return withCause(new Error(reauth), e);
|
|
56
|
+
if (/storageQuotaExceeded|do not have storage quota/i.test(both)) {
|
|
57
|
+
return withCause(new Error([
|
|
58
|
+
'❌ 서비스 계정은 자기 저장 공간이 없어서 "내 드라이브"에는 파일을 만들 수 없어.',
|
|
59
|
+
'→ 공유 드라이브 안의 폴더에 올리거나(서비스 계정을 공유 드라이브 멤버로 추가),',
|
|
60
|
+
' 사용자 OAuth(mimi-seed-auth --domains drive)를 써.',
|
|
61
|
+
].join('\n') + tail), e);
|
|
62
|
+
}
|
|
63
|
+
if (status === 404 || /notFound|File not found/i.test(both)) {
|
|
64
|
+
const lines = isSa
|
|
65
|
+
? [
|
|
66
|
+
`❌ 파일·폴더를 찾을 수 없어 — 없거나 서비스 계정${clientEmail ? `(${clientEmail})` : ''}과 공유되지 않았어.`,
|
|
67
|
+
'→ Drive 에서 대상 폴더(또는 공유 드라이브)를 이 서비스 계정 이메일과 공유해 (편집자 이상).',
|
|
68
|
+
]
|
|
69
|
+
: [
|
|
70
|
+
'❌ 파일·폴더를 찾을 수 없어.',
|
|
71
|
+
'→ OAuth(drive.file) 권한은 mimi-seed 가 만든 파일·폴더만 볼 수 있어.',
|
|
72
|
+
' 기존 폴더를 다루려면 Drive 서비스 계정을 써: npx -y @yoonion/mimi-seed-mcp mimi-seed-drive-auth',
|
|
73
|
+
];
|
|
74
|
+
return withCause(new Error(lines.join('\n') + tail), e);
|
|
75
|
+
}
|
|
76
|
+
if (status === 403 || /insufficientFilePermissions|forbidden|permission/i.test(both)) {
|
|
77
|
+
return withCause(new Error([
|
|
78
|
+
'❌ 이 파일·폴더에 쓸 권한이 없어.',
|
|
79
|
+
isSa
|
|
80
|
+
? '→ 폴더 공유 권한을 "편집자"(공유 드라이브는 "콘텐츠 관리자") 이상으로 올려.'
|
|
81
|
+
: '→ 이 Google 계정의 권한을 확인하거나 Drive 서비스 계정을 써.',
|
|
82
|
+
].join('\n') + tail), e);
|
|
83
|
+
}
|
|
84
|
+
return withCause(new Error(`❌ Google Drive 오류: ${text}${detail && !text.includes(detail) ? `\nGoogle API: ${detail}` : ''}`), e);
|
|
85
|
+
}
|
|
86
|
+
/** files.list 의 q 문자열 조립 (테스트가 이스케이프를 고정한다). */
|
|
87
|
+
export function buildListQuery(input) {
|
|
88
|
+
const q = [];
|
|
89
|
+
if (input.folderId) {
|
|
90
|
+
assertDriveId(input.folderId, 'folderId');
|
|
91
|
+
q.push(`'${input.folderId}' in parents`);
|
|
92
|
+
}
|
|
93
|
+
if (input.nameContains)
|
|
94
|
+
q.push(`name contains '${escapeQueryValue(input.nameContains)}'`);
|
|
95
|
+
if (input.mimeType)
|
|
96
|
+
q.push(`mimeType = '${escapeQueryValue(input.mimeType)}'`);
|
|
97
|
+
if (!input.includeTrashed)
|
|
98
|
+
q.push('trashed = false');
|
|
99
|
+
return q.join(' and ');
|
|
100
|
+
}
|
|
101
|
+
export async function listFiles(auth, input) {
|
|
102
|
+
const pageSize = Math.min(Math.max(Math.trunc(input.pageSize ?? 100), 1), 1000);
|
|
103
|
+
const res = await drive(auth).files.list({
|
|
104
|
+
q: buildListQuery(input) || undefined,
|
|
105
|
+
pageSize,
|
|
106
|
+
pageToken: input.pageToken,
|
|
107
|
+
orderBy: 'folder,name',
|
|
108
|
+
fields: `nextPageToken, files(${FIELDS})`,
|
|
109
|
+
supportsAllDrives: true,
|
|
110
|
+
includeItemsFromAllDrives: true,
|
|
111
|
+
corpora: 'allDrives',
|
|
112
|
+
});
|
|
113
|
+
return { files: (res.data.files ?? []).map(toFile), nextPageToken: res.data.nextPageToken ?? null };
|
|
114
|
+
}
|
|
115
|
+
export async function getFile(auth, fileId) {
|
|
116
|
+
assertDriveId(fileId, 'fileId');
|
|
117
|
+
const res = await drive(auth).files.get({ fileId, fields: FIELDS, supportsAllDrives: true });
|
|
118
|
+
return toFile(res.data);
|
|
119
|
+
}
|
|
120
|
+
/** 부모 폴더 안에서 이름이 정확히 같은 항목(휴지통 제외). 폴더만 찾을지 선택. */
|
|
121
|
+
async function findChildByName(auth, parentId, name, kind) {
|
|
122
|
+
const mime = kind === 'folder' ? `mimeType = '${FOLDER_MIME}'` : `mimeType != '${FOLDER_MIME}'`;
|
|
123
|
+
const res = await drive(auth).files.list({
|
|
124
|
+
q: `'${parentId}' in parents and name = '${escapeQueryValue(name)}' and ${mime} and trashed = false`,
|
|
125
|
+
pageSize: 2,
|
|
126
|
+
fields: `files(${FIELDS})`,
|
|
127
|
+
supportsAllDrives: true,
|
|
128
|
+
includeItemsFromAllDrives: true,
|
|
129
|
+
corpora: 'allDrives',
|
|
130
|
+
});
|
|
131
|
+
const hit = res.data.files?.[0];
|
|
132
|
+
return hit ? toFile(hit) : null;
|
|
133
|
+
}
|
|
134
|
+
function cleanName(name, what) {
|
|
135
|
+
const trimmed = name.trim();
|
|
136
|
+
if (!trimmed)
|
|
137
|
+
throw new Error(`${what} 이 비어 있어.`);
|
|
138
|
+
if (trimmed.length > 255)
|
|
139
|
+
throw new Error(`${what} 은 255자 이하여야 해.`);
|
|
140
|
+
return trimmed;
|
|
141
|
+
}
|
|
142
|
+
export async function createFolder(auth, input) {
|
|
143
|
+
const name = cleanName(input.name, '폴더 이름');
|
|
144
|
+
const parentId = input.parentId ?? 'root';
|
|
145
|
+
assertDriveId(parentId, 'parentId');
|
|
146
|
+
if (input.reuseExisting !== false) {
|
|
147
|
+
const existing = await findChildByName(auth, parentId, name, 'folder');
|
|
148
|
+
if (existing)
|
|
149
|
+
return { status: 'exists', folder: existing };
|
|
150
|
+
}
|
|
151
|
+
const res = await drive(auth).files.create({
|
|
152
|
+
requestBody: { name, mimeType: FOLDER_MIME, parents: [parentId] },
|
|
153
|
+
fields: FIELDS,
|
|
154
|
+
supportsAllDrives: true,
|
|
155
|
+
});
|
|
156
|
+
return { status: 'created', folder: toFile(res.data) };
|
|
157
|
+
}
|
|
158
|
+
const MIME_BY_EXT = {
|
|
159
|
+
'.mp4': 'video/mp4', '.m4v': 'video/mp4', '.mov': 'video/quicktime', '.webm': 'video/webm', '.mkv': 'video/x-matroska',
|
|
160
|
+
'.mp3': 'audio/mpeg', '.m4a': 'audio/mp4', '.wav': 'audio/wav', '.ogg': 'audio/ogg',
|
|
161
|
+
'.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.gif': 'image/gif', '.webp': 'image/webp',
|
|
162
|
+
'.svg': 'image/svg+xml', '.pdf': 'application/pdf', '.zip': 'application/zip', '.json': 'application/json',
|
|
163
|
+
'.txt': 'text/plain', '.md': 'text/markdown', '.csv': 'text/csv', '.html': 'text/html',
|
|
164
|
+
'.srt': 'application/x-subrip', '.vtt': 'text/vtt',
|
|
165
|
+
};
|
|
166
|
+
/** 확장자 → MIME. 모르면 application/octet-stream (Drive 가 Google 문서로 변환하지 않는다). */
|
|
167
|
+
export function guessMimeType(filePath) {
|
|
168
|
+
return MIME_BY_EXT[path.extname(filePath).toLowerCase()] ?? 'application/octet-stream';
|
|
169
|
+
}
|
|
170
|
+
/** 업로드할 로컬 파일 점검 — 절대 경로, 일반 파일, 비어 있지 않음. */
|
|
171
|
+
export function inspectLocalFile(filePath, mimeType) {
|
|
172
|
+
if (!path.isAbsolute(filePath))
|
|
173
|
+
throw new Error('filePath 는 절대 경로여야 해.');
|
|
174
|
+
let size;
|
|
175
|
+
try {
|
|
176
|
+
const stat = statSync(filePath);
|
|
177
|
+
if (!stat.isFile())
|
|
178
|
+
throw new Error('not-a-file');
|
|
179
|
+
size = stat.size;
|
|
180
|
+
}
|
|
181
|
+
catch (e) {
|
|
182
|
+
if (e instanceof Error && e.message === 'not-a-file')
|
|
183
|
+
throw new Error(`파일이 아니야: ${filePath}`, { cause: e });
|
|
184
|
+
throw new Error(`파일을 읽을 수 없어: ${filePath}`, { cause: e });
|
|
185
|
+
}
|
|
186
|
+
if (size === 0)
|
|
187
|
+
throw new Error(`빈 파일은 올리지 않아: ${filePath}`);
|
|
188
|
+
return { path: filePath, size, mimeType: mimeType ?? guessMimeType(filePath) };
|
|
189
|
+
}
|
|
190
|
+
/** 로컬 파일 MD5 — 업로드 결과의 md5Checksum 과 비교해 전송 무결성을 확인한다. */
|
|
191
|
+
export function md5OfFile(filePath) {
|
|
192
|
+
return new Promise((resolve, reject) => {
|
|
193
|
+
const hash = createHash('md5');
|
|
194
|
+
createReadStream(filePath)
|
|
195
|
+
.on('data', (chunk) => hash.update(chunk))
|
|
196
|
+
.on('error', reject)
|
|
197
|
+
.on('end', () => resolve(hash.digest('hex')));
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
async function verified(local, remote) {
|
|
201
|
+
if (!remote.md5Checksum)
|
|
202
|
+
return null; // Google 문서 형식 등은 체크섬이 없다
|
|
203
|
+
return (await md5OfFile(local.path)) === remote.md5Checksum;
|
|
204
|
+
}
|
|
205
|
+
export async function uploadFile(auth, input) {
|
|
206
|
+
const local = inspectLocalFile(input.filePath, input.mimeType);
|
|
207
|
+
const name = cleanName(input.name ?? path.basename(input.filePath), '파일 이름');
|
|
208
|
+
const parentId = input.parentId ?? 'root';
|
|
209
|
+
assertDriveId(parentId, 'parentId');
|
|
210
|
+
if (input.onConflict !== 'create_new') {
|
|
211
|
+
const existing = await findChildByName(auth, parentId, name, 'file');
|
|
212
|
+
if (existing) {
|
|
213
|
+
throw new Error(`같은 폴더에 "${name}" 이 이미 있어 (fileId ${existing.id}). ` +
|
|
214
|
+
'내용을 바꾸려면 drive_update_file_content, 하나 더 만들려면 onConflict="create_new".');
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
const res = await drive(auth).files.create({
|
|
218
|
+
requestBody: { name, parents: [parentId] },
|
|
219
|
+
media: { mimeType: local.mimeType, body: createReadStream(local.path) },
|
|
220
|
+
fields: FIELDS,
|
|
221
|
+
supportsAllDrives: true,
|
|
222
|
+
}, mediaUploadOptions());
|
|
223
|
+
const file = toFile(res.data);
|
|
224
|
+
return { status: 'uploaded', file, local, verified: await verified(local, file) };
|
|
225
|
+
}
|
|
226
|
+
/** 기존 파일의 내용을 로컬 파일로 교체 (같은 fileId·링크 유지, Drive 가 이전 버전을 보관). */
|
|
227
|
+
export async function updateFileContent(auth, input) {
|
|
228
|
+
const local = inspectLocalFile(input.filePath, input.mimeType);
|
|
229
|
+
const before = await getFile(auth, input.fileId);
|
|
230
|
+
if (before.isFolder)
|
|
231
|
+
throw new Error('폴더에는 내용을 올릴 수 없어.');
|
|
232
|
+
const res = await drive(auth).files.update({
|
|
233
|
+
fileId: input.fileId,
|
|
234
|
+
media: { mimeType: local.mimeType, body: createReadStream(local.path) },
|
|
235
|
+
fields: FIELDS,
|
|
236
|
+
supportsAllDrives: true,
|
|
237
|
+
}, mediaUploadOptions());
|
|
238
|
+
const after = toFile(res.data);
|
|
239
|
+
return { status: 'updated', before, after, local, verified: await verified(local, after) };
|
|
240
|
+
}
|
|
241
|
+
/** 이름·설명 변경, 다른 폴더로 이동. 하나 이상 바꿔야 한다. */
|
|
242
|
+
export async function updateFileMetadata(auth, input) {
|
|
243
|
+
if (input.name === undefined && input.description === undefined && input.moveToFolderId === undefined) {
|
|
244
|
+
throw new Error('바꿀 항목(name, description, moveToFolderId)이 하나도 없어.');
|
|
245
|
+
}
|
|
246
|
+
const before = await getFile(auth, input.fileId);
|
|
247
|
+
let addParents;
|
|
248
|
+
let removeParents;
|
|
249
|
+
if (input.moveToFolderId !== undefined) {
|
|
250
|
+
assertDriveId(input.moveToFolderId, 'moveToFolderId');
|
|
251
|
+
if (!before.parents.includes(input.moveToFolderId)) {
|
|
252
|
+
addParents = input.moveToFolderId;
|
|
253
|
+
removeParents = before.parents.join(',') || undefined;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
const requestBody = {};
|
|
257
|
+
if (input.name !== undefined)
|
|
258
|
+
requestBody.name = cleanName(input.name, '파일 이름');
|
|
259
|
+
if (input.description !== undefined)
|
|
260
|
+
requestBody.description = input.description;
|
|
261
|
+
const res = await drive(auth).files.update({
|
|
262
|
+
fileId: input.fileId,
|
|
263
|
+
requestBody,
|
|
264
|
+
addParents,
|
|
265
|
+
removeParents,
|
|
266
|
+
fields: FIELDS,
|
|
267
|
+
supportsAllDrives: true,
|
|
268
|
+
});
|
|
269
|
+
return { status: 'updated', before, after: toFile(res.data) };
|
|
270
|
+
}
|
|
271
|
+
/** 휴지통으로 이동 (30일 안에는 Drive 휴지통에서 되살릴 수 있다). */
|
|
272
|
+
export async function trashFile(auth, fileId) {
|
|
273
|
+
const before = await getFile(auth, fileId);
|
|
274
|
+
const res = await drive(auth).files.update({
|
|
275
|
+
fileId,
|
|
276
|
+
requestBody: { trashed: true },
|
|
277
|
+
fields: FIELDS,
|
|
278
|
+
supportsAllDrives: true,
|
|
279
|
+
});
|
|
280
|
+
return { status: 'trashed', before, after: toFile(res.data) };
|
|
281
|
+
}
|
package/dist/firebase/tools.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare function listProjects(auth: OAuth2Client): Promise<{
|
|
|
8
8
|
state: string | null | undefined;
|
|
9
9
|
projectNumber: string | null | undefined;
|
|
10
10
|
}[]>;
|
|
11
|
-
export declare function getProject(auth: OAuth2Client, projectId: string): Promise<import("googleapis/
|
|
11
|
+
export declare function getProject(auth: OAuth2Client, projectId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$FirebaseProject>;
|
|
12
12
|
/** long-running Operation 하나의 완료 여부를 판정한다. 폴링 루프에서 재사용 + 단독 테스트 가능. */
|
|
13
13
|
export declare function operationOutcome(op: {
|
|
14
14
|
done?: boolean | null;
|
|
@@ -45,39 +45,39 @@ export declare function waitForOperation(getOperation: () => Promise<{
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function createProject(auth: OAuth2Client, projectId: string, displayName: string, opts?: {
|
|
47
47
|
parent?: string;
|
|
48
|
-
}): Promise<import("googleapis/
|
|
48
|
+
}): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$FirebaseProject>;
|
|
49
49
|
export declare function listAndroidApps(auth: OAuth2Client, projectId: string): Promise<{
|
|
50
50
|
appId: string | null | undefined;
|
|
51
51
|
packageName: string | null | undefined;
|
|
52
52
|
displayName: string | null | undefined;
|
|
53
53
|
state: string | null | undefined;
|
|
54
54
|
}[]>;
|
|
55
|
-
export declare function createAndroidApp(auth: OAuth2Client, projectId: string, packageName: string, displayName: string): Promise<import("googleapis/
|
|
55
|
+
export declare function createAndroidApp(auth: OAuth2Client, projectId: string, packageName: string, displayName: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
56
56
|
export declare function getAndroidConfig(auth: OAuth2Client, projectId: string, appId: string): Promise<{
|
|
57
57
|
filename: string | null | undefined;
|
|
58
58
|
content: string | null;
|
|
59
59
|
}>;
|
|
60
|
-
export declare function deleteAndroidApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("googleapis/
|
|
60
|
+
export declare function deleteAndroidApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
61
61
|
export declare function listIosApps(auth: OAuth2Client, projectId: string): Promise<{
|
|
62
62
|
appId: string | null | undefined;
|
|
63
63
|
bundleId: string | null | undefined;
|
|
64
64
|
displayName: string | null | undefined;
|
|
65
65
|
state: string | null | undefined;
|
|
66
66
|
}[]>;
|
|
67
|
-
export declare function createIosApp(auth: OAuth2Client, projectId: string, bundleId: string, displayName: string): Promise<import("googleapis/
|
|
67
|
+
export declare function createIosApp(auth: OAuth2Client, projectId: string, bundleId: string, displayName: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
68
68
|
export declare function getIosConfig(auth: OAuth2Client, projectId: string, appId: string): Promise<{
|
|
69
69
|
filename: string | null | undefined;
|
|
70
70
|
content: string | null;
|
|
71
71
|
}>;
|
|
72
|
-
export declare function deleteIosApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("googleapis/
|
|
72
|
+
export declare function deleteIosApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
73
73
|
export declare function listWebApps(auth: OAuth2Client, projectId: string): Promise<{
|
|
74
74
|
appId: string | null | undefined;
|
|
75
75
|
displayName: string | null | undefined;
|
|
76
76
|
state: string | null | undefined;
|
|
77
77
|
}[]>;
|
|
78
|
-
export declare function createWebApp(auth: OAuth2Client, projectId: string, displayName: string): Promise<import("googleapis/
|
|
79
|
-
export declare function getWebConfig(auth: OAuth2Client, projectId: string, appId: string): Promise<import("googleapis/
|
|
80
|
-
export declare function deleteWebApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("googleapis/
|
|
78
|
+
export declare function createWebApp(auth: OAuth2Client, projectId: string, displayName: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
79
|
+
export declare function getWebConfig(auth: OAuth2Client, projectId: string, appId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$WebAppConfig>;
|
|
80
|
+
export declare function deleteWebApp(auth: OAuth2Client, projectId: string, appId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
81
81
|
export declare function enableService(auth: OAuth2Client, projectId: string, serviceId: string): Promise<{
|
|
82
82
|
service: string;
|
|
83
83
|
state: string | null | undefined;
|
|
@@ -97,9 +97,9 @@ export declare function listEnabledServices(auth: OAuth2Client, projectId: strin
|
|
|
97
97
|
export declare function linkAnalytics(auth: OAuth2Client, projectId: string, opts?: {
|
|
98
98
|
analyticsAccountId?: string;
|
|
99
99
|
analyticsPropertyId?: string;
|
|
100
|
-
}): Promise<import("googleapis/
|
|
100
|
+
}): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$Operation>;
|
|
101
101
|
/** 프로젝트의 GA4 링크 상세 — 연결된 analyticsProperty + 앱↔stream 매핑 조회. */
|
|
102
|
-
export declare function getAnalyticsDetails(auth: OAuth2Client, projectId: string): Promise<import("googleapis/
|
|
102
|
+
export declare function getAnalyticsDetails(auth: OAuth2Client, projectId: string): Promise<import("@googleapis/firebase").firebase_v1beta1.Schema$AnalyticsDetails>;
|
|
103
103
|
export declare function enableCommonServices(auth: OAuth2Client, projectId: string): Promise<({
|
|
104
104
|
service: string;
|
|
105
105
|
status: string;
|
package/dist/ga4/tools.d.ts
CHANGED
|
@@ -115,15 +115,15 @@ export declare function flattenBigQueryLink(link: {
|
|
|
115
115
|
includeAdvertisingId: boolean;
|
|
116
116
|
};
|
|
117
117
|
/** 접근 가능한 GA 계정 + 각 계정의 property 요약. accountId/propertyId 를 찾는 시작점. */
|
|
118
|
-
export declare function listAccountSummaries(auth: Ga4Auth): Promise<import("googleapis/
|
|
118
|
+
export declare function listAccountSummaries(auth: Ga4Auth): Promise<import("@googleapis/analyticsadmin").analyticsadmin_v1beta.Schema$GoogleAnalyticsAdminV1betaAccountSummary[]>;
|
|
119
119
|
/** 계정 하위 GA4 property 목록. accountId: '123' 또는 'accounts/123'. */
|
|
120
|
-
export declare function listProperties(auth: Ga4Auth, accountId: string): Promise<import("googleapis/
|
|
120
|
+
export declare function listProperties(auth: Ga4Auth, accountId: string): Promise<import("@googleapis/analyticsadmin").analyticsadmin_v1beta.Schema$GoogleAnalyticsAdminV1betaProperty[]>;
|
|
121
121
|
export declare function createProperty(auth: Ga4Auth, opts: {
|
|
122
122
|
accountId: string;
|
|
123
123
|
displayName: string;
|
|
124
124
|
timeZone?: string;
|
|
125
125
|
currencyCode?: string;
|
|
126
|
-
}): Promise<import("googleapis/
|
|
126
|
+
}): Promise<import("@googleapis/analyticsadmin").analyticsadmin_v1beta.Schema$GoogleAnalyticsAdminV1betaProperty>;
|
|
127
127
|
export declare function createDataStream(auth: Ga4Auth, propertyId: string, opts: {
|
|
128
128
|
platform: DataStreamPlatform;
|
|
129
129
|
displayName: string;
|
|
@@ -131,7 +131,7 @@ export declare function createDataStream(auth: Ga4Auth, propertyId: string, opts
|
|
|
131
131
|
packageName?: string;
|
|
132
132
|
bundleId?: string;
|
|
133
133
|
}): Promise<{
|
|
134
|
-
raw: import("googleapis/
|
|
134
|
+
raw: import("@googleapis/analyticsadmin").analyticsadmin_v1beta.Schema$GoogleAnalyticsAdminV1betaDataStream;
|
|
135
135
|
name: string | null;
|
|
136
136
|
type: string | null;
|
|
137
137
|
displayName: string | null;
|
|
@@ -228,4 +228,4 @@ export interface RunReportParams {
|
|
|
228
228
|
dimensions?: string[];
|
|
229
229
|
metrics?: string[];
|
|
230
230
|
}
|
|
231
|
-
export declare function runReport(auth: Ga4Auth, propertyId: string, params: RunReportParams): Promise<import("googleapis/
|
|
231
|
+
export declare function runReport(auth: Ga4Auth, propertyId: string, params: RunReportParams): Promise<import("@googleapis/analyticsdata").analyticsdata_v1beta.Schema$RunReportResponse>;
|
package/dist/gsc/tools.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { OAuth2Client } from 'google-auth-library';
|
|
2
2
|
export type GscAuth = OAuth2Client;
|
|
3
|
-
export declare function listSites(auth: GscAuth): Promise<import("googleapis/
|
|
4
|
-
export declare function listSitemaps(auth: GscAuth, siteUrl: string, sitemapIndex?: string): Promise<import("googleapis/
|
|
5
|
-
export declare function getSitemap(auth: GscAuth, siteUrl: string, feedpath: string): Promise<import("googleapis/
|
|
3
|
+
export declare function listSites(auth: GscAuth): Promise<import("@googleapis/searchconsole").searchconsole_v1.Schema$WmxSite[]>;
|
|
4
|
+
export declare function listSitemaps(auth: GscAuth, siteUrl: string, sitemapIndex?: string): Promise<import("@googleapis/searchconsole").searchconsole_v1.Schema$WmxSitemap[]>;
|
|
5
|
+
export declare function getSitemap(auth: GscAuth, siteUrl: string, feedpath: string): Promise<import("@googleapis/searchconsole").searchconsole_v1.Schema$WmxSitemap>;
|
|
6
6
|
/** 사이트맵 제출 — webmasters(read-write) 스코프 필요. 응답 본문은 없음(204). */
|
|
7
7
|
export declare function submitSitemap(auth: GscAuth, siteUrl: string, feedpath: string): Promise<{
|
|
8
8
|
submitted: string;
|
|
9
9
|
siteUrl: string;
|
|
10
10
|
}>;
|
|
11
|
-
export declare function inspectUrl(auth: GscAuth, siteUrl: string, inspectionUrl: string, languageCode?: string): Promise<import("googleapis/
|
|
11
|
+
export declare function inspectUrl(auth: GscAuth, siteUrl: string, inspectionUrl: string, languageCode?: string): Promise<import("@googleapis/searchconsole").searchconsole_v1.Schema$UrlInspectionResult>;
|
|
12
12
|
export interface SearchAnalyticsParams {
|
|
13
13
|
startDate: string;
|
|
14
14
|
endDate: string;
|
|
@@ -17,7 +17,7 @@ export interface SearchAnalyticsParams {
|
|
|
17
17
|
startRow?: number;
|
|
18
18
|
type?: 'web' | 'image' | 'video' | 'news' | 'discover' | 'googleNews';
|
|
19
19
|
}
|
|
20
|
-
export declare function searchAnalytics(auth: GscAuth, siteUrl: string, params: SearchAnalyticsParams): Promise<import("googleapis/
|
|
20
|
+
export declare function searchAnalytics(auth: GscAuth, siteUrl: string, params: SearchAnalyticsParams): Promise<import("@googleapis/searchconsole").searchconsole_v1.Schema$ApiDataRow[]>;
|
|
21
21
|
export interface SearchAnalyticsRow {
|
|
22
22
|
keys?: string[] | null;
|
|
23
23
|
clicks?: number | null;
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ const SUBCOMMANDS = {
|
|
|
14
14
|
'mimi-seed-playstore-auth': () => import('./auth/playstore-setup-cli.js'),
|
|
15
15
|
'mimi-seed-appstore-auth': () => import('./appstore/setup-cli.js'),
|
|
16
16
|
'mimi-seed-bigquery-auth': () => import('./auth/bigquery-setup-cli.js'),
|
|
17
|
+
'mimi-seed-drive-auth': () => import('./auth/drive-setup-cli.js'),
|
|
17
18
|
'mimi-seed-jenkins-auth': () => import('./jenkins/setup-cli.js'),
|
|
18
19
|
'mimi-seed-googleads-auth': () => import('./googleads/setup-cli.js'),
|
|
19
20
|
'mimi-seed-social-auth': () => import('./social/setup-cli.js'),
|
|
@@ -23,6 +24,13 @@ const SUBCOMMANDS = {
|
|
|
23
24
|
'mimi-seed-ga4': () => import('./ga4/cli.js'),
|
|
24
25
|
'mimi-seed-release-doctor': () => import('./checks/release-doctor-cli.js'),
|
|
25
26
|
};
|
|
27
|
+
const USAGE = [
|
|
28
|
+
'Subcommands:',
|
|
29
|
+
...Object.keys(SUBCOMMANDS).map((k) => ` npx -y @yoonion/mimi-seed-mcp ${k}`),
|
|
30
|
+
'',
|
|
31
|
+
'Or run the MCP server (no args) — normally started by an MCP client such as Claude Code or Codex:',
|
|
32
|
+
' npx -y @yoonion/mimi-seed-mcp',
|
|
33
|
+
].join('\n');
|
|
26
34
|
async function main() {
|
|
27
35
|
const sub = process.argv[2];
|
|
28
36
|
if (sub && SUBCOMMANDS[sub]) {
|
|
@@ -31,18 +39,24 @@ async function main() {
|
|
|
31
39
|
await SUBCOMMANDS[sub]();
|
|
32
40
|
return;
|
|
33
41
|
}
|
|
42
|
+
// 플래그는 서버 기동으로 흘려보내면 stdin 대기로 멈춘 것처럼 보인다 — 바로 답하고 끝낸다.
|
|
43
|
+
if (sub === '--version' || sub === '-v') {
|
|
44
|
+
console.log(version);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (sub === '--help' || sub === '-h') {
|
|
48
|
+
console.log(`mimi-seed-mcp ${version}\n\n${USAGE}`);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
34
51
|
if (sub && !sub.startsWith('-')) {
|
|
35
|
-
console.error(
|
|
36
|
-
`❌ Unknown subcommand: ${sub}`,
|
|
37
|
-
'',
|
|
38
|
-
'Available:',
|
|
39
|
-
...Object.keys(SUBCOMMANDS).map((k) => ` npx -y @yoonion/mimi-seed-mcp ${k}`),
|
|
40
|
-
'',
|
|
41
|
-
'Or run the MCP server (no args):',
|
|
42
|
-
' npx -y @yoonion/mimi-seed-mcp',
|
|
43
|
-
].join('\n'));
|
|
52
|
+
console.error(`❌ Unknown subcommand: ${sub}\n\n${USAGE}`);
|
|
44
53
|
process.exit(2);
|
|
45
54
|
}
|
|
55
|
+
// 사람이 터미널에서 직접 띄운 경우에만 안내한다. stdout 은 MCP 프로토콜 전용이라 stderr 로.
|
|
56
|
+
if (process.stdin.isTTY) {
|
|
57
|
+
console.error(`mimi-seed-mcp ${version}: MCP server running on stdio, waiting for an MCP client. ` +
|
|
58
|
+
'It is not interactive — press Ctrl+C to exit. Run with --help for subcommands.');
|
|
59
|
+
}
|
|
46
60
|
const server = buildServer(version);
|
|
47
61
|
const transport = new StdioServerTransport();
|
|
48
62
|
await server.connect(transport);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export type { youtube_v3 } from 'googleapis/
|
|
2
|
-
export type {
|
|
1
|
+
export type { youtube_v3 } from '@googleapis/youtube';
|
|
2
|
+
export type { drive_v3 } from '@googleapis/drive';
|
|
3
|
+
export type { youtubeAnalytics_v2 } from '@googleapis/youtubeanalytics';
|
|
3
4
|
/**
|
|
4
5
|
* 기존 `google.<api>(...)` 호출부와 100% 동일하게 동작하는 지연 로딩 네임스페이스.
|
|
5
6
|
* 각 프로퍼티는 getter 라서, 실제로 그 API 를 쓰는 도구가 호출될 때까지 아무것도 로드하지 않는다.
|
|
@@ -16,20 +17,21 @@ export declare const google: {
|
|
|
16
17
|
noResponseRetries: 1;
|
|
17
18
|
}>;
|
|
18
19
|
}>;
|
|
19
|
-
readonly auth: typeof import("googleapis/
|
|
20
|
-
readonly admob: typeof import("googleapis/
|
|
21
|
-
readonly analyticsadmin: typeof import("googleapis/
|
|
22
|
-
readonly analyticsdata: typeof import("googleapis/
|
|
23
|
-
readonly androidpublisher: typeof import("googleapis/
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
20
|
+
readonly auth: typeof import("@googleapis/firebase").auth;
|
|
21
|
+
readonly admob: typeof import("@googleapis/admob").admob;
|
|
22
|
+
readonly analyticsadmin: typeof import("@googleapis/analyticsadmin").analyticsadmin;
|
|
23
|
+
readonly analyticsdata: typeof import("@googleapis/analyticsdata").analyticsdata;
|
|
24
|
+
readonly androidpublisher: typeof import("@googleapis/androidpublisher").androidpublisher;
|
|
25
|
+
readonly drive: typeof import("@googleapis/drive").drive;
|
|
26
|
+
readonly bigquery: typeof import("@googleapis/bigquery").bigquery;
|
|
27
|
+
readonly billingbudgets: typeof import("@googleapis/billingbudgets").billingbudgets;
|
|
28
|
+
readonly cloudbilling: typeof import("@googleapis/cloudbilling").cloudbilling;
|
|
29
|
+
readonly cloudresourcemanager: typeof import("@googleapis/cloudresourcemanager").cloudresourcemanager;
|
|
30
|
+
readonly firebase: typeof import("@googleapis/firebase").firebase;
|
|
31
|
+
readonly iam: typeof import("@googleapis/iam").iam;
|
|
32
|
+
readonly monitoring: typeof import("@googleapis/monitoring").monitoring;
|
|
33
|
+
readonly searchconsole: typeof import("@googleapis/searchconsole").searchconsole;
|
|
34
|
+
readonly serviceusage: typeof import("@googleapis/serviceusage").serviceusage;
|
|
35
|
+
readonly youtube: typeof import("@googleapis/youtube").youtube;
|
|
36
|
+
readonly youtubeAnalytics: typeof import("@googleapis/youtubeanalytics").youtubeAnalytics;
|
|
35
37
|
};
|
|
@@ -1,41 +1,59 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 사용하는 Google API 만 지연 로드한다 — MCP 서버 기동 시간 방어벽.
|
|
3
3
|
*
|
|
4
|
-
* `
|
|
5
|
-
* 전부
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* 예전에는 `googleapis` 메타 패키지(API 300여 개)의 서브패스를 `require` 했다.
|
|
5
|
+
* 기동 때 전부 로드하지는 않았지만, 설치 용량이 그 메타 패키지 전체(~200MB)였다.
|
|
6
|
+
* 지금은 실제로 쓰는 API 의 `@googleapis/<api>` 패키지만 의존한다. 각 패키지는
|
|
7
|
+
* `type: module` 도 `exports` 맵도 없는 순수 CJS 라 `createRequire` 로 동기 로드가
|
|
8
|
+
* 되고, `google.admob(...)` 같은 기존 호출부를 async 로 바꿀 필요가 없다.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* 딸려 온다. 콜드 캐시(Windows 실시간 검사 등)에서는 이게 25초까지 튀어
|
|
12
|
-
* 기본 5초 연결 타임아웃을 다시 넘겼다 (2026-08-22).
|
|
10
|
+
* `@googleapis/*` 는 최신 세대(`googleapis-common` ^9, `engines.node >=22`)를 쓰며,
|
|
11
|
+
* 하한(`.nvmrc` = 22)과 맞다. 범위는 `^` 이라 minor/patch 는 Dependabot 이 올릴 수 있다.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* 기존 호출부를 async 로 바꿀 필요가 전혀 없다 — 소비자 코드는 그대로다.
|
|
18
|
-
* - 타입은 `typeof import(...)` 로 얻는다. 타입 위치의 import 는 런타임에 완전히
|
|
19
|
-
* 지워지므로 기동 비용이 0 이다. 절대 값 import 로 바꾸지 말 것 — 그 순간 이 파일의
|
|
20
|
-
* 존재 이유가 사라진다.
|
|
13
|
+
* 타입은 `typeof import('@googleapis/...')` 로 얻는다. 타입 위치의 import 는
|
|
14
|
+
* 런타임에 완전히 지워지므로 기동 비용이 0 이다. 절대 값 import 로 바꾸지 말 것
|
|
15
|
+
* — 그 순간 이 파일의 존재 이유가 사라진다.
|
|
21
16
|
*
|
|
22
17
|
* 규칙:
|
|
23
|
-
* - 새 Google API 가 필요하면 아래 `google` 객체에 getter
|
|
24
|
-
* - 다른 파일에서 `
|
|
18
|
+
* - 새 Google API 가 필요하면 `PACKAGES` 와 아래 `google` 객체에 getter 를 추가한다.
|
|
19
|
+
* - 다른 파일에서 `@googleapis/*` 또는 `googleapis` 값 import 는 금지 — 반드시 이 모듈을 거친다.
|
|
25
20
|
*/
|
|
26
21
|
import { createRequire } from 'node:module';
|
|
27
22
|
import { GOOGLEAPIS_DEFAULT_OPTIONS } from './google-timeouts.js';
|
|
28
23
|
const require = createRequire(import.meta.url);
|
|
29
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* 런타임 모듈 이름. `youtubeAnalytics` 처럼 camelCase 인 getter 는
|
|
26
|
+
* npm 패키지 `@googleapis/youtubeanalytics` 로 대응한다.
|
|
27
|
+
*/
|
|
28
|
+
const PACKAGES = {
|
|
29
|
+
firebase: '@googleapis/firebase',
|
|
30
|
+
admob: '@googleapis/admob',
|
|
31
|
+
analyticsadmin: '@googleapis/analyticsadmin',
|
|
32
|
+
analyticsdata: '@googleapis/analyticsdata',
|
|
33
|
+
androidpublisher: '@googleapis/androidpublisher',
|
|
34
|
+
drive: '@googleapis/drive',
|
|
35
|
+
bigquery: '@googleapis/bigquery',
|
|
36
|
+
billingbudgets: '@googleapis/billingbudgets',
|
|
37
|
+
cloudbilling: '@googleapis/cloudbilling',
|
|
38
|
+
cloudresourcemanager: '@googleapis/cloudresourcemanager',
|
|
39
|
+
iam: '@googleapis/iam',
|
|
40
|
+
monitoring: '@googleapis/monitoring',
|
|
41
|
+
searchconsole: '@googleapis/searchconsole',
|
|
42
|
+
serviceusage: '@googleapis/serviceusage',
|
|
43
|
+
youtube: '@googleapis/youtube',
|
|
44
|
+
youtubeAnalytics: '@googleapis/youtubeanalytics',
|
|
45
|
+
};
|
|
46
|
+
/** 패키지 모듈 캐시 — require 자체도 캐시하지만 Map 조회가 더 싸다. */
|
|
30
47
|
const cache = new Map();
|
|
31
48
|
/**
|
|
32
|
-
* googleapis
|
|
33
|
-
* 첫 호출이 공통
|
|
49
|
+
* `@googleapis/<api>` 를 첫 호출 시점에 동기 로드한다.
|
|
50
|
+
* 첫 호출이 공통 런타임(googleapis-common, google-auth-library)까지 함께 지불하고,
|
|
51
|
+
* 이후 다른 API 는 이미 로드된 공통 모듈 위에서 훨씬 싸다.
|
|
34
52
|
*/
|
|
35
53
|
function sub(name) {
|
|
36
54
|
let mod = cache.get(name);
|
|
37
55
|
if (mod === undefined) {
|
|
38
|
-
mod = require(
|
|
56
|
+
mod = require(PACKAGES[name]);
|
|
39
57
|
cache.set(name, mod);
|
|
40
58
|
}
|
|
41
59
|
return mod;
|
|
@@ -50,8 +68,8 @@ export const google = {
|
|
|
50
68
|
* `google.<api>(...)` 호출의 context.google 이 이 객체이므로 이름을 바꾸면 적용이 끊긴다.
|
|
51
69
|
*/
|
|
52
70
|
_options: GOOGLEAPIS_DEFAULT_OPTIONS,
|
|
53
|
-
// auth 는 AuthPlus 인스턴스. 어느
|
|
54
|
-
// 기존 동작과 동일하게 firebase
|
|
71
|
+
// auth 는 AuthPlus 인스턴스. 어느 패키지든 같은 걸 내보내지만,
|
|
72
|
+
// 기존 동작과 동일하게 firebase 패키지에서 가져온다.
|
|
55
73
|
get auth() {
|
|
56
74
|
return sub('firebase').auth;
|
|
57
75
|
},
|
|
@@ -67,6 +85,9 @@ export const google = {
|
|
|
67
85
|
get androidpublisher() {
|
|
68
86
|
return sub('androidpublisher').androidpublisher;
|
|
69
87
|
},
|
|
88
|
+
get drive() {
|
|
89
|
+
return sub('drive').drive;
|
|
90
|
+
},
|
|
70
91
|
get bigquery() {
|
|
71
92
|
return sub('bigquery').bigquery;
|
|
72
93
|
},
|
|
@@ -5,7 +5,7 @@ import type { OAuth2Client, JWT } from 'google-auth-library';
|
|
|
5
5
|
* 주의: 최초 앱 생성은 API로 불가 (Play Console에서만).
|
|
6
6
|
* 여기서는 기존 앱의 메타데이터, 빌드, 출시를 관리.
|
|
7
7
|
*/
|
|
8
|
-
export declare const publisher: () => import("googleapis/
|
|
8
|
+
export declare const publisher: () => import("@googleapis/androidpublisher").androidpublisher_v3.Androidpublisher;
|
|
9
9
|
export interface EditCommitInfo {
|
|
10
10
|
/** true 면 커밋은 됐지만 심사 전송은 Play Console 에서 사람이 눌러야 한다. */
|
|
11
11
|
changesNotSentForReview: boolean;
|