Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 0 additions & 109 deletions docs/manifest/detailed-manifest-ex.json.jsx

This file was deleted.

19 changes: 6 additions & 13 deletions docs/manifest/examples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ id: manifest-examples
title: Manifest examples
---

import CodeBlock from '@theme/CodeBlock';
The [example-assets](https://contentauth.github.io/example-assets/) repository contains some sample assets that demonstrate Content Credentials, including links to view the corresponding manifest reports from the [C2PA Tool](../c2patool/readme.md) and to inspect the assets using Verify. See [the README as rendered in GitHub Pages](https://contentauth.github.io/example-assets/).

### Example assets
<!--

The [example-assets](https://contentauth.github.io/example-assets/) repository contains some sample assets that demonstrate Content Credentials, including links to view the corresponding manifest reports from the [C2PA Tool](../c2patool/readme.md) and to inspect the assets using Verify. See [the README as rendered in GitHub Pages](https://contentauth.github.io/example-assets/).
import CodeBlock from '@theme/CodeBlock';

## Examples from C2PA Tool
Examples from C2PA Tool

The command-line [C2PA Tool](../c2patool/readme.md), `c2patool`, is helpful when developing applications to work with manifest data. When saving a manifest, it has two modes:

Expand All @@ -20,18 +20,11 @@ The command-line [C2PA Tool](../c2patool/readme.md), `c2patool`, is helpful when

This manifest was saved using `c2patool` with no options.

import SimpleManifestEx from '!!raw-loader!./simple-manifest-ex.json.jsx';
./simple-manifest-ex.json.jsx;

<CodeBlock language="json" showLineNumbers>
{SimpleManifestEx}
</CodeBlock>

### Detailed manifest

import DetailedManifestEx from '!!raw-loader!./detailed-manifest-ex.json.jsx';

This manifest was saved using `c2patool` with the `-d` option. Even though it was generated for the same asset and Content Credentials as the simple manifest example, you can see that it's about twice as long.

<CodeBlock language="json" showLineNumbers>
{DetailedManifestEx}
</CodeBlock>
-->
54 changes: 0 additions & 54 deletions docs/manifest/simple-manifest-ex.json.jsx

This file was deleted.

10 changes: 7 additions & 3 deletions docs/manifest/writing/assertions-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ For example:
{
"action": "c2pa.created",
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia",
"softwareAgent": "Adobe Firefly"
"softwareAgent": {
"name": "Tool XYZ",
},
}
]
}
Expand All @@ -268,7 +270,7 @@ Each object in the `actions` array has the following standard properties.
|----------|-----------| ------------|---------|
| `action` | Yes | The action name. See [Action names](#action-names). | `c2pa.created` |
| `digitalSourceType` | No | A URL identifying a [IPTC term](https://cv.iptc.org/newscodes/digitalsourcetype/). See [Digital source type](#digital-source-type). | `http://cv.iptc.org/newscodes/`<br/> `digitalsourcetype/digitalCapture` |
| `softwareAgent` | No | The software or hardware used to perform the action. | `"Adobe Firefly"` |
| `softwareAgent` | No | Object with same properties as [ClaimGeneratorInfo](../json-ref/manifest-def.mdx#claimgeneratorinfo). | `"softwareAgent": { "name": "My Tool", },` |
| `parameters` | No | Additional information describing the action; see [Parameters](#parameters) | Reference to ingredients in the `ingredientIds` array. |
| `parameters` | No | Additional information describing the action; see [Parameters](#parameters) | Reference to ingredients in the `ingredientIds` array. |

Expand Down Expand Up @@ -336,7 +338,9 @@ For other possible values of `digitalSourceType`, see [Digital source type](#dig
{
"action": "c2pa.created",
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia",
"softwareAgent": "<TOOL_NAME>"
"softwareAgent": {
"name": "My GenAI Tool",
},
}
]
}
Expand Down
7 changes: 4 additions & 3 deletions docs/manifest/writing/ingredients.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ Use that ID when the manifest gets defined in an `ingredientsId` array; [for exa
{
"action": "c2pa.opened",
"softwareAgent": {
"name": "Opened asset",
"name": "Tool XYZ",
},
"parameters": {
"ingredientIds": [
parent_ingredient_id
"xmp:iid:a965983b-36fb-445a-aa80-a2d911dcc53c"
]
},
...
},
...
```

Then the SDK links the ingredient with the action.
Expand Down
Loading