@growsalesai/n8n-nodes-supermemory 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 (31) hide show
  1. package/dist/credentials/SupermemoryApi.credentials.d.ts +11 -0
  2. package/dist/credentials/SupermemoryApi.credentials.d.ts.map +1 -0
  3. package/dist/credentials/SupermemoryApi.credentials.js +42 -0
  4. package/dist/credentials/SupermemoryApi.credentials.js.map +1 -0
  5. package/dist/nodes/Supermemory/GenericFunctions.d.ts +8 -0
  6. package/dist/nodes/Supermemory/GenericFunctions.d.ts.map +1 -0
  7. package/dist/nodes/Supermemory/GenericFunctions.js +60 -0
  8. package/dist/nodes/Supermemory/GenericFunctions.js.map +1 -0
  9. package/dist/nodes/Supermemory/Supermemory.node.d.ts +6 -0
  10. package/dist/nodes/Supermemory/Supermemory.node.d.ts.map +1 -0
  11. package/dist/nodes/Supermemory/Supermemory.node.js +207 -0
  12. package/dist/nodes/Supermemory/Supermemory.node.js.map +1 -0
  13. package/dist/nodes/Supermemory/descriptions/ContainerTagDescription.d.ts +4 -0
  14. package/dist/nodes/Supermemory/descriptions/ContainerTagDescription.d.ts.map +1 -0
  15. package/dist/nodes/Supermemory/descriptions/ContainerTagDescription.js +40 -0
  16. package/dist/nodes/Supermemory/descriptions/ContainerTagDescription.js.map +1 -0
  17. package/dist/nodes/Supermemory/descriptions/DocumentDescription.d.ts +4 -0
  18. package/dist/nodes/Supermemory/descriptions/DocumentDescription.d.ts.map +1 -0
  19. package/dist/nodes/Supermemory/descriptions/DocumentDescription.js +322 -0
  20. package/dist/nodes/Supermemory/descriptions/DocumentDescription.js.map +1 -0
  21. package/dist/nodes/Supermemory/descriptions/ProfileDescription.d.ts +4 -0
  22. package/dist/nodes/Supermemory/descriptions/ProfileDescription.d.ts.map +1 -0
  23. package/dist/nodes/Supermemory/descriptions/ProfileDescription.js +72 -0
  24. package/dist/nodes/Supermemory/descriptions/ProfileDescription.js.map +1 -0
  25. package/dist/nodes/Supermemory/descriptions/index.d.ts +4 -0
  26. package/dist/nodes/Supermemory/descriptions/index.d.ts.map +1 -0
  27. package/dist/nodes/Supermemory/descriptions/index.js +13 -0
  28. package/dist/nodes/Supermemory/descriptions/index.js.map +1 -0
  29. package/dist/nodes/Supermemory/supermemory-growsales.svg +14 -0
  30. package/dist/nodes/Supermemory/supermemory.svg +14 -0
  31. package/package.json +55 -0
