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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,5 @@ qa-testing/
*.tgz

# Yarn Integrity file
.yarn-integrity
.yarn-integrity.test-csv-*
.hypernative/
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ formData.append('file', createReadStream(csvPath), {
Ensure the API client properly handles form-data content-type headers:
```typescript
const response = await this.apiClient.post(
`/api/v2/watchlists/${watchlistId}/upload-csv`,
`/watchlists/${watchlistId}/upload-csv`,
formData,
{
headers: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import { unwrapApiListResponse } from '../lib/api-response.js';

async list(limit = 50, offset = 0): Promise<Watchlist[]> {
try {
const response = await this.apiClient.get('/api/v2/watchlists', {
const response = await this.apiClient.get('/watchlists', {
params: { limit, offset },
});

Expand All @@ -113,7 +113,7 @@ import { unwrapApiResponse } from '../lib/api-response.js';

async getById(id: string): Promise<Watchlist | null> {
try {
const response = await this.apiClient.get(`/api/v2/watchlists/${id}`);
const response = await this.apiClient.get(`/watchlists/${id}`);
return unwrapApiResponse<Watchlist>(response);
} catch (error: any) {
if (error.status === 404) {
Expand All @@ -132,7 +132,7 @@ Fix methods that access nested response properties:
async create(config: WatchlistConfig): Promise<Watchlist> {
try {
const payload = this.buildWatchlistPayload(config);
const response = await this.apiClient.post('/api/v2/watchlists', payload);
const response = await this.apiClient.post('/watchlists', payload);
const created = unwrapApiResponse<Watchlist>(response);

log.info(`Created watchlist: ${created.name} (${created.id})`);
Expand All @@ -153,7 +153,7 @@ async uploadCsv(watchlistId: string, csvPath: string, replaceAssets = false): Pr
// ... form data creation ...

const response = await this.apiClient.post(
`/api/v2/watchlists/${watchlistId}/upload-csv`,
`/watchlists/${watchlistId}/upload-csv`,
formData,
{ headers: formData.getHeaders() }
);
Expand Down
4 changes: 2 additions & 2 deletions .memento/tickets/done/NEXT-009-Provider-Watchlists.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ Acceptance Criteria
- CSV upload supports dry-run mode to preview import counts

References
- GET/POST/PATCH/DELETE `/api/v2/watchlists`
- POST `/api/v2/watchlists/{id}/upload-csv`
- GET/POST/PATCH/DELETE `/watchlists`
- POST `/watchlists/{id}/upload-csv`

4 changes: 2 additions & 2 deletions .memento/tickets/done/NEXT-010-Provider-Custom-Agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Acceptance Criteria
- Channel references resolved; failures reported with actionable hints

References
- GET/POST/PATCH/DELETE `/api/v2/custom-agents`
- GET `/api/v2/custom-agents/{id}/status`
- GET/POST/PATCH/DELETE `/custom-agents`
- GET `/custom-agents/{id}/status`

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ Acceptance Criteria
- Secrets are never logged; redactions verified in debug logs

References
- GET/POST/PATCH/DELETE `/api/v2/notification-channels`
- POST `/api/v2/notification-channels/{id}/test`
- GET/POST/PATCH/DELETE `/notification-channels`
- POST `/notification-channels/{id}/test`

188 changes: 0 additions & 188 deletions CUSTOM_AGENTS_IMPLEMENTATION.md

This file was deleted.

Loading