{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":776983291,"defaultBranch":"main","name":"suno-ai-proxy","ownerLogin":"MelohubAI","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2024-03-25T00:34:13.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/166634977?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1712455404.0","currentOid":""},"activityList":{"items":[{"before":"a1fa2d18afb107e0e50bac90b5408bb9fea9a2ae","after":"2448fa57a39bf6bb93951dfcb263fb7e7adc8aa8","ref":"refs/heads/main","pushedAt":"2024-04-18T10:11:43.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"8f6369925210b3582d728576e284578f3591fe49","after":"a1fa2d18afb107e0e50bac90b5408bb9fea9a2ae","ref":"refs/heads/main","pushedAt":"2024-04-11T11:39:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"✨ feat: Add optional refresh token flag to handleRequest function\n\nThe `handleRequest` function in `api.ts` now accepts an optional `isRefreshToken` boolean flag. When set to false, it immediately returns an empty object via the callback function. This change allows us to bypass the token refresh process in certain scenarios where it's not necessary, improving the efficiency of our API calls.\n\nAdditionally, the `/api/playlist/:playlist_id` endpoint now uses this new flag. It passes `false` for `isRefreshToken` when calling `handleRequest`, indicating that no token refresh is needed for this particular request. This change improves the performance of fetching playlists by avoiding unnecessary token refreshes.","shortMessageHtmlLink":"✨ feat: Add optional refresh token flag to handleRequest function"}},{"before":"4d01426090d5fb43c99023b34a77b01e3f5ad906","after":"8f6369925210b3582d728576e284578f3591fe49","ref":"refs/heads/main","pushedAt":"2024-04-10T19:04:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"♻️ refactor: Simplify /api/touch response in api.ts\n\nThe /api/touch endpoint in api.ts is simplified to directly return the response from the AuthService.touch method. This change improves code readability and maintainability by reducing unnecessary condition checks and response manipulations.","shortMessageHtmlLink":"♻️ refactor: Simplify /api/touch response in api.ts"}},{"before":"de3e836516b3961c3328599869e134f771d31f43","after":"4d01426090d5fb43c99023b34a77b01e3f5ad906","ref":"refs/heads/main","pushedAt":"2024-04-10T18:56:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"✨ feat: Update API endpoints and add touch endpoint\n\nUpdates the API endpoints from '.ai' to '.com' and adds a new 'touch' endpoint. The 'refreshToken' function in the AuthService class is updated to accommodate the new endpoint. The 'uuidv4' import is removed and replaced with an empty string in the 'params.id' assignment within the 'playlist/create' endpoint. This is done to streamline the ID assignment process.","shortMessageHtmlLink":"✨ feat: Update API endpoints and add touch endpoint"}},{"before":"0a506969a67aa91cfd564548c2e0a45871334b36","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/undici-5.28.4","pushedAt":"2024-04-07T02:03:24.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"}},{"before":"a856506bff4dd1d656d11ffb151dfbeb6d9bdc88","after":"de3e836516b3961c3328599869e134f771d31f43","ref":"refs/heads/main","pushedAt":"2024-04-07T02:03:18.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"Merge pull request #4 from kilingzhang/dependabot/npm_and_yarn/undici-5.28.4\n\nbuild(deps-dev): bump undici from 5.28.3 to 5.28.4","shortMessageHtmlLink":"Merge pull request #4 from kilingzhang/dependabot/npm_and_yarn/undici…"}},{"before":null,"after":"0a506969a67aa91cfd564548c2e0a45871334b36","ref":"refs/heads/dependabot/npm_and_yarn/undici-5.28.4","pushedAt":"2024-04-04T17:41:19.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"build(deps-dev): bump undici from 5.28.3 to 5.28.4\n\nBumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4.\n- [Release notes](https://github.com/nodejs/undici/releases)\n- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)\n\n---\nupdated-dependencies:\n- dependency-name: undici\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"build(deps-dev): bump undici from 5.28.3 to 5.28.4"}},{"before":"b65d0e8aab3bdc7bcd19c6db35eb8c4b5607f4b0","after":"a856506bff4dd1d656d11ffb151dfbeb6d9bdc88","ref":"refs/heads/main","pushedAt":"2024-04-01T15:24:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat(api): added new API endpoints for playlist management\n\n- Added GET /api/playlist/me endpoint for retrieving user playlists.\n- Added GET /api/playlist/:playlist_id endpoint for retrieving a specific playlist.\n- Added POST /api/playlist/create endpoint for creating a new playlist.\n- Added POST /api/playlist/set_metadata endpoint for updating playlist metadata.\n- Added POST /api/playlist/trash endpoint for trashing/untrashing a playlist.","shortMessageHtmlLink":"feat(api): added new API endpoints for playlist management"}},{"before":"fc7a31a8abebaf2356185339078f5ab80714ac5a","after":"b65d0e8aab3bdc7bcd19c6db35eb8c4b5607f4b0","ref":"refs/heads/main","pushedAt":"2024-03-31T16:37:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat(api): remove trailing slash from API endpoints","shortMessageHtmlLink":"feat(api): remove trailing slash from API endpoints"}},{"before":"7bdd73f951914db4310ffc892275a1c5115bf2cc","after":"fc7a31a8abebaf2356185339078f5ab80714ac5a","ref":"refs/heads/main","pushedAt":"2024-03-31T16:31:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: remove hardcoded values of SESSION_ID and ACCESS_TOKEN in wrangler.toml","shortMessageHtmlLink":"feat: remove hardcoded values of SESSION_ID and ACCESS_TOKEN in wrang…"}},{"before":"48e7fbf16ccdd419292e1426bf546e650baf78af","after":"7bdd73f951914db4310ffc892275a1c5115bf2cc","ref":"refs/heads/main","pushedAt":"2024-03-31T15:04:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat(api): update POST request parameters handling in api.ts\n\nUpdated the handling of the POST request parameters in the api.ts file. This includes adding new parameters, `gpt_description_prompt` and `make_instrumental`, and changing the way optional parameters are included in the request body. The changes aim to ensure that only parameters with non-empty values are included in the request.","shortMessageHtmlLink":"feat(api): update POST request parameters handling in api.ts"}},{"before":"4dc2a31e4a68e6f8e2930b92bbcf6e081cd9b673","after":"48e7fbf16ccdd419292e1426bf546e650baf78af","ref":"refs/heads/main","pushedAt":"2024-03-31T03:33:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: update API methods and documentation link in README\n\nThis commit includes updates to several API methods in the 'api.ts' file, adding trailing commas and new parameters to function calls. It also modifies the link text in the README file to indicate the documentation is the most recent version.","shortMessageHtmlLink":"feat: update API methods and documentation link in README"}},{"before":"f38d1a936b0d9642a11c93246d8803f02b0cac42","after":"4dc2a31e4a68e6f8e2930b92bbcf6e081cd9b673","ref":"refs/heads/main","pushedAt":"2024-03-30T19:03:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"docs: add Postman documentation screenshot to README","shortMessageHtmlLink":"docs: add Postman documentation screenshot to README"}},{"before":"3b8b1590755592170170f1135b004ec8386be532","after":"f38d1a936b0d9642a11c93246d8803f02b0cac42","ref":"refs/heads/main","pushedAt":"2024-03-30T18:21:05.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"docs: update README and clean up API code\n\nThis commit includes updates to the README file for better clarity on obtaining session_id and access_token. It also includes a detailed Postman documentation link for API usage. Furthermore, the API code has been cleaned up by removing unnecessary comments and Swagger related code. Lastly, the default API response has been updated to provide a link to the API documentation.","shortMessageHtmlLink":"docs: update README and clean up API code"}},{"before":"427732b082fd4285a802d6fe40d08b6a5d6f778a","after":"3b8b1590755592170170f1135b004ec8386be532","ref":"refs/heads/main","pushedAt":"2024-03-27T19:50:12.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat(api): add a new endpoint /api/generate/v2/ and refactor code\n\nThis commit adds a new POST API endpoint at /api/generate/v2/. This endpoint accepts various parameters in the request body, including title, tags, prompt, mv, continue_clip_id, and continue_at.\n\nIn addition to this, the commit also brings some code refactoring. The redundant trailing commas are removed from various places. Furthermore, the spread operator is used to clone the corsHeaders object instead of using the object.assign() method.\n\nThis change will improve the code readability and maintainability while extending the functionality of the API.","shortMessageHtmlLink":"feat(api): add a new endpoint /api/generate/v2/ and refactor code"}},{"before":"174a9534cd4595b15c0b185651a59801ea9559c9","after":"427732b082fd4285a802d6fe40d08b6a5d6f778a","ref":"refs/heads/main","pushedAt":"2024-03-27T00:09:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"#1 docs: add profile link in README.md","shortMessageHtmlLink":"#1 docs: add profile link in README.md"}},{"before":"969985721a78dd30e0615c7d5e8d51fce0c508e0","after":"174a9534cd4595b15c0b185651a59801ea9559c9","ref":"refs/heads/main","pushedAt":"2024-03-27T00:08:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"#1 docs: add profile link in README.md","shortMessageHtmlLink":"#1 docs: add profile link in README.md"}},{"before":"f0bf4261b9e3e21e66fff94d3ddc479dcfbfa132","after":"969985721a78dd30e0615c7d5e8d51fce0c508e0","ref":"refs/heads/main","pushedAt":"2024-03-27T00:04:44.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"#1 docs: add license section to README.md","shortMessageHtmlLink":"#1 docs: add license section to README.md"}},{"before":"6d7210cc12c7c4b4d900aaf6423560b244639226","after":"f0bf4261b9e3e21e66fff94d3ddc479dcfbfa132","ref":"refs/heads/main","pushedAt":"2024-03-25T19:46:30.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"docs: add session_id and access_token images to README","shortMessageHtmlLink":"docs: add session_id and access_token images to README"}},{"before":"3b3139a399855315f666211721e28a1d1bf467cb","after":"6d7210cc12c7c4b4d900aaf6423560b244639226","ref":"refs/heads/main","pushedAt":"2024-03-25T19:13:01.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: update API methods and clean code\n\nThis commit updates several API methods from POST to GET for better RESTfulness, and cleans up some unnecessary code. Changes include:\n\n- Update API methods for '/api/feed', '/api/playlist/me', '/api/playlist/:clip_id', '/api/clips/trashed', '/api/generate/lyrics/:clip_id' from POST to GET\n- Remove unnecessary code for '/api/generate/v2'\n- Clean up unnecessary commas and whitespace\n- Add necessary commas for JSON objects\n- Fix response for '/api/clips/delete' to return a JSON object rather than a string\n- Update swagger documentation to reflect these changes","shortMessageHtmlLink":"feat: update API methods and clean code"}},{"before":"a567d171a6141a394ebcc56e7ea48a6347844e6f","after":"3b3139a399855315f666211721e28a1d1bf467cb","ref":"refs/heads/main","pushedAt":"2024-03-25T17:15:00.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"docs: README.md","shortMessageHtmlLink":"docs: README.md"}},{"before":"e6eadcfc0fecc72a914f7f7693bc2fe3ec9830cf","after":"a567d171a6141a394ebcc56e7ea48a6347844e6f","ref":"refs/heads/main","pushedAt":"2024-03-25T16:55:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: Remove unused dependencies and refactor request parameters\n\nThis commit removes unused dependencies from the 'pnpm-lock.yaml' file and the 'package.json' file. It also refactors the request parameters in the 'api.ts' file according to the Swagger documentation. This includes changing the 'body' parameter to 'header' and 'x-session-id' and 'x-access-token' parameters for the API routes. It also updates the Swagger documentation file to reflect these changes. The version in 'package.json' is also bumped up.","shortMessageHtmlLink":"feat: Remove unused dependencies and refactor request parameters"}},{"before":"a6faab4ed45c009054f2133f59e998fd1fa43990","after":"e6eadcfc0fecc72a914f7f7693bc2fe3ec9830cf","ref":"refs/heads/main","pushedAt":"2024-03-25T16:07:40.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: Improve API endpoints and add request handling\n\n- Refactored and improved API endpoints\n- Added handleRequest function to handle requests and refresh tokens\n- Added fetchSuno function to make API calls to Suno\n- Updated swagger documentation to reflect changes\n- Added SESSION_ID and ACCESS_TOKEN to environment variables in wrangler.toml\n- Changed parameter name 'id' to 'clip_id' in some endpoints for clarity\n- Removed PlaylistService class and incorporated its functionality into other services and functions\n- Changed some GET endpoints to POST for consistency\n- Added 'prompt' parameter in generate lyrics endpoint\n- Improved error handling and responses","shortMessageHtmlLink":"feat: Improve API endpoints and add request handling"}},{"before":"37aff17de489aeceb093262905360c53aa0d73d3","after":"a6faab4ed45c009054f2133f59e998fd1fa43990","ref":"refs/heads/main","pushedAt":"2024-03-25T12:13:55.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat(api): add POST /api/generate/concat/v2/ endpoint and update Swagger docs","shortMessageHtmlLink":"feat(api): add POST /api/generate/concat/v2/ endpoint and update Swag…"}},{"before":"7326fd786db90d514d3e37696fa85ff009d11104","after":"37aff17de489aeceb093262905360c53aa0d73d3","ref":"refs/heads/main","pushedAt":"2024-03-25T09:15:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"feat: expanded functionality for the Suno API\n\nThis commit includes expanded functionality for the Suno API, including:\n- Added `GET /api/trending`, `GET /api/new`, `POST /api/playlist/:id`, `GET /api/feed`, `GET /api/playlist/me`, `POST /api/clips/trashed`, `POST /api/generate/lyrics/:id`, `POST /api/generate/v2`, `POST /api/gen/:id/set_title`, `POST /api/gen/trash`, and `POST /api/clips/delete` endpoints\n- Updated parameters and request bodies for several endpoints according to the Suno API documentation\n- Introduced error handling for missing parameters and invalid session IDs or access tokens\n- Added Swagger documentation for the new endpoints","shortMessageHtmlLink":"feat: expanded functionality for the Suno API"}},{"before":null,"after":"7326fd786db90d514d3e37696fa85ff009d11104","ref":"refs/heads/main","pushedAt":"2024-03-25T00:36:54.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"kilingzhang","name":"07","path":"/kilingzhang","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/17439300?s=80&v=4"},"commit":{"message":"1. trending\n2. new\n3. playlist\n4. feed\n5. generate/lyrics","shortMessageHtmlLink":"1. trending"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEM_5D-gA","startCursor":null,"endCursor":null}},"title":"Activity · MelohubAI/suno-ai-proxy"}