n8n-nodes-postory 0.0.0-stage → 1.0.5

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 (31) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +83 -2
  3. package/dist/credentials/PostoryApi.credentials.d.ts +10 -0
  4. package/dist/credentials/PostoryApi.credentials.js +47 -0
  5. package/dist/credentials/PostoryApi.credentials.js.map +1 -0
  6. package/dist/credentials/postory.dark.svg +10 -0
  7. package/dist/credentials/postory.svg +10 -0
  8. package/dist/nodes/Postory/GenericFunctions.d.ts +17 -0
  9. package/dist/nodes/Postory/GenericFunctions.js +215 -0
  10. package/dist/nodes/Postory/GenericFunctions.js.map +1 -0
  11. package/dist/nodes/Postory/Postory.node.d.ts +13 -0
  12. package/dist/nodes/Postory/Postory.node.js +362 -0
  13. package/dist/nodes/Postory/Postory.node.js.map +1 -0
  14. package/dist/nodes/Postory/Postory.node.json +10 -0
  15. package/dist/nodes/Postory/PostoryDescription.d.ts +4 -0
  16. package/dist/nodes/Postory/PostoryDescription.js +589 -0
  17. package/dist/nodes/Postory/PostoryDescription.js.map +1 -0
  18. package/dist/nodes/Postory/postory.dark.svg +10 -0
  19. package/dist/nodes/Postory/postory.svg +10 -0
  20. package/dist/nodes/Postory/version.d.ts +1 -0
  21. package/dist/nodes/Postory/version.js +5 -0
  22. package/dist/nodes/Postory/version.js.map +1 -0
  23. package/dist/nodes/PostoryTrigger/PostoryTrigger.node.d.ts +19 -0
  24. package/dist/nodes/PostoryTrigger/PostoryTrigger.node.js +145 -0
  25. package/dist/nodes/PostoryTrigger/PostoryTrigger.node.js.map +1 -0
  26. package/dist/nodes/PostoryTrigger/PostoryTrigger.node.json +10 -0
  27. package/dist/nodes/PostoryTrigger/postory.dark.svg +10 -0
  28. package/dist/nodes/PostoryTrigger/postory.svg +10 -0
  29. package/dist/package.json +67 -0
  30. package/dist/tsconfig.tsbuildinfo +1 -0
  31. package/package.json +65 -4
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Postory
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 CHANGED
@@ -1,3 +1,84 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-postory
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The official [Postory](https://postory.io) nodes for [n8n](https://n8n.io/). Postory is an AI social media studio:
4
+ create standout content with AI and publish it to every social network you connect.
5
+
6
+ With these nodes a workflow can write posts with Postory AI, generate images and videos, schedule or publish posts
7
+ to your connected accounts, upload media, follow each delivery, read post stats and answer replies — and start a
8
+ workflow when a post is published or fails, or when someone replies.
9
+
10
+ [Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) · [Trigger](#postory-trigger) ·
11
+ [Examples](#examples) · [Notes](#notes) · [Resources](#resources)
12
+
13
+ ## Installation
14
+
15
+ In n8n open **Settings → Community nodes → Install** and enter `n8n-nodes-postory`. Self-hosted n8n can also follow the
16
+ [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/).
17
+
18
+ ## Credentials
19
+
20
+ 1. Sign in at [postory.io](https://postory.io) and connect your social accounts on **Channels**.
21
+ 2. Open **Settings → API keys** and create a key (it starts with `pst_`).
22
+ 3. In n8n create a **Postory API** credential and paste the key. Leave **Base URL** as `https://postory.io`.
23
+
24
+ Publishing through the API uses your Postory plan and credits; paid AI work (posts, images, videos) is charged in
25
+ credits at the same prices as in the app.
26
+
27
+ ## Operations
28
+
29
+ The networks and accounts you can pick are read from Postory live, so a network Postory adds shows up here without a
30
+ node update.
31
+
32
+ | Resource | Operations |
33
+ | --- | --- |
34
+ | Account | Get Many (your connected accounts), Get Networks, Get Connect Link |
35
+ | Post | Create (draft, schedule, next free slot or publish now), Get, Get Many, Update, Schedule, Publish Now, Archive |
36
+ | Media | Upload (a file from a previous node), Attach From URL |
37
+ | Delivery | Get Many, Get Status, Cancel, Reschedule |
38
+ | AI | Generate Post, Generate Image, Generate Video, Get Generation, Format Text |
39
+ | Analytics | Get Post Stats, Get Performance |
40
+ | Reply | Get Replies to Answer, Answer |
41
+
42
+ - **Create** takes one text for every account, or a separate text per account (**Per-Account Texts**). Split a thread with a
43
+ line of `---` between posts and turn on **Thread**.
44
+ - **Publish Now** checks the post first. When your settings ask you to approve publishing in the browser, the node
45
+ returns `needs_approval` with an `approval_url` instead of publishing.
46
+ - **AI** operations wait for the result up to a timeout you set; if it runs longer, the node returns the generation
47
+ ID for **Get Generation**. Images and videos are quoted first, and **Max Credits** stops one that costs more.
48
+ - Every write sends an `Idempotency-Key`, so a retried item does not make a second post.
49
+ - The node can be used as a tool by n8n's **AI Agent**.
50
+
51
+ ## Postory Trigger
52
+
53
+ Pick the events (Post Published, Post Failed, Post Scheduled, Reply Received, Import Completed) and, if you like,
54
+ the accounts. When the workflow is activated the trigger registers a Postory webhook and removes it when the workflow
55
+ is deactivated. Each event is checked against its signature before the workflow runs.
56
+
57
+ Postory delivers webhooks only to a public `https` address: a local n8n needs a tunnel (or use n8n Cloud). Each active
58
+ Postory Trigger uses one of your 10 webhooks.
59
+
60
+ ## Examples
61
+
62
+ - **RSS to social:** RSS Feed Trigger → Postory *AI → Generate Post* (the article as source text) → Postory *Post →
63
+ Create* with mode *Next Free Slot*.
64
+ - **Content calendar in Google Sheets:** Schedule Trigger → Google Sheets (rows due today) → Postory *Post → Create*
65
+ with mode *Schedule* and media URLs → Google Sheets (mark as scheduled).
66
+ - **Failure alerts:** Postory Trigger (*Post Failed*) → Slack or Telegram message with the error and the post link.
67
+
68
+ Ready-made templates: [postory.io/integrations/n8n](https://postory.io/integrations/n8n).
69
+
70
+ ## Notes
71
+
72
+ - Errors carry Postory's code: out of credits (with a link to buy more), posting too often (with the next allowed
73
+ time) and rate limits are explained in the error message.
74
+ - The API reference is at [postory.io/docs/api](https://postory.io/docs/api).
75
+
76
+ ## Resources
77
+
78
+ - [Postory](https://postory.io)
79
+ - [Postory API docs](https://postory.io/docs/api)
80
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
81
+
82
+ ## Version history
83
+
84
+ See [CHANGELOG.md](CHANGELOG.md).
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PostoryApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostoryApi = void 0;
4
+ class PostoryApi {
5
+ constructor() {
6
+ this.name = 'postoryApi';
7
+ this.displayName = 'Postory API';
8
+ this.icon = { light: 'file:postory.svg', dark: 'file:postory.dark.svg' };
9
+ this.documentationUrl = 'https://postory.io/docs/api/authentication';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Key',
13
+ name: 'apiKey',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ required: true,
18
+ placeholder: 'pst_...',
19
+ description: 'Create one in Postory → Settings → API keys',
20
+ },
21
+ {
22
+ displayName: 'Base URL',
23
+ name: 'baseUrl',
24
+ type: 'string',
25
+ default: 'https://postory.io',
26
+ description: 'Leave as is unless Postory support gave you another address',
27
+ },
28
+ ];
29
+ this.authenticate = {
30
+ type: 'generic',
31
+ properties: {
32
+ headers: {
33
+ Authorization: '=Bearer {{$credentials.apiKey}}',
34
+ },
35
+ },
36
+ };
37
+ this.test = {
38
+ request: {
39
+ baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}/api/v1',
40
+ url: '/me',
41
+ method: 'GET',
42
+ },
43
+ };
44
+ }
45
+ }
46
+ exports.PostoryApi = PostoryApi;
47
+ //# sourceMappingURL=PostoryApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostoryApi.credentials.js","sourceRoot":"","sources":["../../credentials/PostoryApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC;QAE1E,qBAAgB,GAAG,4CAA4C,CAAC;QAEhE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,SAAS;gBACtB,WAAW,EAAE,6CAA6C;aAC1D;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,6DAA6D;aAC1E;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sDAAsD;gBAC/D,GAAG,EAAE,KAAK;gBACV,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,gCA6CC"}
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000" viewBox="0 0 1000 1000"><g class="fav-l"><defs><clipPath id="fav-l-clip"><rect width="1000" height="1000" rx="275"/></clipPath></defs><g clip-path="url(#fav-l-clip)"><rect width="1000" height="1000" fill="#c6f24e"/><svg xmlns="http://www.w3.org/2000/svg" class="fav-l-root" x="170" y="170" width="660" height="660" viewBox="-174.297 -3.807 320.082 475.709" preserveAspectRatio="xMidYMid meet" overflow="visible">
2
+
3
+ <mask id="fav-l-nib" maskUnits="userSpaceOnUse" x="-180" y="-10" width="335" height="490">
4
+ <rect x="-180" y="-10" width="335" height="490" fill="#fff"/>
5
+ <path d="M-116 318 L-100.5 344.65 L-104 351.5 L-111.5 374.5 L-111.5 480 L-121 480 L-121 367 L-125.5 355.5 L-131.5 346.3 Z" fill="#000"/>
6
+ </mask>
7
+ <path d="M0 0 C1.01621304 0.02415387 1.01621304 0.02415387 2.05295563 0.0487957 C15.06208478 0.37965012 28.32468106 1.4557636 41.015625 4.46484375 C41.7583667 4.63806152 42.5011084 4.8112793 43.26635742 4.98974609 C45.50075983 5.52429212 47.72764447 6.08187555 49.953125 6.65234375 C50.61634766 6.82072754 51.27957031 6.98911133 51.96289062 7.16259766 C69.2407219 11.69043133 85.8771286 19.65840798 99.953125 30.65234375 C100.73937256 31.26360107 100.73937256 31.26360107 101.54150391 31.88720703 C123.7270086 49.28091041 136.4404133 72.46883745 141.5625 99.91796875 C144.67221585 129.64685223 139.72576321 158.70946666 121.203125 182.77734375 C113.49751062 191.94853577 105.20072477 200.35418389 94.953125 206.65234375 C93.89480469 207.30847656 92.83648438 207.96460938 91.74609375 208.640625 C55.21374753 230.69111847 8.12510789 234.84044584 -32.8515625 224.73828125 C-34.25073819 224.37916603 -35.64917454 224.01715847 -37.046875 223.65234375 C-37.78067383 223.46317383 -38.51447266 223.27400391 -39.27050781 223.07910156 C-43.53973449 221.97379408 -47.79713788 220.83073693 -52.046875 219.65234375 C-52.046875 218.66234375 -52.046875 217.67234375 -52.046875 216.65234375 C-50.78423828 216.61367188 -50.78423828 216.61367188 -49.49609375 216.57421875 C-21.72005446 215.30511623 6.63814642 210.45331121 31.953125 198.65234375 C32.5630127 198.3780957 33.17290039 198.10384766 33.80126953 197.82128906 C57.20566692 187.26376785 76.06744844 169.64319296 85.953125 145.65234375 C88.5384504 138.12838393 90.62043739 130.62298443 90.953125 122.65234375 C91.0046875 121.77707031 91.05625 120.90179688 91.109375 120 C91.75858473 99.84744809 84.76215935 81.87762628 71.828125 66.52734375 C60.05823959 54.00450271 43.86545898 46.22481887 27.453125 41.77734375 C26.75558105 41.58624023 26.05803711 41.39513672 25.33935547 41.19824219 C10.80148878 37.58915701 -4.19405006 37.33493149 -19.08203125 37.23828125 C-20.94104314 37.21951369 -22.80004701 37.19993642 -24.65904236 37.17959595 C-29.49043998 37.1288577 -34.32186506 37.08892494 -39.15338135 37.05145264 C-44.10817931 37.01104164 -49.06286893 36.96012106 -54.01757812 36.91015625 C-63.69393366 36.81409 -73.37035122 36.72946972 -83.046875 36.65234375 C-82.98758767 66.72510518 -82.9131243 96.79780056 -82.81788872 126.8704691 C-82.80662246 130.43220041 -82.7954837 133.99393211 -82.78442383 137.55566406 C-82.78222014 138.26465016 -82.78001646 138.97363626 -82.777746 139.70410679 C-82.74250935 151.13821815 -82.71756864 162.57232946 -82.69652798 174.00647475 C-82.67465666 185.76553299 -82.6415005 197.52452166 -82.59817344 209.28352058 C-82.57419421 215.87717043 -82.55555242 222.47076293 -82.54926109 229.06445694 C-82.54315778 235.28773714 -82.52297138 241.51082221 -82.49259949 247.73402977 C-82.48390253 250.00170594 -82.48007905 252.2694077 -82.48186684 254.53709984 C-82.49833664 285.10442495 -78.11389293 316.86914213 -62.68579102 343.85668945 C-61.85240029 346.1989091 -62.19057332 347.34284607 -63.046875 349.65234375 C-64.52208278 351.99312178 -66.02952553 354.25985672 -67.609375 356.52734375 C-75.62844226 368.32101945 -82.31697875 380.60149114 -88.046875 393.65234375 C-88.53800781 394.75191406 -89.02914062 395.85148437 -89.53515625 396.984375 C-97.26134965 415.20652925 -102.15167175 434.62809753 -106.05664062 453.98339844 C-106.27642578 455.04719727 -106.49621094 456.11099609 -106.72265625 457.20703125 C-106.90739502 458.14015137 -107.09213379 459.07327148 -107.2824707 460.03466797 C-108.14256395 462.98002721 -109.25138175 465.16602402 -111.046875 467.65234375 C-112.036875 467.98234375 -113.026875 468.31234375 -114.046875 468.65234375 C-114.046875 466.67234375 -114.046875 464.69234375 -114.046875 462.65234375 C-114.706875 462.32234375 -115.366875 461.99234375 -116.046875 461.65234375 C-115.386875 461.65234375 -114.726875 461.65234375 -114.046875 461.65234375 C-114.376875 460.99234375 -114.706875 460.33234375 -115.046875 459.65234375 C-115.12675897 456.76402081 -115.14023124 453.89984592 -115.11328125 451.01171875 C-115.10261386 448.99804902 -115.09239734 446.98437688 -115.08251953 444.97070312 C-115.07569153 443.82335693 -115.06886353 442.67601074 -115.06182861 441.49389648 C-115.04521901 437.22692378 -115.05187411 432.96033431 -115.06201172 428.69335938 C-115.07877979 421.08061935 -115.06135058 413.46850945 -115.01839256 405.85587311 C-114.99440777 401.41148872 -114.98385102 396.96786501 -115.00219727 392.5234375 C-115.01972573 388.15335468 -115.00309261 383.78458778 -114.96319771 379.41466522 C-114.95399279 377.77063004 -114.95668121 376.12647843 -114.97218132 374.48249054 C-115.05986637 364.21620712 -113.98784249 357.66317493 -107.046875 349.65234375 C-106.01713809 348.00388396 -105.00873272 346.34131015 -104.046875 344.65234375 C-104.49417969 343.96269531 -104.94148438 343.27304687 -105.40234375 342.5625 C-109.17323716 336.70113263 -112.75509102 330.79599587 -116.046875 324.65234375 C-118.90410398 328.29809372 -121.35986894 332.15757687 -123.796875 336.08984375 C-124.22097656 336.74533203 -124.64507812 337.40082031 -125.08203125 338.07617188 C-127.45330209 341.91503048 -127.45330209 341.91503048 -128.0625 346.3046875 C-126.79052656 349.24490302 -125.12930414 351.345364 -123.046875 353.77734375 C-119.53352966 357.90552452 -117.92505055 360.53102739 -117.91316223 365.9858551 C-117.90889725 366.87057495 -117.90463226 367.7552948 -117.90023804 368.66682434 C-117.90069122 369.63472397 -117.90114441 370.6026236 -117.90161133 371.59985352 C-117.89825272 372.62120392 -117.8948941 373.64255432 -117.89143372 374.69485474 C-117.88191845 378.07783212 -117.87998051 381.46076006 -117.87890625 384.84375 C-117.87569479 387.18879721 -117.87233081 389.53384421 -117.86882019 391.87889099 C-117.86282799 396.79581161 -117.86098046 401.71271465 -117.86157227 406.62963867 C-117.86167406 412.94401116 -117.84800461 419.25827164 -117.83080006 425.57261753 C-117.81970875 430.41518171 -117.81765215 435.25771853 -117.81818199 440.10029411 C-117.8169982 442.42920252 -117.81255423 444.75811156 -117.80484962 447.08700752 C-117.79510472 450.33616232 -117.79790561 453.58507015 -117.80395508 456.83422852 C-117.79833557 457.80415237 -117.79271606 458.77407623 -117.78692627 459.77339172 C-117.79112076 460.65529175 -117.79531525 461.53719177 -117.79963684 462.44581604 C-117.79909207 463.2143821 -117.79854731 463.98294817 -117.79798603 464.77480412 C-118.046875 466.65234375 -118.046875 466.65234375 -120.046875 468.65234375 C-125.38783118 463.31138757 -126.50176002 454.99681313 -127.921875 447.83984375 C-134.59573909 414.50674061 -146.9096229 375.05148948 -170.24609375 349.36328125 C-171.046875 347.65234375 -171.046875 347.65234375 -170.42578125 345.4765625 C-169.74322266 344.07857422 -169.74322266 344.07857422 -169.046875 342.65234375 C-168.46306657 341.3410573 -167.88552686 340.02697118 -167.3125 338.7109375 C-166.82668457 337.60407593 -166.82668457 337.60407593 -166.33105469 336.47485352 C-149.77470918 298.29285653 -147.86392177 258.88787864 -147.93334961 217.82641602 C-147.93363256 215.43881735 -147.93347164 213.05121861 -147.9329071 210.66362 C-147.93262334 204.26021972 -147.93845118 197.85683867 -147.94548106 191.45344281 C-147.95114444 185.41579694 -147.95210855 179.37815166 -147.95313293 173.34050369 C-147.95530811 161.40155944 -147.96192603 149.46262213 -147.97143555 137.52368164 C-147.98064975 125.94327834 -147.98771084 114.36287694 -147.99194336 102.7824707 C-147.99220608 102.06566041 -147.99246881 101.34885012 -147.99273949 100.61031831 C-147.99404476 97.01339767 -147.99530842 93.41647702 -147.99655139 89.81955636 C-148.0068761 60.09714752 -148.02452764 30.37474608 -148.046875 0.65234375 C-132.10994626 0.49651071 -116.17296345 0.34857905 -100.23588181 0.20938015 C-92.83153284 0.14453556 -85.42722097 0.07731927 -78.02294922 0.00415039 C-21.00217262 -0.5567107 -21.00217262 -0.5567107 0 0 Z " fill="#141413"/>
8
+ <path d="M0 0 C1.01621304 0.02415387 1.01621304 0.02415387 2.05295563 0.0487957 C15.06208478 0.37965012 28.32468106 1.4557636 41.015625 4.46484375 C41.7583667 4.63806152 42.5011084 4.8112793 43.26635742 4.98974609 C45.50075983 5.52429212 47.72764447 6.08187555 49.953125 6.65234375 C50.61634766 6.82072754 51.27957031 6.98911133 51.96289062 7.16259766 C69.2407219 11.69043133 85.8771286 19.65840798 99.953125 30.65234375 C100.73937256 31.26360107 100.73937256 31.26360107 101.54150391 31.88720703 C123.7270086 49.28091041 136.4404133 72.46883745 141.5625 99.91796875 C144.67221585 129.64685223 139.72576321 158.70946666 121.203125 182.77734375 C113.49751062 191.94853577 105.20072477 200.35418389 94.953125 206.65234375 C93.89480469 207.30847656 92.83648438 207.96460938 91.74609375 208.640625 C55.21374753 230.69111847 8.12510789 234.84044584 -32.8515625 224.73828125 C-34.25073819 224.37916603 -35.64917454 224.01715847 -37.046875 223.65234375 C-37.78067383 223.46317383 -38.51447266 223.27400391 -39.27050781 223.07910156 C-43.53973449 221.97379408 -47.79713788 220.83073693 -52.046875 219.65234375 C-52.046875 218.66234375 -52.046875 217.67234375 -52.046875 216.65234375 C-50.78423828 216.61367188 -50.78423828 216.61367188 -49.49609375 216.57421875 C-21.72005446 215.30511623 6.63814642 210.45331121 31.953125 198.65234375 C32.5630127 198.3780957 33.17290039 198.10384766 33.80126953 197.82128906 C57.20566692 187.26376785 76.06744844 169.64319296 85.953125 145.65234375 C88.5384504 138.12838393 90.62043739 130.62298443 90.953125 122.65234375 C91.0046875 121.77707031 91.05625 120.90179688 91.109375 120 C91.75858473 99.84744809 84.76215935 81.87762628 71.828125 66.52734375 C60.05823959 54.00450271 43.86545898 46.22481887 27.453125 41.77734375 C26.75558105 41.58624023 26.05803711 41.39513672 25.33935547 41.19824219 C10.80148878 37.58915701 -4.19405006 37.33493149 -19.08203125 37.23828125 C-20.94104314 37.21951369 -22.80004701 37.19993642 -24.65904236 37.17959595 C-29.49043998 37.1288577 -34.32186506 37.08892494 -39.15338135 37.05145264 C-44.10817931 37.01104164 -49.06286893 36.96012106 -54.01757812 36.91015625 C-63.69393366 36.81409 -73.37035122 36.72946972 -83.046875 36.65234375 C-82.98758767 66.72510518 -82.9131243 96.79780056 -82.81788872 126.8704691 C-82.80662246 130.43220041 -82.7954837 133.99393211 -82.78442383 137.55566406 C-82.78222014 138.26465016 -82.78001646 138.97363626 -82.777746 139.70410679 C-82.74250935 151.13821815 -82.71756864 162.57232946 -82.69652798 174.00647475 C-82.67465666 185.76553299 -82.6415005 197.52452166 -82.59817344 209.28352058 C-82.57419421 215.87717043 -82.55555242 222.47076293 -82.54926109 229.06445694 C-82.54315778 235.28773714 -82.52297138 241.51082221 -82.49259949 247.73402977 C-82.48390253 250.00170594 -82.48007905 252.2694077 -82.48186684 254.53709984 C-82.49833664 285.10442495 -78.11389293 316.86914213 -62.68579102 343.85668945 C-61.85240029 346.1989091 -62.19057332 347.34284607 -63.046875 349.65234375 C-64.52208278 351.99312178 -66.02952553 354.25985672 -67.609375 356.52734375 C-75.62844226 368.32101945 -82.31697875 380.60149114 -88.046875 393.65234375 C-88.53800781 394.75191406 -89.02914062 395.85148437 -89.53515625 396.984375 C-97.26134965 415.20652925 -102.15167175 434.62809753 -106.05664062 453.98339844 C-106.27642578 455.04719727 -106.49621094 456.11099609 -106.72265625 457.20703125 C-106.90739502 458.14015137 -107.09213379 459.07327148 -107.2824707 460.03466797 C-108.14256395 462.98002721 -109.25138175 465.16602402 -111.046875 467.65234375 C-112.036875 467.98234375 -113.026875 468.31234375 -114.046875 468.65234375 C-114.046875 466.67234375 -114.046875 464.69234375 -114.046875 462.65234375 C-114.706875 462.32234375 -115.366875 461.99234375 -116.046875 461.65234375 C-115.386875 461.65234375 -114.726875 461.65234375 -114.046875 461.65234375 C-114.376875 460.99234375 -114.706875 460.33234375 -115.046875 459.65234375 C-115.12675897 456.76402081 -115.14023124 453.89984592 -115.11328125 451.01171875 C-115.10261386 448.99804902 -115.09239734 446.98437688 -115.08251953 444.97070312 C-115.07569153 443.82335693 -115.06886353 442.67601074 -115.06182861 441.49389648 C-115.04521901 437.22692378 -115.05187411 432.96033431 -115.06201172 428.69335938 C-115.07877979 421.08061935 -115.06135058 413.46850945 -115.01839256 405.85587311 C-114.99440777 401.41148872 -114.98385102 396.96786501 -115.00219727 392.5234375 C-115.01972573 388.15335468 -115.00309261 383.78458778 -114.96319771 379.41466522 C-114.95399279 377.77063004 -114.95668121 376.12647843 -114.97218132 374.48249054 C-115.05986637 364.21620712 -113.98784249 357.66317493 -107.046875 349.65234375 C-106.01713809 348.00388396 -105.00873272 346.34131015 -104.046875 344.65234375 C-104.49417969 343.96269531 -104.94148438 343.27304687 -105.40234375 342.5625 C-109.17323716 336.70113263 -112.75509102 330.79599587 -116.046875 324.65234375 C-118.90410398 328.29809372 -121.35986894 332.15757687 -123.796875 336.08984375 C-124.22097656 336.74533203 -124.64507812 337.40082031 -125.08203125 338.07617188 C-127.45330209 341.91503048 -127.45330209 341.91503048 -128.0625 346.3046875 C-126.79052656 349.24490302 -125.12930414 351.345364 -123.046875 353.77734375 C-119.53352966 357.90552452 -117.92505055 360.53102739 -117.91316223 365.9858551 C-117.90889725 366.87057495 -117.90463226 367.7552948 -117.90023804 368.66682434 C-117.90069122 369.63472397 -117.90114441 370.6026236 -117.90161133 371.59985352 C-117.89825272 372.62120392 -117.8948941 373.64255432 -117.89143372 374.69485474 C-117.88191845 378.07783212 -117.87998051 381.46076006 -117.87890625 384.84375 C-117.87569479 387.18879721 -117.87233081 389.53384421 -117.86882019 391.87889099 C-117.86282799 396.79581161 -117.86098046 401.71271465 -117.86157227 406.62963867 C-117.86167406 412.94401116 -117.84800461 419.25827164 -117.83080006 425.57261753 C-117.81970875 430.41518171 -117.81765215 435.25771853 -117.81818199 440.10029411 C-117.8169982 442.42920252 -117.81255423 444.75811156 -117.80484962 447.08700752 C-117.79510472 450.33616232 -117.79790561 453.58507015 -117.80395508 456.83422852 C-117.79833557 457.80415237 -117.79271606 458.77407623 -117.78692627 459.77339172 C-117.79112076 460.65529175 -117.79531525 461.53719177 -117.79963684 462.44581604 C-117.79909207 463.2143821 -117.79854731 463.98294817 -117.79798603 464.77480412 C-118.046875 466.65234375 -118.046875 466.65234375 -120.046875 468.65234375 C-125.38783118 463.31138757 -126.50176002 454.99681313 -127.921875 447.83984375 C-134.59573909 414.50674061 -146.9096229 375.05148948 -170.24609375 349.36328125 C-171.046875 347.65234375 -171.046875 347.65234375 -170.42578125 345.4765625 C-169.74322266 344.07857422 -169.74322266 344.07857422 -169.046875 342.65234375 C-168.46306657 341.3410573 -167.88552686 340.02697118 -167.3125 338.7109375 C-166.82668457 337.60407593 -166.82668457 337.60407593 -166.33105469 336.47485352 C-149.77470918 298.29285653 -147.86392177 258.88787864 -147.93334961 217.82641602 C-147.93363256 215.43881735 -147.93347164 213.05121861 -147.9329071 210.66362 C-147.93262334 204.26021972 -147.93845118 197.85683867 -147.94548106 191.45344281 C-147.95114444 185.41579694 -147.95210855 179.37815166 -147.95313293 173.34050369 C-147.95530811 161.40155944 -147.96192603 149.46262213 -147.97143555 137.52368164 C-147.98064975 125.94327834 -147.98771084 114.36287694 -147.99194336 102.7824707 C-147.99220608 102.06566041 -147.99246881 101.34885012 -147.99273949 100.61031831 C-147.99404476 97.01339767 -147.99530842 93.41647702 -147.99655139 89.81955636 C-148.0068761 60.09714752 -148.02452764 30.37474608 -148.046875 0.65234375 C-132.10994626 0.49651071 -116.17296345 0.34857905 -100.23588181 0.20938015 C-92.83153284 0.14453556 -85.42722097 0.07731927 -78.02294922 0.00415039 C-21.00217262 -0.5567107 -21.00217262 -0.5567107 0 0 Z " fill="none" stroke="#141413" stroke-width="6.5" stroke-linejoin="round" mask="url(#fav-l-nib)"/>
9
+ </svg>
10
+ </g></g></svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000" viewBox="0 0 1000 1000"><g class="fav-l"><defs><clipPath id="fav-l-clip"><rect width="1000" height="1000" rx="275"/></clipPath></defs><g clip-path="url(#fav-l-clip)"><rect width="1000" height="1000" fill="#c6f24e"/><svg xmlns="http://www.w3.org/2000/svg" class="fav-l-root" x="170" y="170" width="660" height="660" viewBox="-174.297 -3.807 320.082 475.709" preserveAspectRatio="xMidYMid meet" overflow="visible">
2
+
3
+ <mask id="fav-l-nib" maskUnits="userSpaceOnUse" x="-180" y="-10" width="335" height="490">
4
+ <rect x="-180" y="-10" width="335" height="490" fill="#fff"/>
5
+ <path d="M-116 318 L-100.5 344.65 L-104 351.5 L-111.5 374.5 L-111.5 480 L-121 480 L-121 367 L-125.5 355.5 L-131.5 346.3 Z" fill="#000"/>
6
+ </mask>
7
+ <path d="M0 0 C1.01621304 0.02415387 1.01621304 0.02415387 2.05295563 0.0487957 C15.06208478 0.37965012 28.32468106 1.4557636 41.015625 4.46484375 C41.7583667 4.63806152 42.5011084 4.8112793 43.26635742 4.98974609 C45.50075983 5.52429212 47.72764447 6.08187555 49.953125 6.65234375 C50.61634766 6.82072754 51.27957031 6.98911133 51.96289062 7.16259766 C69.2407219 11.69043133 85.8771286 19.65840798 99.953125 30.65234375 C100.73937256 31.26360107 100.73937256 31.26360107 101.54150391 31.88720703 C123.7270086 49.28091041 136.4404133 72.46883745 141.5625 99.91796875 C144.67221585 129.64685223 139.72576321 158.70946666 121.203125 182.77734375 C113.49751062 191.94853577 105.20072477 200.35418389 94.953125 206.65234375 C93.89480469 207.30847656 92.83648438 207.96460938 91.74609375 208.640625 C55.21374753 230.69111847 8.12510789 234.84044584 -32.8515625 224.73828125 C-34.25073819 224.37916603 -35.64917454 224.01715847 -37.046875 223.65234375 C-37.78067383 223.46317383 -38.51447266 223.27400391 -39.27050781 223.07910156 C-43.53973449 221.97379408 -47.79713788 220.83073693 -52.046875 219.65234375 C-52.046875 218.66234375 -52.046875 217.67234375 -52.046875 216.65234375 C-50.78423828 216.61367188 -50.78423828 216.61367188 -49.49609375 216.57421875 C-21.72005446 215.30511623 6.63814642 210.45331121 31.953125 198.65234375 C32.5630127 198.3780957 33.17290039 198.10384766 33.80126953 197.82128906 C57.20566692 187.26376785 76.06744844 169.64319296 85.953125 145.65234375 C88.5384504 138.12838393 90.62043739 130.62298443 90.953125 122.65234375 C91.0046875 121.77707031 91.05625 120.90179688 91.109375 120 C91.75858473 99.84744809 84.76215935 81.87762628 71.828125 66.52734375 C60.05823959 54.00450271 43.86545898 46.22481887 27.453125 41.77734375 C26.75558105 41.58624023 26.05803711 41.39513672 25.33935547 41.19824219 C10.80148878 37.58915701 -4.19405006 37.33493149 -19.08203125 37.23828125 C-20.94104314 37.21951369 -22.80004701 37.19993642 -24.65904236 37.17959595 C-29.49043998 37.1288577 -34.32186506 37.08892494 -39.15338135 37.05145264 C-44.10817931 37.01104164 -49.06286893 36.96012106 -54.01757812 36.91015625 C-63.69393366 36.81409 -73.37035122 36.72946972 -83.046875 36.65234375 C-82.98758767 66.72510518 -82.9131243 96.79780056 -82.81788872 126.8704691 C-82.80662246 130.43220041 -82.7954837 133.99393211 -82.78442383 137.55566406 C-82.78222014 138.26465016 -82.78001646 138.97363626 -82.777746 139.70410679 C-82.74250935 151.13821815 -82.71756864 162.57232946 -82.69652798 174.00647475 C-82.67465666 185.76553299 -82.6415005 197.52452166 -82.59817344 209.28352058 C-82.57419421 215.87717043 -82.55555242 222.47076293 -82.54926109 229.06445694 C-82.54315778 235.28773714 -82.52297138 241.51082221 -82.49259949 247.73402977 C-82.48390253 250.00170594 -82.48007905 252.2694077 -82.48186684 254.53709984 C-82.49833664 285.10442495 -78.11389293 316.86914213 -62.68579102 343.85668945 C-61.85240029 346.1989091 -62.19057332 347.34284607 -63.046875 349.65234375 C-64.52208278 351.99312178 -66.02952553 354.25985672 -67.609375 356.52734375 C-75.62844226 368.32101945 -82.31697875 380.60149114 -88.046875 393.65234375 C-88.53800781 394.75191406 -89.02914062 395.85148437 -89.53515625 396.984375 C-97.26134965 415.20652925 -102.15167175 434.62809753 -106.05664062 453.98339844 C-106.27642578 455.04719727 -106.49621094 456.11099609 -106.72265625 457.20703125 C-106.90739502 458.14015137 -107.09213379 459.07327148 -107.2824707 460.03466797 C-108.14256395 462.98002721 -109.25138175 465.16602402 -111.046875 467.65234375 C-112.036875 467.98234375 -113.026875 468.31234375 -114.046875 468.65234375 C-114.046875 466.67234375 -114.046875 464.69234375 -114.046875 462.65234375 C-114.706875 462.32234375 -115.366875 461.99234375 -116.046875 461.65234375 C-115.386875 461.65234375 -114.726875 461.65234375 -114.046875 461.65234375 C-114.376875 460.99234375 -114.706875 460.33234375 -115.046875 459.65234375 C-115.12675897 456.76402081 -115.14023124 453.89984592 -115.11328125 451.01171875 C-115.10261386 448.99804902 -115.09239734 446.98437688 -115.08251953 444.97070312 C-115.07569153 443.82335693 -115.06886353 442.67601074 -115.06182861 441.49389648 C-115.04521901 437.22692378 -115.05187411 432.96033431 -115.06201172 428.69335938 C-115.07877979 421.08061935 -115.06135058 413.46850945 -115.01839256 405.85587311 C-114.99440777 401.41148872 -114.98385102 396.96786501 -115.00219727 392.5234375 C-115.01972573 388.15335468 -115.00309261 383.78458778 -114.96319771 379.41466522 C-114.95399279 377.77063004 -114.95668121 376.12647843 -114.97218132 374.48249054 C-115.05986637 364.21620712 -113.98784249 357.66317493 -107.046875 349.65234375 C-106.01713809 348.00388396 -105.00873272 346.34131015 -104.046875 344.65234375 C-104.49417969 343.96269531 -104.94148438 343.27304687 -105.40234375 342.5625 C-109.17323716 336.70113263 -112.75509102 330.79599587 -116.046875 324.65234375 C-118.90410398 328.29809372 -121.35986894 332.15757687 -123.796875 336.08984375 C-124.22097656 336.74533203 -124.64507812 337.40082031 -125.08203125 338.07617188 C-127.45330209 341.91503048 -127.45330209 341.91503048 -128.0625 346.3046875 C-126.79052656 349.24490302 -125.12930414 351.345364 -123.046875 353.77734375 C-119.53352966 357.90552452 -117.92505055 360.53102739 -117.91316223 365.9858551 C-117.90889725 366.87057495 -117.90463226 367.7552948 -117.90023804 368.66682434 C-117.90069122 369.63472397 -117.90114441 370.6026236 -117.90161133 371.59985352 C-117.89825272 372.62120392 -117.8948941 373.64255432 -117.89143372 374.69485474 C-117.88191845 378.07783212 -117.87998051 381.46076006 -117.87890625 384.84375 C-117.87569479 387.18879721 -117.87233081 389.53384421 -117.86882019 391.87889099 C-117.86282799 396.79581161 -117.86098046 401.71271465 -117.86157227 406.62963867 C-117.86167406 412.94401116 -117.84800461 419.25827164 -117.83080006 425.57261753 C-117.81970875 430.41518171 -117.81765215 435.25771853 -117.81818199 440.10029411 C-117.8169982 442.42920252 -117.81255423 444.75811156 -117.80484962 447.08700752 C-117.79510472 450.33616232 -117.79790561 453.58507015 -117.80395508 456.83422852 C-117.79833557 457.80415237 -117.79271606 458.77407623 -117.78692627 459.77339172 C-117.79112076 460.65529175 -117.79531525 461.53719177 -117.79963684 462.44581604 C-117.79909207 463.2143821 -117.79854731 463.98294817 -117.79798603 464.77480412 C-118.046875 466.65234375 -118.046875 466.65234375 -120.046875 468.65234375 C-125.38783118 463.31138757 -126.50176002 454.99681313 -127.921875 447.83984375 C-134.59573909 414.50674061 -146.9096229 375.05148948 -170.24609375 349.36328125 C-171.046875 347.65234375 -171.046875 347.65234375 -170.42578125 345.4765625 C-169.74322266 344.07857422 -169.74322266 344.07857422 -169.046875 342.65234375 C-168.46306657 341.3410573 -167.88552686 340.02697118 -167.3125 338.7109375 C-166.82668457 337.60407593 -166.82668457 337.60407593 -166.33105469 336.47485352 C-149.77470918 298.29285653 -147.86392177 258.88787864 -147.93334961 217.82641602 C-147.93363256 215.43881735 -147.93347164 213.05121861 -147.9329071 210.66362 C-147.93262334 204.26021972 -147.93845118 197.85683867 -147.94548106 191.45344281 C-147.95114444 185.41579694 -147.95210855 179.37815166 -147.95313293 173.34050369 C-147.95530811 161.40155944 -147.96192603 149.46262213 -147.97143555 137.52368164 C-147.98064975 125.94327834 -147.98771084 114.36287694 -147.99194336 102.7824707 C-147.99220608 102.06566041 -147.99246881 101.34885012 -147.99273949 100.61031831 C-147.99404476 97.01339767 -147.99530842 93.41647702 -147.99655139 89.81955636 C-148.0068761 60.09714752 -148.02452764 30.37474608 -148.046875 0.65234375 C-132.10994626 0.49651071 -116.17296345 0.34857905 -100.23588181 0.20938015 C-92.83153284 0.14453556 -85.42722097 0.07731927 -78.02294922 0.00415039 C-21.00217262 -0.5567107 -21.00217262 -0.5567107 0 0 Z " fill="#141413"/>
8
+ <path d="M0 0 C1.01621304 0.02415387 1.01621304 0.02415387 2.05295563 0.0487957 C15.06208478 0.37965012 28.32468106 1.4557636 41.015625 4.46484375 C41.7583667 4.63806152 42.5011084 4.8112793 43.26635742 4.98974609 C45.50075983 5.52429212 47.72764447 6.08187555 49.953125 6.65234375 C50.61634766 6.82072754 51.27957031 6.98911133 51.96289062 7.16259766 C69.2407219 11.69043133 85.8771286 19.65840798 99.953125 30.65234375 C100.73937256 31.26360107 100.73937256 31.26360107 101.54150391 31.88720703 C123.7270086 49.28091041 136.4404133 72.46883745 141.5625 99.91796875 C144.67221585 129.64685223 139.72576321 158.70946666 121.203125 182.77734375 C113.49751062 191.94853577 105.20072477 200.35418389 94.953125 206.65234375 C93.89480469 207.30847656 92.83648438 207.96460938 91.74609375 208.640625 C55.21374753 230.69111847 8.12510789 234.84044584 -32.8515625 224.73828125 C-34.25073819 224.37916603 -35.64917454 224.01715847 -37.046875 223.65234375 C-37.78067383 223.46317383 -38.51447266 223.27400391 -39.27050781 223.07910156 C-43.53973449 221.97379408 -47.79713788 220.83073693 -52.046875 219.65234375 C-52.046875 218.66234375 -52.046875 217.67234375 -52.046875 216.65234375 C-50.78423828 216.61367188 -50.78423828 216.61367188 -49.49609375 216.57421875 C-21.72005446 215.30511623 6.63814642 210.45331121 31.953125 198.65234375 C32.5630127 198.3780957 33.17290039 198.10384766 33.80126953 197.82128906 C57.20566692 187.26376785 76.06744844 169.64319296 85.953125 145.65234375 C88.5384504 138.12838393 90.62043739 130.62298443 90.953125 122.65234375 C91.0046875 121.77707031 91.05625 120.90179688 91.109375 120 C91.75858473 99.84744809 84.76215935 81.87762628 71.828125 66.52734375 C60.05823959 54.00450271 43.86545898 46.22481887 27.453125 41.77734375 C26.75558105 41.58624023 26.05803711 41.39513672 25.33935547 41.19824219 C10.80148878 37.58915701 -4.19405006 37.33493149 -19.08203125 37.23828125 C-20.94104314 37.21951369 -22.80004701 37.19993642 -24.65904236 37.17959595 C-29.49043998 37.1288577 -34.32186506 37.08892494 -39.15338135 37.05145264 C-44.10817931 37.01104164 -49.06286893 36.96012106 -54.01757812 36.91015625 C-63.69393366 36.81409 -73.37035122 36.72946972 -83.046875 36.65234375 C-82.98758767 66.72510518 -82.9131243 96.79780056 -82.81788872 126.8704691 C-82.80662246 130.43220041 -82.7954837 133.99393211 -82.78442383 137.55566406 C-82.78222014 138.26465016 -82.78001646 138.97363626 -82.777746 139.70410679 C-82.74250935 151.13821815 -82.71756864 162.57232946 -82.69652798 174.00647475 C-82.67465666 185.76553299 -82.6415005 197.52452166 -82.59817344 209.28352058 C-82.57419421 215.87717043 -82.55555242 222.47076293 -82.54926109 229.06445694 C-82.54315778 235.28773714 -82.52297138 241.51082221 -82.49259949 247.73402977 C-82.48390253 250.00170594 -82.48007905 252.2694077 -82.48186684 254.53709984 C-82.49833664 285.10442495 -78.11389293 316.86914213 -62.68579102 343.85668945 C-61.85240029 346.1989091 -62.19057332 347.34284607 -63.046875 349.65234375 C-64.52208278 351.99312178 -66.02952553 354.25985672 -67.609375 356.52734375 C-75.62844226 368.32101945 -82.31697875 380.60149114 -88.046875 393.65234375 C-88.53800781 394.75191406 -89.02914062 395.85148437 -89.53515625 396.984375 C-97.26134965 415.20652925 -102.15167175 434.62809753 -106.05664062 453.98339844 C-106.27642578 455.04719727 -106.49621094 456.11099609 -106.72265625 457.20703125 C-106.90739502 458.14015137 -107.09213379 459.07327148 -107.2824707 460.03466797 C-108.14256395 462.98002721 -109.25138175 465.16602402 -111.046875 467.65234375 C-112.036875 467.98234375 -113.026875 468.31234375 -114.046875 468.65234375 C-114.046875 466.67234375 -114.046875 464.69234375 -114.046875 462.65234375 C-114.706875 462.32234375 -115.366875 461.99234375 -116.046875 461.65234375 C-115.386875 461.65234375 -114.726875 461.65234375 -114.046875 461.65234375 C-114.376875 460.99234375 -114.706875 460.33234375 -115.046875 459.65234375 C-115.12675897 456.76402081 -115.14023124 453.89984592 -115.11328125 451.01171875 C-115.10261386 448.99804902 -115.09239734 446.98437688 -115.08251953 444.97070312 C-115.07569153 443.82335693 -115.06886353 442.67601074 -115.06182861 441.49389648 C-115.04521901 437.22692378 -115.05187411 432.96033431 -115.06201172 428.69335938 C-115.07877979 421.08061935 -115.06135058 413.46850945 -115.01839256 405.85587311 C-114.99440777 401.41148872 -114.98385102 396.96786501 -115.00219727 392.5234375 C-115.01972573 388.15335468 -115.00309261 383.78458778 -114.96319771 379.41466522 C-114.95399279 377.77063004 -114.95668121 376.12647843 -114.97218132 374.48249054 C-115.05986637 364.21620712 -113.98784249 357.66317493 -107.046875 349.65234375 C-106.01713809 348.00388396 -105.00873272 346.34131015 -104.046875 344.65234375 C-104.49417969 343.96269531 -104.94148438 343.27304687 -105.40234375 342.5625 C-109.17323716 336.70113263 -112.75509102 330.79599587 -116.046875 324.65234375 C-118.90410398 328.29809372 -121.35986894 332.15757687 -123.796875 336.08984375 C-124.22097656 336.74533203 -124.64507812 337.40082031 -125.08203125 338.07617188 C-127.45330209 341.91503048 -127.45330209 341.91503048 -128.0625 346.3046875 C-126.79052656 349.24490302 -125.12930414 351.345364 -123.046875 353.77734375 C-119.53352966 357.90552452 -117.92505055 360.53102739 -117.91316223 365.9858551 C-117.90889725 366.87057495 -117.90463226 367.7552948 -117.90023804 368.66682434 C-117.90069122 369.63472397 -117.90114441 370.6026236 -117.90161133 371.59985352 C-117.89825272 372.62120392 -117.8948941 373.64255432 -117.89143372 374.69485474 C-117.88191845 378.07783212 -117.87998051 381.46076006 -117.87890625 384.84375 C-117.87569479 387.18879721 -117.87233081 389.53384421 -117.86882019 391.87889099 C-117.86282799 396.79581161 -117.86098046 401.71271465 -117.86157227 406.62963867 C-117.86167406 412.94401116 -117.84800461 419.25827164 -117.83080006 425.57261753 C-117.81970875 430.41518171 -117.81765215 435.25771853 -117.81818199 440.10029411 C-117.8169982 442.42920252 -117.81255423 444.75811156 -117.80484962 447.08700752 C-117.79510472 450.33616232 -117.79790561 453.58507015 -117.80395508 456.83422852 C-117.79833557 457.80415237 -117.79271606 458.77407623 -117.78692627 459.77339172 C-117.79112076 460.65529175 -117.79531525 461.53719177 -117.79963684 462.44581604 C-117.79909207 463.2143821 -117.79854731 463.98294817 -117.79798603 464.77480412 C-118.046875 466.65234375 -118.046875 466.65234375 -120.046875 468.65234375 C-125.38783118 463.31138757 -126.50176002 454.99681313 -127.921875 447.83984375 C-134.59573909 414.50674061 -146.9096229 375.05148948 -170.24609375 349.36328125 C-171.046875 347.65234375 -171.046875 347.65234375 -170.42578125 345.4765625 C-169.74322266 344.07857422 -169.74322266 344.07857422 -169.046875 342.65234375 C-168.46306657 341.3410573 -167.88552686 340.02697118 -167.3125 338.7109375 C-166.82668457 337.60407593 -166.82668457 337.60407593 -166.33105469 336.47485352 C-149.77470918 298.29285653 -147.86392177 258.88787864 -147.93334961 217.82641602 C-147.93363256 215.43881735 -147.93347164 213.05121861 -147.9329071 210.66362 C-147.93262334 204.26021972 -147.93845118 197.85683867 -147.94548106 191.45344281 C-147.95114444 185.41579694 -147.95210855 179.37815166 -147.95313293 173.34050369 C-147.95530811 161.40155944 -147.96192603 149.46262213 -147.97143555 137.52368164 C-147.98064975 125.94327834 -147.98771084 114.36287694 -147.99194336 102.7824707 C-147.99220608 102.06566041 -147.99246881 101.34885012 -147.99273949 100.61031831 C-147.99404476 97.01339767 -147.99530842 93.41647702 -147.99655139 89.81955636 C-148.0068761 60.09714752 -148.02452764 30.37474608 -148.046875 0.65234375 C-132.10994626 0.49651071 -116.17296345 0.34857905 -100.23588181 0.20938015 C-92.83153284 0.14453556 -85.42722097 0.07731927 -78.02294922 0.00415039 C-21.00217262 -0.5567107 -21.00217262 -0.5567107 0 0 Z " fill="none" stroke="#141413" stroke-width="6.5" stroke-linejoin="round" mask="url(#fav-l-nib)"/>
9
+ </svg>
10
+ </g></g></svg>
@@ -0,0 +1,17 @@
1
+ import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
2
+ type Context = IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions;
3
+ export declare const USER_AGENT = "n8n-nodes-postory/1.0.5";
4
+ export declare function baseUrl(this: Context): Promise<string>;
5
+ export declare function idempotencyKey(): string;
6
+ export declare function postoryApiRequest(this: Context, method: IHttpRequestMethods, path: string, body?: IDataObject, qs?: IDataObject, options?: {
7
+ idempotent?: boolean;
8
+ returnFullResponse?: boolean;
9
+ }): Promise<IDataObject>;
10
+ export declare function postoryApiRequestAllItems(this: IExecuteFunctions, path: string, qs: IDataObject, limit?: number): Promise<IDataObject[]>;
11
+ export declare function waitForGeneration(this: IExecuteFunctions, path: string, first: IDataObject, timeoutS: number): Promise<IDataObject>;
12
+ export declare function getAccounts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
13
+ export declare function getAccountsOrDefault(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
14
+ export declare function getNetworks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
15
+ export declare function toParts(text: string, splitThread: boolean): IDataObject[];
16
+ export declare function simplifyPost(answer: IDataObject): IDataObject;
17
+ export {};
@@ -0,0 +1,215 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_AGENT = void 0;
4
+ exports.baseUrl = baseUrl;
5
+ exports.idempotencyKey = idempotencyKey;
6
+ exports.postoryApiRequest = postoryApiRequest;
7
+ exports.postoryApiRequestAllItems = postoryApiRequestAllItems;
8
+ exports.waitForGeneration = waitForGeneration;
9
+ exports.getAccounts = getAccounts;
10
+ exports.getAccountsOrDefault = getAccountsOrDefault;
11
+ exports.getNetworks = getNetworks;
12
+ exports.toParts = toParts;
13
+ exports.simplifyPost = simplifyPost;
14
+ const n8n_workflow_1 = require("n8n-workflow");
15
+ const version_1 = require("./version");
16
+ exports.USER_AGENT = `n8n-nodes-postory/${version_1.PACKAGE_VERSION}`;
17
+ async function baseUrl() {
18
+ const credentials = await this.getCredentials('postoryApi');
19
+ const url = String(credentials.baseUrl || 'https://postory.io').trim();
20
+ return url.replace(/\/+$/, '');
21
+ }
22
+ function idempotencyKey() {
23
+ const hex = '0123456789abcdef';
24
+ let out = 'n8n-';
25
+ for (let i = 0; i < 32; i++)
26
+ out += hex[Math.floor(Math.random() * 16)];
27
+ return out;
28
+ }
29
+ function problemOf(error) {
30
+ var _a, _b, _c, _d, _e, _f;
31
+ const e = error;
32
+ const body = (_d = (_b = (_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.body) !== null && _b !== void 0 ? _b : (_c = e === null || e === void 0 ? void 0 : e.response) === null || _c === void 0 ? void 0 : _c.data) !== null && _d !== void 0 ? _d : (_f = (_e = e === null || e === void 0 ? void 0 : e.cause) === null || _e === void 0 ? void 0 : _e.response) === null || _f === void 0 ? void 0 : _f.data;
33
+ if (body && typeof body === 'object')
34
+ return body;
35
+ if (typeof body === 'string') {
36
+ try {
37
+ return JSON.parse(body);
38
+ }
39
+ catch {
40
+ return undefined;
41
+ }
42
+ }
43
+ return undefined;
44
+ }
45
+ function apiError(error) {
46
+ var _a, _b, _c, _d, _e, _f;
47
+ const problem = problemOf(error);
48
+ if (!problem)
49
+ return new n8n_workflow_1.NodeApiError(this.getNode(), error);
50
+ const code = String((_a = problem.code) !== null && _a !== void 0 ? _a : '');
51
+ const message = String((_c = (_b = problem.message) !== null && _b !== void 0 ? _b : problem.title) !== null && _c !== void 0 ? _c : 'Postory refused the request');
52
+ let description = `Postory code: ${code || 'unknown'}`;
53
+ if (code === 'credit_limit' && problem.buy_url) {
54
+ description = `Not enough Postory credits (needed ${(_d = problem.credits_needed) !== null && _d !== void 0 ? _d : '?'}, available ${(_e = problem.credits_available) !== null && _e !== void 0 ? _e : '?'}). Buy credits: ${problem.buy_url}`;
55
+ }
56
+ else if (problem.next_allowed_at) {
57
+ description = `${description}. Next allowed at ${problem.next_allowed_at}`;
58
+ }
59
+ else if (code === 'rate_limited') {
60
+ description = `${description}. Postory's rate limit was reached; try again later`;
61
+ }
62
+ const issues = Array.isArray(problem.issues) ? problem.issues : [];
63
+ const reasons = issues.map((issue) => { var _a, _b; return String((_b = (_a = issue.message) !== null && _a !== void 0 ? _a : issue.code) !== null && _b !== void 0 ? _b : ''); }).filter((m) => m);
64
+ if (reasons.length)
65
+ description = `${description}. ${reasons.join('; ')}`;
66
+ if (problem.hint)
67
+ description = `${description}. ${String(problem.hint)}`;
68
+ return new n8n_workflow_1.NodeApiError(this.getNode(), problem, {
69
+ message,
70
+ description,
71
+ httpCode: String((_f = problem.status) !== null && _f !== void 0 ? _f : ''),
72
+ });
73
+ }
74
+ async function postoryApiRequest(method, path, body, qs, options = {}) {
75
+ const headers = { 'User-Agent': exports.USER_AGENT, Accept: 'application/json' };
76
+ if (options.idempotent)
77
+ headers['Idempotency-Key'] = idempotencyKey();
78
+ const request = {
79
+ method,
80
+ url: `${await baseUrl.call(this)}/api/v1${path}`,
81
+ headers,
82
+ json: true,
83
+ };
84
+ if (body && Object.keys(body).length)
85
+ request.body = body;
86
+ if (qs) {
87
+ const clean = {};
88
+ for (const [k, v] of Object.entries(qs))
89
+ if (v !== undefined && v !== '' && v !== null)
90
+ clean[k] = v;
91
+ if (Object.keys(clean).length)
92
+ request.qs = clean;
93
+ }
94
+ if (options.returnFullResponse)
95
+ request.returnFullResponse = true;
96
+ for (let attempt = 0;; attempt++) {
97
+ try {
98
+ return (await this.helpers.httpRequestWithAuthentication.call(this, 'postoryApi', request));
99
+ }
100
+ catch (error) {
101
+ const problem = problemOf(error);
102
+ if ((problem === null || problem === void 0 ? void 0 : problem.code) === 'rate_limited' && attempt === 0) {
103
+ await (0, n8n_workflow_1.sleep)(5000);
104
+ continue;
105
+ }
106
+ throw apiError.call(this, error);
107
+ }
108
+ }
109
+ }
110
+ async function postoryApiRequestAllItems(path, qs, limit) {
111
+ var _a;
112
+ const out = [];
113
+ let cursor;
114
+ do {
115
+ const page = await postoryApiRequest.call(this, 'GET', path, undefined, {
116
+ ...qs,
117
+ limit: limit ? Math.min(50, limit - out.length) : 50,
118
+ cursor,
119
+ });
120
+ out.push(...((_a = page.items) !== null && _a !== void 0 ? _a : []));
121
+ cursor = page.has_more ? page.next_cursor : undefined;
122
+ } while (cursor && (!limit || out.length < limit));
123
+ return limit ? out.slice(0, limit) : out;
124
+ }
125
+ const PENDING = new Set(['queued', 'running', 'pending']);
126
+ async function waitForGeneration(path, first, timeoutS) {
127
+ var _a;
128
+ let answer = first;
129
+ const id = String((_a = first.generation_id) !== null && _a !== void 0 ? _a : '');
130
+ const deadline = Date.now() + timeoutS * 1000;
131
+ while (id && PENDING.has(String(answer.status)) && Date.now() < deadline) {
132
+ const waitS = Math.max(1, Math.min(20, Math.floor((deadline - Date.now()) / 1000)));
133
+ answer = await postoryApiRequest.call(this, 'GET', `${path}/${id}`, undefined, { wait_s: waitS });
134
+ }
135
+ return answer;
136
+ }
137
+ async function getAccounts() {
138
+ var _a;
139
+ const answer = await postoryApiRequest.call(this, 'GET', '/accounts');
140
+ return ((_a = answer.accounts) !== null && _a !== void 0 ? _a : []).map((a) => {
141
+ var _a, _b, _c;
142
+ return ({
143
+ name: `${(_b = (_a = a.label) !== null && _a !== void 0 ? _a : a.handle) !== null && _b !== void 0 ? _b : a.connection_id} (${a.platform})`,
144
+ value: String(a.connection_id),
145
+ description: a.can_publish === false ? String((_c = a.reason) !== null && _c !== void 0 ? _c : 'Cannot publish now') : undefined,
146
+ });
147
+ });
148
+ }
149
+ async function getAccountsOrDefault() {
150
+ return [{ name: 'Default Account', value: '' }, ...(await getAccounts.call(this))];
151
+ }
152
+ async function getNetworks() {
153
+ var _a;
154
+ const answer = await postoryApiRequest.call(this, 'GET', '/networks');
155
+ return ((_a = answer.networks) !== null && _a !== void 0 ? _a : []).map((n) => {
156
+ var _a;
157
+ return ({
158
+ name: String((_a = n.label) !== null && _a !== void 0 ? _a : n.network),
159
+ value: String(n.network),
160
+ });
161
+ });
162
+ }
163
+ function toParts(text, splitThread) {
164
+ const parts = splitThread ? text.split(/\n\s*---\s*\n/) : [text];
165
+ return parts.map((t) => t.trim()).filter((t) => t.length > 0).map((t) => ({ text: t }));
166
+ }
167
+ function simplifyPost(answer) {
168
+ var _a;
169
+ const keep = [
170
+ 'post_id',
171
+ 'status',
172
+ 'mode',
173
+ 'scheduled_post_id',
174
+ 'scheduled_at',
175
+ 'task_id',
176
+ 'web_url',
177
+ 'preview_url',
178
+ 'approval_url',
179
+ 'needs_confirmation',
180
+ ];
181
+ const out = {};
182
+ for (const k of keep)
183
+ if (answer[k] !== undefined && answer[k] !== null)
184
+ out[k] = answer[k];
185
+ const schedule = answer.schedule;
186
+ if (!out.scheduled_post_id && (schedule === null || schedule === void 0 ? void 0 : schedule.scheduled_post_id))
187
+ out.scheduled_post_id = schedule.scheduled_post_id;
188
+ const draft = answer.draft;
189
+ const rows = ((_a = answer.deliveries) !== null && _a !== void 0 ? _a : draft === null || draft === void 0 ? void 0 : draft.schedules);
190
+ if (Array.isArray(rows) && rows.length) {
191
+ out.deliveries = rows.map((d) => {
192
+ var _a, _b, _c, _d;
193
+ return ({
194
+ id: (_b = (_a = d.scheduled_post_id) !== null && _a !== void 0 ? _a : d.id) !== null && _b !== void 0 ? _b : d.task_id,
195
+ status: d.status,
196
+ scheduled_at: d.scheduled_at,
197
+ platform: (_d = (_c = d.account) === null || _c === void 0 ? void 0 : _c.platform) !== null && _d !== void 0 ? _d : d.platform,
198
+ connection_id: d.connection_id,
199
+ permalink: d.permalink,
200
+ });
201
+ });
202
+ }
203
+ if (!out.deliveries && out.scheduled_post_id) {
204
+ out.deliveries = [
205
+ {
206
+ id: out.scheduled_post_id,
207
+ status: answer.status,
208
+ scheduled_at: answer.scheduled_at,
209
+ connection_id: answer.connection_id,
210
+ },
211
+ ];
212
+ }
213
+ return out;
214
+ }
215
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Postory/GenericFunctions.ts"],"names":[],"mappings":";;;AAmBA,0BAIC;AAGD,wCAKC;AA4CD,8CAoCC;AAGD,8DAkBC;AAKD,8CAcC;AAED,kCAOC;AAGD,oDAEC;AAED,kCAMC;AAGD,0BAGC;AAGD,oCAyCC;AArND,+CAAmD;AAEnD,uC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AO,GAAG,CAAC;AACZ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ import { getAccounts, getAccountsOrDefault, getNetworks } from './GenericFunctions';
3
+ export declare class Postory implements INodeType {
4
+ description: INodeTypeDescription;
5
+ methods: {
6
+ loadOptions: {
7
+ getAccounts: typeof getAccounts;
8
+ getAccountsOrDefault: typeof getAccountsOrDefault;
9
+ getNetworks: typeof getNetworks;
10
+ };
11
+ };
12
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
13
+ }