@@ -0,0 +1,11 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class SupermemoryApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: "file:supermemory.svg";
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
11
+ //# sourceMappingURL=SupermemoryApi.credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupermemoryApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/SupermemoryApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,qBAAa,cAAe,YAAW,eAAe;IACpD,IAAI,SAAoB;IACxB,WAAW,SAAqB;IAChC,gBAAgB,SAAmD;IACnE,IAAI,EAAG,sBAAsB,CAAU;IAEvC,UAAU,EAAE,eAAe,EAAE,CAU3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAS1B;CACH"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupermemoryApi = void 0;
4
+ class SupermemoryApi {
5
+ constructor() {
6
+ this.name = 'supermemoryApi';
7
+ this.displayName = 'Supermemory API';
8
+ this.documentationUrl = 'https://supermemory.ai/docs/authentication.md';
9
+ this.icon = 'file:supermemory.svg';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Key',
13
+ name: 'apiKey',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ required: true,
18
+ description: 'API key from console.supermemory.ai. Scoped keys follow the pattern sm_orgId_...',
19
+ },
20
+ ];
21
+ this.authenticate = {
22
+ type: 'generic',
23
+ properties: {
24
+ headers: {
25
+ Authorization: '=Bearer {{$credentials.apiKey}}',
26
+ },
27
+ },
28
+ };
29
+ this.test = {
30
+ request: {
31
+ baseURL: 'https://api.supermemory.ai',
32
+ url: '/v3/documents/list',
33
+ method: 'POST',
34
+ headers: {
35
+ 'Content-Type': 'application/json',
36
+ },
37
+ },
38
+ };
39
+ }
40
+ }
41
+ exports.SupermemoryApi = SupermemoryApi;
42
+ //# sourceMappingURL=SupermemoryApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupermemoryApi.credentials.js","sourceRoot":"","sources":["../../credentials/SupermemoryApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACE,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,qBAAgB,GAAG,+CAA+C,CAAC;QACnE,SAAI,GAAG,sBAA+B,CAAC;QAEvC,eAAU,GAAsB;YAC9B;gBACE,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,kFAAkF;aAChG;SACF,CAAC;QAEF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,aAAa,EAAE,iCAAiC;iBACjD;aACF;SACF,CAAC;QAEF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,oBAAoB;gBACzB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;iBACnC;aACF;SACF,CAAC;IACJ,CAAC;CAAA;AArCD,wCAqCC"}
@@ -0,0 +1,8 @@
1
+ import { IDataObject, IExecuteFunctions, IHttpRequestMethods } from 'n8n-workflow';
2
+ export declare function supermemoryApiRequest(this: IExecuteFunctions, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<IDataObject>;
3
+ export declare function buildMetadata(metadataValues: Array<{
4
+ key: string;
5
+ value: string;
6
+ }>): IDataObject;
7
+ export declare function parseFiltersJson(filtersJson: string): IDataObject | undefined;
8
+ //# sourceMappingURL=GenericFunctions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../nodes/Supermemory/GenericFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAuB,mBAAmB,EAA4B,MAAM,cAAc,CAAC;AAIlI,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,WAAW,EAClB,EAAE,CAAC,EAAE,WAAW,GACf,OAAO,CAAC,WAAW,CAAC,CAyBtB;AAED,wBAAgB,aAAa,CAC3B,cAAc,EAAE,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,WAAW,CAcb;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAO7E"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supermemoryApiRequest = supermemoryApiRequest;
4
+ exports.buildMetadata = buildMetadata;
5
+ exports.parseFiltersJson = parseFiltersJson;
6
+ const n8n_workflow_1 = require("n8n-workflow");
7
+ const BASE_URL = 'https://api.supermemory.ai';
8
+ async function supermemoryApiRequest(method, endpoint, body, qs) {
9
+ const credentials = (await this.getCredentials('supermemoryApi'));
10
+ const options = {
11
+ method,
12
+ url: `${BASE_URL}${endpoint}`,
13
+ headers: {
14
+ 'Content-Type': 'application/json',
15
+ Authorization: `Bearer ${credentials.apiKey}`,
16
+ },
17
+ };
18
+ if (body && method !== 'GET' && Object.keys(body).length > 0) {
19
+ options.body = body;
20
+ }
21
+ if (qs && Object.keys(qs).length > 0) {
22
+ options.qs = qs;
23
+ }
24
+ try {
25
+ return (await this.helpers.httpRequest(options));
26
+ }
27
+ catch (error) {
28
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
29
+ }
30
+ }
31
+ function buildMetadata(metadataValues) {
32
+ const metadata = {};
33
+ for (const { key, value } of metadataValues) {
34
+ if (key) {
35
+ if (value === 'true')
36
+ metadata[key] = true;
37
+ else if (value === 'false')
38
+ metadata[key] = false;
39
+ else {
40
+ const num = Number(value);
41
+ if (!isNaN(num) && value !== '')
42
+ metadata[key] = num;
43
+ else
44
+ metadata[key] = value;
45
+ }
46
+ }
47
+ }
48
+ return metadata;
49
+ }
50
+ function parseFiltersJson(filtersJson) {
51
+ if (!filtersJson || filtersJson.trim() === '')
52
+ return undefined;
53
+ try {
54
+ return JSON.parse(filtersJson);
55
+ }
56
+ catch {
57
+ throw new Error(`Filters JSON is invalid: ${filtersJson}`);
58
+ }
59
+ }
60
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Supermemory/GenericFunctions.ts"],"names":[],"mappings":";;AAIA,sDA+BC;AAED,sCAgBC;AAED,4CAOC;AA9DD,+CAAkI;AAElI,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAEvC,KAAK,UAAU,qBAAqB,CAEzC,MAA2B,EAC3B,QAAgB,EAChB,IA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,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,EAAE;oBAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;;oBAChD,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YAC7B,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAgB,gBAAgB,CAAC,WAAmB;IAClD,IAAI,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,SAAS,CAAC;IAChE,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAgB,CAAC;IAChD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,4BAA4B,WAAW,EAAE,CAAC,CAAC;IAC7D,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Supermemory implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
6
+ //# sourceMappingURL=Supermemory.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Supermemory.node.d.ts","sourceRoot":"","sources":["../../../nodes/Supermemory/Supermemory.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAGrB,MAAM,cAAc,CAAC;AAatB,qBAAa,WAAY,YAAW,SAAS;IAC3C,WAAW,EAAE,oBAAoB,CAsD/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAyKxE"}
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Supermemory = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const descriptions_1 = require("./descriptions");
6
+ const GenericFunctions_1 = require("./GenericFunctions");
7
+ class Supermemory {
8
+ constructor() {
9
+ this.description = {
10
+ displayName: 'Supermemory - Growsales AI',
11
+ name: 'supermemory',
12
+ icon: 'file:supermemory-growsales.svg',
13
+ group: ['transform'],
14
+ version: 1,
15
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
16
+ description: 'Interact with Supermemory — AI-powered memory and document management',
17
+ defaults: {
18
+ name: 'Supermemory - Growsales AI',
19
+ },
20
+ inputs: ['main'],
21
+ outputs: ['main'],
22
+ credentials: [
23
+ {
24
+ name: 'supermemoryApi',
25
+ required: true,
26
+ },
27
+ ],
28
+ properties: [
29
+ // ── Resource selector ──────────────────────────────────────
30
+ {
31
+ displayName: 'Resource',
32
+ name: 'resource',
33
+ type: 'options',
34
+ noDataExpression: true,
35
+ options: [
36
+ {
37
+ name: 'Document',
38
+ value: 'document',
39
+ description: 'Add, update, list, and search documents',
40
+ },
41
+ {
42
+ name: 'Container Tag',
43
+ value: 'containerTag',
44
+ description: 'Manage container tag settings',
45
+ },
46
+ {
47
+ name: 'Profile',
48
+ value: 'profile',
49
+ description: 'Retrieve user profile and context',
50
+ },
51
+ ],
52
+ default: 'document',
53
+ },
54
+ // ── Operations & fields per resource ───────────────────────
55
+ ...descriptions_1.documentOperations,
56
+ ...descriptions_1.documentFields,
57
+ ...descriptions_1.containerTagOperations,
58
+ ...descriptions_1.containerTagFields,
59
+ ...descriptions_1.profileOperations,
60
+ ...descriptions_1.profileFields,
61
+ ],
62
+ };
63
+ }
64
+ async execute() {
65
+ var _a, _b, _c;
66
+ const items = this.getInputData();
67
+ const returnData = [];
68
+ for (let i = 0; i < items.length; i++) {
69
+ try {
70
+ const resource = this.getNodeParameter('resource', i);
71
+ const operation = this.getNodeParameter('operation', i);
72
+ let responseData;
73
+ // ── DOCUMENT ────────────────────────────────────────────
74
+ if (resource === 'document') {
75
+ if (operation === 'add') {
76
+ const content = this.getNodeParameter('content', i);
77
+ const additionalFields = this.getNodeParameter('additionalFields', i);
78
+ const body = { content };
79
+ if (additionalFields.containerTag)
80
+ body.containerTag = additionalFields.containerTag;
81
+ if (additionalFields.customId)
82
+ body.customId = additionalFields.customId;
83
+ if (additionalFields.entityContext)
84
+ body.entityContext = additionalFields.entityContext;
85
+ if (additionalFields.taskType)
86
+ body.taskType = additionalFields.taskType;
87
+ if (additionalFields.metadata) {
88
+ const metaCollection = additionalFields.metadata;
89
+ if ((_a = metaCollection.metadataValues) === null || _a === void 0 ? void 0 : _a.length) {
90
+ body.metadata = (0, GenericFunctions_1.buildMetadata)(metaCollection.metadataValues);
91
+ }
92
+ }
93
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'POST', '/v3/documents', body);
94
+ }
95
+ else if (operation === 'update') {
96
+ const documentId = this.getNodeParameter('documentId', i);
97
+ const updateFields = this.getNodeParameter('updateFields', i);
98
+ if (!documentId)
99
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Document ID is required for update', { itemIndex: i });
100
+ const body = {};
101
+ if (updateFields.content)
102
+ body.content = updateFields.content;
103
+ if (updateFields.containerTag)
104
+ body.containerTag = updateFields.containerTag;
105
+ if (updateFields.customId)
106
+ body.customId = updateFields.customId;
107
+ if (updateFields.taskType)
108
+ body.taskType = updateFields.taskType;
109
+ if (updateFields.metadata) {
110
+ const metaCollection = updateFields.metadata;
111
+ if ((_b = metaCollection.metadataValues) === null || _b === void 0 ? void 0 : _b.length) {
112
+ body.metadata = (0, GenericFunctions_1.buildMetadata)(metaCollection.metadataValues);
113
+ }
114
+ }
115
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'PATCH', `/v3/documents/${documentId}`, body);
116
+ }
117
+ else if (operation === 'list') {
118
+ const body = {};
119
+ const containerTagsList = this.getNodeParameter('containerTagsList', i);
120
+ if ((_c = containerTagsList.tags) === null || _c === void 0 ? void 0 : _c.length) {
121
+ body.containerTags = containerTagsList.tags
122
+ .map((t) => t.tag)
123
+ .filter(Boolean);
124
+ }
125
+ const filtersJson = this.getNodeParameter('filtersJson', i, '');
126
+ const filters = (0, GenericFunctions_1.parseFiltersJson)(filtersJson);
127
+ if (filters)
128
+ body.filters = filters;
129
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'POST', '/v3/documents/list', body);
130
+ }
131
+ else if (operation === 'search') {
132
+ const query = this.getNodeParameter('query', i);
133
+ const searchAdditionalFields = this.getNodeParameter('searchAdditionalFields', i);
134
+ const body = { q: query };
135
+ if (searchAdditionalFields.containerTag)
136
+ body.containerTag = searchAdditionalFields.containerTag;
137
+ if (searchAdditionalFields.docId)
138
+ body.docId = searchAdditionalFields.docId;
139
+ if (searchAdditionalFields.chunkThreshold !== undefined && searchAdditionalFields.chunkThreshold !== '') {
140
+ body.chunkThreshold = searchAdditionalFields.chunkThreshold;
141
+ }
142
+ const filtersJson = searchAdditionalFields.filtersJson || '';
143
+ const filters = (0, GenericFunctions_1.parseFiltersJson)(filtersJson);
144
+ if (filters)
145
+ body.filters = filters;
146
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'POST', '/v3/search', body);
147
+ }
148
+ else {
149
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown document operation: ${operation}`, { itemIndex: i });
150
+ }
151
+ }
152
+ // ── CONTAINER TAG ───────────────────────────────────────
153
+ else if (resource === 'containerTag') {
154
+ if (operation === 'getSettings') {
155
+ const containerTag = this.getNodeParameter('containerTag', i);
156
+ if (!containerTag)
157
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Container Tag is required', { itemIndex: i });
158
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'GET', `/v3/container-tags/${encodeURIComponent(containerTag)}`);
159
+ }
160
+ else {
161
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown container tag operation: ${operation}`, { itemIndex: i });
162
+ }
163
+ }
164
+ // ── PROFILE ─────────────────────────────────────────────
165
+ else if (resource === 'profile') {
166
+ if (operation === 'get') {
167
+ const profileAdditionalFields = this.getNodeParameter('profileAdditionalFields', i);
168
+ const body = {};
169
+ if (profileAdditionalFields.q)
170
+ body.q = profileAdditionalFields.q;
171
+ if (profileAdditionalFields.containerTag)
172
+ body.containerTag = profileAdditionalFields.containerTag;
173
+ if (profileAdditionalFields.threshold !== undefined && profileAdditionalFields.threshold !== '') {
174
+ body.threshold = profileAdditionalFields.threshold;
175
+ }
176
+ const filtersJson = profileAdditionalFields.filtersJson || '';
177
+ const filters = (0, GenericFunctions_1.parseFiltersJson)(filtersJson);
178
+ if (filters)
179
+ body.filters = filters;
180
+ responseData = await GenericFunctions_1.supermemoryApiRequest.call(this, 'POST', '/v4/profile', body);
181
+ }
182
+ else {
183
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown profile operation: ${operation}`, { itemIndex: i });
184
+ }
185
+ }
186
+ else {
187
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`, { itemIndex: i });
188
+ }
189
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(Array.isArray(responseData) ? responseData : [responseData]), { itemData: { item: i } });
190
+ returnData.push(...executionData);
191
+ }
192
+ catch (error) {
193
+ if (this.continueOnFail()) {
194
+ returnData.push({
195
+ json: { error: error.message },
196
+ pairedItem: { item: i },
197
+ });
198
+ continue;
199
+ }
200
+ throw error;
201
+ }
202
+ }
203
+ return [returnData];
204
+ }
205
+ }
206
+ exports.Supermemory = Supermemory;
207
+ //# sourceMappingURL=Supermemory.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Supermemory.node.js","sourceRoot":"","sources":["../../../nodes/Supermemory/Supermemory.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,iDAOwB;AAExB,yDAA4F;AAE5F,MAAa,WAAW;IAAxB;QACE,gBAAW,GAAyB;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QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBAClG,CAAC;gBAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC3D,IAAI,CAAC,OAAO,CAAC,eAAe,CAC1B,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAC5D,EACD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAC1B,CAAC;gBAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;YAEpC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC1B,UAAU,CAAC,IAAI,CAAC;wBACd,IAAI,EAAE,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;wBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACxB,CAAC,CAAC;oBACH,SAAS;gBACX,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACtB,CAAC;CACF;AAlOD,kCAkOC"}
@@ -0,0 +1,4 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const containerTagOperations: INodeProperties[];
3
+ export declare const containerTagFields: INodeProperties[];
4
+ //# sourceMappingURL=ContainerTagDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerTagDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/ContainerTagDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,eAAe,EAqBnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAa/C,CAAC"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.containerTagFields = exports.containerTagOperations = void 0;
4
+ exports.containerTagOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['containerTag'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get Settings',
18
+ value: 'getSettings',
19
+ description: 'Retrieve settings and context for a container tag',
20
+ action: 'Get container tag settings',
21
+ },
22
+ ],
23
+ default: 'getSettings',
24
+ },
25
+ ];
26
+ exports.containerTagFields = [
27
+ {
28
+ displayName: 'Container Tag',
29
+ name: 'containerTag',
30
+ type: 'string',
31
+ required: true,
32
+ default: '',
33
+ displayOptions: {
34
+ show: { resource: ['containerTag'], operation: ['getSettings'] },
35
+ },
36
+ description: 'The container tag identifier to retrieve settings for',
37
+ placeholder: 'e.g. user-123 or project-abc',
38
+ },
39
+ ];
40
+ //# sourceMappingURL=ContainerTagDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContainerTagDescription.js","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/ContainerTagDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACvD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;aAC3B;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,mDAAmD;gBAChE,MAAM,EAAE,4BAA4B;aACrC;SACF;QACD,OAAO,EAAE,aAAa;KACvB;CACF,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE;SACjE;QACD,WAAW,EAAE,uDAAuD;QACpE,WAAW,EAAE,8BAA8B;KAC5C;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const documentOperations: INodeProperties[];
3
+ export declare const documentFields: INodeProperties[];
4
+ //# sourceMappingURL=DocumentDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/DocumentDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,kBAAkB,EAAE,eAAe,EAuC/C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAAe,EA2R3C,CAAC"}
@@ -0,0 +1,322 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentFields = exports.documentOperations = void 0;
4
+ exports.documentOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['document'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Add',
18
+ value: 'add',
19
+ description: 'Add a new document to Supermemory',
20
+ action: 'Add a document',
21
+ },
22
+ {
23
+ name: 'Update',
24
+ value: 'update',
25
+ description: 'Update an existing document by ID',
26
+ action: 'Update a document',
27
+ },
28
+ {
29
+ name: 'List',
30
+ value: 'list',
31
+ description: 'List all documents with optional filtering',
32
+ action: 'List documents',
33
+ },
34
+ {
35
+ name: 'Search',
36
+ value: 'search',
37
+ description: 'Semantic search across stored documents',
38
+ action: 'Search documents',
39
+ },
40
+ ],
41
+ default: 'add',
42
+ },
43
+ ];
44
+ exports.documentFields = [
45
+ // ─── ADD DOCUMENT ───────────────────────────────────────────────
46
+ {
47
+ displayName: 'Content',
48
+ name: 'content',
49
+ type: 'string',
50
+ typeOptions: { rows: 4 },
51
+ required: true,
52
+ default: '',
53
+ displayOptions: {
54
+ show: { resource: ['document'], operation: ['add'] },
55
+ },
56
+ description: 'Content to process — can be text, a URL, a PDF link, an image URL, or a video URL',
57
+ },
58
+ {
59
+ displayName: 'Additional Fields',
60
+ name: 'additionalFields',
61
+ type: 'collection',
62
+ placeholder: 'Add Field',
63
+ default: {},
64
+ displayOptions: {
65
+ show: { resource: ['document'], operation: ['add'] },
66
+ },
67
+ options: [
68
+ {
69
+ displayName: 'Container Tag',
70
+ name: 'containerTag',
71
+ type: 'string',
72
+ default: '',
73
+ description: 'Namespace to organise documents (alphanumeric, hyphens, underscores, dots — max 100 chars)',
74
+ placeholder: 'e.g. user-123 or project-abc',
75
+ },
76
+ {
77
+ displayName: 'Custom ID',
78
+ name: 'customId',
79
+ type: 'string',
80
+ default: '',
81
+ description: 'Your own identifier for this document (max 100 chars)',
82
+ },
83
+ {
84
+ displayName: 'Entity Context',
85
+ name: 'entityContext',
86
+ type: 'string',
87
+ typeOptions: { rows: 3 },
88
+ default: '',
89
+ description: 'Processing guidance passed to the model when ingesting this document (max 1500 chars)',
90
+ },
91
+ {
92
+ displayName: 'Metadata',
93
+ name: 'metadata',
94
+ type: 'fixedCollection',
95
+ typeOptions: { multipleValues: true },
96
+ placeholder: 'Add Metadata Field',
97
+ default: {},
98
+ options: [
99
+ {
100
+ name: 'metadataValues',
101
+ displayName: 'Metadata',
102
+ values: [
103
+ {
104
+ displayName: 'Key',
105
+ name: 'key',
106
+ type: 'string',
107
+ default: '',
108
+ description: 'Metadata field name',
109
+ },
110
+ {
111
+ displayName: 'Value',
112
+ name: 'value',
113
+ type: 'string',
114
+ default: '',
115
+ description: 'Metadata field value (string, number, or boolean)',
116
+ },
117
+ ],
118
+ },
119
+ ],
120
+ description: 'Custom key-value metadata for filtering and context',
121
+ },
122
+ {
123
+ displayName: 'Task Type',
124
+ name: 'taskType',
125
+ type: 'options',
126
+ options: [
127
+ {
128
+ name: 'Memory (Default)',
129
+ value: 'memory',
130
+ description: 'Full context layer with SuperRAG',
131
+ },
132
+ {
133
+ name: 'SuperRAG',
134
+ value: 'superrag',
135
+ description: 'Managed RAG service only',
136
+ },
137
+ ],
138
+ default: 'memory',
139
+ description: 'Processing pipeline to use for this document',
140
+ },
141
+ ],
142
+ },
143
+ // ─── UPDATE DOCUMENT ────────────────────────────────────────────
144
+ {
145
+ displayName: 'Document ID',
146
+ name: 'documentId',
147
+ type: 'string',
148
+ required: true,
149
+ default: '',
150
+ displayOptions: {
151
+ show: { resource: ['document'], operation: ['update'] },
152
+ },
153
+ description: 'Unique identifier of the document to update',
154
+ },
155
+ {
156
+ displayName: 'Update Fields',
157
+ name: 'updateFields',
158
+ type: 'collection',
159
+ placeholder: 'Add Field',
160
+ default: {},
161
+ displayOptions: {
162
+ show: { resource: ['document'], operation: ['update'] },
163
+ },
164
+ options: [
165
+ {
166
+ displayName: 'Container Tag',
167
+ name: 'containerTag',
168
+ type: 'string',
169
+ default: '',
170
+ description: 'New container tag for the document',
171
+ },
172
+ {
173
+ displayName: 'Content',
174
+ name: 'content',
175
+ type: 'string',
176
+ typeOptions: { rows: 4 },
177
+ default: '',
178
+ description: 'New content — text, URL, PDF, image, or video',
179
+ },
180
+ {
181
+ displayName: 'Custom ID',
182
+ name: 'customId',
183
+ type: 'string',
184
+ default: '',
185
+ description: 'New custom identifier',
186
+ },
187
+ {
188
+ displayName: 'Metadata',
189
+ name: 'metadata',
190
+ type: 'fixedCollection',
191
+ typeOptions: { multipleValues: true },
192
+ placeholder: 'Add Metadata Field',
193
+ default: {},
194
+ options: [
195
+ {
196
+ name: 'metadataValues',
197
+ displayName: 'Metadata',
198
+ values: [
199
+ {
200
+ displayName: 'Key',
201
+ name: 'key',
202
+ type: 'string',
203
+ default: '',
204
+ },
205
+ {
206
+ displayName: 'Value',
207
+ name: 'value',
208
+ type: 'string',
209
+ default: '',
210
+ },
211
+ ],
212
+ },
213
+ ],
214
+ },
215
+ {
216
+ displayName: 'Task Type',
217
+ name: 'taskType',
218
+ type: 'options',
219
+ options: [
220
+ { name: 'Memory', value: 'memory' },
221
+ { name: 'SuperRAG', value: 'superrag' },
222
+ ],
223
+ default: 'memory',
224
+ },
225
+ ],
226
+ },
227
+ // ─── LIST DOCUMENTS ─────────────────────────────────────────────
228
+ {
229
+ displayName: 'Container Tags',
230
+ name: 'containerTagsList',
231
+ type: 'fixedCollection',
232
+ typeOptions: { multipleValues: true },
233
+ placeholder: 'Add Container Tag',
234
+ default: {},
235
+ displayOptions: {
236
+ show: { resource: ['document'], operation: ['list'] },
237
+ },
238
+ options: [
239
+ {
240
+ name: 'tags',
241
+ displayName: 'Tags',
242
+ values: [
243
+ {
244
+ displayName: 'Container Tag',
245
+ name: 'tag',
246
+ type: 'string',
247
+ default: '',
248
+ placeholder: 'e.g. user-123',
249
+ },
250
+ ],
251
+ },
252
+ ],
253
+ description: 'Filter documents by container tag(s)',
254
+ },
255
+ {
256
+ displayName: 'Filters (JSON)',
257
+ name: 'filtersJson',
258
+ type: 'json',
259
+ default: '',
260
+ displayOptions: {
261
+ show: { resource: ['document'], operation: ['list'] },
262
+ },
263
+ description: 'Advanced filters as JSON. Supports nested AND/OR logic with metadata, numeric, array_contains, and string_contains filter types.',
264
+ placeholder: '{"AND":[{"key":"category","value":"blog","filterType":"metadata"}]}',
265
+ },
266
+ // ─── SEARCH DOCUMENTS ───────────────────────────────────────────
267
+ {
268
+ displayName: 'Query',
269
+ name: 'query',
270
+ type: 'string',
271
+ required: true,
272
+ default: '',
273
+ displayOptions: {
274
+ show: { resource: ['document'], operation: ['search'] },
275
+ },
276
+ description: 'Natural language query to search documents semantically',
277
+ placeholder: 'e.g. machine learning best practices',
278
+ },
279
+ {
280
+ displayName: 'Additional Fields',
281
+ name: 'searchAdditionalFields',
282
+ type: 'collection',
283
+ placeholder: 'Add Field',
284
+ default: {},
285
+ displayOptions: {
286
+ show: { resource: ['document'], operation: ['search'] },
287
+ },
288
+ options: [
289
+ {
290
+ displayName: 'Container Tag',
291
+ name: 'containerTag',
292
+ type: 'string',
293
+ default: '',
294
+ description: 'Limit search to a single container tag',
295
+ },
296
+ {
297
+ displayName: 'Chunk Threshold',
298
+ name: 'chunkThreshold',
299
+ type: 'number',
300
+ typeOptions: { minValue: 0, maxValue: 1, numberStepSize: 0.05 },
301
+ default: 0,
302
+ description: 'Score threshold for chunk selection (0–1). Only chunks above this score are returned.',
303
+ },
304
+ {
305
+ displayName: 'Document ID',
306
+ name: 'docId',
307
+ type: 'string',
308
+ default: '',
309
+ description: 'Restrict search to a specific document ID',
310
+ },
311
+ {
312
+ displayName: 'Filters (JSON)',
313
+ name: 'filtersJson',
314
+ type: 'json',
315
+ default: '',
316
+ description: 'Advanced metadata filters as JSON object',
317
+ placeholder: '{"AND":[{"key":"author","value":"john","filterType":"metadata"}]}',
318
+ },
319
+ ],
320
+ },
321
+ ];
322
+ //# sourceMappingURL=DocumentDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDescription.js","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/DocumentDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;aACvB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,gBAAgB;aACzB;YACD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I,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2CAA2C;aACzD;YACD;gBACE,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;gBACvD,WAAW,EAAE,mEAAmE;aACjF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ export declare const profileOperations: INodeProperties[];
3
+ export declare const profileFields: INodeProperties[];
4
+ //# sourceMappingURL=ProfileDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/ProfileDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAqB9C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,eAAe,EA6C1C,CAAC"}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.profileFields = exports.profileOperations = void 0;
4
+ exports.profileOperations = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['profile'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Get User Profile',
18
+ value: 'get',
19
+ description: 'Retrieve the user profile with dynamic and static context',
20
+ action: 'Get user profile',
21
+ },
22
+ ],
23
+ default: 'get',
24
+ },
25
+ ];
26
+ exports.profileFields = [
27
+ {
28
+ displayName: 'Additional Fields',
29
+ name: 'profileAdditionalFields',
30
+ type: 'collection',
31
+ placeholder: 'Add Field',
32
+ default: {},
33
+ displayOptions: {
34
+ show: { resource: ['profile'], operation: ['get'] },
35
+ },
36
+ options: [
37
+ {
38
+ displayName: 'Query',
39
+ name: 'q',
40
+ type: 'string',
41
+ default: '',
42
+ description: 'Optional search query to include matching results in the profile response',
43
+ placeholder: 'e.g. preferences, past purchases',
44
+ },
45
+ {
46
+ displayName: 'Container Tag',
47
+ name: 'containerTag',
48
+ type: 'string',
49
+ default: '',
50
+ description: 'Filter profile by container tag (user ID, project ID, etc.)',
51
+ placeholder: 'e.g. user-123',
52
+ },
53
+ {
54
+ displayName: 'Score Threshold',
55
+ name: 'threshold',
56
+ type: 'number',
57
+ typeOptions: { minValue: 0, maxValue: 1, numberStepSize: 0.05 },
58
+ default: 0,
59
+ description: 'Only include results with a relevance score above this value (0–1)',
60
+ },
61
+ {
62
+ displayName: 'Filters (JSON)',
63
+ name: 'filtersJson',
64
+ type: 'json',
65
+ default: '',
66
+ description: 'Advanced metadata filters as JSON object',
67
+ placeholder: '{"AND":[{"key":"verified","value":"true","filterType":"metadata"}]}',
68
+ },
69
+ ],
70
+ },
71
+ ];
72
+ //# sourceMappingURL=ProfileDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProfileDescription.js","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/ProfileDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,2DAA2D;gBACxE,MAAM,EAAE,kBAAkB;aAC3B;SACF;QACD,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE;SACpD;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,2EAA2E;gBACxF,WAAW,EAAE,kCAAkC;aAChD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6DAA6D;gBAC1E,WAAW,EAAE,eAAe;aAC7B;YACD;gBACE,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE;gBAC/D,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,oEAAoE;aAClF;YACD;gBACE,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0CAA0C;gBACvD,WAAW,EAAE,qEAAqE;aACnF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { documentOperations, documentFields } from './DocumentDescription';
2
+ export { containerTagOperations, containerTagFields } from './ContainerTagDescription';
3
+ export { profileOperations, profileFields } from './ProfileDescription';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.profileFields = exports.profileOperations = exports.containerTagFields = exports.containerTagOperations = exports.documentFields = exports.documentOperations = void 0;
4
+ var DocumentDescription_1 = require("./DocumentDescription");
5
+ Object.defineProperty(exports, "documentOperations", { enumerable: true, get: function () { return DocumentDescription_1.documentOperations; } });
6
+ Object.defineProperty(exports, "documentFields", { enumerable: true, get: function () { return DocumentDescription_1.documentFields; } });
7
+ var ContainerTagDescription_1 = require("./ContainerTagDescription");
8
+ Object.defineProperty(exports, "containerTagOperations", { enumerable: true, get: function () { return ContainerTagDescription_1.containerTagOperations; } });
9
+ Object.defineProperty(exports, "containerTagFields", { enumerable: true, get: function () { return ContainerTagDescription_1.containerTagFields; } });
10
+ var ProfileDescription_1 = require("./ProfileDescription");
11
+ Object.defineProperty(exports, "profileOperations", { enumerable: true, get: function () { return ProfileDescription_1.profileOperations; } });
12
+ Object.defineProperty(exports, "profileFields", { enumerable: true, get: function () { return ProfileDescription_1.profileFields; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Supermemory/descriptions/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2E;AAAlE,yHAAA,kBAAkB,OAAA;AAAE,qHAAA,cAAc,OAAA;AAC3C,qEAAuF;AAA9E,iIAAA,sBAAsB,OAAA;AAAE,6HAAA,kBAAkB,OAAA;AACnD,2DAAwE;AAA/D,uHAAA,iBAAiB,OAAA;AAAE,mHAAA,aAAa,OAAA"}
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
+ <defs>
3
+ <linearGradient id="arrowGrad" x1="0%" y1="0%" x2="100%" y2="100%">
4
+ <stop offset="0%" stop-color="#93c5fd"/>
5
+ <stop offset="100%" stop-color="#3b82f6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <!-- Dark background -->
9
+ <rect width="64" height="64" rx="10" fill="#1a1e2e"/>
10
+ <!-- Left chevron ">" pointing right -->
11
+ <path d="M10 18 L26 32 L10 46" stroke="url(#arrowGrad)" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
12
+ <!-- Right chevron "<" pointing left -->
13
+ <path d="M54 18 L38 32 L54 46" stroke="url(#arrowGrad)" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
14
+ </svg>
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none">
2
+ <defs>
3
+ <linearGradient id="arrowGrad" x1="0%" y1="0%" x2="100%" y2="100%">
4
+ <stop offset="0%" stop-color="#93c5fd"/>
5
+ <stop offset="100%" stop-color="#3b82f6"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <!-- Dark background -->
9
+ <rect width="64" height="64" rx="10" fill="#1a1e2e"/>
10
+ <!-- Left chevron ">" pointing right -->
11
+ <path d="M10 18 L26 32 L10 46" stroke="url(#arrowGrad)" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
12
+ <!-- Right chevron "<" pointing left -->
13
+ <path d="M54 18 L38 32 L54 46" stroke="url(#arrowGrad)" stroke-width="6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
14
+ </svg>
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@growsalesai/n8n-nodes-supermemory",
3
+ "version": "0.1.0",
4
+ "description": "n8n community node for Supermemory - AI-powered memory and document management",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "supermemory",
8
+ "memory",
9
+ "ai",
10
+ "rag"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://supermemory.ai",
14
+ "author": {
15
+ "name": "GrowSales",
16
+ "email": "growsales.ai@gmail.com"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/growsales-ai/n8n-nodes-growsales-supermemory.git"
21
+ },
22
+ "main": "index.js",
23
+ "scripts": {
24
+ "build": "tsc && npm run build:icons",
25
+ "build:icons": "copyfiles -u 0 \"nodes/**/*.svg\" dist/",
26
+ "dev": "tsc --watch",
27
+ "format": "prettier nodes credentials --write",
28
+ "lint": "eslint nodes credentials --ext .ts",
29
+ "lintfix": "eslint nodes credentials --ext .ts --fix",
30
+ "prepublishOnly": "npm run build && npm run lint"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "n8n": {
36
+ "n8nNodesApiVersion": 1,
37
+ "credentials": [
38
+ "dist/credentials/SupermemoryApi.credentials.js"
39
+ ],
40
+ "nodes": [
41
+ "dist/nodes/Supermemory/Supermemory.node.js"
42
+ ]
43
+ },
44
+ "devDependencies": {
45
+ "@typescript-eslint/parser": "^5.62.0",
46
+ "copyfiles": "^2.4.1",
47
+ "eslint-plugin-n8n-nodes-base": "^1.16.2",
48
+ "n8n-workflow": "*",
49
+ "prettier": "^2.8.8",
50
+ "typescript": "^5.1.6"
51
+ },
52
+ "peerDependencies": {
53
+ "n8n-workflow": "*"
54
+ }
55
+ }