@particle-academy/google-drive-ui 0.3.4 → 0.5.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/CHANGELOG.md +45 -0
- package/README.md +39 -0
- package/art/fancified.svg +26 -0
- package/dist/index.cjs +266 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +252 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,51 @@ All notable changes to `@particle-academy/google-drive-ui`,
|
|
|
4
4
|
`@particle-academy/google-drive-js`, `particle-academy/google-drive-php` and
|
|
5
5
|
`fancy-google-drive`.
|
|
6
6
|
|
|
7
|
+
## [0.5.0] — 2026-11-08
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Laravel integration, in this package** (`src/Laravel/`), auto-discovered
|
|
12
|
+
through composer's `extra.laravel`. Laravel is SUGGESTED, never required:
|
|
13
|
+
outside a Laravel app none of it loads.
|
|
14
|
+
- a service provider that merges `config/google-drive.php` under
|
|
15
|
+
`connectors.google-drive` (credentials from the environment, or per call for a
|
|
16
|
+
multi-account app);
|
|
17
|
+
- the `GoogleDrive` facade: `GoogleDrive::call('<operation>', [...])` runs any action;
|
|
18
|
+
- `GoogleDrive::fake()`, answered from the connector's faker, with
|
|
19
|
+
`assertSent` / `assertNotSent` / `assertNothingSent` / `assertSentCount`;
|
|
20
|
+
- its own Pest test of all of it against a booted Laravel app.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Tests: Pest `^5`**, and `laravel/framework` `^13` as a DEV-ONLY test
|
|
25
|
+
dependency (the framework this package integrates with; nothing ships in
|
|
26
|
+
`require`).
|
|
27
|
+
|
|
28
|
+
## [0.4.0] — 2026-09-30
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **`file_list`**, **`file_get`** and **`permission_create`** — read and
|
|
33
|
+
share, this connector's first operations beyond creating a folder. No
|
|
34
|
+
scope change: `drive.file` already covers them. Under that scope both
|
|
35
|
+
list and get only ever see files this app itself created (or that the
|
|
36
|
+
user explicitly opened through a Drive picker) — never the rest of the
|
|
37
|
+
connected account's Drive, said plainly in `file_list`'s own
|
|
38
|
+
description rather than left for someone to notice a file is silently
|
|
39
|
+
missing.
|
|
40
|
+
- `file_get` carries `webContentLink`, a direct download URL fetched with
|
|
41
|
+
the same credential — the file's BYTES never pass through the
|
|
42
|
+
connector, the same precedent Resend and Microsoft Teams already set.
|
|
43
|
+
`file_list` carries a leaner projection (no `parents`, no
|
|
44
|
+
`webContentLink`) since a list row is for finding and previewing, not
|
|
45
|
+
a full record per file.
|
|
46
|
+
- Deliberately NOT included: uploading a file's actual content. Drive's
|
|
47
|
+
media/multipart upload sends raw bytes in the request body, a shape
|
|
48
|
+
this connector's JSON-encoded actions do not build yet — a real
|
|
49
|
+
vocabulary question (mirroring how `attachments` stayed out of Resend
|
|
50
|
+
until inbound email forced the question), not a narrow first guess.
|
|
51
|
+
|
|
7
52
|
## [0.3.4] — 2026-09-12
|
|
8
53
|
|
|
9
54
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Google Drive
|
|
2
2
|
|
|
3
|
+
[](https://particle.academy)
|
|
4
|
+
|
|
3
5
|
Google Drive for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
4
6
|
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
5
7
|
change.
|
|
@@ -65,6 +67,29 @@ The refresh tokens do **not** rotate: the same one is reusable, so a refresh may
|
|
|
65
67
|
|
|
66
68
|
### Actions
|
|
67
69
|
|
|
70
|
+
#### `file_get` — Google Drive file
|
|
71
|
+
|
|
72
|
+
Read one file's metadata and its download/view links.
|
|
73
|
+
|
|
74
|
+
`GET /drive/v3/files/{fileId}` · reads only — safe to replay
|
|
75
|
+
|
|
76
|
+
| Input | Required | What it is |
|
|
77
|
+
|---|---|---|
|
|
78
|
+
| `fileId` | yes | From file_list, or another node's output. |
|
|
79
|
+
|
|
80
|
+
#### `file_list` — List Google Drive files
|
|
81
|
+
|
|
82
|
+
List files this app created (or the user explicitly opened) in Google Drive. Under the drive.file scope this connector uses, a file created by any other app or picked up in the Drive UI directly never appears here.
|
|
83
|
+
|
|
84
|
+
`GET /drive/v3/files` · reads only — safe to replay
|
|
85
|
+
|
|
86
|
+
| Input | Required | What it is |
|
|
87
|
+
|---|---|---|
|
|
88
|
+
| `q` | no | Drive's query syntax, e.g. "mimeType='application/pdf' and trashed=false". Leave blank to list everything this app can see. |
|
|
89
|
+
| `pageSize` | no | Files per page. Drive's maximum is 1000. |
|
|
90
|
+
| `pageToken` | no | From a previous page's nextPageToken. |
|
|
91
|
+
| `orderBy` | no | A comma-separated list of Drive sort keys, e.g. "modifiedTime desc". Leave blank for Drive's default order. |
|
|
92
|
+
|
|
68
93
|
#### `folder_create` — Google Drive folder
|
|
69
94
|
|
|
70
95
|
Create a folder in Google Drive.
|
|
@@ -76,6 +101,20 @@ Create a folder in Google Drive.
|
|
|
76
101
|
| `name` | yes | The folder name. Drive does not require names to be unique within a parent. |
|
|
77
102
|
| `parents` | no | Parent folder ids, comma separated. Leave empty to create the folder in My Drive. |
|
|
78
103
|
|
|
104
|
+
#### `permission_create` — Share a Google Drive file
|
|
105
|
+
|
|
106
|
+
Grant a user, group, domain, or anyone with the link access to a file.
|
|
107
|
+
|
|
108
|
+
`POST /drive/v3/files/{fileId}/permissions` · **unsafe to replay** — a retried durable run does it TWICE
|
|
109
|
+
|
|
110
|
+
| Input | Required | What it is |
|
|
111
|
+
|---|---|---|
|
|
112
|
+
| `fileId` | yes | File ID |
|
|
113
|
+
| `type` | yes | Grantee type |
|
|
114
|
+
| `role` | yes | organizer, fileOrganizer and owner exist in Drive's API but only apply inside a shared drive, which this action does not target. |
|
|
115
|
+
| `emailAddress` | no | Required when the grantee type is a person or a Google Group. Ignored for domain and anyone. |
|
|
116
|
+
| `domain` | no | Required when the grantee type is domain, e.g. example.com. Ignored otherwise. |
|
|
117
|
+
|
|
79
118
|
## Run it before you have credentials
|
|
80
119
|
|
|
81
120
|
Every operation ships a **faker**, whether or not Google Drive has a sandbox. Set a
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="28" role="img" aria-label="Fancified — built with Fancy UI">
|
|
2
|
+
<title>Fancified · built with Fancy UI</title>
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="fcdBg" x1="0" y1="0" x2="1" y2="1">
|
|
5
|
+
<stop offset="0" stop-color="#6d28d9"/>
|
|
6
|
+
<stop offset=".5" stop-color="#9333ea"/>
|
|
7
|
+
<stop offset="1" stop-color="#d946ef"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="fcdGloss" x1="0" y1="0" x2="0" y2="1">
|
|
10
|
+
<stop offset="0" stop-color="#ffffff" stop-opacity=".30"/>
|
|
11
|
+
<stop offset=".55" stop-color="#ffffff" stop-opacity="0"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<clipPath id="fcdClip"><rect width="128" height="28" rx="7"/></clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
<g clip-path="url(#fcdClip)">
|
|
16
|
+
<rect width="128" height="28" fill="url(#fcdBg)"/>
|
|
17
|
+
<rect width="34" height="28" fill="#3b0764" fill-opacity=".5"/>
|
|
18
|
+
<rect width="128" height="13" fill="url(#fcdGloss)"/>
|
|
19
|
+
<g fill="#fff">
|
|
20
|
+
<path transform="translate(17 14)" d="M0 -7 C.6 -2.2 2.2 -.6 7 0 C2.2 .6 .6 2.2 0 7 C-.6 2.2 -2.2 .6 -7 0 C-2.2 -.6 -.6 -2.2 0 -7 Z"/>
|
|
21
|
+
<path transform="translate(25.5 7.5) scale(.34)" fill-opacity=".85" d="M0 -7 C.6 -2.2 2.2 -.6 7 0 C2.2 .6 .6 2.2 0 7 C-.6 2.2 -2.2 .6 -7 0 C-2.2 -.6 -.6 -2.2 0 -7 Z"/>
|
|
22
|
+
</g>
|
|
23
|
+
<text x="81" y="18.5" fill="#ffffff" text-anchor="middle" font-family="'Segoe UI',Verdana,'DejaVu Sans',sans-serif" font-size="12" font-weight="700" letter-spacing=".3">Fancified</text>
|
|
24
|
+
</g>
|
|
25
|
+
<rect x=".5" y=".5" width="127" height="27" rx="6.5" fill="none" stroke="#ffffff" stroke-opacity=".22"/>
|
|
26
|
+
</svg>
|
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,142 @@ var GOOGLE_DRIVE_OAUTH = {
|
|
|
55
55
|
function googleDriveMeta(role, operation, docs) {
|
|
56
56
|
return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };
|
|
57
57
|
}
|
|
58
|
+
var GOOGLE_DRIVE_FILE_GET_KIND = "@particle-academy/google_drive_file_get";
|
|
59
|
+
var GOOGLE_DRIVE_FILE_GET_OPERATION = "file_get";
|
|
60
|
+
var GOOGLE_DRIVE_FILE_GET_META = googleDriveMeta("action", "read a file", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get");
|
|
61
|
+
var GOOGLE_DRIVE_FILE_GET_OUTPUT = [
|
|
62
|
+
{
|
|
63
|
+
"path": "data.id",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The file id."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"path": "data.name",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The file name."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"path": "data.mimeType",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "The file's MIME type."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "data.size",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Bytes, as a decimal STRING -- Drive's own int64 convention. Absent for Google Workspace editor files (Docs, Sheets, Slides) and for folders."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"path": "data.parents",
|
|
84
|
+
"type": "array",
|
|
85
|
+
"description": "Parent folder ids. A file has at most one today even though the field stays an array."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"path": "data.modifiedTime",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "RFC 3339."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"path": "data.webViewLink",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Opens the file in its Drive/editor viewer. Requires the viewer to already have access."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "data.webContentLink",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "A direct download URL for files with binary content. Absent for Google Workspace editor files and folders -- those export instead, which this connector does not yet offer."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"path": "mode",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
var googleDriveFileGetKind = connectors.defineConnectorKind(GOOGLE_DRIVE_FILE_GET_META, {
|
|
109
|
+
name: GOOGLE_DRIVE_FILE_GET_KIND,
|
|
110
|
+
aliases: ["google_drive_file_get"],
|
|
111
|
+
label: "Google Drive file",
|
|
112
|
+
description: "Read one file's metadata and its download/view links.",
|
|
113
|
+
inputs: [{ id: "in" }],
|
|
114
|
+
outputs: [{ id: "out" }],
|
|
115
|
+
sideEffects: "none",
|
|
116
|
+
outputShape: GOOGLE_DRIVE_FILE_GET_OUTPUT,
|
|
117
|
+
configSchema: [
|
|
118
|
+
{
|
|
119
|
+
"type": "text",
|
|
120
|
+
"key": "fileId",
|
|
121
|
+
"label": "File ID",
|
|
122
|
+
"required": true,
|
|
123
|
+
"description": "From file_list, or another node's output."
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
defaultConfig: {
|
|
127
|
+
"mode": "auto"
|
|
128
|
+
},
|
|
129
|
+
renderBody: ({ config }) => connectors.summarize(GOOGLE_DRIVE_FILE_GET_META, config, "read a file")
|
|
130
|
+
});
|
|
131
|
+
var GOOGLE_DRIVE_FILE_LIST_KIND = "@particle-academy/google_drive_file_list";
|
|
132
|
+
var GOOGLE_DRIVE_FILE_LIST_OPERATION = "file_list";
|
|
133
|
+
var GOOGLE_DRIVE_FILE_LIST_META = googleDriveMeta("action", "list files", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list");
|
|
134
|
+
var GOOGLE_DRIVE_FILE_LIST_OUTPUT = [
|
|
135
|
+
{
|
|
136
|
+
"path": "data.files",
|
|
137
|
+
"type": "array",
|
|
138
|
+
"description": "id, name, mimeType, size, modifiedTime, webViewLink per file -- leaner than file_get's projection. Read one file directly with file_get for parents and webContentLink."
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "data.nextPageToken",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "Present when there is another page."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"path": "mode",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
var googleDriveFileListKind = connectors.defineConnectorKind(GOOGLE_DRIVE_FILE_LIST_META, {
|
|
152
|
+
name: GOOGLE_DRIVE_FILE_LIST_KIND,
|
|
153
|
+
aliases: ["google_drive_file_list"],
|
|
154
|
+
label: "List Google Drive files",
|
|
155
|
+
description: "List files this app created (or the user explicitly opened) in Google Drive. Under the drive.file scope this connector uses, a file created by any other app or picked up in the Drive UI directly never appears here.",
|
|
156
|
+
inputs: [{ id: "in" }],
|
|
157
|
+
outputs: [{ id: "out" }],
|
|
158
|
+
sideEffects: "none",
|
|
159
|
+
outputShape: GOOGLE_DRIVE_FILE_LIST_OUTPUT,
|
|
160
|
+
configSchema: [
|
|
161
|
+
{
|
|
162
|
+
"type": "text",
|
|
163
|
+
"key": "q",
|
|
164
|
+
"label": "Search query",
|
|
165
|
+
"description": `Drive's query syntax, e.g. "mimeType='application/pdf' and trashed=false". Leave blank to list everything this app can see.`
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"type": "number",
|
|
169
|
+
"key": "pageSize",
|
|
170
|
+
"label": "Page size",
|
|
171
|
+
"min": 1,
|
|
172
|
+
"max": 1e3,
|
|
173
|
+
"default": 100,
|
|
174
|
+
"description": "Files per page. Drive's maximum is 1000."
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"type": "text",
|
|
178
|
+
"key": "pageToken",
|
|
179
|
+
"label": "Page token",
|
|
180
|
+
"description": "From a previous page's nextPageToken."
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "text",
|
|
184
|
+
"key": "orderBy",
|
|
185
|
+
"label": "Order by",
|
|
186
|
+
"description": `A comma-separated list of Drive sort keys, e.g. "modifiedTime desc". Leave blank for Drive's default order.`
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
defaultConfig: {
|
|
190
|
+
"mode": "auto"
|
|
191
|
+
},
|
|
192
|
+
renderBody: ({ config }) => connectors.summarize(GOOGLE_DRIVE_FILE_LIST_META, config, "list files")
|
|
193
|
+
});
|
|
58
194
|
var GOOGLE_DRIVE_FOLDER_KIND = "@particle-academy/google_drive_folder";
|
|
59
195
|
var GOOGLE_DRIVE_FOLDER_OPERATION = "folder_create";
|
|
60
196
|
var GOOGLE_DRIVE_FOLDER_META = googleDriveMeta("action", "create a folder", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create");
|
|
@@ -109,22 +245,151 @@ var googleDriveFolderKind = connectors.defineConnectorKind(GOOGLE_DRIVE_FOLDER_M
|
|
|
109
245
|
},
|
|
110
246
|
renderBody: ({ config }) => connectors.summarize(GOOGLE_DRIVE_FOLDER_META, config, "create a folder")
|
|
111
247
|
});
|
|
248
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_KIND = "@particle-academy/google_drive_permission_create";
|
|
249
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = "permission_create";
|
|
250
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_META = googleDriveMeta("action", "share a file", "https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create");
|
|
251
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT = [
|
|
252
|
+
{
|
|
253
|
+
"path": "data.id",
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "The new permission's id."
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"path": "data.type",
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "Echoes what was sent."
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"path": "data.role",
|
|
264
|
+
"type": "string",
|
|
265
|
+
"description": "Echoes what was sent."
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"path": "data.emailAddress",
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "Present for a user or group grant."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"path": "mode",
|
|
274
|
+
"type": "string",
|
|
275
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
276
|
+
}
|
|
277
|
+
];
|
|
278
|
+
var googleDrivePermissionCreateKind = connectors.defineConnectorKind(GOOGLE_DRIVE_PERMISSION_CREATE_META, {
|
|
279
|
+
name: GOOGLE_DRIVE_PERMISSION_CREATE_KIND,
|
|
280
|
+
aliases: ["google_drive_permission_create"],
|
|
281
|
+
label: "Share a Google Drive file",
|
|
282
|
+
description: "Grant a user, group, domain, or anyone with the link access to a file.",
|
|
283
|
+
inputs: [{ id: "in" }],
|
|
284
|
+
outputs: [{ id: "out" }],
|
|
285
|
+
sideEffects: "unsafe-to-replay",
|
|
286
|
+
outputShape: GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT,
|
|
287
|
+
configSchema: [
|
|
288
|
+
{
|
|
289
|
+
"type": "text",
|
|
290
|
+
"key": "fileId",
|
|
291
|
+
"label": "File ID",
|
|
292
|
+
"required": true
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "select",
|
|
296
|
+
"key": "type",
|
|
297
|
+
"label": "Grantee type",
|
|
298
|
+
"required": true,
|
|
299
|
+
"default": "user",
|
|
300
|
+
"options": [
|
|
301
|
+
{
|
|
302
|
+
"value": "user",
|
|
303
|
+
"label": "A specific person"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"value": "group",
|
|
307
|
+
"label": "A Google Group"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"value": "domain",
|
|
311
|
+
"label": "Everyone in a domain"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"value": "anyone",
|
|
315
|
+
"label": "Anyone with the link"
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"type": "select",
|
|
321
|
+
"key": "role",
|
|
322
|
+
"label": "Role",
|
|
323
|
+
"required": true,
|
|
324
|
+
"default": "reader",
|
|
325
|
+
"options": [
|
|
326
|
+
{
|
|
327
|
+
"value": "reader",
|
|
328
|
+
"label": "Reader"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"value": "commenter",
|
|
332
|
+
"label": "Commenter"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"value": "writer",
|
|
336
|
+
"label": "Writer"
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"description": "organizer, fileOrganizer and owner exist in Drive's API but only apply inside a shared drive, which this action does not target."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "text",
|
|
343
|
+
"key": "emailAddress",
|
|
344
|
+
"label": "Email address",
|
|
345
|
+
"description": "Required when the grantee type is a person or a Google Group. Ignored for domain and anyone."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"type": "text",
|
|
349
|
+
"key": "domain",
|
|
350
|
+
"label": "Domain",
|
|
351
|
+
"description": "Required when the grantee type is domain, e.g. example.com. Ignored otherwise."
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
defaultConfig: {
|
|
355
|
+
"mode": "auto"
|
|
356
|
+
},
|
|
357
|
+
renderBody: ({ config }) => connectors.summarize(GOOGLE_DRIVE_PERMISSION_CREATE_META, config, "share a file")
|
|
358
|
+
});
|
|
112
359
|
|
|
113
360
|
// src/index.ts
|
|
114
361
|
var GOOGLE_DRIVE_KINDS = [
|
|
115
|
-
|
|
362
|
+
googleDriveFileGetKind,
|
|
363
|
+
googleDriveFileListKind,
|
|
364
|
+
googleDriveFolderKind,
|
|
365
|
+
googleDrivePermissionCreateKind
|
|
116
366
|
];
|
|
117
367
|
|
|
118
368
|
exports.CONNECTOR_API_VERSION = CONNECTOR_API_VERSION;
|
|
119
369
|
exports.GOOGLE_DRIVE_CREDENTIALS = GOOGLE_DRIVE_CREDENTIALS;
|
|
370
|
+
exports.GOOGLE_DRIVE_FILE_GET_KIND = GOOGLE_DRIVE_FILE_GET_KIND;
|
|
371
|
+
exports.GOOGLE_DRIVE_FILE_GET_META = GOOGLE_DRIVE_FILE_GET_META;
|
|
372
|
+
exports.GOOGLE_DRIVE_FILE_GET_OPERATION = GOOGLE_DRIVE_FILE_GET_OPERATION;
|
|
373
|
+
exports.GOOGLE_DRIVE_FILE_GET_OUTPUT = GOOGLE_DRIVE_FILE_GET_OUTPUT;
|
|
374
|
+
exports.GOOGLE_DRIVE_FILE_LIST_KIND = GOOGLE_DRIVE_FILE_LIST_KIND;
|
|
375
|
+
exports.GOOGLE_DRIVE_FILE_LIST_META = GOOGLE_DRIVE_FILE_LIST_META;
|
|
376
|
+
exports.GOOGLE_DRIVE_FILE_LIST_OPERATION = GOOGLE_DRIVE_FILE_LIST_OPERATION;
|
|
377
|
+
exports.GOOGLE_DRIVE_FILE_LIST_OUTPUT = GOOGLE_DRIVE_FILE_LIST_OUTPUT;
|
|
120
378
|
exports.GOOGLE_DRIVE_FOLDER_KIND = GOOGLE_DRIVE_FOLDER_KIND;
|
|
121
379
|
exports.GOOGLE_DRIVE_FOLDER_META = GOOGLE_DRIVE_FOLDER_META;
|
|
122
380
|
exports.GOOGLE_DRIVE_FOLDER_OPERATION = GOOGLE_DRIVE_FOLDER_OPERATION;
|
|
123
381
|
exports.GOOGLE_DRIVE_FOLDER_OUTPUT = GOOGLE_DRIVE_FOLDER_OUTPUT;
|
|
124
382
|
exports.GOOGLE_DRIVE_KINDS = GOOGLE_DRIVE_KINDS;
|
|
125
383
|
exports.GOOGLE_DRIVE_OAUTH = GOOGLE_DRIVE_OAUTH;
|
|
384
|
+
exports.GOOGLE_DRIVE_PERMISSION_CREATE_KIND = GOOGLE_DRIVE_PERMISSION_CREATE_KIND;
|
|
385
|
+
exports.GOOGLE_DRIVE_PERMISSION_CREATE_META = GOOGLE_DRIVE_PERMISSION_CREATE_META;
|
|
386
|
+
exports.GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION;
|
|
387
|
+
exports.GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT = GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT;
|
|
126
388
|
exports.GOOGLE_DRIVE_SERVICE = GOOGLE_DRIVE_SERVICE;
|
|
389
|
+
exports.googleDriveFileGetKind = googleDriveFileGetKind;
|
|
390
|
+
exports.googleDriveFileListKind = googleDriveFileListKind;
|
|
127
391
|
exports.googleDriveFolderKind = googleDriveFolderKind;
|
|
128
392
|
exports.googleDriveMeta = googleDriveMeta;
|
|
393
|
+
exports.googleDrivePermissionCreateKind = googleDrivePermissionCreateKind;
|
|
129
394
|
//# sourceMappingURL=index.cjs.map
|
|
130
395
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/service.ts","../src/kinds/folder-create.ts","../src/index.ts"],"names":["defineConnectorKind","summarize"],"mappings":";;;;;AAiCO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AA,MACR,KAAA,EAAO,SAAA;AAAA,MACP,OAAA,EAAS,mBAAA;AAAA,MACT,aAAA,EAAe;AAAA;AACjB,GACF;AAAA,EACA,aAAA,EAAe;AAAA,IACb,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,MAAA,OACbC,oBAAA,CAAU,wBAAA,EAA0B,QAAmC,iBAAiB;AAC5F,CAAC;;;AC9DM,IAAM,kBAAA,GAA2C;AAAA,EACtD;AACF","file":"index.cjs","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's identity on the authoring surface, shared by every Google\n * Drive node.\n *\n * This file must import nothing from the js package: a PHP or Python project\n * installs the ui package and never that one, and the import would be a\n * dangling module the moment it did.\n *\n * ## The sandbox trap\n *\n * Google Drive has no sandbox. Every folder created in live mode is real; use\n * the faker during development and delete live test folders afterward.\n */\n\nimport type { ConnectorDomain, ConnectorMeta } from \"@particle-academy/fancy-flow/connectors\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported — an imported constant lets an upgrade rewrite the\n * very claim it exists to detect.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\n/** The parts of a connector's identity that belong to the SERVICE, not the node. */\nexport const GOOGLE_DRIVE_SERVICE = {\n service: \"google_drive\",\n serviceTitle: \"Google Drive\",\n domain: \"productivity\",\n sandbox: \"none\",\n} as const satisfies Pick<ConnectorMeta, \"service\" | \"serviceTitle\" | \"domain\" | \"sandbox\">;\n\n/**\n * Every connector domain weaver knows, pinned against fancy-flow's union.\n *\n * A closed set copied into three codebases stays correct only while something\n * MAKES it: this line fails to compile the moment weaver carries a value\n * fancy-flow does not, including the values no provider uses yet.\n */\nconst WEAVER_DOMAINS: readonly ConnectorDomain[] = [\n \"payments\",\n \"commerce\",\n \"messaging\",\n \"email\",\n \"crm\",\n \"support\",\n \"storage\",\n \"calendar\",\n \"productivity\",\n \"database\",\n \"devtools\",\n \"analytics\",\n \"marketing\",\n \"ai\",\n \"forms\",\n \"hr\",\n \"geo\"\n];\nvoid WEAVER_DOMAINS;\n\n/** The credentials a Google Drive connection holds. */\nexport const GOOGLE_DRIVE_CREDENTIALS = [\n {\n \"key\": \"clientId\",\n \"label\": \"OAuth client ID\",\n \"scope\": \"provider\",\n \"secret\": false,\n \"help\": \"From Google Cloud Console. One value for the whole installation.\"\n },\n {\n \"key\": \"clientSecret\",\n \"label\": \"OAuth client secret\",\n \"scope\": \"provider\",\n \"secret\": true,\n \"help\": \"The client secret for the same OAuth app.\"\n },\n {\n \"key\": \"accessToken\",\n \"label\": \"Access token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; expires after one hour.\"\n },\n {\n \"key\": \"refreshToken\",\n \"label\": \"Refresh token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; the host uses it to refresh the access token.\"\n }\n] as const;\n\n/**\n * The OAuth2 exchange Google Drive requires — DECLARED here, performed by the\n * host.\n *\n * A consent screen needs a browser, a redirect URI and somewhere to persist\n * the result, and all three belong to the host; a package that ran the dance\n * itself would have to own a web server. So this says precisely enough for a\n * host to do it.\n *\n * The access token lasts 3600 seconds. A host that never refreshes will work\n * all afternoon and be broken by morning, which is why the lifetime is stated\n * rather than left to be discovered.\n *\n * Its refresh tokens do NOT rotate: the same one is reusable, so a refresh may\n * safely be retried and may run concurrently. That is stated rather than\n * assumed because the opposite — a provider that spends the token and revokes\n * the grant on a replay — looks identical until it happens.\n */\nexport const GOOGLE_DRIVE_OAUTH = {\n \"flow\": \"authorization_code\",\n \"authorizeUrl\": \"https://accounts.google.com/o/oauth2/v2/auth\",\n \"tokenUrl\": \"https://oauth2.googleapis.com/token\",\n \"scopes\": [\n \"https://www.googleapis.com/auth/drive.file\"\n ],\n \"accessTokenCredential\": \"accessToken\",\n \"refreshTokenCredential\": \"refreshToken\",\n \"refreshTokenRotates\": false,\n \"accessTokenTtlSeconds\": 3600\n} as const;\n\n/** Build a Google Drive node's connector metadata from the operation it performs. */\nexport function googleDriveMeta(\n role: ConnectorMeta[\"role\"],\n operation: string,\n docs: string,\n): ConnectorMeta {\n return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/folder-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/folder-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive folder — Create a folder in Google Drive.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FOLDER_KIND = \"@particle-academy/google_drive_folder\";\nexport const GOOGLE_DRIVE_FOLDER_OPERATION = \"folder_create\";\n\nexport const GOOGLE_DRIVE_FOLDER_META = googleDriveMeta(\"action\", \"create a folder\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The created folder's id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The folder name Google stored.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The fixed Google Drive folder MIME type.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"The parent folder id array returned by Drive.\"\n }\n];\n\nexport const googleDriveFolderKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FOLDER_META, {\n name: GOOGLE_DRIVE_FOLDER_KIND,\n aliases: [\"google_drive_folder\"],\n label: \"Google Drive folder\",\n description: \"Create a folder in Google Drive.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_FOLDER_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"name\",\n \"label\": \"Folder name\",\n \"required\": true,\n \"description\": \"The folder name. Drive does not require names to be unique within a parent.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"parents\",\n \"label\": \"Parent folder IDs\",\n \"description\": \"Parent folder ids, comma separated. Leave empty to create the folder in My Drive.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FOLDER_META, config as Record<string, unknown>, \"create a folder\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's node kinds for fancy-flow.\n *\n * Install this on every host. The TypeScript executors live in the js\n * package's `./flow` subpath; PHP and Python hosts run their own and need only\n * this.\n */\n\nexport * from \"./service.js\";\nexport * from \"./kinds/folder-create.js\";\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { googleDriveFolderKind } from \"./kinds/folder-create.js\";\n\n/** Every Google Drive kind, for a host that registers the lot. */\nexport const GOOGLE_DRIVE_KINDS: NodeKindDefinition[] = [\n googleDriveFolderKind,\n];\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/service.ts","../src/kinds/file-get.ts","../src/kinds/file-list.ts","../src/kinds/folder-create.ts","../src/kinds/permission-create.ts","../src/index.ts"],"names":["defineConnectorKind","summarize"],"mappings":";;;;;AAiCO,IAAM,qBAAA,GAAwB;AAG9B,IAAM,oBAAA,GAAuB;AAAA,EAClC,OAAA,EAAS,cAAA;AAAA,EACT,YAAA,EAAc,cAAA;AAAA,EACd,MAAA,EAAQ,cAAA;AAAA,EACR,OAAA,EAAS;AACX;AA+BO,IAAM,wBAAA,GAA2B;AAAA,EACtC;AAAA,IACE,KAAA,EAAO,UAAA;AAAA,IACP,OAAA,EAAS,iBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,KAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,cAAA;AAAA,IACP,OAAA,EAAS,qBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,aAAA;AAAA,IACP,OAAA,EAAS,cAAA;AAAA,IACT,OAAA,EAAS,SAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,cAAA;AAAA,IACP,OAAA,EAAS,eAAA;AAAA,IACT,OAAA,EAAS,SAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ;AAoBO,IAAM,kBAAA,GAAqB;AAAA,EAChC,MAAA,EAAQ,oBAAA;AAAA,EACR,cAAA,EAAgB,8CAAA;AAAA,EAChB,UAAA,EAAY,qCAAA;AAAA,EACZ,QAAA,EAAU;AAAA,IACR;AAAA,GACF;AAAA,EACA,uBAAA,EAAyB,aAAA;AA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,cAAA;AAAA,MACP,OAAA,EAAS,eAAA;AAAA,MACT,aAAA,EAAe;AAAA,KACjB;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,QAAA;AAAA,MACP,OAAA,EAAS,QAAA;AAAA,MACT,aAAA,EAAe;AAAA;AACjB,GACF;AAAA,EACA,aAAA,EAAe;AAAA,IACb,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,MAAA,OACbC,oBAAAA,CAAU,mCAAA,EAAqC,QAAmC,cAAc;AACpG,CAAC;;;AClHM,IAAM,kBAAA,GAA2C;AAAA,EACtD,sBAAA;AAAA,EACA,uBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF","file":"index.cjs","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's identity on the authoring surface, shared by every Google\n * Drive node.\n *\n * This file must import nothing from the js package: a PHP or Python project\n * installs the ui package and never that one, and the import would be a\n * dangling module the moment it did.\n *\n * ## The sandbox trap\n *\n * Google Drive has no sandbox. Every folder created in live mode is real; use\n * the faker during development and delete live test folders afterward.\n */\n\nimport type { ConnectorDomain, ConnectorMeta } from \"@particle-academy/fancy-flow/connectors\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported — an imported constant lets an upgrade rewrite the\n * very claim it exists to detect.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\n/** The parts of a connector's identity that belong to the SERVICE, not the node. */\nexport const GOOGLE_DRIVE_SERVICE = {\n service: \"google_drive\",\n serviceTitle: \"Google Drive\",\n domain: \"productivity\",\n sandbox: \"none\",\n} as const satisfies Pick<ConnectorMeta, \"service\" | \"serviceTitle\" | \"domain\" | \"sandbox\">;\n\n/**\n * Every connector domain weaver knows, pinned against fancy-flow's union.\n *\n * A closed set copied into three codebases stays correct only while something\n * MAKES it: this line fails to compile the moment weaver carries a value\n * fancy-flow does not, including the values no provider uses yet.\n */\nconst WEAVER_DOMAINS: readonly ConnectorDomain[] = [\n \"payments\",\n \"commerce\",\n \"messaging\",\n \"email\",\n \"crm\",\n \"support\",\n \"storage\",\n \"calendar\",\n \"productivity\",\n \"database\",\n \"devtools\",\n \"analytics\",\n \"marketing\",\n \"ai\",\n \"forms\",\n \"hr\",\n \"geo\"\n];\nvoid WEAVER_DOMAINS;\n\n/** The credentials a Google Drive connection holds. */\nexport const GOOGLE_DRIVE_CREDENTIALS = [\n {\n \"key\": \"clientId\",\n \"label\": \"OAuth client ID\",\n \"scope\": \"provider\",\n \"secret\": false,\n \"help\": \"From Google Cloud Console. One value for the whole installation.\"\n },\n {\n \"key\": \"clientSecret\",\n \"label\": \"OAuth client secret\",\n \"scope\": \"provider\",\n \"secret\": true,\n \"help\": \"The client secret for the same OAuth app.\"\n },\n {\n \"key\": \"accessToken\",\n \"label\": \"Access token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; expires after one hour.\"\n },\n {\n \"key\": \"refreshToken\",\n \"label\": \"Refresh token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; the host uses it to refresh the access token.\"\n }\n] as const;\n\n/**\n * The OAuth2 exchange Google Drive requires — DECLARED here, performed by the\n * host.\n *\n * A consent screen needs a browser, a redirect URI and somewhere to persist\n * the result, and all three belong to the host; a package that ran the dance\n * itself would have to own a web server. So this says precisely enough for a\n * host to do it.\n *\n * The access token lasts 3600 seconds. A host that never refreshes will work\n * all afternoon and be broken by morning, which is why the lifetime is stated\n * rather than left to be discovered.\n *\n * Its refresh tokens do NOT rotate: the same one is reusable, so a refresh may\n * safely be retried and may run concurrently. That is stated rather than\n * assumed because the opposite — a provider that spends the token and revokes\n * the grant on a replay — looks identical until it happens.\n */\nexport const GOOGLE_DRIVE_OAUTH = {\n \"flow\": \"authorization_code\",\n \"authorizeUrl\": \"https://accounts.google.com/o/oauth2/v2/auth\",\n \"tokenUrl\": \"https://oauth2.googleapis.com/token\",\n \"scopes\": [\n \"https://www.googleapis.com/auth/drive.file\"\n ],\n \"accessTokenCredential\": \"accessToken\",\n \"refreshTokenCredential\": \"refreshToken\",\n \"refreshTokenRotates\": false,\n \"accessTokenTtlSeconds\": 3600\n} as const;\n\n/** Build a Google Drive node's connector metadata from the operation it performs. */\nexport function googleDriveMeta(\n role: ConnectorMeta[\"role\"],\n operation: string,\n docs: string,\n): ConnectorMeta {\n return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/file-get.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/file-get.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive file — Read one file's metadata and its download/view links.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FILE_GET_KIND = \"@particle-academy/google_drive_file_get\";\nexport const GOOGLE_DRIVE_FILE_GET_OPERATION = \"file_get\";\n\nexport const GOOGLE_DRIVE_FILE_GET_META = googleDriveMeta(\"action\", \"read a file\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FILE_GET_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The file id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The file name.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The file's MIME type.\"\n },\n {\n \"path\": \"data.size\",\n \"type\": \"string\",\n \"description\": \"Bytes, as a decimal STRING -- Drive's own int64 convention. Absent for Google Workspace editor files (Docs, Sheets, Slides) and for folders.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"Parent folder ids. A file has at most one today even though the field stays an array.\"\n },\n {\n \"path\": \"data.modifiedTime\",\n \"type\": \"string\",\n \"description\": \"RFC 3339.\"\n },\n {\n \"path\": \"data.webViewLink\",\n \"type\": \"string\",\n \"description\": \"Opens the file in its Drive/editor viewer. Requires the viewer to already have access.\"\n },\n {\n \"path\": \"data.webContentLink\",\n \"type\": \"string\",\n \"description\": \"A direct download URL for files with binary content. Absent for Google Workspace editor files and folders -- those export instead, which this connector does not yet offer.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDriveFileGetKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FILE_GET_META, {\n name: GOOGLE_DRIVE_FILE_GET_KIND,\n aliases: [\"google_drive_file_get\"],\n label: \"Google Drive file\",\n description: \"Read one file's metadata and its download/view links.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"none\",\n outputShape: GOOGLE_DRIVE_FILE_GET_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"fileId\",\n \"label\": \"File ID\",\n \"required\": true,\n \"description\": \"From file_list, or another node's output.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FILE_GET_META, config as Record<string, unknown>, \"read a file\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/file-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/file-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * List Google Drive files — List files this app created (or the user\n * explicitly opened) in Google Drive. Under the drive.file scope this\n * connector uses, a file created by any other app or picked up in the Drive UI\n * directly never appears here.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FILE_LIST_KIND = \"@particle-academy/google_drive_file_list\";\nexport const GOOGLE_DRIVE_FILE_LIST_OPERATION = \"file_list\";\n\nexport const GOOGLE_DRIVE_FILE_LIST_META = googleDriveMeta(\"action\", \"list files\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FILE_LIST_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.files\",\n \"type\": \"array\",\n \"description\": \"id, name, mimeType, size, modifiedTime, webViewLink per file -- leaner than file_get's projection. Read one file directly with file_get for parents and webContentLink.\"\n },\n {\n \"path\": \"data.nextPageToken\",\n \"type\": \"string\",\n \"description\": \"Present when there is another page.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDriveFileListKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FILE_LIST_META, {\n name: GOOGLE_DRIVE_FILE_LIST_KIND,\n aliases: [\"google_drive_file_list\"],\n label: \"List Google Drive files\",\n description: \"List files this app created (or the user explicitly opened) in Google Drive. Under the drive.file scope this connector uses, a file created by any other app or picked up in the Drive UI directly never appears here.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"none\",\n outputShape: GOOGLE_DRIVE_FILE_LIST_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"q\",\n \"label\": \"Search query\",\n \"description\": \"Drive's query syntax, e.g. \\\"mimeType='application/pdf' and trashed=false\\\". Leave blank to list everything this app can see.\"\n },\n {\n \"type\": \"number\",\n \"key\": \"pageSize\",\n \"label\": \"Page size\",\n \"min\": 1,\n \"max\": 1000,\n \"default\": 100,\n \"description\": \"Files per page. Drive's maximum is 1000.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"pageToken\",\n \"label\": \"Page token\",\n \"description\": \"From a previous page's nextPageToken.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"orderBy\",\n \"label\": \"Order by\",\n \"description\": \"A comma-separated list of Drive sort keys, e.g. \\\"modifiedTime desc\\\". Leave blank for Drive's default order.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FILE_LIST_META, config as Record<string, unknown>, \"list files\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/folder-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/folder-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive folder — Create a folder in Google Drive.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FOLDER_KIND = \"@particle-academy/google_drive_folder\";\nexport const GOOGLE_DRIVE_FOLDER_OPERATION = \"folder_create\";\n\nexport const GOOGLE_DRIVE_FOLDER_META = googleDriveMeta(\"action\", \"create a folder\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The created folder's id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The folder name Google stored.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The fixed Google Drive folder MIME type.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"The parent folder id array returned by Drive.\"\n }\n];\n\nexport const googleDriveFolderKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FOLDER_META, {\n name: GOOGLE_DRIVE_FOLDER_KIND,\n aliases: [\"google_drive_folder\"],\n label: \"Google Drive folder\",\n description: \"Create a folder in Google Drive.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_FOLDER_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"name\",\n \"label\": \"Folder name\",\n \"required\": true,\n \"description\": \"The folder name. Drive does not require names to be unique within a parent.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"parents\",\n \"label\": \"Parent folder IDs\",\n \"description\": \"Parent folder ids, comma separated. Leave empty to create the folder in My Drive.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FOLDER_META, config as Record<string, unknown>, \"create a folder\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/permission-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/permission-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Share a Google Drive file — Grant a user, group, domain, or anyone with the\n * link access to a file.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_KIND = \"@particle-academy/google_drive_permission_create\";\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = \"permission_create\";\n\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_META = googleDriveMeta(\"action\", \"share a file\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The new permission's id.\"\n },\n {\n \"path\": \"data.type\",\n \"type\": \"string\",\n \"description\": \"Echoes what was sent.\"\n },\n {\n \"path\": \"data.role\",\n \"type\": \"string\",\n \"description\": \"Echoes what was sent.\"\n },\n {\n \"path\": \"data.emailAddress\",\n \"type\": \"string\",\n \"description\": \"Present for a user or group grant.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDrivePermissionCreateKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_PERMISSION_CREATE_META, {\n name: GOOGLE_DRIVE_PERMISSION_CREATE_KIND,\n aliases: [\"google_drive_permission_create\"],\n label: \"Share a Google Drive file\",\n description: \"Grant a user, group, domain, or anyone with the link access to a file.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"fileId\",\n \"label\": \"File ID\",\n \"required\": true\n },\n {\n \"type\": \"select\",\n \"key\": \"type\",\n \"label\": \"Grantee type\",\n \"required\": true,\n \"default\": \"user\",\n \"options\": [\n {\n \"value\": \"user\",\n \"label\": \"A specific person\"\n },\n {\n \"value\": \"group\",\n \"label\": \"A Google Group\"\n },\n {\n \"value\": \"domain\",\n \"label\": \"Everyone in a domain\"\n },\n {\n \"value\": \"anyone\",\n \"label\": \"Anyone with the link\"\n }\n ]\n },\n {\n \"type\": \"select\",\n \"key\": \"role\",\n \"label\": \"Role\",\n \"required\": true,\n \"default\": \"reader\",\n \"options\": [\n {\n \"value\": \"reader\",\n \"label\": \"Reader\"\n },\n {\n \"value\": \"commenter\",\n \"label\": \"Commenter\"\n },\n {\n \"value\": \"writer\",\n \"label\": \"Writer\"\n }\n ],\n \"description\": \"organizer, fileOrganizer and owner exist in Drive's API but only apply inside a shared drive, which this action does not target.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"emailAddress\",\n \"label\": \"Email address\",\n \"description\": \"Required when the grantee type is a person or a Google Group. Ignored for domain and anyone.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"domain\",\n \"label\": \"Domain\",\n \"description\": \"Required when the grantee type is domain, e.g. example.com. Ignored otherwise.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_PERMISSION_CREATE_META, config as Record<string, unknown>, \"share a file\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's node kinds for fancy-flow.\n *\n * Install this on every host. The TypeScript executors live in the js\n * package's `./flow` subpath; PHP and Python hosts run their own and need only\n * this.\n */\n\nexport * from \"./service.js\";\nexport * from \"./kinds/file-get.js\";\nexport * from \"./kinds/file-list.js\";\nexport * from \"./kinds/folder-create.js\";\nexport * from \"./kinds/permission-create.js\";\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { googleDriveFileGetKind } from \"./kinds/file-get.js\";\nimport { googleDriveFileListKind } from \"./kinds/file-list.js\";\nimport { googleDriveFolderKind } from \"./kinds/folder-create.js\";\nimport { googleDrivePermissionCreateKind } from \"./kinds/permission-create.js\";\n\n/** Every Google Drive kind, for a host that registers the lot. */\nexport const GOOGLE_DRIVE_KINDS: NodeKindDefinition[] = [\n googleDriveFileGetKind,\n googleDriveFileListKind,\n googleDriveFolderKind,\n googleDrivePermissionCreateKind,\n];\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -97,6 +97,34 @@ declare const GOOGLE_DRIVE_OAUTH: {
|
|
|
97
97
|
/** Build a Google Drive node's connector metadata from the operation it performs. */
|
|
98
98
|
declare function googleDriveMeta(role: ConnectorMeta["role"], operation: string, docs: string): ConnectorMeta;
|
|
99
99
|
|
|
100
|
+
declare const GOOGLE_DRIVE_FILE_GET_KIND = "@particle-academy/google_drive_file_get";
|
|
101
|
+
declare const GOOGLE_DRIVE_FILE_GET_OPERATION = "file_get";
|
|
102
|
+
declare const GOOGLE_DRIVE_FILE_GET_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
103
|
+
/**
|
|
104
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
105
|
+
*
|
|
106
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
107
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
108
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
109
|
+
* and hoping.
|
|
110
|
+
*/
|
|
111
|
+
declare const GOOGLE_DRIVE_FILE_GET_OUTPUT: OutputField[];
|
|
112
|
+
declare const googleDriveFileGetKind: NodeKindDefinition;
|
|
113
|
+
|
|
114
|
+
declare const GOOGLE_DRIVE_FILE_LIST_KIND = "@particle-academy/google_drive_file_list";
|
|
115
|
+
declare const GOOGLE_DRIVE_FILE_LIST_OPERATION = "file_list";
|
|
116
|
+
declare const GOOGLE_DRIVE_FILE_LIST_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
117
|
+
/**
|
|
118
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
119
|
+
*
|
|
120
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
121
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
122
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
123
|
+
* and hoping.
|
|
124
|
+
*/
|
|
125
|
+
declare const GOOGLE_DRIVE_FILE_LIST_OUTPUT: OutputField[];
|
|
126
|
+
declare const googleDriveFileListKind: NodeKindDefinition;
|
|
127
|
+
|
|
100
128
|
declare const GOOGLE_DRIVE_FOLDER_KIND = "@particle-academy/google_drive_folder";
|
|
101
129
|
declare const GOOGLE_DRIVE_FOLDER_OPERATION = "folder_create";
|
|
102
130
|
declare const GOOGLE_DRIVE_FOLDER_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
@@ -111,6 +139,20 @@ declare const GOOGLE_DRIVE_FOLDER_META: _particle_academy_fancy_flow_connectors.
|
|
|
111
139
|
declare const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[];
|
|
112
140
|
declare const googleDriveFolderKind: NodeKindDefinition;
|
|
113
141
|
|
|
142
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_KIND = "@particle-academy/google_drive_permission_create";
|
|
143
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = "permission_create";
|
|
144
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
145
|
+
/**
|
|
146
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
147
|
+
*
|
|
148
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
149
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
150
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
151
|
+
* and hoping.
|
|
152
|
+
*/
|
|
153
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT: OutputField[];
|
|
154
|
+
declare const googleDrivePermissionCreateKind: NodeKindDefinition;
|
|
155
|
+
|
|
114
156
|
/**
|
|
115
157
|
* GENERATED FILE — do not edit.
|
|
116
158
|
*
|
|
@@ -132,4 +174,4 @@ declare const googleDriveFolderKind: NodeKindDefinition;
|
|
|
132
174
|
/** Every Google Drive kind, for a host that registers the lot. */
|
|
133
175
|
declare const GOOGLE_DRIVE_KINDS: NodeKindDefinition[];
|
|
134
176
|
|
|
135
|
-
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_SERVICE, googleDriveFolderKind, googleDriveMeta };
|
|
177
|
+
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FILE_GET_KIND, GOOGLE_DRIVE_FILE_GET_META, GOOGLE_DRIVE_FILE_GET_OPERATION, GOOGLE_DRIVE_FILE_GET_OUTPUT, GOOGLE_DRIVE_FILE_LIST_KIND, GOOGLE_DRIVE_FILE_LIST_META, GOOGLE_DRIVE_FILE_LIST_OPERATION, GOOGLE_DRIVE_FILE_LIST_OUTPUT, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_PERMISSION_CREATE_KIND, GOOGLE_DRIVE_PERMISSION_CREATE_META, GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION, GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT, GOOGLE_DRIVE_SERVICE, googleDriveFileGetKind, googleDriveFileListKind, googleDriveFolderKind, googleDriveMeta, googleDrivePermissionCreateKind };
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,34 @@ declare const GOOGLE_DRIVE_OAUTH: {
|
|
|
97
97
|
/** Build a Google Drive node's connector metadata from the operation it performs. */
|
|
98
98
|
declare function googleDriveMeta(role: ConnectorMeta["role"], operation: string, docs: string): ConnectorMeta;
|
|
99
99
|
|
|
100
|
+
declare const GOOGLE_DRIVE_FILE_GET_KIND = "@particle-academy/google_drive_file_get";
|
|
101
|
+
declare const GOOGLE_DRIVE_FILE_GET_OPERATION = "file_get";
|
|
102
|
+
declare const GOOGLE_DRIVE_FILE_GET_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
103
|
+
/**
|
|
104
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
105
|
+
*
|
|
106
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
107
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
108
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
109
|
+
* and hoping.
|
|
110
|
+
*/
|
|
111
|
+
declare const GOOGLE_DRIVE_FILE_GET_OUTPUT: OutputField[];
|
|
112
|
+
declare const googleDriveFileGetKind: NodeKindDefinition;
|
|
113
|
+
|
|
114
|
+
declare const GOOGLE_DRIVE_FILE_LIST_KIND = "@particle-academy/google_drive_file_list";
|
|
115
|
+
declare const GOOGLE_DRIVE_FILE_LIST_OPERATION = "file_list";
|
|
116
|
+
declare const GOOGLE_DRIVE_FILE_LIST_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
117
|
+
/**
|
|
118
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
119
|
+
*
|
|
120
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
121
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
122
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
123
|
+
* and hoping.
|
|
124
|
+
*/
|
|
125
|
+
declare const GOOGLE_DRIVE_FILE_LIST_OUTPUT: OutputField[];
|
|
126
|
+
declare const googleDriveFileListKind: NodeKindDefinition;
|
|
127
|
+
|
|
100
128
|
declare const GOOGLE_DRIVE_FOLDER_KIND = "@particle-academy/google_drive_folder";
|
|
101
129
|
declare const GOOGLE_DRIVE_FOLDER_OPERATION = "folder_create";
|
|
102
130
|
declare const GOOGLE_DRIVE_FOLDER_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
@@ -111,6 +139,20 @@ declare const GOOGLE_DRIVE_FOLDER_META: _particle_academy_fancy_flow_connectors.
|
|
|
111
139
|
declare const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[];
|
|
112
140
|
declare const googleDriveFolderKind: NodeKindDefinition;
|
|
113
141
|
|
|
142
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_KIND = "@particle-academy/google_drive_permission_create";
|
|
143
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = "permission_create";
|
|
144
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_META: _particle_academy_fancy_flow_connectors.ConnectorMeta;
|
|
145
|
+
/**
|
|
146
|
+
* What this node emits — the "ingredients" a downstream node can reference.
|
|
147
|
+
*
|
|
148
|
+
* fancy-flow reads `outputShape` off the kind and offers it in the variable
|
|
149
|
+
* picker, so declaring it is the whole of the work: an author configuring the
|
|
150
|
+
* next node picks `{{ $json.data.id }}` off a list instead of typing a path
|
|
151
|
+
* and hoping.
|
|
152
|
+
*/
|
|
153
|
+
declare const GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT: OutputField[];
|
|
154
|
+
declare const googleDrivePermissionCreateKind: NodeKindDefinition;
|
|
155
|
+
|
|
114
156
|
/**
|
|
115
157
|
* GENERATED FILE — do not edit.
|
|
116
158
|
*
|
|
@@ -132,4 +174,4 @@ declare const googleDriveFolderKind: NodeKindDefinition;
|
|
|
132
174
|
/** Every Google Drive kind, for a host that registers the lot. */
|
|
133
175
|
declare const GOOGLE_DRIVE_KINDS: NodeKindDefinition[];
|
|
134
176
|
|
|
135
|
-
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_SERVICE, googleDriveFolderKind, googleDriveMeta };
|
|
177
|
+
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FILE_GET_KIND, GOOGLE_DRIVE_FILE_GET_META, GOOGLE_DRIVE_FILE_GET_OPERATION, GOOGLE_DRIVE_FILE_GET_OUTPUT, GOOGLE_DRIVE_FILE_LIST_KIND, GOOGLE_DRIVE_FILE_LIST_META, GOOGLE_DRIVE_FILE_LIST_OPERATION, GOOGLE_DRIVE_FILE_LIST_OUTPUT, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_PERMISSION_CREATE_KIND, GOOGLE_DRIVE_PERMISSION_CREATE_META, GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION, GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT, GOOGLE_DRIVE_SERVICE, googleDriveFileGetKind, googleDriveFileListKind, googleDriveFolderKind, googleDriveMeta, googleDrivePermissionCreateKind };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,142 @@ var GOOGLE_DRIVE_OAUTH = {
|
|
|
53
53
|
function googleDriveMeta(role, operation, docs) {
|
|
54
54
|
return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };
|
|
55
55
|
}
|
|
56
|
+
var GOOGLE_DRIVE_FILE_GET_KIND = "@particle-academy/google_drive_file_get";
|
|
57
|
+
var GOOGLE_DRIVE_FILE_GET_OPERATION = "file_get";
|
|
58
|
+
var GOOGLE_DRIVE_FILE_GET_META = googleDriveMeta("action", "read a file", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get");
|
|
59
|
+
var GOOGLE_DRIVE_FILE_GET_OUTPUT = [
|
|
60
|
+
{
|
|
61
|
+
"path": "data.id",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "The file id."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "data.name",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "The file name."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "data.mimeType",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "The file's MIME type."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"path": "data.size",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Bytes, as a decimal STRING -- Drive's own int64 convention. Absent for Google Workspace editor files (Docs, Sheets, Slides) and for folders."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"path": "data.parents",
|
|
82
|
+
"type": "array",
|
|
83
|
+
"description": "Parent folder ids. A file has at most one today even though the field stays an array."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "data.modifiedTime",
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "RFC 3339."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "data.webViewLink",
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Opens the file in its Drive/editor viewer. Requires the viewer to already have access."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"path": "data.webContentLink",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "A direct download URL for files with binary content. Absent for Google Workspace editor files and folders -- those export instead, which this connector does not yet offer."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"path": "mode",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
var googleDriveFileGetKind = defineConnectorKind(GOOGLE_DRIVE_FILE_GET_META, {
|
|
107
|
+
name: GOOGLE_DRIVE_FILE_GET_KIND,
|
|
108
|
+
aliases: ["google_drive_file_get"],
|
|
109
|
+
label: "Google Drive file",
|
|
110
|
+
description: "Read one file's metadata and its download/view links.",
|
|
111
|
+
inputs: [{ id: "in" }],
|
|
112
|
+
outputs: [{ id: "out" }],
|
|
113
|
+
sideEffects: "none",
|
|
114
|
+
outputShape: GOOGLE_DRIVE_FILE_GET_OUTPUT,
|
|
115
|
+
configSchema: [
|
|
116
|
+
{
|
|
117
|
+
"type": "text",
|
|
118
|
+
"key": "fileId",
|
|
119
|
+
"label": "File ID",
|
|
120
|
+
"required": true,
|
|
121
|
+
"description": "From file_list, or another node's output."
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
defaultConfig: {
|
|
125
|
+
"mode": "auto"
|
|
126
|
+
},
|
|
127
|
+
renderBody: ({ config }) => summarize(GOOGLE_DRIVE_FILE_GET_META, config, "read a file")
|
|
128
|
+
});
|
|
129
|
+
var GOOGLE_DRIVE_FILE_LIST_KIND = "@particle-academy/google_drive_file_list";
|
|
130
|
+
var GOOGLE_DRIVE_FILE_LIST_OPERATION = "file_list";
|
|
131
|
+
var GOOGLE_DRIVE_FILE_LIST_META = googleDriveMeta("action", "list files", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list");
|
|
132
|
+
var GOOGLE_DRIVE_FILE_LIST_OUTPUT = [
|
|
133
|
+
{
|
|
134
|
+
"path": "data.files",
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "id, name, mimeType, size, modifiedTime, webViewLink per file -- leaner than file_get's projection. Read one file directly with file_get for parents and webContentLink."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"path": "data.nextPageToken",
|
|
140
|
+
"type": "string",
|
|
141
|
+
"description": "Present when there is another page."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"path": "mode",
|
|
145
|
+
"type": "string",
|
|
146
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
147
|
+
}
|
|
148
|
+
];
|
|
149
|
+
var googleDriveFileListKind = defineConnectorKind(GOOGLE_DRIVE_FILE_LIST_META, {
|
|
150
|
+
name: GOOGLE_DRIVE_FILE_LIST_KIND,
|
|
151
|
+
aliases: ["google_drive_file_list"],
|
|
152
|
+
label: "List Google Drive files",
|
|
153
|
+
description: "List files this app created (or the user explicitly opened) in Google Drive. Under the drive.file scope this connector uses, a file created by any other app or picked up in the Drive UI directly never appears here.",
|
|
154
|
+
inputs: [{ id: "in" }],
|
|
155
|
+
outputs: [{ id: "out" }],
|
|
156
|
+
sideEffects: "none",
|
|
157
|
+
outputShape: GOOGLE_DRIVE_FILE_LIST_OUTPUT,
|
|
158
|
+
configSchema: [
|
|
159
|
+
{
|
|
160
|
+
"type": "text",
|
|
161
|
+
"key": "q",
|
|
162
|
+
"label": "Search query",
|
|
163
|
+
"description": `Drive's query syntax, e.g. "mimeType='application/pdf' and trashed=false". Leave blank to list everything this app can see.`
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "number",
|
|
167
|
+
"key": "pageSize",
|
|
168
|
+
"label": "Page size",
|
|
169
|
+
"min": 1,
|
|
170
|
+
"max": 1e3,
|
|
171
|
+
"default": 100,
|
|
172
|
+
"description": "Files per page. Drive's maximum is 1000."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "text",
|
|
176
|
+
"key": "pageToken",
|
|
177
|
+
"label": "Page token",
|
|
178
|
+
"description": "From a previous page's nextPageToken."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "text",
|
|
182
|
+
"key": "orderBy",
|
|
183
|
+
"label": "Order by",
|
|
184
|
+
"description": `A comma-separated list of Drive sort keys, e.g. "modifiedTime desc". Leave blank for Drive's default order.`
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
defaultConfig: {
|
|
188
|
+
"mode": "auto"
|
|
189
|
+
},
|
|
190
|
+
renderBody: ({ config }) => summarize(GOOGLE_DRIVE_FILE_LIST_META, config, "list files")
|
|
191
|
+
});
|
|
56
192
|
var GOOGLE_DRIVE_FOLDER_KIND = "@particle-academy/google_drive_folder";
|
|
57
193
|
var GOOGLE_DRIVE_FOLDER_OPERATION = "folder_create";
|
|
58
194
|
var GOOGLE_DRIVE_FOLDER_META = googleDriveMeta("action", "create a folder", "https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create");
|
|
@@ -107,12 +243,126 @@ var googleDriveFolderKind = defineConnectorKind(GOOGLE_DRIVE_FOLDER_META, {
|
|
|
107
243
|
},
|
|
108
244
|
renderBody: ({ config }) => summarize(GOOGLE_DRIVE_FOLDER_META, config, "create a folder")
|
|
109
245
|
});
|
|
246
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_KIND = "@particle-academy/google_drive_permission_create";
|
|
247
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = "permission_create";
|
|
248
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_META = googleDriveMeta("action", "share a file", "https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create");
|
|
249
|
+
var GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT = [
|
|
250
|
+
{
|
|
251
|
+
"path": "data.id",
|
|
252
|
+
"type": "string",
|
|
253
|
+
"description": "The new permission's id."
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"path": "data.type",
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "Echoes what was sent."
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"path": "data.role",
|
|
262
|
+
"type": "string",
|
|
263
|
+
"description": "Echoes what was sent."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"path": "data.emailAddress",
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "Present for a user or group grant."
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"path": "mode",
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Which estate this ran against. Google has no sandbox, so: fake or live."
|
|
274
|
+
}
|
|
275
|
+
];
|
|
276
|
+
var googleDrivePermissionCreateKind = defineConnectorKind(GOOGLE_DRIVE_PERMISSION_CREATE_META, {
|
|
277
|
+
name: GOOGLE_DRIVE_PERMISSION_CREATE_KIND,
|
|
278
|
+
aliases: ["google_drive_permission_create"],
|
|
279
|
+
label: "Share a Google Drive file",
|
|
280
|
+
description: "Grant a user, group, domain, or anyone with the link access to a file.",
|
|
281
|
+
inputs: [{ id: "in" }],
|
|
282
|
+
outputs: [{ id: "out" }],
|
|
283
|
+
sideEffects: "unsafe-to-replay",
|
|
284
|
+
outputShape: GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT,
|
|
285
|
+
configSchema: [
|
|
286
|
+
{
|
|
287
|
+
"type": "text",
|
|
288
|
+
"key": "fileId",
|
|
289
|
+
"label": "File ID",
|
|
290
|
+
"required": true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "select",
|
|
294
|
+
"key": "type",
|
|
295
|
+
"label": "Grantee type",
|
|
296
|
+
"required": true,
|
|
297
|
+
"default": "user",
|
|
298
|
+
"options": [
|
|
299
|
+
{
|
|
300
|
+
"value": "user",
|
|
301
|
+
"label": "A specific person"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"value": "group",
|
|
305
|
+
"label": "A Google Group"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"value": "domain",
|
|
309
|
+
"label": "Everyone in a domain"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"value": "anyone",
|
|
313
|
+
"label": "Anyone with the link"
|
|
314
|
+
}
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "select",
|
|
319
|
+
"key": "role",
|
|
320
|
+
"label": "Role",
|
|
321
|
+
"required": true,
|
|
322
|
+
"default": "reader",
|
|
323
|
+
"options": [
|
|
324
|
+
{
|
|
325
|
+
"value": "reader",
|
|
326
|
+
"label": "Reader"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"value": "commenter",
|
|
330
|
+
"label": "Commenter"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"value": "writer",
|
|
334
|
+
"label": "Writer"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"description": "organizer, fileOrganizer and owner exist in Drive's API but only apply inside a shared drive, which this action does not target."
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "text",
|
|
341
|
+
"key": "emailAddress",
|
|
342
|
+
"label": "Email address",
|
|
343
|
+
"description": "Required when the grantee type is a person or a Google Group. Ignored for domain and anyone."
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"type": "text",
|
|
347
|
+
"key": "domain",
|
|
348
|
+
"label": "Domain",
|
|
349
|
+
"description": "Required when the grantee type is domain, e.g. example.com. Ignored otherwise."
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
defaultConfig: {
|
|
353
|
+
"mode": "auto"
|
|
354
|
+
},
|
|
355
|
+
renderBody: ({ config }) => summarize(GOOGLE_DRIVE_PERMISSION_CREATE_META, config, "share a file")
|
|
356
|
+
});
|
|
110
357
|
|
|
111
358
|
// src/index.ts
|
|
112
359
|
var GOOGLE_DRIVE_KINDS = [
|
|
113
|
-
|
|
360
|
+
googleDriveFileGetKind,
|
|
361
|
+
googleDriveFileListKind,
|
|
362
|
+
googleDriveFolderKind,
|
|
363
|
+
googleDrivePermissionCreateKind
|
|
114
364
|
];
|
|
115
365
|
|
|
116
|
-
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_SERVICE, googleDriveFolderKind, googleDriveMeta };
|
|
366
|
+
export { CONNECTOR_API_VERSION, GOOGLE_DRIVE_CREDENTIALS, GOOGLE_DRIVE_FILE_GET_KIND, GOOGLE_DRIVE_FILE_GET_META, GOOGLE_DRIVE_FILE_GET_OPERATION, GOOGLE_DRIVE_FILE_GET_OUTPUT, GOOGLE_DRIVE_FILE_LIST_KIND, GOOGLE_DRIVE_FILE_LIST_META, GOOGLE_DRIVE_FILE_LIST_OPERATION, GOOGLE_DRIVE_FILE_LIST_OUTPUT, GOOGLE_DRIVE_FOLDER_KIND, GOOGLE_DRIVE_FOLDER_META, GOOGLE_DRIVE_FOLDER_OPERATION, GOOGLE_DRIVE_FOLDER_OUTPUT, GOOGLE_DRIVE_KINDS, GOOGLE_DRIVE_OAUTH, GOOGLE_DRIVE_PERMISSION_CREATE_KIND, GOOGLE_DRIVE_PERMISSION_CREATE_META, GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION, GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT, GOOGLE_DRIVE_SERVICE, googleDriveFileGetKind, googleDriveFileListKind, googleDriveFolderKind, googleDriveMeta, googleDrivePermissionCreateKind };
|
|
117
367
|
//# sourceMappingURL=index.js.map
|
|
118
368
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/service.ts","../src/kinds/folder-create.ts","../src/index.ts"],"names":[],"mappings":";;;AAiCO,IAAM,qBAAA,GAAwB;AAG9B,IAAM,oBAAA,GAAuB;AAAA,EAClC,OAAA,EAAS,cAAA;AAAA,EACT,YAAA,EAAc,cAAA;AAAA,EACd,MAAA,EAAQ,cAAA;AAAA,EACR,OAAA,EAAS;AACX;AA+BO,IAAM,wBAAA,GAA2B;AAAA,EACtC;AAAA,IACE,KAAA,EAAO,UAAA;AAAA,IACP,OAAA,EAAS,iBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,KAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,cAAA;AAAA,IACP,OAAA,EAAS,qBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,aAAA;AAAA,IACP,OAAA,EAAS,cAAA;AAAA,IACT,OAAA,EAAS,SAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,cAAA;AAAA,IACP,OAAA,EAAS,eAAA;AAAA,IACT,OAAA,EAAS,SAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ;AAoB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AAE,EAAA,EAAI,MAAM,CAAA;AAAA,EACrB,OAAA,EAAS,CAAC,EAAE,EAAA,EAAI,OAAO,CAAA;AAAA,EACvB,WAAA,EAAa,kBAAA;AAAA,EACb,WAAA,EAAa,0BAAA;AAAA,EACb,YAAA,EAAc;AAAA,IACZ;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,MAAA;AAAA,MACP,OAAA,EAAS,aAAA;AAAA,MACT,UAAA,EAAY,IAAA;AAAA,MACZ,aAAA,EAAe;AAAA,KACjB;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,SAAA;AAAA,MACP,OAAA,EAAS,mBAAA;AAAA,MACT,aAAA,EAAe;AAAA;AACjB,GACF;AAAA,EACA,aAAA,EAAe;AAAA,IACb,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,MAAA,OACb,SAAA,CAAU,wBAAA,EAA0B,QAAmC,iBAAiB;AAC5F,CAAC;;;AC9DM,IAAM,kBAAA,GAA2C;AAAA,EACtD;AACF","file":"index.js","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's identity on the authoring surface, shared by every Google\n * Drive node.\n *\n * This file must import nothing from the js package: a PHP or Python project\n * installs the ui package and never that one, and the import would be a\n * dangling module the moment it did.\n *\n * ## The sandbox trap\n *\n * Google Drive has no sandbox. Every folder created in live mode is real; use\n * the faker during development and delete live test folders afterward.\n */\n\nimport type { ConnectorDomain, ConnectorMeta } from \"@particle-academy/fancy-flow/connectors\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported — an imported constant lets an upgrade rewrite the\n * very claim it exists to detect.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\n/** The parts of a connector's identity that belong to the SERVICE, not the node. */\nexport const GOOGLE_DRIVE_SERVICE = {\n service: \"google_drive\",\n serviceTitle: \"Google Drive\",\n domain: \"productivity\",\n sandbox: \"none\",\n} as const satisfies Pick<ConnectorMeta, \"service\" | \"serviceTitle\" | \"domain\" | \"sandbox\">;\n\n/**\n * Every connector domain weaver knows, pinned against fancy-flow's union.\n *\n * A closed set copied into three codebases stays correct only while something\n * MAKES it: this line fails to compile the moment weaver carries a value\n * fancy-flow does not, including the values no provider uses yet.\n */\nconst WEAVER_DOMAINS: readonly ConnectorDomain[] = [\n \"payments\",\n \"commerce\",\n \"messaging\",\n \"email\",\n \"crm\",\n \"support\",\n \"storage\",\n \"calendar\",\n \"productivity\",\n \"database\",\n \"devtools\",\n \"analytics\",\n \"marketing\",\n \"ai\",\n \"forms\",\n \"hr\",\n \"geo\"\n];\nvoid WEAVER_DOMAINS;\n\n/** The credentials a Google Drive connection holds. */\nexport const GOOGLE_DRIVE_CREDENTIALS = [\n {\n \"key\": \"clientId\",\n \"label\": \"OAuth client ID\",\n \"scope\": \"provider\",\n \"secret\": false,\n \"help\": \"From Google Cloud Console. One value for the whole installation.\"\n },\n {\n \"key\": \"clientSecret\",\n \"label\": \"OAuth client secret\",\n \"scope\": \"provider\",\n \"secret\": true,\n \"help\": \"The client secret for the same OAuth app.\"\n },\n {\n \"key\": \"accessToken\",\n \"label\": \"Access token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; expires after one hour.\"\n },\n {\n \"key\": \"refreshToken\",\n \"label\": \"Refresh token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; the host uses it to refresh the access token.\"\n }\n] as const;\n\n/**\n * The OAuth2 exchange Google Drive requires — DECLARED here, performed by the\n * host.\n *\n * A consent screen needs a browser, a redirect URI and somewhere to persist\n * the result, and all three belong to the host; a package that ran the dance\n * itself would have to own a web server. So this says precisely enough for a\n * host to do it.\n *\n * The access token lasts 3600 seconds. A host that never refreshes will work\n * all afternoon and be broken by morning, which is why the lifetime is stated\n * rather than left to be discovered.\n *\n * Its refresh tokens do NOT rotate: the same one is reusable, so a refresh may\n * safely be retried and may run concurrently. That is stated rather than\n * assumed because the opposite — a provider that spends the token and revokes\n * the grant on a replay — looks identical until it happens.\n */\nexport const GOOGLE_DRIVE_OAUTH = {\n \"flow\": \"authorization_code\",\n \"authorizeUrl\": \"https://accounts.google.com/o/oauth2/v2/auth\",\n \"tokenUrl\": \"https://oauth2.googleapis.com/token\",\n \"scopes\": [\n \"https://www.googleapis.com/auth/drive.file\"\n ],\n \"accessTokenCredential\": \"accessToken\",\n \"refreshTokenCredential\": \"refreshToken\",\n \"refreshTokenRotates\": false,\n \"accessTokenTtlSeconds\": 3600\n} as const;\n\n/** Build a Google Drive node's connector metadata from the operation it performs. */\nexport function googleDriveMeta(\n role: ConnectorMeta[\"role\"],\n operation: string,\n docs: string,\n): ConnectorMeta {\n return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/folder-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/folder-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive folder — Create a folder in Google Drive.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FOLDER_KIND = \"@particle-academy/google_drive_folder\";\nexport const GOOGLE_DRIVE_FOLDER_OPERATION = \"folder_create\";\n\nexport const GOOGLE_DRIVE_FOLDER_META = googleDriveMeta(\"action\", \"create a folder\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The created folder's id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The folder name Google stored.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The fixed Google Drive folder MIME type.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"The parent folder id array returned by Drive.\"\n }\n];\n\nexport const googleDriveFolderKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FOLDER_META, {\n name: GOOGLE_DRIVE_FOLDER_KIND,\n aliases: [\"google_drive_folder\"],\n label: \"Google Drive folder\",\n description: \"Create a folder in Google Drive.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_FOLDER_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"name\",\n \"label\": \"Folder name\",\n \"required\": true,\n \"description\": \"The folder name. Drive does not require names to be unique within a parent.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"parents\",\n \"label\": \"Parent folder IDs\",\n \"description\": \"Parent folder ids, comma separated. Leave empty to create the folder in My Drive.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FOLDER_META, config as Record<string, unknown>, \"create a folder\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's node kinds for fancy-flow.\n *\n * Install this on every host. The TypeScript executors live in the js\n * package's `./flow` subpath; PHP and Python hosts run their own and need only\n * this.\n */\n\nexport * from \"./service.js\";\nexport * from \"./kinds/folder-create.js\";\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { googleDriveFolderKind } from \"./kinds/folder-create.js\";\n\n/** Every Google Drive kind, for a host that registers the lot. */\nexport const GOOGLE_DRIVE_KINDS: NodeKindDefinition[] = [\n googleDriveFolderKind,\n];\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/service.ts","../src/kinds/file-get.ts","../src/kinds/file-list.ts","../src/kinds/folder-create.ts","../src/kinds/permission-create.ts","../src/index.ts"],"names":["defineConnectorKind","summarize"],"mappings":";;;AAiCO,IAAM,qBAAA,GAAwB;AAG9B,IAAM,oBAAA,GAAuB;AAAA,EAClC,OAAA,EAAS,cAAA;AAAA,EACT,YAAA,EAAc,cAAA;AAAA,EACd,MAAA,EAAQ,cAAA;AAAA,EACR,OAAA,EAAS;AACX;AA+BO,IAAM,wBAAA,GAA2B;AAAA,EACtC;AAAA,IACE,KAAA,EAAO,UAAA;AAAA,IACP,OAAA,EAAS,iBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,KAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,cAAA;AAAA,IACP,OAAA,EAAS,qBAAA;AAAA,IACT,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA;AAAA,IACE,KAAA,EAAO,aAAA;AAAA,IACP,OAAA,EAAS,cAAA;AAAA,IACT,OAAA,EAAS,SAAA;AAAA,IACT,QAAA,EAAU,IAAA;AAAA,IACV,MAAA,EAAQ;AA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ACZ,SAAA,EAAW,QAAA;AAAA,MACX,SAAA,EAAW;AAAA,QACT;AAAA,UACE,OAAA,EAAS,QAAA;AAAA,UACT,OAAA,EAAS;AAAA,SACX;AAAA,QACA;AAAA,UACE,OAAA,EAAS,WAAA;AAAA,UACT,OAAA,EAAS;AAAA,SACX;AAAA,QACA;AAAA,UACE,OAAA,EAAS,QAAA;AAAA,UACT,OAAA,EAAS;AAAA;AACX,OACF;AAAA,MACA,aAAA,EAAe;AAAA,KACjB;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,cAAA;AAAA,MACP,OAAA,EAAS,eAAA;AAAA,MACT,aAAA,EAAe;AAAA,KACjB;AAAA,IACA;AAAA,MACE,MAAA,EAAQ,MAAA;AAAA,MACR,KAAA,EAAO,QAAA;AAAA,MACP,OAAA,EAAS,QAAA;AAAA,MACT,aAAA,EAAe;AAAA;AACjB,GACF;AAAA,EACA,aAAA,EAAe;AAAA,IACb,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,MAAA,OACbC,SAAAA,CAAU,mCAAA,EAAqC,QAAmC,cAAc;AACpG,CAAC;;;AClHM,IAAM,kBAAA,GAA2C;AAAA,EACtD,sBAAA;AAAA,EACA,uBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF","file":"index.js","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's identity on the authoring surface, shared by every Google\n * Drive node.\n *\n * This file must import nothing from the js package: a PHP or Python project\n * installs the ui package and never that one, and the import would be a\n * dangling module the moment it did.\n *\n * ## The sandbox trap\n *\n * Google Drive has no sandbox. Every folder created in live mode is real; use\n * the faker during development and delete live test folders afterward.\n */\n\nimport type { ConnectorDomain, ConnectorMeta } from \"@particle-academy/fancy-flow/connectors\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported — an imported constant lets an upgrade rewrite the\n * very claim it exists to detect.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\n/** The parts of a connector's identity that belong to the SERVICE, not the node. */\nexport const GOOGLE_DRIVE_SERVICE = {\n service: \"google_drive\",\n serviceTitle: \"Google Drive\",\n domain: \"productivity\",\n sandbox: \"none\",\n} as const satisfies Pick<ConnectorMeta, \"service\" | \"serviceTitle\" | \"domain\" | \"sandbox\">;\n\n/**\n * Every connector domain weaver knows, pinned against fancy-flow's union.\n *\n * A closed set copied into three codebases stays correct only while something\n * MAKES it: this line fails to compile the moment weaver carries a value\n * fancy-flow does not, including the values no provider uses yet.\n */\nconst WEAVER_DOMAINS: readonly ConnectorDomain[] = [\n \"payments\",\n \"commerce\",\n \"messaging\",\n \"email\",\n \"crm\",\n \"support\",\n \"storage\",\n \"calendar\",\n \"productivity\",\n \"database\",\n \"devtools\",\n \"analytics\",\n \"marketing\",\n \"ai\",\n \"forms\",\n \"hr\",\n \"geo\"\n];\nvoid WEAVER_DOMAINS;\n\n/** The credentials a Google Drive connection holds. */\nexport const GOOGLE_DRIVE_CREDENTIALS = [\n {\n \"key\": \"clientId\",\n \"label\": \"OAuth client ID\",\n \"scope\": \"provider\",\n \"secret\": false,\n \"help\": \"From Google Cloud Console. One value for the whole installation.\"\n },\n {\n \"key\": \"clientSecret\",\n \"label\": \"OAuth client secret\",\n \"scope\": \"provider\",\n \"secret\": true,\n \"help\": \"The client secret for the same OAuth app.\"\n },\n {\n \"key\": \"accessToken\",\n \"label\": \"Access token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; expires after one hour.\"\n },\n {\n \"key\": \"refreshToken\",\n \"label\": \"Refresh token\",\n \"scope\": \"account\",\n \"secret\": true,\n \"help\": \"Per connected Google account; the host uses it to refresh the access token.\"\n }\n] as const;\n\n/**\n * The OAuth2 exchange Google Drive requires — DECLARED here, performed by the\n * host.\n *\n * A consent screen needs a browser, a redirect URI and somewhere to persist\n * the result, and all three belong to the host; a package that ran the dance\n * itself would have to own a web server. So this says precisely enough for a\n * host to do it.\n *\n * The access token lasts 3600 seconds. A host that never refreshes will work\n * all afternoon and be broken by morning, which is why the lifetime is stated\n * rather than left to be discovered.\n *\n * Its refresh tokens do NOT rotate: the same one is reusable, so a refresh may\n * safely be retried and may run concurrently. That is stated rather than\n * assumed because the opposite — a provider that spends the token and revokes\n * the grant on a replay — looks identical until it happens.\n */\nexport const GOOGLE_DRIVE_OAUTH = {\n \"flow\": \"authorization_code\",\n \"authorizeUrl\": \"https://accounts.google.com/o/oauth2/v2/auth\",\n \"tokenUrl\": \"https://oauth2.googleapis.com/token\",\n \"scopes\": [\n \"https://www.googleapis.com/auth/drive.file\"\n ],\n \"accessTokenCredential\": \"accessToken\",\n \"refreshTokenCredential\": \"refreshToken\",\n \"refreshTokenRotates\": false,\n \"accessTokenTtlSeconds\": 3600\n} as const;\n\n/** Build a Google Drive node's connector metadata from the operation it performs. */\nexport function googleDriveMeta(\n role: ConnectorMeta[\"role\"],\n operation: string,\n docs: string,\n): ConnectorMeta {\n return { ...GOOGLE_DRIVE_SERVICE, role, operation, docs };\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/file-get.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/file-get.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive file — Read one file's metadata and its download/view links.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FILE_GET_KIND = \"@particle-academy/google_drive_file_get\";\nexport const GOOGLE_DRIVE_FILE_GET_OPERATION = \"file_get\";\n\nexport const GOOGLE_DRIVE_FILE_GET_META = googleDriveMeta(\"action\", \"read a file\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/get\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FILE_GET_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The file id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The file name.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The file's MIME type.\"\n },\n {\n \"path\": \"data.size\",\n \"type\": \"string\",\n \"description\": \"Bytes, as a decimal STRING -- Drive's own int64 convention. Absent for Google Workspace editor files (Docs, Sheets, Slides) and for folders.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"Parent folder ids. A file has at most one today even though the field stays an array.\"\n },\n {\n \"path\": \"data.modifiedTime\",\n \"type\": \"string\",\n \"description\": \"RFC 3339.\"\n },\n {\n \"path\": \"data.webViewLink\",\n \"type\": \"string\",\n \"description\": \"Opens the file in its Drive/editor viewer. Requires the viewer to already have access.\"\n },\n {\n \"path\": \"data.webContentLink\",\n \"type\": \"string\",\n \"description\": \"A direct download URL for files with binary content. Absent for Google Workspace editor files and folders -- those export instead, which this connector does not yet offer.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDriveFileGetKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FILE_GET_META, {\n name: GOOGLE_DRIVE_FILE_GET_KIND,\n aliases: [\"google_drive_file_get\"],\n label: \"Google Drive file\",\n description: \"Read one file's metadata and its download/view links.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"none\",\n outputShape: GOOGLE_DRIVE_FILE_GET_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"fileId\",\n \"label\": \"File ID\",\n \"required\": true,\n \"description\": \"From file_list, or another node's output.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FILE_GET_META, config as Record<string, unknown>, \"read a file\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/file-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/file-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * List Google Drive files — List files this app created (or the user\n * explicitly opened) in Google Drive. Under the drive.file scope this\n * connector uses, a file created by any other app or picked up in the Drive UI\n * directly never appears here.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FILE_LIST_KIND = \"@particle-academy/google_drive_file_list\";\nexport const GOOGLE_DRIVE_FILE_LIST_OPERATION = \"file_list\";\n\nexport const GOOGLE_DRIVE_FILE_LIST_META = googleDriveMeta(\"action\", \"list files\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/list\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FILE_LIST_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.files\",\n \"type\": \"array\",\n \"description\": \"id, name, mimeType, size, modifiedTime, webViewLink per file -- leaner than file_get's projection. Read one file directly with file_get for parents and webContentLink.\"\n },\n {\n \"path\": \"data.nextPageToken\",\n \"type\": \"string\",\n \"description\": \"Present when there is another page.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDriveFileListKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FILE_LIST_META, {\n name: GOOGLE_DRIVE_FILE_LIST_KIND,\n aliases: [\"google_drive_file_list\"],\n label: \"List Google Drive files\",\n description: \"List files this app created (or the user explicitly opened) in Google Drive. Under the drive.file scope this connector uses, a file created by any other app or picked up in the Drive UI directly never appears here.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"none\",\n outputShape: GOOGLE_DRIVE_FILE_LIST_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"q\",\n \"label\": \"Search query\",\n \"description\": \"Drive's query syntax, e.g. \\\"mimeType='application/pdf' and trashed=false\\\". Leave blank to list everything this app can see.\"\n },\n {\n \"type\": \"number\",\n \"key\": \"pageSize\",\n \"label\": \"Page size\",\n \"min\": 1,\n \"max\": 1000,\n \"default\": 100,\n \"description\": \"Files per page. Drive's maximum is 1000.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"pageToken\",\n \"label\": \"Page token\",\n \"description\": \"From a previous page's nextPageToken.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"orderBy\",\n \"label\": \"Order by\",\n \"description\": \"A comma-separated list of Drive sort keys, e.g. \\\"modifiedTime desc\\\". Leave blank for Drive's default order.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FILE_LIST_META, config as Record<string, unknown>, \"list files\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/folder-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/folder-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive folder — Create a folder in Google Drive.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_FOLDER_KIND = \"@particle-academy/google_drive_folder\";\nexport const GOOGLE_DRIVE_FOLDER_OPERATION = \"folder_create\";\n\nexport const GOOGLE_DRIVE_FOLDER_META = googleDriveMeta(\"action\", \"create a folder\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/files/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_FOLDER_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The created folder's id.\"\n },\n {\n \"path\": \"data.name\",\n \"type\": \"string\",\n \"description\": \"The folder name Google stored.\"\n },\n {\n \"path\": \"data.mimeType\",\n \"type\": \"string\",\n \"description\": \"The fixed Google Drive folder MIME type.\"\n },\n {\n \"path\": \"data.parents\",\n \"type\": \"array\",\n \"description\": \"The parent folder id array returned by Drive.\"\n }\n];\n\nexport const googleDriveFolderKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_FOLDER_META, {\n name: GOOGLE_DRIVE_FOLDER_KIND,\n aliases: [\"google_drive_folder\"],\n label: \"Google Drive folder\",\n description: \"Create a folder in Google Drive.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_FOLDER_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"name\",\n \"label\": \"Folder name\",\n \"required\": true,\n \"description\": \"The folder name. Drive does not require names to be unique within a parent.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"parents\",\n \"label\": \"Parent folder IDs\",\n \"description\": \"Parent folder ids, comma separated. Leave empty to create the folder in My Drive.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_FOLDER_META, config as Record<string, unknown>, \"create a folder\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/permission-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/permission-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Share a Google Drive file — Grant a user, group, domain, or anyone with the\n * link access to a file.\n *\n * https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create\n *\n * `unsafe-to-replay`.\n */\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { defineConnectorKind, summarize, type OutputField } from \"@particle-academy/fancy-flow/connectors\";\nimport { googleDriveMeta } from \"../service.js\";\n\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_KIND = \"@particle-academy/google_drive_permission_create\";\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_OPERATION = \"permission_create\";\n\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_META = googleDriveMeta(\"action\", \"share a file\", \"https://developers.google.com/workspace/drive/api/reference/rest/v3/permissions/create\");\n\n/**\n * What this node emits — the \"ingredients\" a downstream node can reference.\n *\n * fancy-flow reads `outputShape` off the kind and offers it in the variable\n * picker, so declaring it is the whole of the work: an author configuring the\n * next node picks `{{ $json.data.id }}` off a list instead of typing a path\n * and hoping.\n */\nexport const GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT: OutputField[] = [\n {\n \"path\": \"data.id\",\n \"type\": \"string\",\n \"description\": \"The new permission's id.\"\n },\n {\n \"path\": \"data.type\",\n \"type\": \"string\",\n \"description\": \"Echoes what was sent.\"\n },\n {\n \"path\": \"data.role\",\n \"type\": \"string\",\n \"description\": \"Echoes what was sent.\"\n },\n {\n \"path\": \"data.emailAddress\",\n \"type\": \"string\",\n \"description\": \"Present for a user or group grant.\"\n },\n {\n \"path\": \"mode\",\n \"type\": \"string\",\n \"description\": \"Which estate this ran against. Google has no sandbox, so: fake or live.\"\n }\n];\n\nexport const googleDrivePermissionCreateKind: NodeKindDefinition = defineConnectorKind(GOOGLE_DRIVE_PERMISSION_CREATE_META, {\n name: GOOGLE_DRIVE_PERMISSION_CREATE_KIND,\n aliases: [\"google_drive_permission_create\"],\n label: \"Share a Google Drive file\",\n description: \"Grant a user, group, domain, or anyone with the link access to a file.\",\n inputs: [{ id: \"in\" }],\n outputs: [{ id: \"out\" }],\n sideEffects: \"unsafe-to-replay\",\n outputShape: GOOGLE_DRIVE_PERMISSION_CREATE_OUTPUT,\n configSchema: [\n {\n \"type\": \"text\",\n \"key\": \"fileId\",\n \"label\": \"File ID\",\n \"required\": true\n },\n {\n \"type\": \"select\",\n \"key\": \"type\",\n \"label\": \"Grantee type\",\n \"required\": true,\n \"default\": \"user\",\n \"options\": [\n {\n \"value\": \"user\",\n \"label\": \"A specific person\"\n },\n {\n \"value\": \"group\",\n \"label\": \"A Google Group\"\n },\n {\n \"value\": \"domain\",\n \"label\": \"Everyone in a domain\"\n },\n {\n \"value\": \"anyone\",\n \"label\": \"Anyone with the link\"\n }\n ]\n },\n {\n \"type\": \"select\",\n \"key\": \"role\",\n \"label\": \"Role\",\n \"required\": true,\n \"default\": \"reader\",\n \"options\": [\n {\n \"value\": \"reader\",\n \"label\": \"Reader\"\n },\n {\n \"value\": \"commenter\",\n \"label\": \"Commenter\"\n },\n {\n \"value\": \"writer\",\n \"label\": \"Writer\"\n }\n ],\n \"description\": \"organizer, fileOrganizer and owner exist in Drive's API but only apply inside a shared drive, which this action does not target.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"emailAddress\",\n \"label\": \"Email address\",\n \"description\": \"Required when the grantee type is a person or a Google Group. Ignored for domain and anyone.\"\n },\n {\n \"type\": \"text\",\n \"key\": \"domain\",\n \"label\": \"Domain\",\n \"description\": \"Required when the grantee type is domain, e.g. example.com. Ignored otherwise.\"\n }\n ],\n defaultConfig: {\n \"mode\": \"auto\"\n },\n renderBody: ({ config }) =>\n summarize(GOOGLE_DRIVE_PERMISSION_CREATE_META, config as Record<string, unknown>, \"share a file\"),\n});\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- google_drive\n */\n\n/**\n * Google Drive's node kinds for fancy-flow.\n *\n * Install this on every host. The TypeScript executors live in the js\n * package's `./flow` subpath; PHP and Python hosts run their own and need only\n * this.\n */\n\nexport * from \"./service.js\";\nexport * from \"./kinds/file-get.js\";\nexport * from \"./kinds/file-list.js\";\nexport * from \"./kinds/folder-create.js\";\nexport * from \"./kinds/permission-create.js\";\n\nimport type { NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport { googleDriveFileGetKind } from \"./kinds/file-get.js\";\nimport { googleDriveFileListKind } from \"./kinds/file-list.js\";\nimport { googleDriveFolderKind } from \"./kinds/folder-create.js\";\nimport { googleDrivePermissionCreateKind } from \"./kinds/permission-create.js\";\n\n/** Every Google Drive kind, for a host that registers the lot. */\nexport const GOOGLE_DRIVE_KINDS: NodeKindDefinition[] = [\n googleDriveFileGetKind,\n googleDriveFileListKind,\n googleDriveFolderKind,\n googleDrivePermissionCreateKind,\n];\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-academy/google-drive-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Google Drive's authoring surface for fancy-flow — the node kinds, their config schemas and their declared output shapes. React on every host; carries no executor.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
|
+
"art",
|
|
31
32
|
"README.md",
|
|
32
33
|
"CHANGELOG.md",
|
|
33
34
|
"LICENSE"
|