n8n-nodes-frameio-v4 0.1.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.
Files changed (54) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +128 -0
  3. package/dist/credentials/FrameIoV4LegacyTokenApi.credentials.d.ts +10 -0
  4. package/dist/credentials/FrameIoV4LegacyTokenApi.credentials.js +45 -0
  5. package/dist/credentials/FrameIoV4LegacyTokenApi.credentials.js.map +1 -0
  6. package/dist/credentials/FrameIoV4OAuth2Api.credentials.d.ts +9 -0
  7. package/dist/credentials/FrameIoV4OAuth2Api.credentials.js +54 -0
  8. package/dist/credentials/FrameIoV4OAuth2Api.credentials.js.map +1 -0
  9. package/dist/credentials/FrameIoV4ServerToServerApi.credentials.d.ts +13 -0
  10. package/dist/credentials/FrameIoV4ServerToServerApi.credentials.js +82 -0
  11. package/dist/credentials/FrameIoV4ServerToServerApi.credentials.js.map +1 -0
  12. package/dist/icons/frameio.dark.svg +5 -0
  13. package/dist/icons/frameio.svg +5 -0
  14. package/dist/nodes/FrameIoV4/FrameIoV4.node.d.ts +13 -0
  15. package/dist/nodes/FrameIoV4/FrameIoV4.node.js +672 -0
  16. package/dist/nodes/FrameIoV4/FrameIoV4.node.js.map +1 -0
  17. package/dist/nodes/FrameIoV4/FrameIoV4.node.json +18 -0
  18. package/dist/nodes/FrameIoV4/GenericFunctions.d.ts +14 -0
  19. package/dist/nodes/FrameIoV4/GenericFunctions.js +156 -0
  20. package/dist/nodes/FrameIoV4/GenericFunctions.js.map +1 -0
  21. package/dist/nodes/FrameIoV4/descriptions/AccountDescription.d.ts +3 -0
  22. package/dist/nodes/FrameIoV4/descriptions/AccountDescription.js +86 -0
  23. package/dist/nodes/FrameIoV4/descriptions/AccountDescription.js.map +1 -0
  24. package/dist/nodes/FrameIoV4/descriptions/CommentDescription.d.ts +3 -0
  25. package/dist/nodes/FrameIoV4/descriptions/CommentDescription.js +337 -0
  26. package/dist/nodes/FrameIoV4/descriptions/CommentDescription.js.map +1 -0
  27. package/dist/nodes/FrameIoV4/descriptions/FileDescription.d.ts +3 -0
  28. package/dist/nodes/FrameIoV4/descriptions/FileDescription.js +464 -0
  29. package/dist/nodes/FrameIoV4/descriptions/FileDescription.js.map +1 -0
  30. package/dist/nodes/FrameIoV4/descriptions/FolderDescription.d.ts +3 -0
  31. package/dist/nodes/FrameIoV4/descriptions/FolderDescription.js +218 -0
  32. package/dist/nodes/FrameIoV4/descriptions/FolderDescription.js.map +1 -0
  33. package/dist/nodes/FrameIoV4/descriptions/ProjectDescription.d.ts +3 -0
  34. package/dist/nodes/FrameIoV4/descriptions/ProjectDescription.js +250 -0
  35. package/dist/nodes/FrameIoV4/descriptions/ProjectDescription.js.map +1 -0
  36. package/dist/nodes/FrameIoV4/descriptions/ShareDescription.d.ts +3 -0
  37. package/dist/nodes/FrameIoV4/descriptions/ShareDescription.js +342 -0
  38. package/dist/nodes/FrameIoV4/descriptions/ShareDescription.js.map +1 -0
  39. package/dist/nodes/FrameIoV4/descriptions/UserDescription.d.ts +3 -0
  40. package/dist/nodes/FrameIoV4/descriptions/UserDescription.js +27 -0
  41. package/dist/nodes/FrameIoV4/descriptions/UserDescription.js.map +1 -0
  42. package/dist/nodes/FrameIoV4/descriptions/VersionStackDescription.d.ts +3 -0
  43. package/dist/nodes/FrameIoV4/descriptions/VersionStackDescription.js +153 -0
  44. package/dist/nodes/FrameIoV4/descriptions/VersionStackDescription.js.map +1 -0
  45. package/dist/nodes/FrameIoV4/descriptions/WorkspaceDescription.d.ts +3 -0
  46. package/dist/nodes/FrameIoV4/descriptions/WorkspaceDescription.js +185 -0
  47. package/dist/nodes/FrameIoV4/descriptions/WorkspaceDescription.js.map +1 -0
  48. package/dist/nodes/FrameIoV4Trigger/FrameIoV4Trigger.node.d.ts +19 -0
  49. package/dist/nodes/FrameIoV4Trigger/FrameIoV4Trigger.node.js +335 -0
  50. package/dist/nodes/FrameIoV4Trigger/FrameIoV4Trigger.node.js.map +1 -0
  51. package/dist/nodes/FrameIoV4Trigger/FrameIoV4Trigger.node.json +18 -0
  52. package/dist/package.json +60 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -0
  54. package/package.json +60 -0
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Picture Element / Ben Gosciniak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # n8n-nodes-frameio-v4
2
+
3
+ This is an n8n community node package for the **[Frame.io](https://frame.io) V4 API** (Adobe). It lets you automate Frame.io — the cloud-based video review and collaboration platform — natively from your [n8n](https://n8n.io) workflows, similar to the official Frame.io V4 apps for Zapier and Make.
4
+
5
+ It ships two nodes:
6
+
7
+ - **Frame.io V4** — actions on accounts, workspaces, projects, folders, files (including uploads and downloads), comments, shares and version stacks
8
+ - **Frame.io V4 Trigger** — starts workflows on any of the 30 Frame.io V4 webhook events, with HMAC signature verification
9
+
10
+ > ⚠️ This package targets the **V4 API** (`api.frame.io/v4`) used by Frame.io V4 accounts signed in with an Adobe ID. It does not work with legacy Frame.io (V2/V3 API) accounts.
11
+
12
+ [Installation](#installation) · [Credentials](#credentials) · [Nodes & operations](#nodes--operations) · [Usage examples](#usage-examples) · [Limitations](#known-limitations) · [Resources](#resources)
13
+
14
+ ## Installation
15
+
16
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
17
+
18
+ **Self-hosted n8n:** go to **Settings > Community Nodes > Install**, enter `n8n-nodes-frameio-v4` and confirm.
19
+
20
+ **Requirements:** n8n version 1.0 or above. To use the action node as a tool for AI Agents on self-hosted n8n, set the environment variable `N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true`.
21
+
22
+ ## Credentials
23
+
24
+ The nodes support three authentication methods. **OAuth2** is the right choice for most users.
25
+
26
+ ### 1. OAuth2 (recommended)
27
+
28
+ Frame.io V4 authenticates through Adobe IMS. You need a (free) integration in the Adobe Developer Console:
29
+
30
+ 1. Go to the [Adobe Developer Console](https://developer.adobe.com/console) and sign in with the Adobe ID linked to your Frame.io V4 account.
31
+ 2. Create a new **Project**.
32
+ 3. **Add API** → select the **Frame.io API**.
33
+ 4. Choose the **OAuth Web App** credential type.
34
+ 5. Set the **Default Redirect URI** and **Redirect URI pattern** to your n8n OAuth callback URL, shown in the n8n credential dialog (e.g. `https://<your-n8n-host>/rest/oauth2-credential/callback`). Adobe requires HTTPS.
35
+ 6. Copy the **Client ID** and **Client Secret** into a new **Frame.io V4 OAuth2 API** credential in n8n, then click **Connect my account**.
36
+
37
+ Notes:
38
+
39
+ - The default scopes (`openid email profile offline_access additional_info.roles`) are pre-configured; `offline_access` is required so n8n can refresh tokens automatically.
40
+ - Adobe refresh tokens expire after ~14 days of inactivity; n8n refreshes them on use, so regularly running workflows stay connected.
41
+
42
+ ### 2. Server-to-Server (Enterprise)
43
+
44
+ For Frame.io V4 accounts **administered via the Adobe Admin Console** (Enterprise), you can use Adobe IMS client credentials — no user login, tokens are fetched automatically:
45
+
46
+ 1. In the [Adobe Admin Console](https://adminconsole.adobe.com), make sure your user has a Developer role and the **Frame.io S2S API** product assigned.
47
+ 2. In the Adobe Developer Console, create a **new** project → Add API → Frame.io API → **Server-to-Server Authentication**. (S2S cannot be added to an existing project — create a fresh one.)
48
+ 3. Copy the Client ID and Client Secret into a **Frame.io V4 Server-to-Server API** credential in n8n.
49
+
50
+ The connection acts as a "Service Account User" in Frame.io.
51
+
52
+ ### 3. Legacy Developer Token (transitional)
53
+
54
+ V4-migrated accounts that are **not yet** administered via the Adobe Admin Console can use a legacy developer token from [developer.frame.io/app/tokens](https://developer.frame.io/app/tokens). Create a **Frame.io V4 Legacy Token API** credential with the token. This is a transitional mechanism — prefer OAuth2.
55
+
56
+ > 💡 All three credentials can also be used with n8n's generic **HTTP Request** node (predefined credential type) to call any Frame.io V4 endpoint this package doesn't cover.
57
+
58
+ ## Nodes & operations
59
+
60
+ ### Frame.io V4 (actions)
61
+
62
+ | Resource | Operations |
63
+ |---|---|
64
+ | Account | Get Many |
65
+ | Comment | Create, Delete, Get, Get Many, Update |
66
+ | File | Copy, Delete, Download, Get, Get Many, Get Upload Status, Move, Update, Upload |
67
+ | Folder | Create, Delete, Get, Get Many (list contents), Update |
68
+ | Project | Create, Delete, Get, Get Many, Update |
69
+ | Share | Add Asset, Create, Delete, Get, Get Many, Remove Asset, Update |
70
+ | User | Get Current User |
71
+ | Version Stack | Create, Get, Get Children, Get Many |
72
+ | Workspace | Create, Delete, Get, Get Many, Update |
73
+
74
+ Highlights:
75
+
76
+ - **File > Upload** supports both **binary data** from a previous node (multi-part upload to Frame.io storage) and **from URL** (Frame.io downloads it server-side, max 50 GB). An option lets you wait until the upload is fully processed.
77
+ - **File > Download** outputs binary data and lets you pick the rendition: original, high quality, efficient, thumbnails, H.264 180p or scrub sheet.
78
+ - **File > Move** into a version stack adds the file as a new version.
79
+ - **Comment > Create/Update** support timestamps as frame numbers or `HH:MM:SS:FF` timecodes, annotations, durations and PDF pages.
80
+ - Account, workspace and project pickers are searchable dropdowns (with expression support for dynamic IDs).
81
+ - The folder hierarchy starts at a project's `root_folder_id`, returned by **Project > Get**.
82
+
83
+ ### Frame.io V4 Trigger
84
+
85
+ Registers a webhook on the selected **workspace** and fires on the events you choose — all 30 V4 events are available, including:
86
+
87
+ `file.created`, `file.ready`, `file.upload.completed`, `file.versioned`, `comment.created`, `comment.completed`, `project.created`, `share.viewed`, `metadata.value.updated`, …
88
+
89
+ Options:
90
+
91
+ - **Resolve Data** (default on): Frame.io webhook payloads only contain IDs; the trigger automatically fetches the full resource (file, comment, project, …) and adds it as `resource_data`.
92
+ - **Verify Signature** (default on): validates the `X-Frameio-Signature` HMAC-SHA256 header and rejects deliveries older than 5 minutes.
93
+
94
+ ## Usage examples
95
+
96
+ **Post to Slack when a video is ready for review**
97
+
98
+ 1. *Frame.io V4 Trigger* — event `file.ready`, Resolve Data on
99
+ 2. *Slack* — post `{{$json.resource_data.name}}` and `{{$json.resource_data.view_url}}`
100
+
101
+ **Upload render outputs and share them**
102
+
103
+ 1. *(any node producing binary data, e.g. HTTP Request / FTP)*
104
+ 2. *Frame.io V4* — File > Upload (Binary Data, Wait for Upload on)
105
+ 3. *Frame.io V4* — Share > Create with `asset_ids` = `{{$json.id}}`
106
+
107
+ **Log every new comment to a Google Sheet**
108
+
109
+ 1. *Frame.io V4 Trigger* — event `comment.created`
110
+ 2. *Google Sheets* — append `{{$json.resource_data.text}}`, `{{$json.resource_data.timestamp}}`
111
+
112
+ ## Known limitations
113
+
114
+ - **Comment replies cannot be created** — the V4 API doesn't expose reply creation yet (replies are readable via the *Include > Replies* option on Comment > Get/Get Many).
115
+ - Shares only support the V4 `asset` type with `public`/`secure` access (V2-style review links/presentations don't exist in V4).
116
+ - Some write endpoints are rate-limited by Frame.io to 10 calls/min per user — large loops may hit HTTP 429.
117
+ - Webhook events fire for **all projects of the selected workspace**; filter by `project.id` in your workflow if needed.
118
+
119
+ ## Resources
120
+
121
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
122
+ - [Frame.io V4 developer documentation](https://next.developer.frame.io/)
123
+ - [Frame.io V4 API reference](https://next.developer.frame.io/platform/api-reference)
124
+ - [Adobe Developer Console](https://developer.adobe.com/console)
125
+
126
+ ## License
127
+
128
+ [MIT](LICENSE.md)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class FrameIoV4LegacyTokenApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: Icon;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FrameIoV4LegacyTokenApi = void 0;
4
+ class FrameIoV4LegacyTokenApi {
5
+ constructor() {
6
+ this.name = 'frameIoV4LegacyTokenApi';
7
+ this.displayName = 'Frame.io V4 Legacy Token API';
8
+ this.documentationUrl = 'https://github.com/Picture-Element/n8n-nodes-frameio-v4?tab=readme-ov-file#credentials';
9
+ this.icon = { light: 'file:../icons/frameio.svg', dark: 'file:../icons/frameio.dark.svg' };
10
+ this.properties = [
11
+ {
12
+ displayName: 'Legacy developer tokens only work for V4-migrated Frame.io accounts that are not yet administered via the Adobe Admin Console. They are a transitional mechanism — prefer OAuth2 when possible.',
13
+ name: 'notice',
14
+ type: 'notice',
15
+ default: '',
16
+ },
17
+ {
18
+ displayName: 'Developer Token',
19
+ name: 'token',
20
+ type: 'string',
21
+ typeOptions: { password: true },
22
+ required: true,
23
+ default: '',
24
+ description: 'Legacy developer token created at https://developer.frame.io/app/tokens',
25
+ },
26
+ ];
27
+ this.authenticate = {
28
+ type: 'generic',
29
+ properties: {
30
+ headers: {
31
+ Authorization: '=Bearer {{$credentials.token}}',
32
+ 'x-frameio-legacy-token-auth': 'true',
33
+ },
34
+ },
35
+ };
36
+ this.test = {
37
+ request: {
38
+ baseURL: 'https://api.frame.io',
39
+ url: '/v4/me',
40
+ },
41
+ };
42
+ }
43
+ }
44
+ exports.FrameIoV4LegacyTokenApi = FrameIoV4LegacyTokenApi;
45
+ //# sourceMappingURL=FrameIoV4LegacyTokenApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameIoV4LegacyTokenApi.credentials.js","sourceRoot":"","sources":["../../credentials/FrameIoV4LegacyTokenApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,uBAAuB;IAApC;QACC,SAAI,GAAG,yBAAyB,CAAC;QAEjC,gBAAW,GAAG,8BAA8B,CAAC;QAE7C,qBAAgB,GACf,wFAAwF,CAAC;QAE1F,SAAI,GAAS,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;QAE5F,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,iMAAiM;gBAC9M,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,yEAAyE;aAC1E;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,gCAAgC;oBAC/C,6BAA6B,EAAE,MAAM;iBACrC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sBAAsB;gBAC/B,GAAG,EAAE,QAAQ;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,0DA6CC"}
@@ -0,0 +1,9 @@
1
+ import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class FrameIoV4OAuth2Api implements ICredentialType {
3
+ name: string;
4
+ extends: string[];
5
+ displayName: string;
6
+ documentationUrl: string;
7
+ icon: Icon;
8
+ properties: INodeProperties[];
9
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FrameIoV4OAuth2Api = void 0;
4
+ class FrameIoV4OAuth2Api {
5
+ constructor() {
6
+ this.name = 'frameIoV4OAuth2Api';
7
+ this.extends = ['oAuth2Api'];
8
+ this.displayName = 'Frame.io V4 OAuth2 API';
9
+ this.documentationUrl = 'https://github.com/Picture-Element/n8n-nodes-frameio-v4?tab=readme-ov-file#credentials';
10
+ this.icon = { light: 'file:../icons/frameio.svg', dark: 'file:../icons/frameio.dark.svg' };
11
+ this.properties = [
12
+ {
13
+ displayName: 'Grant Type',
14
+ name: 'grantType',
15
+ type: 'hidden',
16
+ default: 'authorizationCode',
17
+ },
18
+ {
19
+ displayName: 'Authorization URL',
20
+ name: 'authUrl',
21
+ type: 'hidden',
22
+ default: 'https://ims-na1.adobelogin.com/ims/authorize/v2',
23
+ required: true,
24
+ },
25
+ {
26
+ displayName: 'Access Token URL',
27
+ name: 'accessTokenUrl',
28
+ type: 'hidden',
29
+ default: 'https://ims-na1.adobelogin.com/ims/token/v3',
30
+ required: true,
31
+ },
32
+ {
33
+ displayName: 'Scope',
34
+ name: 'scope',
35
+ type: 'hidden',
36
+ default: 'openid email profile offline_access additional_info.roles',
37
+ },
38
+ {
39
+ displayName: 'Auth URI Query Parameters',
40
+ name: 'authQueryParameters',
41
+ type: 'hidden',
42
+ default: '',
43
+ },
44
+ {
45
+ displayName: 'Authentication',
46
+ name: 'authentication',
47
+ type: 'hidden',
48
+ default: 'header',
49
+ },
50
+ ];
51
+ }
52
+ }
53
+ exports.FrameIoV4OAuth2Api = FrameIoV4OAuth2Api;
54
+ //# sourceMappingURL=FrameIoV4OAuth2Api.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameIoV4OAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/FrameIoV4OAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAA/B;QACC,SAAI,GAAG,oBAAoB,CAAC;QAE5B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,wBAAwB,CAAC;QAEvC,qBAAgB,GACf,wFAAwF,CAAC;QAE1F,SAAI,GAAS,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;QAE5F,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,iDAAiD;gBAC1D,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2DAA2D;aACpE;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AApDD,gDAoDC"}
@@ -0,0 +1,13 @@
1
+ import type { IAuthenticateGeneric, ICredentialDataDecryptedObject, ICredentialTestRequest, ICredentialType, IHttpRequestHelper, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class FrameIoV4ServerToServerApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: Icon;
7
+ properties: INodeProperties[];
8
+ preAuthentication(this: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject): Promise<{
9
+ sessionToken: string;
10
+ }>;
11
+ authenticate: IAuthenticateGeneric;
12
+ test: ICredentialTestRequest;
13
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FrameIoV4ServerToServerApi = void 0;
4
+ class FrameIoV4ServerToServerApi {
5
+ constructor() {
6
+ this.name = 'frameIoV4ServerToServerApi';
7
+ this.displayName = 'Frame.io V4 Server-to-Server API';
8
+ this.documentationUrl = 'https://github.com/Picture-Element/n8n-nodes-frameio-v4?tab=readme-ov-file#credentials';
9
+ this.icon = { light: 'file:../icons/frameio.svg', dark: 'file:../icons/frameio.dark.svg' };
10
+ this.properties = [
11
+ {
12
+ displayName: 'Session Token',
13
+ name: 'sessionToken',
14
+ type: 'hidden',
15
+ typeOptions: {
16
+ expirable: true,
17
+ password: true,
18
+ },
19
+ default: '',
20
+ },
21
+ {
22
+ displayName: 'Server-to-Server authentication is only available for Frame.io V4 accounts administered via the Adobe Admin Console (Enterprise). Create a Server-to-Server credential in the Adobe Developer Console with the Frame.io API added to the project.',
23
+ name: 'notice',
24
+ type: 'notice',
25
+ default: '',
26
+ },
27
+ {
28
+ displayName: 'Client ID',
29
+ name: 'clientId',
30
+ type: 'string',
31
+ required: true,
32
+ default: '',
33
+ },
34
+ {
35
+ displayName: 'Client Secret',
36
+ name: 'clientSecret',
37
+ type: 'string',
38
+ typeOptions: { password: true },
39
+ required: true,
40
+ default: '',
41
+ },
42
+ {
43
+ displayName: 'Scope',
44
+ name: 'scope',
45
+ type: 'string',
46
+ default: 'openid,AdobeID,frame.s2s.all',
47
+ description: 'Comma-separated list of Adobe IMS scopes requested for the access token',
48
+ },
49
+ ];
50
+ this.authenticate = {
51
+ type: 'generic',
52
+ properties: {
53
+ headers: {
54
+ Authorization: '=Bearer {{$credentials.sessionToken}}',
55
+ },
56
+ },
57
+ };
58
+ this.test = {
59
+ request: {
60
+ baseURL: 'https://api.frame.io',
61
+ url: '/v4/me',
62
+ },
63
+ };
64
+ }
65
+ async preAuthentication(credentials) {
66
+ const body = new URLSearchParams({
67
+ client_id: credentials.clientId,
68
+ client_secret: credentials.clientSecret,
69
+ grant_type: 'client_credentials',
70
+ scope: credentials.scope || 'openid,AdobeID,frame.s2s.all',
71
+ });
72
+ const response = (await this.helpers.httpRequest({
73
+ method: 'POST',
74
+ url: 'https://ims-na1.adobelogin.com/ims/token/v3',
75
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
76
+ body: body.toString(),
77
+ }));
78
+ return { sessionToken: response.access_token };
79
+ }
80
+ }
81
+ exports.FrameIoV4ServerToServerApi = FrameIoV4ServerToServerApi;
82
+ //# sourceMappingURL=FrameIoV4ServerToServerApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrameIoV4ServerToServerApi.credentials.js","sourceRoot":"","sources":["../../credentials/FrameIoV4ServerToServerApi.credentials.ts"],"names":[],"mappings":";;;AAUA,MAAa,0BAA0B;IAAvC;QACC,SAAI,GAAG,4BAA4B,CAAC;QAEpC,gBAAW,GAAG,kCAAkC,CAAC;QAEjD,qBAAgB,GACf,wFAAwF,CAAC;QAE1F,SAAI,GAAS,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;QAE5F,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,SAAS,EAAE,IAAI;oBACf,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,mPAAmP;gBAChQ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,8BAA8B;gBACvC,WAAW,EAAE,yEAAyE;aACtF;SACD,CAAC;QAkBF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,uCAAuC;iBACtD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sBAAsB;gBAC/B,GAAG,EAAE,QAAQ;aACb;SACD,CAAC;IACH,CAAC;IA/BA,KAAK,CAAC,iBAAiB,CAA2B,WAA2C;QAC5F,MAAM,IAAI,GAAG,IAAI,eAAe,CAAC;YAChC,SAAS,EAAE,WAAW,CAAC,QAAkB;YACzC,aAAa,EAAE,WAAW,CAAC,YAAsB;YACjD,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAG,WAAW,CAAC,KAAgB,IAAI,8BAA8B;SACtE,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YAChD,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,6CAA6C;YAClD,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE;SACrB,CAAC,CAA6B,CAAC;QAChC,OAAO,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE,CAAC;IAChD,CAAC;CAiBD;AAlFD,gEAkFC"}
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60">
2
+ <rect width="60" height="60" rx="12" fill="#6C63FF"/>
3
+ <rect x="13" y="13" width="23" height="23" rx="5" fill="none" stroke="#FFFFFF" stroke-width="4.5"/>
4
+ <rect x="24" y="24" width="23" height="23" rx="5" fill="none" stroke="#FFFFFF" stroke-width="4.5"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60">
2
+ <rect width="60" height="60" rx="12" fill="#4E46E5"/>
3
+ <rect x="13" y="13" width="23" height="23" rx="5" fill="none" stroke="#FFFFFF" stroke-width="4.5"/>
4
+ <rect x="24" y="24" width="23" height="23" rx="5" fill="none" stroke="#FFFFFF" stroke-width="4.5"/>
5
+ </svg>
@@ -0,0 +1,13 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ import { getAccounts, getProjects, getWorkspaces } from './GenericFunctions';
3
+ export declare class FrameIoV4 implements INodeType {
4
+ description: INodeTypeDescription;
5
+ methods: {
6
+ loadOptions: {
7
+ getAccounts: typeof getAccounts;
8
+ getWorkspaces: typeof getWorkspaces;
9
+ getProjects: typeof getProjects;
10
+ };
11
+ };
12
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
13
+ }