You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pdp/README.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,9 +162,12 @@ All endpoints are rooted at `/pdp`.
162
162
"pieceCid": "<piece-CID-v2>",
163
163
"status": "<status>",
164
164
"indexed": <boolean>,
165
+
"indexedAt": "<RFC3339-timestamp-or-omitted>",
166
+
"adCreated": <boolean>,
167
+
"adCreatedAt": "<RFC3339-timestamp-or-omitted>",
168
+
"adCid": "<ad-CID-or-omitted>",
165
169
"advertised": <boolean>,
166
-
"retrieved": <boolean>,
167
-
"retrievedAt": "<RFC3339-timestamp-or-omitted>"
170
+
"advertisedAt": "<RFC3339-timestamp-or-omitted>"
168
171
}
169
172
```
170
173
@@ -174,12 +177,14 @@ All endpoints are rooted at `/pdp`.
174
177
-`"pending"` – Not yet indexed.
175
178
-`"indexing"` – CAR indexing task is in progress.
176
179
-`"creating_ad"` – IPNI advertisement is being created.
177
-
-`"announced"` – Advertisement published to IPNI network.
178
-
-`"retrieved"` – Piece has been retrieved by a client.
180
+
-`"announced"` – The advertisement row exists. Not a guarantee it's been broadcast (see `advertised`) or indexed (see `adCid`).
179
181
-`indexed`: Whether the piece has been indexed and is ready for IPNI.
180
-
-`advertised`: Whether an IPNI advertisement has been published.
181
-
-`retrieved`: Whether the piece has been retrieved by a client.
182
-
-`retrievedAt`: Timestamp of last retrieval (omitted if never retrieved).
182
+
-`indexedAt`: Timestamp CAR indexing completed (omitted if not yet indexed).
183
+
-`adCreated`: Whether an IPNI advertisement has been created for this piece.
184
+
-`adCreatedAt`: Timestamp the advertisement was created (omitted if not yet created).
185
+
-`adCid`: This piece's advertisement CID, once created. Curio doesn't check whether an indexer finished processing it - callers can, e.g. `GET https://cid.contact/sync/status/ad/{adCid}`.
186
+
-`advertised`: Whether the provider has sent an HTTP announce covering this ad.
187
+
-`advertisedAt`: Approximate, not a fixed record: it's the last known successful announce time for the *provider*, not this ad specifically, so it can drift forward on later calls once the provider announces newer ads, and is lost on a Curio restart (the provider re-announces its current head once on startup to recover it).
0 commit comments