diff --git a/docs/references/v2.openapi.json b/docs/references/v2.openapi.json index 64270d55b2..3fc4b5da8f 100644 --- a/docs/references/v2.openapi.json +++ b/docs/references/v2.openapi.json @@ -693,6 +693,91 @@ } } }, + "/rooms/{roomId}/update-organization-id": { + "post": { + "summary": "Update room organization ID", + "tags": ["Room"], + "parameters": [ + { + "schema": { + "type": "string", + "description": "The ID of the room", + "example": "my-room-id" + }, + "name": "roomId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Success. Returns the updated room with the new organization ID.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Room" + }, + "examples": { + "example": { + "value": { + "type": "room", + "id": "react-todo-list", + "lastConnectionAt": "2022-08-04T21:07:09.380Z", + "createdAt": "2022-07-13T14:32:50.697Z", + "organizationId": "org_987654321", + "metadata": { + "color": "blue", + "size": "10", + "target": ["abc", "def"] + }, + "defaultAccesses": ["room:write"], + "groupsAccesses": { + "marketing": ["room:write"] + }, + "usersAccesses": { + "alice": ["room:write"], + "vinod": ["room:write"] + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/401" + }, + "403": { + "$ref": "#/components/responses/403" + }, + "404": { + "$ref": "#/components/responses/404" + }, + "422": { + "$ref": "#/components/responses/422" + } + }, + "operationId": "update-room-organization-id", + "description": "This endpoint updates the room's organization ID. The `fromOrganizationId` must match the room's current organization ID. Returns the updated room.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateRoomOrganizationIdRequestBody" + }, + "examples": { + "example": { + "value": { + "fromOrganizationId": "org_123456789", + "toOrganizationId": "org_987654321" + } + } + } + } + } + } + } + }, "/rooms/{roomId}/active_users": { "get": { "summary": "Get active users", @@ -2931,6 +3016,100 @@ } } }, + "/rooms/{roomId}/threads/{threadId}/inbox-notifications": { + "get": { + "summary": "Get thread inbox notifications", + "tags": ["Comments"], + "description": "This endpoint returns the inbox notifications associated with a specific thread. Because this endpoint is not user-scoped, each notification includes a `userId` field identifying which user the notification belongs to. Only thread-kind notifications are returned.", + "operationId": "get-thread-inbox-notifications", + "parameters": [ + { + "name": "roomId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "ID of the room", + "example": "my-room-id" + } + }, + { + "name": "threadId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "ID of the thread", + "example": "th_abc123" + } + } + ], + "responses": { + "200": { + "description": "Success. Returns the inbox notifications for the thread.", + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "Response", + "properties": { + "data": { + "type": "array", + "items": { + "allOf": [ + { + "$ref": "#/components/schemas/InboxNotificationThreadData" + }, + { + "type": "object", + "properties": { + "userId": { + "type": "string", + "description": "The user ID this notification belongs to." + } + }, + "required": ["userId"] + } + ] + } + } + } + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + }, + "parameters": [ + { + "schema": { + "type": "string", + "example": "my-room-id" + }, + "name": "roomId", + "in": "path", + "required": true + }, + { + "schema": { + "type": "string", + "example": "th_abc123" + }, + "name": "threadId", + "in": "path", + "required": true + } + ] + }, "/authorize-user": { "post": { "summary": "Get access token with secret key", @@ -3948,6 +4127,51 @@ } } }, + "/inbox-notifications/{inboxNotificationId}/read": { + "parameters": [ + { + "schema": { + "type": "string", + "example": "in_abc123" + }, + "name": "inboxNotificationId", + "in": "path", + "required": true + } + ], + "post": { + "summary": "Mark inbox notification as read", + "tags": ["Notifications"], + "operationId": "mark-inbox-notification-as-read", + "description": "This endpoint marks a specific inbox notification as read.", + "parameters": [ + { + "name": "inboxNotificationId", + "in": "path", + "required": true, + "schema": { + "type": "string", + "description": "ID of the inbox notification", + "example": "in_abc123" + } + } + ], + "responses": { + "200": { + "description": "Success. The inbox notification has been marked as read. This endpoint does not return any content." + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Not Found" + } + } + } + }, "/groups": { "post": { "summary": "Create group", @@ -4688,6 +4912,7 @@ "application/json": { "schema": { "type": "object", + "title": "Response", "properties": { "id": { "type": "string" @@ -6141,9 +6366,6 @@ }, "metadata": { "$ref": "#/components/schemas/RoomMetadata" - }, - "organizationId": { - "type": "string" } }, "additionalProperties": false, @@ -6303,9 +6525,6 @@ "type": "integer", "enum": [1, 2], "description": "Preferred storage engine version to use when creating new rooms. The v2 Storage engine supports larger documents, is more performant, has native streaming support, and will become the default in the future." - }, - "organizationId": { - "type": "string" } }, "required": ["id", "defaultAccesses"], @@ -6463,6 +6682,26 @@ "newRoomId": "new-room-id" } }, + "UpdateRoomOrganizationIdRequestBody": { + "type": "object", + "title": "UpdateRoomOrganizationIdRequestBody", + "additionalProperties": false, + "properties": { + "fromOrganizationId": { + "type": "string", + "description": "The current organization ID of the room. Must match the room's current organization ID." + }, + "toOrganizationId": { + "type": "string", + "description": "The new organization ID to assign to the room." + } + }, + "required": ["fromOrganizationId", "toOrganizationId"], + "example": { + "fromOrganizationId": "org_123456789", + "toOrganizationId": "org_987654321" + } + }, "ActiveUsersResponse": { "title": "ActiveUsersResponse", "type": "object", @@ -7781,6 +8020,9 @@ "roomId": { "type": "string" }, + "organizationId": { + "type": "string" + }, "readAt": { "oneOf": [ { @@ -7805,11 +8047,11 @@ "notifiedAt", "readAt" ], - "additionalProperties": false, "example": { "kind": "thread", "id": "in_abc123", "roomId": "my-room-id", + "organizationId": "org_123456789", "threadId": "th_abc123", "notifiedAt": "2024-01-15T10:30:00.000Z", "readAt": null diff --git a/examples/nextjs-yjs-codemirror/package-lock.json b/examples/nextjs-yjs-codemirror/package-lock.json index 61a27b742d..ff420ca079 100644 --- a/examples/nextjs-yjs-codemirror/package-lock.json +++ b/examples/nextjs-yjs-codemirror/package-lock.json @@ -734,15 +734,15 @@ "license": "MIT" }, "node_modules/@next/env": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz", - "integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.7.tgz", + "integrity": "sha512-rJJbIdJB/RQr2F1nylZr/PJzamvNNhfr3brdKP6s/GW850jbtR70QlSfFselvIBbcPUOlQwBakexjFzqLzF6pg==", "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.6.tgz", - "integrity": "sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.7.tgz", + "integrity": "sha512-b2wWIE8sABdyafc4IM8r5Y/dS6kD80JRtOGrUiKTsACFQfWWgUQ2NwoUX1yjFMXVsAwcQeNpnucF2ZrujsBBPg==", "cpu": [ "arm64" ], @@ -756,9 +756,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.6.tgz", - "integrity": "sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.7.tgz", + "integrity": "sha512-zcnVaaZulS1WL0Ss38R5Q6D2gz7MtBu8GZLPfK+73D/hp4GFMrC2sudLky1QibfV7h6RJBJs/gOFvYP0X7UVlQ==", "cpu": [ "x64" ], @@ -772,9 +772,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.6.tgz", - "integrity": "sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.7.tgz", + "integrity": "sha512-2ant89Lux/Q3VyC8vNVg7uBaFVP9SwoK2jJOOR0L8TQnX8CAYnh4uctAScy2Hwj2dgjVHqHLORQZJ2wH6VxhSQ==", "cpu": [ "arm64" ], @@ -788,9 +788,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.6.tgz", - "integrity": "sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.7.tgz", + "integrity": "sha512-uufcze7LYv0FQg9GnNeZ3/whYfo+1Q3HnQpm16o6Uyi0OVzLlk2ZWoY7j07KADZFY8qwDbsmFnMQP3p3+Ftprw==", "cpu": [ "arm64" ], @@ -804,9 +804,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.6.tgz", - "integrity": "sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.7.tgz", + "integrity": "sha512-KWVf2gxYvHtvuT+c4MBOGxuse5TD7DsMFYSxVxRBnOzok/xryNeQSjXgxSv9QpIVlaGzEn/pIuI6Koosx8CGWA==", "cpu": [ "x64" ], @@ -820,9 +820,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.6.tgz", - "integrity": "sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.7.tgz", + "integrity": "sha512-HguhaGwsGr1YAGs68uRKc4aGWxLET+NevJskOcCAwXbwj0fYX0RgZW2gsOCzr9S11CSQPIkxmoSbuVaBp4Z3dA==", "cpu": [ "x64" ], @@ -836,9 +836,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.6.tgz", - "integrity": "sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.7.tgz", + "integrity": "sha512-S0n3KrDJokKTeFyM/vGGGR8+pCmXYrjNTk2ZozOL1C/JFdfUIL9O1ATaJOl5r2POe56iRChbsszrjMAdWSv7kQ==", "cpu": [ "arm64" ], @@ -852,9 +852,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz", - "integrity": "sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.7.tgz", + "integrity": "sha512-mwgtg8CNZGYm06LeEd+bNnOUfwOyNem/rOiP14Lsz+AnUY92Zq/LXwtebtUiaeVkhbroRCQ0c8GlR4UT1U+0yg==", "cpu": [ "x64" ], @@ -936,12 +936,15 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.9.18", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", - "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/caniuse-lite": { @@ -1087,14 +1090,14 @@ } }, "node_modules/next": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", - "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.7.tgz", + "integrity": "sha512-WM0L7WrSvKwoLegLYr6V+mz+RIofqQgVAfHhMp9a88ms0cFX8iX9ew+snpWlSBwpkURJOUdvCEt3uLl3NNzvWg==", "license": "MIT", "dependencies": { - "@next/env": "16.1.6", + "@next/env": "16.1.7", "@swc/helpers": "0.5.15", - "baseline-browser-mapping": "^2.8.3", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" @@ -1106,14 +1109,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.1.6", - "@next/swc-darwin-x64": "16.1.6", - "@next/swc-linux-arm64-gnu": "16.1.6", - "@next/swc-linux-arm64-musl": "16.1.6", - "@next/swc-linux-x64-gnu": "16.1.6", - "@next/swc-linux-x64-musl": "16.1.6", - "@next/swc-win32-arm64-msvc": "16.1.6", - "@next/swc-win32-x64-msvc": "16.1.6", + "@next/swc-darwin-arm64": "16.1.7", + "@next/swc-darwin-x64": "16.1.7", + "@next/swc-linux-arm64-gnu": "16.1.7", + "@next/swc-linux-arm64-musl": "16.1.7", + "@next/swc-linux-x64-gnu": "16.1.7", + "@next/swc-linux-x64-musl": "16.1.7", + "@next/swc-win32-arm64-msvc": "16.1.7", + "@next/swc-win32-x64-msvc": "16.1.7", "sharp": "^0.34.4" }, "peerDependencies": { diff --git a/examples/nextjs-yjs-lexical/package-lock.json b/examples/nextjs-yjs-lexical/package-lock.json index d7483e3d53..033ae7b2b6 100644 --- a/examples/nextjs-yjs-lexical/package-lock.json +++ b/examples/nextjs-yjs-lexical/package-lock.json @@ -861,15 +861,15 @@ } }, "node_modules/@next/env": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz", - "integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.7.tgz", + "integrity": "sha512-rJJbIdJB/RQr2F1nylZr/PJzamvNNhfr3brdKP6s/GW850jbtR70QlSfFselvIBbcPUOlQwBakexjFzqLzF6pg==", "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.6.tgz", - "integrity": "sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.7.tgz", + "integrity": "sha512-b2wWIE8sABdyafc4IM8r5Y/dS6kD80JRtOGrUiKTsACFQfWWgUQ2NwoUX1yjFMXVsAwcQeNpnucF2ZrujsBBPg==", "cpu": [ "arm64" ], @@ -883,9 +883,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.6.tgz", - "integrity": "sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.7.tgz", + "integrity": "sha512-zcnVaaZulS1WL0Ss38R5Q6D2gz7MtBu8GZLPfK+73D/hp4GFMrC2sudLky1QibfV7h6RJBJs/gOFvYP0X7UVlQ==", "cpu": [ "x64" ], @@ -899,9 +899,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.6.tgz", - "integrity": "sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.7.tgz", + "integrity": "sha512-2ant89Lux/Q3VyC8vNVg7uBaFVP9SwoK2jJOOR0L8TQnX8CAYnh4uctAScy2Hwj2dgjVHqHLORQZJ2wH6VxhSQ==", "cpu": [ "arm64" ], @@ -915,9 +915,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.6.tgz", - "integrity": "sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.7.tgz", + "integrity": "sha512-uufcze7LYv0FQg9GnNeZ3/whYfo+1Q3HnQpm16o6Uyi0OVzLlk2ZWoY7j07KADZFY8qwDbsmFnMQP3p3+Ftprw==", "cpu": [ "arm64" ], @@ -931,9 +931,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.6.tgz", - "integrity": "sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.7.tgz", + "integrity": "sha512-KWVf2gxYvHtvuT+c4MBOGxuse5TD7DsMFYSxVxRBnOzok/xryNeQSjXgxSv9QpIVlaGzEn/pIuI6Koosx8CGWA==", "cpu": [ "x64" ], @@ -947,9 +947,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.6.tgz", - "integrity": "sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.7.tgz", + "integrity": "sha512-HguhaGwsGr1YAGs68uRKc4aGWxLET+NevJskOcCAwXbwj0fYX0RgZW2gsOCzr9S11CSQPIkxmoSbuVaBp4Z3dA==", "cpu": [ "x64" ], @@ -963,9 +963,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.6.tgz", - "integrity": "sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.7.tgz", + "integrity": "sha512-S0n3KrDJokKTeFyM/vGGGR8+pCmXYrjNTk2ZozOL1C/JFdfUIL9O1ATaJOl5r2POe56iRChbsszrjMAdWSv7kQ==", "cpu": [ "arm64" ], @@ -979,9 +979,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz", - "integrity": "sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.7.tgz", + "integrity": "sha512-mwgtg8CNZGYm06LeEd+bNnOUfwOyNem/rOiP14Lsz+AnUY92Zq/LXwtebtUiaeVkhbroRCQ0c8GlR4UT1U+0yg==", "cpu": [ "x64" ], @@ -1063,12 +1063,15 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.9.18", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", - "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/caniuse-lite": { @@ -1199,14 +1202,14 @@ } }, "node_modules/next": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", - "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.7.tgz", + "integrity": "sha512-WM0L7WrSvKwoLegLYr6V+mz+RIofqQgVAfHhMp9a88ms0cFX8iX9ew+snpWlSBwpkURJOUdvCEt3uLl3NNzvWg==", "license": "MIT", "dependencies": { - "@next/env": "16.1.6", + "@next/env": "16.1.7", "@swc/helpers": "0.5.15", - "baseline-browser-mapping": "^2.8.3", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" @@ -1218,14 +1221,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.1.6", - "@next/swc-darwin-x64": "16.1.6", - "@next/swc-linux-arm64-gnu": "16.1.6", - "@next/swc-linux-arm64-musl": "16.1.6", - "@next/swc-linux-x64-gnu": "16.1.6", - "@next/swc-linux-x64-musl": "16.1.6", - "@next/swc-win32-arm64-msvc": "16.1.6", - "@next/swc-win32-x64-msvc": "16.1.6", + "@next/swc-darwin-arm64": "16.1.7", + "@next/swc-darwin-x64": "16.1.7", + "@next/swc-linux-arm64-gnu": "16.1.7", + "@next/swc-linux-arm64-musl": "16.1.7", + "@next/swc-linux-x64-gnu": "16.1.7", + "@next/swc-linux-x64-musl": "16.1.7", + "@next/swc-win32-arm64-msvc": "16.1.7", + "@next/swc-win32-x64-msvc": "16.1.7", "sharp": "^0.34.4" }, "peerDependencies": { diff --git a/examples/nextjs-yjs-monaco/package-lock.json b/examples/nextjs-yjs-monaco/package-lock.json index 59905ff877..7fa5db2db5 100644 --- a/examples/nextjs-yjs-monaco/package-lock.json +++ b/examples/nextjs-yjs-monaco/package-lock.json @@ -596,15 +596,15 @@ } }, "node_modules/@next/env": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz", - "integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.7.tgz", + "integrity": "sha512-rJJbIdJB/RQr2F1nylZr/PJzamvNNhfr3brdKP6s/GW850jbtR70QlSfFselvIBbcPUOlQwBakexjFzqLzF6pg==", "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.6.tgz", - "integrity": "sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.7.tgz", + "integrity": "sha512-b2wWIE8sABdyafc4IM8r5Y/dS6kD80JRtOGrUiKTsACFQfWWgUQ2NwoUX1yjFMXVsAwcQeNpnucF2ZrujsBBPg==", "cpu": [ "arm64" ], @@ -618,9 +618,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.6.tgz", - "integrity": "sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.7.tgz", + "integrity": "sha512-zcnVaaZulS1WL0Ss38R5Q6D2gz7MtBu8GZLPfK+73D/hp4GFMrC2sudLky1QibfV7h6RJBJs/gOFvYP0X7UVlQ==", "cpu": [ "x64" ], @@ -634,9 +634,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.6.tgz", - "integrity": "sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.7.tgz", + "integrity": "sha512-2ant89Lux/Q3VyC8vNVg7uBaFVP9SwoK2jJOOR0L8TQnX8CAYnh4uctAScy2Hwj2dgjVHqHLORQZJ2wH6VxhSQ==", "cpu": [ "arm64" ], @@ -650,9 +650,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.6.tgz", - "integrity": "sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.7.tgz", + "integrity": "sha512-uufcze7LYv0FQg9GnNeZ3/whYfo+1Q3HnQpm16o6Uyi0OVzLlk2ZWoY7j07KADZFY8qwDbsmFnMQP3p3+Ftprw==", "cpu": [ "arm64" ], @@ -666,9 +666,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.6.tgz", - "integrity": "sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.7.tgz", + "integrity": "sha512-KWVf2gxYvHtvuT+c4MBOGxuse5TD7DsMFYSxVxRBnOzok/xryNeQSjXgxSv9QpIVlaGzEn/pIuI6Koosx8CGWA==", "cpu": [ "x64" ], @@ -682,9 +682,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.6.tgz", - "integrity": "sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.7.tgz", + "integrity": "sha512-HguhaGwsGr1YAGs68uRKc4aGWxLET+NevJskOcCAwXbwj0fYX0RgZW2gsOCzr9S11CSQPIkxmoSbuVaBp4Z3dA==", "cpu": [ "x64" ], @@ -698,9 +698,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.6.tgz", - "integrity": "sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.7.tgz", + "integrity": "sha512-S0n3KrDJokKTeFyM/vGGGR8+pCmXYrjNTk2ZozOL1C/JFdfUIL9O1ATaJOl5r2POe56iRChbsszrjMAdWSv7kQ==", "cpu": [ "arm64" ], @@ -714,9 +714,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz", - "integrity": "sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.7.tgz", + "integrity": "sha512-mwgtg8CNZGYm06LeEd+bNnOUfwOyNem/rOiP14Lsz+AnUY92Zq/LXwtebtUiaeVkhbroRCQ0c8GlR4UT1U+0yg==", "cpu": [ "x64" ], @@ -806,12 +806,15 @@ "peer": true }, "node_modules/baseline-browser-mapping": { - "version": "2.9.18", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", - "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/caniuse-lite": { @@ -970,14 +973,14 @@ } }, "node_modules/next": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", - "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.7.tgz", + "integrity": "sha512-WM0L7WrSvKwoLegLYr6V+mz+RIofqQgVAfHhMp9a88ms0cFX8iX9ew+snpWlSBwpkURJOUdvCEt3uLl3NNzvWg==", "license": "MIT", "dependencies": { - "@next/env": "16.1.6", + "@next/env": "16.1.7", "@swc/helpers": "0.5.15", - "baseline-browser-mapping": "^2.8.3", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" @@ -989,14 +992,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.1.6", - "@next/swc-darwin-x64": "16.1.6", - "@next/swc-linux-arm64-gnu": "16.1.6", - "@next/swc-linux-arm64-musl": "16.1.6", - "@next/swc-linux-x64-gnu": "16.1.6", - "@next/swc-linux-x64-musl": "16.1.6", - "@next/swc-win32-arm64-msvc": "16.1.6", - "@next/swc-win32-x64-msvc": "16.1.6", + "@next/swc-darwin-arm64": "16.1.7", + "@next/swc-darwin-x64": "16.1.7", + "@next/swc-linux-arm64-gnu": "16.1.7", + "@next/swc-linux-arm64-musl": "16.1.7", + "@next/swc-linux-x64-gnu": "16.1.7", + "@next/swc-linux-x64-musl": "16.1.7", + "@next/swc-win32-arm64-msvc": "16.1.7", + "@next/swc-win32-x64-msvc": "16.1.7", "sharp": "^0.34.4" }, "peerDependencies": { diff --git a/examples/zustand-flowchart/package-lock.json b/examples/zustand-flowchart/package-lock.json index b0806c5c9a..a0fefd9bb0 100644 --- a/examples/zustand-flowchart/package-lock.json +++ b/examples/zustand-flowchart/package-lock.json @@ -531,15 +531,15 @@ } }, "node_modules/@next/env": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz", - "integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.7.tgz", + "integrity": "sha512-rJJbIdJB/RQr2F1nylZr/PJzamvNNhfr3brdKP6s/GW850jbtR70QlSfFselvIBbcPUOlQwBakexjFzqLzF6pg==", "license": "MIT" }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.6.tgz", - "integrity": "sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.7.tgz", + "integrity": "sha512-b2wWIE8sABdyafc4IM8r5Y/dS6kD80JRtOGrUiKTsACFQfWWgUQ2NwoUX1yjFMXVsAwcQeNpnucF2ZrujsBBPg==", "cpu": [ "arm64" ], @@ -553,9 +553,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.6.tgz", - "integrity": "sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.7.tgz", + "integrity": "sha512-zcnVaaZulS1WL0Ss38R5Q6D2gz7MtBu8GZLPfK+73D/hp4GFMrC2sudLky1QibfV7h6RJBJs/gOFvYP0X7UVlQ==", "cpu": [ "x64" ], @@ -569,9 +569,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.6.tgz", - "integrity": "sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.7.tgz", + "integrity": "sha512-2ant89Lux/Q3VyC8vNVg7uBaFVP9SwoK2jJOOR0L8TQnX8CAYnh4uctAScy2Hwj2dgjVHqHLORQZJ2wH6VxhSQ==", "cpu": [ "arm64" ], @@ -585,9 +585,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.6.tgz", - "integrity": "sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.7.tgz", + "integrity": "sha512-uufcze7LYv0FQg9GnNeZ3/whYfo+1Q3HnQpm16o6Uyi0OVzLlk2ZWoY7j07KADZFY8qwDbsmFnMQP3p3+Ftprw==", "cpu": [ "arm64" ], @@ -601,9 +601,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.6.tgz", - "integrity": "sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.7.tgz", + "integrity": "sha512-KWVf2gxYvHtvuT+c4MBOGxuse5TD7DsMFYSxVxRBnOzok/xryNeQSjXgxSv9QpIVlaGzEn/pIuI6Koosx8CGWA==", "cpu": [ "x64" ], @@ -617,9 +617,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.6.tgz", - "integrity": "sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.7.tgz", + "integrity": "sha512-HguhaGwsGr1YAGs68uRKc4aGWxLET+NevJskOcCAwXbwj0fYX0RgZW2gsOCzr9S11CSQPIkxmoSbuVaBp4Z3dA==", "cpu": [ "x64" ], @@ -633,9 +633,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.6.tgz", - "integrity": "sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.7.tgz", + "integrity": "sha512-S0n3KrDJokKTeFyM/vGGGR8+pCmXYrjNTk2ZozOL1C/JFdfUIL9O1ATaJOl5r2POe56iRChbsszrjMAdWSv7kQ==", "cpu": [ "arm64" ], @@ -649,9 +649,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz", - "integrity": "sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.7.tgz", + "integrity": "sha512-mwgtg8CNZGYm06LeEd+bNnOUfwOyNem/rOiP14Lsz+AnUY92Zq/LXwtebtUiaeVkhbroRCQ0c8GlR4UT1U+0yg==", "cpu": [ "x64" ], @@ -1241,12 +1241,15 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.9.18", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.18.tgz", - "integrity": "sha512-e23vBV1ZLfjb9apvfPk4rHVu2ry6RIr2Wfs+O324okSidrX7pTAnEJPCh/O5BtRlr7QtZI7ktOP3vsqr7Z5XoA==", + "version": "2.10.8", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz", + "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==", "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/caniuse-lite": { @@ -1439,14 +1442,14 @@ } }, "node_modules/next": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", - "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.7.tgz", + "integrity": "sha512-WM0L7WrSvKwoLegLYr6V+mz+RIofqQgVAfHhMp9a88ms0cFX8iX9ew+snpWlSBwpkURJOUdvCEt3uLl3NNzvWg==", "license": "MIT", "dependencies": { - "@next/env": "16.1.6", + "@next/env": "16.1.7", "@swc/helpers": "0.5.15", - "baseline-browser-mapping": "^2.8.3", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" @@ -1458,14 +1461,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.1.6", - "@next/swc-darwin-x64": "16.1.6", - "@next/swc-linux-arm64-gnu": "16.1.6", - "@next/swc-linux-arm64-musl": "16.1.6", - "@next/swc-linux-x64-gnu": "16.1.6", - "@next/swc-linux-x64-musl": "16.1.6", - "@next/swc-win32-arm64-msvc": "16.1.6", - "@next/swc-win32-x64-msvc": "16.1.6", + "@next/swc-darwin-arm64": "16.1.7", + "@next/swc-darwin-x64": "16.1.7", + "@next/swc-linux-arm64-gnu": "16.1.7", + "@next/swc-linux-arm64-musl": "16.1.7", + "@next/swc-linux-x64-gnu": "16.1.7", + "@next/swc-linux-x64-musl": "16.1.7", + "@next/swc-win32-arm64-msvc": "16.1.7", + "@next/swc-win32-x64-msvc": "16.1.7", "sharp": "^0.34.4" }, "peerDependencies": { diff --git a/packages/liveblocks-python/README.md b/packages/liveblocks-python/README.md index 3fc1e674d6..1b4d74d636 100644 --- a/packages/liveblocks-python/README.md +++ b/packages/liveblocks-python/README.md @@ -278,6 +278,27 @@ print(result) | `body` | `UpdateRoomIdRequestBody \| Unset` | No | Request body (application/json) | +--- + +#### `update_room_organization_id` + +This endpoint updates the room's organization ID. The `fromOrganizationId` must match the room's current organization ID. Returns the updated room. + +**Example** +```python +result = client.update_room_organization_id( + room_id="my-room-id", +) +print(result) +``` +**Parameters:** + +| Name | Type | Required | Description | +|------|------|----------|-------------| +| `room_id` | `str` | Yes | The ID of the room | +| `body` | `UpdateRoomOrganizationIdRequestBody \| Unset` | No | Request body (application/json) | + + --- #### `get_active_users` @@ -1135,6 +1156,28 @@ print(result) | `body` | `EditCommentMetadataRequestBody` | Yes | Request body (application/json) | +--- + +#### `get_thread_inbox_notifications` + +This endpoint returns the inbox notifications associated with a specific thread. Because this endpoint is not user-scoped, each notification includes a `userId` field identifying which user the notification belongs to. Only thread-kind notifications are returned. + +**Example** +```python +result = client.get_thread_inbox_notifications( + room_id="my-room-id", + thread_id="th_abc123", +) +print(result) +``` +**Parameters:** + +| Name | Type | Required | Description | +|------|------|----------|-------------| +| `room_id` | `str` | Yes | ID of the room | +| `thread_id` | `str` | Yes | ID of the thread | + + --- ### Auth @@ -1557,6 +1600,25 @@ client.trigger_inbox_notification() | `body` | `TriggerInboxNotificationRequestBody \| Unset` | No | Request body (application/json) | +--- + +#### `mark_inbox_notification_as_read` + +This endpoint marks a specific inbox notification as read. + +**Example** +```python +client.mark_inbox_notification_as_read( + inbox_notification_id="in_abc123", +) +``` +**Parameters:** + +| Name | Type | Required | Description | +|------|------|----------|-------------| +| `inbox_notification_id` | `str` | Yes | ID of the inbox notification | + + --- ### Groups diff --git a/packages/liveblocks-python/README.mdx b/packages/liveblocks-python/README.mdx index 26005f83a8..546bffe312 100644 --- a/packages/liveblocks-python/README.mdx +++ b/packages/liveblocks-python/README.mdx @@ -341,6 +341,35 @@ print(result) +### update_room_organization_id + +This endpoint updates the room's organization ID. The `fromOrganizationId` must match the room's current organization ID. Returns the updated room. + +```python +result = client.update_room_organization_id( + room_id="my-room-id", +) +print(result) +``` + + + + The ID of the room + + + + Request body (application/json). + + + + + ### get_active_users This endpoint returns a list of users currently present in the requested room. Corresponds to [`liveblocks.getActiveUsers`](https://liveblocks.io/docs/api-reference/liveblocks-node#get-rooms-roomid-active-users). @@ -1539,6 +1568,36 @@ print(result) +### get_thread_inbox_notifications + +This endpoint returns the inbox notifications associated with a specific thread. Because this endpoint is not user-scoped, each notification includes a `userId` field identifying which user the notification belongs to. Only thread-kind notifications are returned. + +```python +result = client.get_thread_inbox_notifications( + room_id="my-room-id", + thread_id="th_abc123", +) +print(result) +``` + + + + ID of the room + + + + ID of the thread + + + + + ## Auth ### authorize_user @@ -2096,6 +2155,27 @@ client.trigger_inbox_notification() +### mark_inbox_notification_as_read + +This endpoint marks a specific inbox notification as read. + +```python +client.mark_inbox_notification_as_read( + inbox_notification_id="in_abc123", +) +``` + + + + ID of the inbox notification + + + + + ## Groups ### get_groups diff --git a/packages/liveblocks-python/liveblocks/api/ai/create_file_knowledge_source.py b/packages/liveblocks-python/liveblocks/api/ai/create_file_knowledge_source.py index d06631d97b..b4eb042d6e 100644 --- a/packages/liveblocks-python/liveblocks/api/ai/create_file_knowledge_source.py +++ b/packages/liveblocks-python/liveblocks/api/ai/create_file_knowledge_source.py @@ -4,7 +4,7 @@ import httpx from ... import errors -from ...models.create_file_knowledge_source_response_200 import CreateFileKnowledgeSourceResponse200 +from ...models.create_file_knowledge_source_response import CreateFileKnowledgeSourceResponse from ...types import File @@ -32,9 +32,9 @@ def _get_kwargs( return _kwargs -def _parse_response(*, response: httpx.Response) -> CreateFileKnowledgeSourceResponse200: +def _parse_response(*, response: httpx.Response) -> CreateFileKnowledgeSourceResponse: if response.status_code == 200: - response_200 = CreateFileKnowledgeSourceResponse200.from_dict(response.json()) + response_200 = CreateFileKnowledgeSourceResponse.from_dict(response.json()) return response_200 @@ -47,7 +47,7 @@ def _sync( *, client: httpx.Client, body: File, -) -> CreateFileKnowledgeSourceResponse200: +) -> CreateFileKnowledgeSourceResponse: kwargs = _get_kwargs( copilot_id=copilot_id, name=name, @@ -66,7 +66,7 @@ async def _asyncio( *, client: httpx.AsyncClient, body: File, -) -> CreateFileKnowledgeSourceResponse200: +) -> CreateFileKnowledgeSourceResponse: kwargs = _get_kwargs( copilot_id=copilot_id, name=name, diff --git a/packages/liveblocks-python/liveblocks/api/comments/get_thread_inbox_notifications.py b/packages/liveblocks-python/liveblocks/api/comments/get_thread_inbox_notifications.py new file mode 100644 index 0000000000..b249cd58fb --- /dev/null +++ b/packages/liveblocks-python/liveblocks/api/comments/get_thread_inbox_notifications.py @@ -0,0 +1,67 @@ +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors +from ...models.get_thread_inbox_notifications_response import GetThreadInboxNotificationsResponse + + +def _get_kwargs( + room_id: str, + thread_id: str, +) -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "get", + "url": "/v2/rooms/{room_id}/threads/{thread_id}/inbox-notifications".format( + room_id=quote(str(room_id), safe=""), + thread_id=quote(str(thread_id), safe=""), + ), + } + + return _kwargs + + +def _parse_response(*, response: httpx.Response) -> GetThreadInboxNotificationsResponse: + if response.status_code == 200: + response_200 = GetThreadInboxNotificationsResponse.from_dict(response.json()) + + return response_200 + + raise errors.LiveblocksError.from_response(response) + + +def _sync( + room_id: str, + thread_id: str, + *, + client: httpx.Client, +) -> GetThreadInboxNotificationsResponse: + kwargs = _get_kwargs( + room_id=room_id, + thread_id=thread_id, + ) + + response = client.request( + **kwargs, + ) + return _parse_response(response=response) + + +async def _asyncio( + room_id: str, + thread_id: str, + *, + client: httpx.AsyncClient, +) -> GetThreadInboxNotificationsResponse: + kwargs = _get_kwargs( + room_id=room_id, + thread_id=thread_id, + ) + + response = await client.request( + **kwargs, + ) + + return _parse_response(response=response) diff --git a/packages/liveblocks-python/liveblocks/api/notifications/mark_inbox_notification_as_read.py b/packages/liveblocks-python/liveblocks/api/notifications/mark_inbox_notification_as_read.py new file mode 100644 index 0000000000..dbd75a7c94 --- /dev/null +++ b/packages/liveblocks-python/liveblocks/api/notifications/mark_inbox_notification_as_read.py @@ -0,0 +1,58 @@ +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors + + +def _get_kwargs( + inbox_notification_id: str, +) -> dict[str, Any]: + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/v2/inbox-notifications/{inbox_notification_id}/read".format( + inbox_notification_id=quote(str(inbox_notification_id), safe=""), + ), + } + + return _kwargs + + +def _parse_response(*, response: httpx.Response) -> None: + if response.status_code == 200: + return None + + raise errors.LiveblocksError.from_response(response) + + +def _sync( + inbox_notification_id: str, + *, + client: httpx.Client, +) -> None: + kwargs = _get_kwargs( + inbox_notification_id=inbox_notification_id, + ) + + response = client.request( + **kwargs, + ) + return _parse_response(response=response) + + +async def _asyncio( + inbox_notification_id: str, + *, + client: httpx.AsyncClient, +) -> None: + kwargs = _get_kwargs( + inbox_notification_id=inbox_notification_id, + ) + + response = await client.request( + **kwargs, + ) + + return _parse_response(response=response) diff --git a/packages/liveblocks-python/liveblocks/api/room/update_room_organization_id.py b/packages/liveblocks-python/liveblocks/api/room/update_room_organization_id.py new file mode 100644 index 0000000000..a7ad0148d5 --- /dev/null +++ b/packages/liveblocks-python/liveblocks/api/room/update_room_organization_id.py @@ -0,0 +1,76 @@ +from typing import Any +from urllib.parse import quote + +import httpx + +from ... import errors +from ...models.room import Room +from ...models.update_room_organization_id_request_body import UpdateRoomOrganizationIdRequestBody +from ...types import UNSET, Unset + + +def _get_kwargs( + room_id: str, + *, + body: UpdateRoomOrganizationIdRequestBody | Unset = UNSET, +) -> dict[str, Any]: + headers: dict[str, Any] = {} + + _kwargs: dict[str, Any] = { + "method": "post", + "url": "/v2/rooms/{room_id}/update-organization-id".format( + room_id=quote(str(room_id), safe=""), + ), + } + + if not isinstance(body, Unset): + _kwargs["json"] = body.to_dict() + + headers["Content-Type"] = "application/json" + + _kwargs["headers"] = headers + return _kwargs + + +def _parse_response(*, response: httpx.Response) -> Room: + if response.status_code == 200: + response_200 = Room.from_dict(response.json()) + + return response_200 + + raise errors.LiveblocksError.from_response(response) + + +def _sync( + room_id: str, + *, + client: httpx.Client, + body: UpdateRoomOrganizationIdRequestBody | Unset = UNSET, +) -> Room: + kwargs = _get_kwargs( + room_id=room_id, + body=body, + ) + + response = client.request( + **kwargs, + ) + return _parse_response(response=response) + + +async def _asyncio( + room_id: str, + *, + client: httpx.AsyncClient, + body: UpdateRoomOrganizationIdRequestBody | Unset = UNSET, +) -> Room: + kwargs = _get_kwargs( + room_id=room_id, + body=body, + ) + + response = await client.request( + **kwargs, + ) + + return _parse_response(response=response) diff --git a/packages/liveblocks-python/liveblocks/client.py b/packages/liveblocks-python/liveblocks/client.py index 5eabf18e95..32452ce6b4 100644 --- a/packages/liveblocks-python/liveblocks/client.py +++ b/packages/liveblocks-python/liveblocks/client.py @@ -27,7 +27,7 @@ from .models.create_ai_copilot_options_open_ai import CreateAiCopilotOptionsOpenAi from .models.create_ai_copilot_options_open_ai_compatible import CreateAiCopilotOptionsOpenAiCompatible from .models.create_comment_request_body import CreateCommentRequestBody - from .models.create_file_knowledge_source_response_200 import CreateFileKnowledgeSourceResponse200 + from .models.create_file_knowledge_source_response import CreateFileKnowledgeSourceResponse from .models.create_group_request_body import CreateGroupRequestBody from .models.create_management_project_request_body import CreateManagementProjectRequestBody from .models.create_management_webhook_request_body import CreateManagementWebhookRequestBody @@ -53,6 +53,7 @@ from .models.get_rooms_response import GetRoomsResponse from .models.get_storage_document_format import GetStorageDocumentFormat from .models.get_storage_document_response import GetStorageDocumentResponse + from .models.get_thread_inbox_notifications_response import GetThreadInboxNotificationsResponse from .models.get_thread_subscriptions_response import GetThreadSubscriptionsResponse from .models.get_threads_response import GetThreadsResponse from .models.get_user_groups_response import GetUserGroupsResponse @@ -106,6 +107,7 @@ from .models.update_management_webhook_request_body import UpdateManagementWebhookRequestBody from .models.update_notification_settings_request_body import UpdateNotificationSettingsRequestBody from .models.update_room_id_request_body import UpdateRoomIdRequestBody + from .models.update_room_organization_id_request_body import UpdateRoomOrganizationIdRequestBody from .models.update_room_request_body import UpdateRoomRequestBody from .models.update_room_subscription_settings_request_body import UpdateRoomSubscriptionSettingsRequestBody from .models.upsert_management_webhook_headers_request_body import UpsertManagementWebhookHeadersRequestBody @@ -513,6 +515,38 @@ def update_room_id( client=self._client, ) + def update_room_organization_id( + self, + room_id: str, + *, + body: UpdateRoomOrganizationIdRequestBody | Unset = UNSET, + ) -> Room: + """Update room organization ID + + This endpoint updates the room's organization ID. The `fromOrganizationId` must match the room's + current organization ID. Returns the updated room. + + Args: + room_id (str): The ID of the room Example: my-room-id. + body (UpdateRoomOrganizationIdRequestBody | Unset): Example: {'fromOrganizationId': + 'org_123456789', 'toOrganizationId': 'org_987654321'}. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Room + """ + + from .api.room import update_room_organization_id + + return update_room_organization_id._sync( + room_id=room_id, + body=body, + client=self._client, + ) + def get_active_users( self, room_id: str, @@ -1656,6 +1690,37 @@ def edit_comment_metadata( client=self._client, ) + def get_thread_inbox_notifications( + self, + room_id: str, + thread_id: str, + ) -> GetThreadInboxNotificationsResponse: + """Get thread inbox notifications + + This endpoint returns the inbox notifications associated with a specific thread. Because this + endpoint is not user-scoped, each notification includes a `userId` field identifying which user the + notification belongs to. Only thread-kind notifications are returned. + + Args: + room_id (str): ID of the room Example: my-room-id. + thread_id (str): ID of the thread Example: th_abc123. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetThreadInboxNotificationsResponse + """ + + from .api.comments import get_thread_inbox_notifications + + return get_thread_inbox_notifications._sync( + room_id=room_id, + thread_id=thread_id, + client=self._client, + ) + def authorize_user( self, *, @@ -2165,6 +2230,32 @@ def trigger_inbox_notification( client=self._client, ) + def mark_inbox_notification_as_read( + self, + inbox_notification_id: str, + ) -> None: + """Mark inbox notification as read + + This endpoint marks a specific inbox notification as read. + + Args: + inbox_notification_id (str): ID of the inbox notification Example: in_abc123. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + None + """ + + from .api.notifications import mark_inbox_notification_as_read + + return mark_inbox_notification_as_read._sync( + inbox_notification_id=inbox_notification_id, + client=self._client, + ) + def get_groups( self, *, @@ -2655,7 +2746,7 @@ def create_file_knowledge_source( name: str, *, body: File, - ) -> CreateFileKnowledgeSourceResponse200: + ) -> CreateFileKnowledgeSourceResponse: """Create file knowledge source This endpoint creates a file knowledge source for an AI copilot by uploading a file. The copilot can @@ -2673,7 +2764,7 @@ def create_file_knowledge_source( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - CreateFileKnowledgeSourceResponse200 + CreateFileKnowledgeSourceResponse """ from .api.ai import create_file_knowledge_source @@ -3858,6 +3949,38 @@ async def update_room_id( client=self._client, ) + async def update_room_organization_id( + self, + room_id: str, + *, + body: UpdateRoomOrganizationIdRequestBody | Unset = UNSET, + ) -> Room: + """Update room organization ID + + This endpoint updates the room's organization ID. The `fromOrganizationId` must match the room's + current organization ID. Returns the updated room. + + Args: + room_id (str): The ID of the room Example: my-room-id. + body (UpdateRoomOrganizationIdRequestBody | Unset): Example: {'fromOrganizationId': + 'org_123456789', 'toOrganizationId': 'org_987654321'}. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + Room + """ + + from .api.room import update_room_organization_id + + return await update_room_organization_id._asyncio( + room_id=room_id, + body=body, + client=self._client, + ) + async def get_active_users( self, room_id: str, @@ -5001,6 +5124,37 @@ async def edit_comment_metadata( client=self._client, ) + async def get_thread_inbox_notifications( + self, + room_id: str, + thread_id: str, + ) -> GetThreadInboxNotificationsResponse: + """Get thread inbox notifications + + This endpoint returns the inbox notifications associated with a specific thread. Because this + endpoint is not user-scoped, each notification includes a `userId` field identifying which user the + notification belongs to. Only thread-kind notifications are returned. + + Args: + room_id (str): ID of the room Example: my-room-id. + thread_id (str): ID of the thread Example: th_abc123. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + GetThreadInboxNotificationsResponse + """ + + from .api.comments import get_thread_inbox_notifications + + return await get_thread_inbox_notifications._asyncio( + room_id=room_id, + thread_id=thread_id, + client=self._client, + ) + async def authorize_user( self, *, @@ -5510,6 +5664,32 @@ async def trigger_inbox_notification( client=self._client, ) + async def mark_inbox_notification_as_read( + self, + inbox_notification_id: str, + ) -> None: + """Mark inbox notification as read + + This endpoint marks a specific inbox notification as read. + + Args: + inbox_notification_id (str): ID of the inbox notification Example: in_abc123. + + Raises: + errors.LiveblocksError: If the server returns a response with non-2xx status code. + httpx.TimeoutException: If the request takes longer than Client.timeout. + + Returns: + None + """ + + from .api.notifications import mark_inbox_notification_as_read + + return await mark_inbox_notification_as_read._asyncio( + inbox_notification_id=inbox_notification_id, + client=self._client, + ) + async def get_groups( self, *, @@ -6000,7 +6180,7 @@ async def create_file_knowledge_source( name: str, *, body: File, - ) -> CreateFileKnowledgeSourceResponse200: + ) -> CreateFileKnowledgeSourceResponse: """Create file knowledge source This endpoint creates a file knowledge source for an AI copilot by uploading a file. The copilot can @@ -6018,7 +6198,7 @@ async def create_file_knowledge_source( httpx.TimeoutException: If the request takes longer than Client.timeout. Returns: - CreateFileKnowledgeSourceResponse200 + CreateFileKnowledgeSourceResponse """ from .api.ai import create_file_knowledge_source diff --git a/packages/liveblocks-python/liveblocks/models/__init__.py b/packages/liveblocks-python/liveblocks/models/__init__.py index 39708add6f..4897208256 100644 --- a/packages/liveblocks-python/liveblocks/models/__init__.py +++ b/packages/liveblocks-python/liveblocks/models/__init__.py @@ -42,7 +42,7 @@ from .create_ai_copilot_options_open_ai import CreateAiCopilotOptionsOpenAi from .create_ai_copilot_options_open_ai_compatible import CreateAiCopilotOptionsOpenAiCompatible from .create_comment_request_body import CreateCommentRequestBody -from .create_file_knowledge_source_response_200 import CreateFileKnowledgeSourceResponse200 +from .create_file_knowledge_source_response import CreateFileKnowledgeSourceResponse from .create_group_request_body import CreateGroupRequestBody from .create_group_request_body_scopes import CreateGroupRequestBodyScopes from .create_management_project_request_body import CreateManagementProjectRequestBody @@ -79,6 +79,8 @@ from .get_rooms_response import GetRoomsResponse from .get_storage_document_format import GetStorageDocumentFormat from .get_storage_document_response import GetStorageDocumentResponse +from .get_thread_inbox_notifications_response import GetThreadInboxNotificationsResponse +from .get_thread_inbox_notifications_response_data_item import GetThreadInboxNotificationsResponseDataItem from .get_thread_subscriptions_response import GetThreadSubscriptionsResponse from .get_threads_response import GetThreadsResponse from .get_user_groups_response import GetUserGroupsResponse @@ -174,6 +176,7 @@ from .update_management_webhook_request_body import UpdateManagementWebhookRequestBody from .update_notification_settings_request_body import UpdateNotificationSettingsRequestBody from .update_room_id_request_body import UpdateRoomIdRequestBody +from .update_room_organization_id_request_body import UpdateRoomOrganizationIdRequestBody from .update_room_request_body import UpdateRoomRequestBody from .update_room_request_body_groups_accesses import UpdateRoomRequestBodyGroupsAccesses from .update_room_request_body_groups_accesses_additional_property_type_0_item import ( @@ -239,7 +242,7 @@ "CreateAiCopilotOptionsOpenAi", "CreateAiCopilotOptionsOpenAiCompatible", "CreateCommentRequestBody", - "CreateFileKnowledgeSourceResponse200", + "CreateFileKnowledgeSourceResponse", "CreateGroupRequestBody", "CreateGroupRequestBodyScopes", "CreateManagementProjectRequestBody", @@ -274,6 +277,8 @@ "GetRoomSubscriptionSettingsResponse", "GetStorageDocumentFormat", "GetStorageDocumentResponse", + "GetThreadInboxNotificationsResponse", + "GetThreadInboxNotificationsResponseDataItem", "GetThreadsResponse", "GetThreadSubscriptionsResponse", "GetUserGroupsResponse", @@ -367,6 +372,7 @@ "UpdateManagementWebhookRequestBody", "UpdateNotificationSettingsRequestBody", "UpdateRoomIdRequestBody", + "UpdateRoomOrganizationIdRequestBody", "UpdateRoomRequestBody", "UpdateRoomRequestBodyGroupsAccesses", "UpdateRoomRequestBodyGroupsAccessesAdditionalPropertyType0Item", diff --git a/packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response_200.py b/packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response.py similarity index 85% rename from packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response_200.py rename to packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response.py index 173fb0cd3b..b6b2a8e253 100644 --- a/packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response_200.py +++ b/packages/liveblocks-python/liveblocks/models/create_file_knowledge_source_response.py @@ -10,7 +10,7 @@ @_attrs_define -class CreateFileKnowledgeSourceResponse200: +class CreateFileKnowledgeSourceResponse: """ Attributes: id (str | Unset): @@ -35,12 +35,12 @@ def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: d = dict(src_dict) id = d.pop("id", UNSET) - create_file_knowledge_source_response_200 = cls( + create_file_knowledge_source_response = cls( id=id, ) - create_file_knowledge_source_response_200.additional_properties = d - return create_file_knowledge_source_response_200 + create_file_knowledge_source_response.additional_properties = d + return create_file_knowledge_source_response @property def additional_keys(self) -> list[str]: diff --git a/packages/liveblocks-python/liveblocks/models/create_room_request_body.py b/packages/liveblocks-python/liveblocks/models/create_room_request_body.py index 6bf9932056..f44898bb38 100644 --- a/packages/liveblocks-python/liveblocks/models/create_room_request_body.py +++ b/packages/liveblocks-python/liveblocks/models/create_room_request_body.py @@ -24,7 +24,8 @@ class CreateRoomRequestBody: Attributes: id (str): default_accesses (list[RoomPermissionItem]): Example: ['room:read', 'room:presence:write']. - organization_id (str | Unset): + organization_id (str | Unset): The organization ID to associate with the room. Defaults to "default" if not + provided. users_accesses (RoomAccesses | Unset): Example: {'alice': ['room:write'], 'bob': ['room:read', 'room:presence:write']}. groups_accesses (RoomAccesses | Unset): Example: {'alice': ['room:write'], 'bob': ['room:read', diff --git a/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response.py b/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response.py new file mode 100644 index 0000000000..25972b120b --- /dev/null +++ b/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response.py @@ -0,0 +1,78 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import TYPE_CHECKING, Any, Self + +from attrs import define as _attrs_define +from attrs import field as _attrs_field + +from ..types import UNSET, Unset + +if TYPE_CHECKING: + from ..models.get_thread_inbox_notifications_response_data_item import GetThreadInboxNotificationsResponseDataItem + + +@_attrs_define +class GetThreadInboxNotificationsResponse: + """ + Attributes: + data (list[GetThreadInboxNotificationsResponseDataItem] | Unset): + """ + + data: list[GetThreadInboxNotificationsResponseDataItem] | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + data: list[dict[str, Any]] | Unset = UNSET + if not isinstance(self.data, Unset): + data = [] + for data_item_data in self.data: + data_item = data_item_data.to_dict() + data.append(data_item) + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update({}) + if data is not UNSET: + field_dict["data"] = data + + return field_dict + + @classmethod + def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: + from ..models.get_thread_inbox_notifications_response_data_item import ( + GetThreadInboxNotificationsResponseDataItem, + ) + + d = dict(src_dict) + _data = d.pop("data", UNSET) + data: list[GetThreadInboxNotificationsResponseDataItem] | Unset = UNSET + if _data is not UNSET: + data = [] + for data_item_data in _data: + data_item = GetThreadInboxNotificationsResponseDataItem.from_dict(data_item_data) + + data.append(data_item) + + get_thread_inbox_notifications_response = cls( + data=data, + ) + + get_thread_inbox_notifications_response.additional_properties = d + return get_thread_inbox_notifications_response + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response_data_item.py b/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response_data_item.py new file mode 100644 index 0000000000..3860cd0c0c --- /dev/null +++ b/packages/liveblocks-python/liveblocks/models/get_thread_inbox_notifications_response_data_item.py @@ -0,0 +1,137 @@ +from __future__ import annotations + +import datetime +from collections.abc import Mapping +from typing import Any, Self, cast + +from attrs import define as _attrs_define +from attrs import field as _attrs_field +from dateutil.parser import isoparse + +from ..types import UNSET, Unset + + +@_attrs_define +class GetThreadInboxNotificationsResponseDataItem: + """ + Attributes: + id (str): + kind (str): + thread_id (str): + room_id (str): + read_at (datetime.datetime | None): + notified_at (datetime.datetime): + user_id (str): The user ID this notification belongs to. + organization_id (str | Unset): + """ + + id: str + kind: str + thread_id: str + room_id: str + read_at: datetime.datetime | None + notified_at: datetime.datetime + user_id: str + organization_id: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) + + def to_dict(self) -> dict[str, Any]: + id = self.id + + kind = self.kind + + thread_id = self.thread_id + + room_id = self.room_id + + read_at: None | str + if isinstance(self.read_at, datetime.datetime): + read_at = self.read_at.isoformat() + else: + read_at = self.read_at + + notified_at = self.notified_at.isoformat() + + user_id = self.user_id + + organization_id = self.organization_id + + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) + field_dict.update( + { + "id": id, + "kind": kind, + "threadId": thread_id, + "roomId": room_id, + "readAt": read_at, + "notifiedAt": notified_at, + "userId": user_id, + } + ) + if organization_id is not UNSET: + field_dict["organizationId"] = organization_id + + return field_dict + + @classmethod + def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: + d = dict(src_dict) + id = d.pop("id") + + kind = d.pop("kind") + + thread_id = d.pop("threadId") + + room_id = d.pop("roomId") + + def _parse_read_at(data: object) -> datetime.datetime | None: + if data is None: + return data + try: + if not isinstance(data, str): + raise TypeError() + read_at_type_0 = isoparse(data) + + return read_at_type_0 + except (TypeError, ValueError, AttributeError, KeyError): + pass + return cast(datetime.datetime | None, data) + + read_at = _parse_read_at(d.pop("readAt")) + + notified_at = isoparse(d.pop("notifiedAt")) + + user_id = d.pop("userId") + + organization_id = d.pop("organizationId", UNSET) + + get_thread_inbox_notifications_response_data_item = cls( + id=id, + kind=kind, + thread_id=thread_id, + room_id=room_id, + read_at=read_at, + notified_at=notified_at, + user_id=user_id, + organization_id=organization_id, + ) + + get_thread_inbox_notifications_response_data_item.additional_properties = d + return get_thread_inbox_notifications_response_data_item + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/packages/liveblocks-python/liveblocks/models/inbox_notification_thread_data.py b/packages/liveblocks-python/liveblocks/models/inbox_notification_thread_data.py index 057cee1c0c..7d9eaf00f3 100644 --- a/packages/liveblocks-python/liveblocks/models/inbox_notification_thread_data.py +++ b/packages/liveblocks-python/liveblocks/models/inbox_notification_thread_data.py @@ -5,15 +5,18 @@ from typing import Any, Self, cast from attrs import define as _attrs_define +from attrs import field as _attrs_field from dateutil.parser import isoparse +from ..types import UNSET, Unset + @_attrs_define class InboxNotificationThreadData: """ Example: - {'kind': 'thread', 'id': 'in_abc123', 'roomId': 'my-room-id', 'threadId': 'th_abc123', 'notifiedAt': - '2024-01-15T10:30:00.000Z', 'readAt': None} + {'kind': 'thread', 'id': 'in_abc123', 'roomId': 'my-room-id', 'organizationId': 'org_123456789', 'threadId': + 'th_abc123', 'notifiedAt': '2024-01-15T10:30:00.000Z', 'readAt': None} Attributes: id (str): @@ -22,6 +25,7 @@ class InboxNotificationThreadData: room_id (str): read_at (datetime.datetime | None): notified_at (datetime.datetime): + organization_id (str | Unset): """ id: str @@ -30,6 +34,8 @@ class InboxNotificationThreadData: room_id: str read_at: datetime.datetime | None notified_at: datetime.datetime + organization_id: str | Unset = UNSET + additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict) def to_dict(self) -> dict[str, Any]: id = self.id @@ -48,8 +54,10 @@ def to_dict(self) -> dict[str, Any]: notified_at = self.notified_at.isoformat() - field_dict: dict[str, Any] = {} + organization_id = self.organization_id + field_dict: dict[str, Any] = {} + field_dict.update(self.additional_properties) field_dict.update( { "id": id, @@ -60,6 +68,8 @@ def to_dict(self) -> dict[str, Any]: "notifiedAt": notified_at, } ) + if organization_id is not UNSET: + field_dict["organizationId"] = organization_id return field_dict @@ -91,6 +101,8 @@ def _parse_read_at(data: object) -> datetime.datetime | None: notified_at = isoparse(d.pop("notifiedAt")) + organization_id = d.pop("organizationId", UNSET) + inbox_notification_thread_data = cls( id=id, kind=kind, @@ -98,6 +110,24 @@ def _parse_read_at(data: object) -> datetime.datetime | None: room_id=room_id, read_at=read_at, notified_at=notified_at, + organization_id=organization_id, ) + inbox_notification_thread_data.additional_properties = d return inbox_notification_thread_data + + @property + def additional_keys(self) -> list[str]: + return list(self.additional_properties.keys()) + + def __getitem__(self, key: str) -> Any: + return self.additional_properties[key] + + def __setitem__(self, key: str, value: Any) -> None: + self.additional_properties[key] = value + + def __delitem__(self, key: str) -> None: + del self.additional_properties[key] + + def __contains__(self, key: str) -> bool: + return key in self.additional_properties diff --git a/packages/liveblocks-python/liveblocks/models/room.py b/packages/liveblocks-python/liveblocks/models/room.py index 3de5900370..d96ef2413d 100644 --- a/packages/liveblocks-python/liveblocks/models/room.py +++ b/packages/liveblocks-python/liveblocks/models/room.py @@ -28,7 +28,7 @@ class Room: Attributes: id (str): type_ (RoomType): - organization_id (str): + organization_id (str): The organization ID associated with this room. created_at (datetime.datetime): default_accesses (list[RoomPermissionItem]): Example: ['room:read', 'room:presence:write']. users_accesses (RoomAccesses): Example: {'alice': ['room:write'], 'bob': ['room:read', 'room:presence:write']}. diff --git a/packages/liveblocks-python/liveblocks/models/update_room_organization_id_request_body.py b/packages/liveblocks-python/liveblocks/models/update_room_organization_id_request_body.py new file mode 100644 index 0000000000..d41f031cf6 --- /dev/null +++ b/packages/liveblocks-python/liveblocks/models/update_room_organization_id_request_body.py @@ -0,0 +1,52 @@ +from __future__ import annotations + +from collections.abc import Mapping +from typing import Any, Self + +from attrs import define as _attrs_define + + +@_attrs_define +class UpdateRoomOrganizationIdRequestBody: + """ + Example: + {'fromOrganizationId': 'org_123456789', 'toOrganizationId': 'org_987654321'} + + Attributes: + from_organization_id (str): The current organization ID of the room. Must match the room's current organization + ID. + to_organization_id (str): The new organization ID to assign to the room. + """ + + from_organization_id: str + to_organization_id: str + + def to_dict(self) -> dict[str, Any]: + from_organization_id = self.from_organization_id + + to_organization_id = self.to_organization_id + + field_dict: dict[str, Any] = {} + + field_dict.update( + { + "fromOrganizationId": from_organization_id, + "toOrganizationId": to_organization_id, + } + ) + + return field_dict + + @classmethod + def from_dict(cls, src_dict: Mapping[str, Any]) -> Self: + d = dict(src_dict) + from_organization_id = d.pop("fromOrganizationId") + + to_organization_id = d.pop("toOrganizationId") + + update_room_organization_id_request_body = cls( + from_organization_id=from_organization_id, + to_organization_id=to_organization_id, + ) + + return update_room_organization_id_request_body diff --git a/starter-kits/nextjs-starter-kit/package-lock.json b/starter-kits/nextjs-starter-kit/package-lock.json index e9951d2497..5f89d44215 100644 --- a/starter-kits/nextjs-starter-kit/package-lock.json +++ b/starter-kits/nextjs-starter-kit/package-lock.json @@ -1216,9 +1216,9 @@ } }, "node_modules/@next/env": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.6.tgz", - "integrity": "sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.1.7.tgz", + "integrity": "sha512-rJJbIdJB/RQr2F1nylZr/PJzamvNNhfr3brdKP6s/GW850jbtR70QlSfFselvIBbcPUOlQwBakexjFzqLzF6pg==", "license": "MIT" }, "node_modules/@next/eslint-plugin-next": { @@ -1232,9 +1232,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.6.tgz", - "integrity": "sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.1.7.tgz", + "integrity": "sha512-b2wWIE8sABdyafc4IM8r5Y/dS6kD80JRtOGrUiKTsACFQfWWgUQ2NwoUX1yjFMXVsAwcQeNpnucF2ZrujsBBPg==", "cpu": [ "arm64" ], @@ -1248,9 +1248,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.6.tgz", - "integrity": "sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.1.7.tgz", + "integrity": "sha512-zcnVaaZulS1WL0Ss38R5Q6D2gz7MtBu8GZLPfK+73D/hp4GFMrC2sudLky1QibfV7h6RJBJs/gOFvYP0X7UVlQ==", "cpu": [ "x64" ], @@ -1264,9 +1264,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.6.tgz", - "integrity": "sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.1.7.tgz", + "integrity": "sha512-2ant89Lux/Q3VyC8vNVg7uBaFVP9SwoK2jJOOR0L8TQnX8CAYnh4uctAScy2Hwj2dgjVHqHLORQZJ2wH6VxhSQ==", "cpu": [ "arm64" ], @@ -1280,9 +1280,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.6.tgz", - "integrity": "sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.1.7.tgz", + "integrity": "sha512-uufcze7LYv0FQg9GnNeZ3/whYfo+1Q3HnQpm16o6Uyi0OVzLlk2ZWoY7j07KADZFY8qwDbsmFnMQP3p3+Ftprw==", "cpu": [ "arm64" ], @@ -1296,9 +1296,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.6.tgz", - "integrity": "sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.1.7.tgz", + "integrity": "sha512-KWVf2gxYvHtvuT+c4MBOGxuse5TD7DsMFYSxVxRBnOzok/xryNeQSjXgxSv9QpIVlaGzEn/pIuI6Koosx8CGWA==", "cpu": [ "x64" ], @@ -1312,9 +1312,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.6.tgz", - "integrity": "sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.1.7.tgz", + "integrity": "sha512-HguhaGwsGr1YAGs68uRKc4aGWxLET+NevJskOcCAwXbwj0fYX0RgZW2gsOCzr9S11CSQPIkxmoSbuVaBp4Z3dA==", "cpu": [ "x64" ], @@ -1328,9 +1328,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.6.tgz", - "integrity": "sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.1.7.tgz", + "integrity": "sha512-S0n3KrDJokKTeFyM/vGGGR8+pCmXYrjNTk2ZozOL1C/JFdfUIL9O1ATaJOl5r2POe56iRChbsszrjMAdWSv7kQ==", "cpu": [ "arm64" ], @@ -1344,9 +1344,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.6.tgz", - "integrity": "sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.1.7.tgz", + "integrity": "sha512-mwgtg8CNZGYm06LeEd+bNnOUfwOyNem/rOiP14Lsz+AnUY92Zq/LXwtebtUiaeVkhbroRCQ0c8GlR4UT1U+0yg==", "cpu": [ "x64" ], @@ -8872,14 +8872,14 @@ "license": "MIT" }, "node_modules/next": { - "version": "16.1.6", - "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", - "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", + "version": "16.1.7", + "resolved": "https://registry.npmjs.org/next/-/next-16.1.7.tgz", + "integrity": "sha512-WM0L7WrSvKwoLegLYr6V+mz+RIofqQgVAfHhMp9a88ms0cFX8iX9ew+snpWlSBwpkURJOUdvCEt3uLl3NNzvWg==", "license": "MIT", "dependencies": { - "@next/env": "16.1.6", + "@next/env": "16.1.7", "@swc/helpers": "0.5.15", - "baseline-browser-mapping": "^2.8.3", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.4.31", "styled-jsx": "5.1.6" @@ -8891,14 +8891,14 @@ "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "16.1.6", - "@next/swc-darwin-x64": "16.1.6", - "@next/swc-linux-arm64-gnu": "16.1.6", - "@next/swc-linux-arm64-musl": "16.1.6", - "@next/swc-linux-x64-gnu": "16.1.6", - "@next/swc-linux-x64-musl": "16.1.6", - "@next/swc-win32-arm64-msvc": "16.1.6", - "@next/swc-win32-x64-msvc": "16.1.6", + "@next/swc-darwin-arm64": "16.1.7", + "@next/swc-darwin-x64": "16.1.7", + "@next/swc-linux-arm64-gnu": "16.1.7", + "@next/swc-linux-arm64-musl": "16.1.7", + "@next/swc-linux-x64-gnu": "16.1.7", + "@next/swc-linux-x64-musl": "16.1.7", + "@next/swc-win32-arm64-msvc": "16.1.7", + "@next/swc-win32-x64-msvc": "16.1.7", "sharp": "^0.34.4" }, "peerDependencies": { diff --git a/tools/liveblocks-cli/src/dev-server/routes/rest-api.ts b/tools/liveblocks-cli/src/dev-server/routes/rest-api.ts index 4fe99b00a0..6ac0cd052a 100644 --- a/tools/liveblocks-cli/src/dev-server/routes/rest-api.ts +++ b/tools/liveblocks-cli/src/dev-server/routes/rest-api.ts @@ -489,11 +489,8 @@ zen.route("GET /v2/rooms//active_users", ({ p }) => { zen.route("GET /v2/rooms//threads", () => NOT_IMPLEMENTED()); zen.route("POST /v2/rooms//upsert", () => NOT_IMPLEMENTED()); zen.route("POST /v2/rooms//update-room-id", () => NOT_IMPLEMENTED()); - zen.route("POST /v2/rooms//update-tenant-id", () => NOT_IMPLEMENTED()); zen.route("POST /v2/rooms//update-organization-id", () => NOT_IMPLEMENTED()); zen.route("GET /v2/rooms//prewarm", () => NOT_IMPLEMENTED()); - zen.route("POST /v2/rooms//request-storage-mutation", () => NOT_IMPLEMENTED()); - zen.route("POST /v2/rooms//send-message", () => NOT_IMPLEMENTED()); zen.route("POST /v2/rooms//broadcast_event", () => NOT_IMPLEMENTED()); zen.route("GET /v2/rooms//versions", () => NOT_IMPLEMENTED()); zen.route("GET /v2/rooms//version/", () => NOT_IMPLEMENTED()); @@ -530,10 +527,8 @@ zen.route("GET /v2/rooms//active_users", ({ p }) => { zen.route("POST /v2/users//notification-settings", () => NOT_IMPLEMENTED()); zen.route("DELETE /v2/users//notification-settings", () => NOT_IMPLEMENTED()); zen.route("GET /v2/users//room-subscription-settings", () => NOT_IMPLEMENTED()); - zen.route("GET /v2/users//threads", () => NOT_IMPLEMENTED()); zen.route("POST /v2/inbox-notifications/trigger", () => NOT_IMPLEMENTED()); zen.route("POST /v2/inbox-notifications//read", () => NOT_IMPLEMENTED()); - zen.route("GET /v2/threads", () => NOT_IMPLEMENTED()); zen.route("POST /v2/groups", () => NOT_IMPLEMENTED()); zen.route("GET /v2/groups/", () => NOT_IMPLEMENTED()); zen.route("POST /v2/groups//add-members", () => NOT_IMPLEMENTED());