n8n-nodes-proofofauthenticity 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,6 +30,28 @@ Certify content with blockchain timestamp.
30
30
  | Description | Description (optional) |
31
31
  | Certification Mode | Simple or AI + C2PA |
32
32
 
33
+ ### Download C2PA File
34
+
35
+ Download the C2PA signed image file as binary output. Use this after creating a certificate with AI + C2PA mode.
36
+
37
+ | Parameter | Description |
38
+ |-----------|-------------|
39
+ | C2PA Download URL | The `c2pa_download_url` returned by Create Certificate (AI mode) |
40
+ | Binary Property Name | Output binary property name (default: `c2pa_file`) |
41
+
42
+ **Output**: Binary file with C2PA metadata embedded.
43
+
44
+ ### Download PDF Certificate
45
+
46
+ Download the PDF certificate as binary output.
47
+
48
+ | Parameter | Description |
49
+ |-----------|-------------|
50
+ | IV Storage ID | The `iv_storageid` returned by Create Certificate |
51
+ | Binary Property Name | Output binary property name (default: `pdf_certificate`) |
52
+
53
+ **Output**: PDF document with certification details.
54
+
33
55
  ### List Certificates
34
56
 
35
57
  List blockchain certificates with optional filters (hash, filename, signature).
@@ -429,8 +429,8 @@ class ProofOfAuthenticity {
429
429
  // DOWNLOAD PDF CERTIFICATE PARAMETERS
430
430
  // ============================================
431
431
  {
432
- displayName: 'C2PA File ID',
433
- name: 'c2paFileId',
432
+ displayName: 'IV Storage ID',
433
+ name: 'ivStorageId',
434
434
  type: 'string',
435
435
  displayOptions: {
436
436
  show: {
@@ -440,7 +440,7 @@ class ProofOfAuthenticity {
440
440
  default: '',
441
441
  required: true,
442
442
  placeholder: 'abc123-def456-ghi789',
443
- description: 'The c2pa_file_id returned by Create Certificate (AI mode)',
443
+ description: 'The iv_storageid returned by Create Certificate',
444
444
  },
445
445
  {
446
446
  displayName: 'Binary Property Name',
@@ -632,9 +632,9 @@ class ProofOfAuthenticity {
632
632
  // DOWNLOAD PDF CERTIFICATE OPERATION
633
633
  // ============================================
634
634
  else if (operation === 'downloadPdfCertificate') {
635
- const c2paFileId = this.getNodeParameter('c2paFileId', i);
635
+ const ivStorageId = this.getNodeParameter('ivStorageId', i);
636
636
  const binaryPropertyName = this.getNodeParameter('pdfBinaryProperty', i, 'pdf_certificate');
637
- const pdfUrl = `${baseUrl}/api/c2pa/certificate/${c2paFileId}/pdf`;
637
+ const pdfUrl = `${baseUrl}/api/solmemo/certificate/${ivStorageId}`;
638
638
  const response = await axios_1.default.get(pdfUrl, {
639
639
  timeout: DOWNLOAD_TIMEOUT,
640
640
  responseType: 'arraybuffer',
@@ -647,7 +647,7 @@ class ProofOfAuthenticity {
647
647
  });
648
648
  const contentType = response.headers['content-type'] || 'application/pdf';
649
649
  const contentDisposition = response.headers['content-disposition'] || '';
650
- let fileName = `certificate_${c2paFileId}.pdf`;
650
+ let fileName = `certificate_${ivStorageId}.pdf`;
651
651
  const filenameMatch = contentDisposition.match(/filename[^;=\n]*=(['"]?)([^'"\n;]*)['"]?/);
652
652
  if (filenameMatch && filenameMatch[2]) {
653
653
  fileName = filenameMatch[2];
@@ -659,7 +659,7 @@ class ProofOfAuthenticity {
659
659
  fileName,
660
660
  mimeType: contentType,
661
661
  fileSize: response.data.byteLength,
662
- c2paFileId,
662
+ ivStorageId,
663
663
  },
664
664
  binary: {
665
665
  [binaryPropertyName]: binaryData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-proofofauthenticity",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "ProofOfAuthenticity by CHECKHC - Blockchain timestamping with AI detection and C2PA content authenticity.",
5
5
  "keywords": [
6
6
  "n8n",