@freqhole/api-client 0.2.4 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freqhole/api-client",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -145,10 +145,10 @@ export const routes = {
145
145
  list_taxon_parents_for_kind: { method: 'POST', path: '/api/taxonomy/parents/list-by-kind', req: s.ListTaxonParentsForKindRequestSchema, resp: s.TaxonParentEdgeSchema.array(), auth: { type: 'authenticated' } as const },
146
146
  list_taxons_by_kind: { method: 'POST', path: '/api/taxonomy/taxons/list-by-kind', req: s.ListTaxonsByKindRequestSchema, resp: s.TaxonSchema.array(), auth: { type: 'authenticated' } as const },
147
147
  listening_history: { method: 'POST', path: '/api/analytics/listening-history', req: s.ListeningHistoryRequestSchema, resp: s.ListeningHistoryResponseSchema, auth: { type: 'authenticated' } as const },
148
- mark_album_reviewed: { method: 'POST', path: '/api/music/import/mark-reviewed', req: s.MarkAlbumReviewedRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'authenticated' } as const },
149
- merge_albums_review: { method: 'POST', path: '/api/music/import/merge-albums', req: s.MergeAlbumsReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'authenticated' } as const },
150
- move_song_review: { method: 'POST', path: '/api/music/import/move-song', req: s.MoveSongReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'authenticated' } as const },
151
- patch_album_review: { method: 'POST', path: '/api/music/import/patch-album', req: s.PatchAlbumReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'authenticated' } as const },
148
+ mark_album_reviewed: { method: 'POST', path: '/api/music/import/mark-reviewed', req: s.MarkAlbumReviewedRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'owner_or', role: 'admin' } as const },
149
+ merge_albums_review: { method: 'POST', path: '/api/music/import/merge-albums', req: s.MergeAlbumsReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'owner_or', role: 'admin' } as const },
150
+ move_song_review: { method: 'POST', path: '/api/music/import/move-song', req: s.MoveSongReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'owner_or', role: 'admin' } as const },
151
+ patch_album_review: { method: 'POST', path: '/api/music/import/patch-album', req: s.PatchAlbumReviewRequestSchema, resp: s.ImportReviewOkSchema, auth: { type: 'owner_or', role: 'admin' } as const },
152
152
  propose_artist_bios: { method: 'POST', path: '/api/artists/propose-bios', req: s.ProposeArtistBiosRequestSchema, resp: s.ProposeArtistBiosResponseSchema, auth: { type: 'role', role: 'admin' } as const },
153
153
  propose_external_urls: { method: 'POST', path: '/api/albums/propose-external-urls', req: s.ProposeExternalUrlsRequestSchema, resp: s.ProposeExternalUrlsResponseSchema, auth: { type: 'role', role: 'admin' } as const },
154
154
  propose_related_artists: { method: 'POST', path: '/api/artists/propose-related', req: s.ProposeRelatedArtistsRequestSchema, resp: s.ProposeRelatedArtistsResponseSchema, auth: { type: 'role', role: 'admin' } as const },
@@ -5965,7 +5965,9 @@ export const SuggestionSchema = z.object({
5965
5965
  confidence: z.number(),
5966
5966
  metadata: z.any().nullish(),
5967
5967
  entity_id: z.string(),
5968
- is_favorite: z.boolean()
5968
+ is_favorite: z.boolean(),
5969
+ matched_field: z.string().nullish(),
5970
+ match_snippet: z.string().nullish()
5969
5971
  });
5970
5972
  export type Suggestion = z.infer<typeof SuggestionSchema>;
5971
5973
 
@@ -5999,7 +6001,9 @@ export const SuggestionsResponseSchema = z.object({
5999
6001
  confidence: z.number(),
6000
6002
  metadata: z.any().nullish(),
6001
6003
  entity_id: z.string(),
6002
- is_favorite: z.boolean()
6004
+ is_favorite: z.boolean(),
6005
+ matched_field: z.string().nullish(),
6006
+ match_snippet: z.string().nullish()
6003
6007
  })),
6004
6008
  query_time_ms: z.number(),
6005
6009
  total_count: z.number(),