diff --git a/docs.json b/docs.json index 3f9d02630..08bb83f4f 100644 --- a/docs.json +++ b/docs.json @@ -2536,10 +2536,6 @@ "source": "/enterprise-api/tools-and-libraries", "destination": "/tools-and-libraries" }, - { - "source": "/xdks/overview", - "destination": "/tools-and-libraries" - }, { "source": "/x-api/what-to-build", "destination": "/what-to-build" @@ -3020,6 +3016,10 @@ { "source": "/xdks/typescript/reference/variables/:slug*", "destination": "/xdks/typescript/reference/overview" + }, + { + "source": "/xdks", + "destination": "/xdks/overview" } ], "seo": { diff --git a/overlays/xdk-code-samples.json b/overlays/xdk-code-samples.json index f659984bd..871c9318f 100644 --- a/overlays/xdk-code-samples.json +++ b/overlays/xdk-code-samples.json @@ -589,27 +589,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.bots.models import UpdateBotRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.update_bot(id=\"1895000000000000000\", body=UpdateBotRequest(handle=\"example\"))\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.bots.models import UpdateBotRequest\n\nclient = Client(bearer_token=os.environ[\"X_BEARER_TOKEN\"])\n\nresponse = client.bots.update_bot(\n id=\"1895000000000000000\",\n body=UpdateBotRequest(display_name=\"example\")\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.updateBot(\"1895000000000000000\", { handle: \"example\" });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ bearerToken: process.env.X_BEARER_TOKEN });\n\nconst response = await client.bots.updateBot(\"1895000000000000000\", { \"display_name\": \"example\" });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().updateBot(\n \"1895000000000000000\",\n new Schemas.UpdateBotRequest().handle(\"example\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .bearerToken(System.getenv(\"X_BEARER_TOKEN\"))\n .build();\n\nvar response = client.bots().updateBot(\n \"1895000000000000000\",\n new Schemas.UpdateBotRequest().displayName(\"example\")\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.UpdateBotAsync(\"1895000000000000000\", new UpdateBotRequest { Handle = \"example\" });\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n BearerToken = Environment.GetEnvironmentVariable(\"X_BEARER_TOKEN\"),\n});\n\nvar response = await client.Bots.UpdateBotAsync(\n \"1895000000000000000\",\n new UpdateBotRequest { DisplayName = \"example\" }\n);\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/bots/1895000000000000000 \\\n -d '{\"handle\":\"example\"}'" + "source": "xurl -X PUT /2/bots/1895000000000000000 \\\n -d '{\"display_name\":\"example\"}'" } ] } @@ -1229,27 +1229,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_broadcast(\n id=\"1895000000000000000\",\n body=UpdateBroadcastRequest(live_category_id=\"1895000000000000000\")\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.broadcasts.models import UpdateBroadcastRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.broadcasts.update_broadcast(id=\"1895000000000000000\", body=UpdateBroadcastRequest(chat_option=1))\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateBroadcast(\"1895000000000000000\", { \"live_category_id\": \"1895000000000000000\" });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.broadcasts.updateBroadcast(\"1895000000000000000\", { \"chat_option\": 1 });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateBroadcast(\n \"1895000000000000000\",\n new Schemas.UpdateBroadcastRequest().liveCategoryId(\"1895000000000000000\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.broadcasts().updateBroadcast(\n \"1895000000000000000\",\n new Schemas.UpdateBroadcastRequest().chatOption(1)\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateBroadcastAsync(\n \"1895000000000000000\",\n new UpdateBroadcastRequest { LiveCategoryId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Broadcasts.UpdateBroadcastAsync(\"1895000000000000000\", new UpdateBroadcastRequest { ChatOption = 1 });\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/broadcasts/1895000000000000000 \\\n -d '{\"live_category_id\":\"1895000000000000000\"}'" + "source": "xurl -X PUT /2/broadcasts/1895000000000000000 \\\n -d '{\"chat_option\":1}'" } ] } @@ -1453,27 +1453,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import CreateCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.create_call(body=CreateCallRequest(conversation_id=\"1500000000000000000\"))\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import CreateCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.create_call(body=CreateCallRequest(audio_only=True))\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.createCall({ \"conversation_id\": \"1500000000000000000\" });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.createCall({ \"audio_only\": true });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().createCall(\n new Schemas.CreateCallRequest().conversationId(\"1500000000000000000\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().createCall(new Schemas.CreateCallRequest().audioOnly(true));\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.CreateCallAsync(new CreateCallRequest { ConversationId = \"1500000000000000000\" });\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.CreateCallAsync(new CreateCallRequest { AudioOnly = true });\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/calls \\\n -d '{\"conversation_id\":\"1500000000000000000\"}'" + "source": "xurl -X POST /2/calls \\\n -d '{\"audio_only\":true}'" } ] } @@ -1613,27 +1613,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import UpdateScheduledCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.update_scheduled_call(\n id=\"1895000000000000000\",\n body=UpdateScheduledCallRequest(occurrence_start_time=\"example\")\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import UpdateScheduledCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.update_scheduled_call(\n id=\"1895000000000000000\",\n body=UpdateScheduledCallRequest(description=\"example\")\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.updateScheduledCall(\"1895000000000000000\", { \"occurrence_start_time\": \"example\" });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.updateScheduledCall(\"1895000000000000000\", { description: \"example\" });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().updateScheduledCall(\n \"1895000000000000000\",\n new Schemas.UpdateScheduledCallRequest().occurrenceStartTime(\"example\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.calls().updateScheduledCall(\n \"1895000000000000000\",\n new Schemas.UpdateScheduledCallRequest().description(\"example\")\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.UpdateScheduledCallAsync(\n \"1895000000000000000\",\n new UpdateScheduledCallRequest { OccurrenceStartTime = \"example\" }\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Calls.UpdateScheduledCallAsync(\n \"1895000000000000000\",\n new UpdateScheduledCallRequest { Description = \"example\" }\n);\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/calls/scheduled/1895000000000000000 \\\n -d '{\"occurrence_start_time\":\"example\"}'" + "source": "xurl -X PUT /2/calls/scheduled/1895000000000000000 \\\n -d '{\"description\":\"example\"}'" } ] } @@ -1709,12 +1709,12 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import JoinCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.join_call(\n id=\"1895000000000000000\",\n body=JoinCallRequest(media={\"type\": \"websocket\"})\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.calls.models import JoinCallRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.calls.join_call(\n id=\"1895000000000000000\",\n body=JoinCallRequest(media={\"audio\": {\"encoding\": \"example\"}})\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.joinCall(\"1895000000000000000\", { media: { type: \"websocket\" } });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.calls.joinCall(\"1895000000000000000\", { media: { audio: { encoding: \"example\" } } });\nconsole.log(response);" }, { "lang": "java", @@ -1729,7 +1729,7 @@ { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/calls/1895000000000000000/join \\\n -d '{\"media\":{\"type\":\"websocket\"}}'" + "source": "xurl -X POST /2/calls/1895000000000000000/join \\\n -d '{\"media\":{\"audio\":{\"encoding\":\"example\"}}}'" } ] } @@ -2093,27 +2093,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateGroupAdminSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_group_admin_settings(\n id=\"1895000000000000000\",\n body=UpdateGroupAdminSettingsRequest(block_screen_capture=True)\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateGroupAdminSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_group_admin_settings(\n id=\"1895000000000000000\",\n body=UpdateGroupAdminSettingsRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateGroupAdminSettings(\"1895000000000000000\", { \"block_screen_capture\": true });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateGroupAdminSettings(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateGroupAdminSettings(\n \"1895000000000000000\",\n new Schemas.UpdateChatGroupAdminSettingsRequest().blockScreenCapture(true)\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateGroupAdminSettings(\n \"1895000000000000000\",\n new Schemas.UpdateChatGroupAdminSettingsRequest()\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateGroupAdminSettingsAsync(\n \"1895000000000000000\",\n new UpdateChatGroupAdminSettingsRequest { BlockScreenCapture = true }\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateGroupAdminSettingsAsync(\"1895000000000000000\", new UpdateChatGroupAdminSettingsRequest());\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/admin_settings \\\n -d '{\"block_screen_capture\":true}'" + "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/admin_settings \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'" } ] } @@ -2317,27 +2317,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import EnableGroupInviteRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.enable_group_invite(\n id=\"1895000000000000000\",\n body=EnableGroupInviteRequest(affiliate_user_id=\"1895000000000000000\")\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import EnableGroupInviteRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.enable_group_invite(\n id=\"1895000000000000000\",\n body=EnableGroupInviteRequest(action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.enableGroupInvite(\n \"1895000000000000000\",\n { \"affiliate_user_id\": \"1895000000000000000\" }\n);\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.enableGroupInvite(\n \"1895000000000000000\",\n { \"action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().enableGroupInvite(\n \"1895000000000000000\",\n new Schemas.EnableChatGroupInviteRequest().affiliateUserId(\"1895000000000000000\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().enableGroupInvite(\"1895000000000000000\", new Schemas.EnableChatGroupInviteRequest());\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.EnableGroupInviteAsync(\n \"1895000000000000000\",\n new EnableChatGroupInviteRequest { AffiliateUserId = \"1895000000000000000\" }\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.EnableGroupInviteAsync(\"1895000000000000000\", new EnableChatGroupInviteRequest());\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/chat/conversations/1895000000000000000/invite \\\n -d '{\"affiliate_user_id\":\"1895000000000000000\"}'" + "source": "xurl -X POST /2/chat/conversations/1895000000000000000/invite \\\n -d '{\"action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'" } ] } @@ -2797,27 +2797,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateConversationScreenCaptureRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_conversation_screen_capture(\n id=\"1895000000000000000\",\n body=UpdateConversationScreenCaptureRequest(blocking_action_signatures=[{\"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {}}])\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateConversationScreenCaptureRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_conversation_screen_capture(\n id=\"1895000000000000000\",\n body=UpdateConversationScreenCaptureRequest(blocking=True)\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateConversationScreenCapture(\n \"1895000000000000000\",\n { \"blocking_action_signatures\": [{ \"message_id\": \"1895000000000000000\", \"encoded_message_event_detail\": \"example\", \"message_event_signature\": {} }] }\n);\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateConversationScreenCapture(\"1895000000000000000\", { blocking: true });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateConversationScreenCapture(\n \"1895000000000000000\",\n new Schemas.UpdateChatConversationScreenCaptureRequest()\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateConversationScreenCapture(\n \"1895000000000000000\",\n new Schemas.UpdateChatConversationScreenCaptureRequest().blocking(true)\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateConversationScreenCaptureAsync(\n \"1895000000000000000\",\n new UpdateChatConversationScreenCaptureRequest()\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateConversationScreenCaptureAsync(\n \"1895000000000000000\",\n new UpdateChatConversationScreenCaptureRequest { Blocking = true }\n);\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/screen_capture \\\n -d '{\"blocking_action_signatures\":[{\"message_id\":\"1895000000000000000\",\"encoded_message_event_detail\":\"example\",\"message_event_signature\":{}}]}'" + "source": "xurl -X PUT /2/chat/conversations/1895000000000000000/screen_capture \\\n -d '{\"blocking\":true}'" } ] } @@ -3149,27 +3149,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_settings(body=UpdateSettingsRequest(always_allow_dms_from_subscribers=True))\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import UpdateSettingsRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.update_settings(body=UpdateSettingsRequest(allow_dms_from=\"all\"))\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateSettings({ \"always_allow_dms_from_subscribers\": true });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.updateSettings({ \"allow_dms_from\": \"all\" });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateSettings(\n new Schemas.UpdateChatSettingsRequest().alwaysAllowDmsFromSubscribers(true)\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.chat().updateSettings(new Schemas.UpdateChatSettingsRequest().allowDmsFrom(\"all\"));\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateSettingsAsync(\n new UpdateChatSettingsRequest { AlwaysAllowDmsFromSubscribers = true }\n);\nConsole.WriteLine(response);" + "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Chat.UpdateSettingsAsync(new UpdateChatSettingsRequest { AllowDmsFrom = \"all\" });\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X PUT /2/chat/settings \\\n -d '{\"always_allow_dms_from_subscribers\":true}'" + "source": "xurl -X PUT /2/chat/settings \\\n -d '{\"allow_dms_from\":\"all\"}'" } ] } @@ -4557,12 +4557,12 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateMetadataRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_metadata(\n body=CreateMetadataRequest(id=\"1895000000000000000\", metadata={\"shared_info\": {\"shared\": \"example\"}})\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateMetadataRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_metadata(\n body=CreateMetadataRequest(id=\"1895000000000000000\", metadata={\"allow_download_status\": {\"allow_download\": \"example\"}})\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createMetadata(\n { id: \"1895000000000000000\", metadata: { \"shared_info\": { shared: \"example\" } } }\n);\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createMetadata(\n { id: \"1895000000000000000\", metadata: { \"allow_download_status\": { \"allow_download\": \"example\" } } }\n);\nconsole.log(response);" }, { "lang": "java", @@ -4577,7 +4577,7 @@ { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/media/metadata \\\n -d '{\"id\":\"1895000000000000000\",\"metadata\":{\"shared_info\":{\"shared\":\"example\"}}}'" + "source": "xurl -X POST /2/media/metadata \\\n -d '{\"id\":\"1895000000000000000\",\"metadata\":{\"allow_download_status\":{\"allow_download\":\"example\"}}}'" } ] } @@ -4621,12 +4621,12 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateSubtitlesRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_subtitles(\n body=CreateSubtitlesRequest(id=\"1895000000000000000\", media_category=\"AmplifyVideo\", subtitles={\"language_code\": \"example\"})\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import CreateSubtitlesRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.create_subtitles(\n body=CreateSubtitlesRequest(id=\"1895000000000000000\", media_category=\"AmplifyVideo\", subtitles={\"display_name\": \"example\"})\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createSubtitles(\n { id: \"1895000000000000000\", \"media_category\": \"AmplifyVideo\", subtitles: { \"language_code\": \"example\" } }\n);\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.createSubtitles(\n { id: \"1895000000000000000\", \"media_category\": \"AmplifyVideo\", subtitles: { \"display_name\": \"example\" } }\n);\nconsole.log(response);" }, { "lang": "java", @@ -4641,7 +4641,7 @@ { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/media/subtitles \\\n -d '{\"id\":\"1895000000000000000\",\"media_category\":\"AmplifyVideo\",\"subtitles\":{\"language_code\":\"example\"}}'" + "source": "xurl -X POST /2/media/subtitles \\\n -d '{\"id\":\"1895000000000000000\",\"media_category\":\"AmplifyVideo\",\"subtitles\":{\"display_name\":\"example\"}}'" } ] } @@ -4717,27 +4717,27 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import InitializeUploadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.initialize_upload(body=InitializeUploadRequest(media_category=\"amplify_video\"))\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.media.models import InitializeUploadRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.media.initialize_upload(body=InitializeUploadRequest(additional_owners=[\"example\"]))\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.initializeUpload({ \"media_category\": \"amplify_video\" });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.media.initializeUpload({ \"additional_owners\": [\"example\"] });\nconsole.log(response);" }, { "lang": "java", "label": "Java (XDK)", - "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().initializeUpload(\n new Schemas.InitializeMediaUploadRequest().mediaCategory(\"amplify_video\")\n);\nSystem.out.println(response);" + "source": "import com.x.xdk.Schemas;\nimport com.x.xdk.XClient;\nimport java.util.List;\n\nXClient client = XClient.builder()\n .accessToken(System.getenv(\"X_ACCESS_TOKEN\"))\n .build();\n\nvar response = client.media().initializeUpload(\n new Schemas.InitializeMediaUploadRequest().additionalOwners(List.of(\"example\"))\n);\nSystem.out.println(response);" }, { "lang": "csharp", "label": "C# (XDK)", - "source": "using System;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.InitializeUploadAsync(new InitializeMediaUploadRequest { MediaCategory = \"amplify_video\" });\nConsole.WriteLine(response);" + "source": "using System;\nusing System.Collections.Generic;\nusing Xdk;\nusing Xdk.Models;\n\nusing var client = new XClient(new XClientOptions\n{\n AccessToken = Environment.GetEnvironmentVariable(\"X_ACCESS_TOKEN\"),\n});\n\nvar response = await client.Media.InitializeUploadAsync(\n new InitializeMediaUploadRequest { AdditionalOwners = new List { \"example\" } }\n);\nConsole.WriteLine(response);" }, { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/media/upload/initialize \\\n -d '{\"media_category\":\"amplify_video\"}'" + "source": "xurl -X POST /2/media/upload/initialize \\\n -d '{\"additional_owners\":[\"example\"]}'" } ] } @@ -8173,12 +8173,12 @@ { "lang": "python", "label": "Python (XDK)", - "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddUserPublicKeyRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_user_public_key(\n id=\"2244994945\",\n body=AddUserPublicKeyRequest(public_key={\"public_key\": \"example\"})\n)\nprint(response)" + "source": "import os\nfrom xdk import Client\nfrom xdk.chat.models import AddUserPublicKeyRequest\n\nclient = Client(access_token=os.environ[\"X_ACCESS_TOKEN\"])\n\nresponse = client.chat.add_user_public_key(\n id=\"2244994945\",\n body=AddUserPublicKeyRequest(public_key={\"identity_public_key_signature\": \"example\"})\n)\nprint(response)" }, { "lang": "typescript", "label": "TypeScript (XDK)", - "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addUserPublicKey(\"2244994945\", { \"public_key\": { \"public_key\": \"example\" } });\nconsole.log(response);" + "source": "import { Client } from \"@xdevplatform/xdk\";\n\nconst client = new Client({ accessToken: process.env.X_ACCESS_TOKEN });\n\nconst response = await client.chat.addUserPublicKey(\n \"2244994945\",\n { \"public_key\": { \"identity_public_key_signature\": \"example\" } }\n);\nconsole.log(response);" }, { "lang": "java", @@ -8193,7 +8193,7 @@ { "lang": "bash", "label": "xurl", - "source": "xurl -X POST /2/users/2244994945/public_keys \\\n -d '{\"public_key\":{\"public_key\":\"example\"}}'" + "source": "xurl -X POST /2/users/2244994945/public_keys \\\n -d '{\"public_key\":{\"identity_public_key_signature\":\"example\"}}'" } ] } diff --git a/xdks/csharp/reference/clients/bots.mdx b/xdks/csharp/reference/clients/bots.mdx index d328c872a..be895c7c9 100644 --- a/xdks/csharp/reference/clients/bots.mdx +++ b/xdks/csharp/reference/clients/bots.mdx @@ -212,7 +212,10 @@ using var client = new XClient(new XClientOptions BearerToken = Environment.GetEnvironmentVariable("X_BEARER_TOKEN"), }); -var response = await client.Bots.UpdateBotAsync("1895000000000000000", new UpdateBotRequest { Handle = "example" }); +var response = await client.Bots.UpdateBotAsync( + "1895000000000000000", + new UpdateBotRequest { DisplayName = "example" } +); Console.WriteLine(response); ``` diff --git a/xdks/csharp/reference/clients/broadcasts.mdx b/xdks/csharp/reference/clients/broadcasts.mdx index ae108470f..830248f2f 100644 --- a/xdks/csharp/reference/clients/broadcasts.mdx +++ b/xdks/csharp/reference/clients/broadcasts.mdx @@ -1329,10 +1329,7 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Broadcasts.UpdateBroadcastAsync( - "1895000000000000000", - new UpdateBroadcastRequest { LiveCategoryId = "1895000000000000000" } -); +var response = await client.Broadcasts.UpdateBroadcastAsync("1895000000000000000", new UpdateBroadcastRequest { ChatOption = 1 }); Console.WriteLine(response); ``` diff --git a/xdks/csharp/reference/clients/calls.mdx b/xdks/csharp/reference/clients/calls.mdx index 555b00f0b..c2b519140 100644 --- a/xdks/csharp/reference/clients/calls.mdx +++ b/xdks/csharp/reference/clients/calls.mdx @@ -86,7 +86,7 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Calls.CreateCallAsync(new CreateCallRequest { ConversationId = "1500000000000000000" }); +var response = await client.Calls.CreateCallAsync(new CreateCallRequest { AudioOnly = true }); Console.WriteLine(response); ``` @@ -417,7 +417,7 @@ using var client = new XClient(new XClientOptions var response = await client.Calls.UpdateScheduledCallAsync( "1895000000000000000", - new UpdateScheduledCallRequest { OccurrenceStartTime = "example" } + new UpdateScheduledCallRequest { Description = "example" } ); Console.WriteLine(response); ``` diff --git a/xdks/csharp/reference/clients/chat.mdx b/xdks/csharp/reference/clients/chat.mdx index 7dd7bcf5b..3a7256bd9 100644 --- a/xdks/csharp/reference/clients/chat.mdx +++ b/xdks/csharp/reference/clients/chat.mdx @@ -598,10 +598,7 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Chat.EnableGroupInviteAsync( - "1895000000000000000", - new EnableChatGroupInviteRequest { AffiliateUserId = "1895000000000000000" } -); +var response = await client.Chat.EnableGroupInviteAsync("1895000000000000000", new EnableChatGroupInviteRequest()); Console.WriteLine(response); ``` @@ -1710,7 +1707,7 @@ using var client = new XClient(new XClientOptions var response = await client.Chat.UpdateConversationScreenCaptureAsync( "1895000000000000000", - new UpdateChatConversationScreenCaptureRequest() + new UpdateChatConversationScreenCaptureRequest { Blocking = true } ); Console.WriteLine(response); ``` @@ -1787,10 +1784,7 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Chat.UpdateGroupAdminSettingsAsync( - "1895000000000000000", - new UpdateChatGroupAdminSettingsRequest { BlockScreenCapture = true } -); +var response = await client.Chat.UpdateGroupAdminSettingsAsync("1895000000000000000", new UpdateChatGroupAdminSettingsRequest()); Console.WriteLine(response); ``` @@ -1826,9 +1820,7 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Chat.UpdateSettingsAsync( - new UpdateChatSettingsRequest { AlwaysAllowDmsFromSubscribers = true } -); +var response = await client.Chat.UpdateSettingsAsync(new UpdateChatSettingsRequest { AllowDmsFrom = "all" }); Console.WriteLine(response); ``` diff --git a/xdks/csharp/reference/clients/media.mdx b/xdks/csharp/reference/clients/media.mdx index 3e77bb461..f46a05005 100644 --- a/xdks/csharp/reference/clients/media.mdx +++ b/xdks/csharp/reference/clients/media.mdx @@ -573,6 +573,7 @@ Starts a chunked media upload and returns its id. Use it for video and for other ```csharp using System; +using System.Collections.Generic; using Xdk; using Xdk.Models; @@ -581,7 +582,9 @@ using var client = new XClient(new XClientOptions AccessToken = Environment.GetEnvironmentVariable("X_ACCESS_TOKEN"), }); -var response = await client.Media.InitializeUploadAsync(new InitializeMediaUploadRequest { MediaCategory = "amplify_video" }); +var response = await client.Media.InitializeUploadAsync( + new InitializeMediaUploadRequest { AdditionalOwners = new List { "example" } } +); Console.WriteLine(response); ``` diff --git a/xdks/java/reference/clients/bots.mdx b/xdks/java/reference/clients/bots.mdx index 4d68e3a45..881fa9b86 100644 --- a/xdks/java/reference/clients/bots.mdx +++ b/xdks/java/reference/clients/bots.mdx @@ -202,7 +202,7 @@ XClient client = XClient.builder() var response = client.bots().updateBot( "1895000000000000000", - new Schemas.UpdateBotRequest().handle("example") + new Schemas.UpdateBotRequest().displayName("example") ); System.out.println(response); ``` diff --git a/xdks/java/reference/clients/broadcasts.mdx b/xdks/java/reference/clients/broadcasts.mdx index 4ff325ca8..68c3156fe 100644 --- a/xdks/java/reference/clients/broadcasts.mdx +++ b/xdks/java/reference/clients/broadcasts.mdx @@ -1254,7 +1254,7 @@ XClient client = XClient.builder() var response = client.broadcasts().updateBroadcast( "1895000000000000000", - new Schemas.UpdateBroadcastRequest().liveCategoryId("1895000000000000000") + new Schemas.UpdateBroadcastRequest().chatOption(1) ); System.out.println(response); ``` diff --git a/xdks/java/reference/clients/calls.mdx b/xdks/java/reference/clients/calls.mdx index 755679538..707beb5a8 100644 --- a/xdks/java/reference/clients/calls.mdx +++ b/xdks/java/reference/clients/calls.mdx @@ -82,9 +82,7 @@ XClient client = XClient.builder() .accessToken(System.getenv("X_ACCESS_TOKEN")) .build(); -var response = client.calls().createCall( - new Schemas.CreateCallRequest().conversationId("1500000000000000000") -); +var response = client.calls().createCall(new Schemas.CreateCallRequest().audioOnly(true)); System.out.println(response); ``` @@ -399,7 +397,7 @@ XClient client = XClient.builder() var response = client.calls().updateScheduledCall( "1895000000000000000", - new Schemas.UpdateScheduledCallRequest().occurrenceStartTime("example") + new Schemas.UpdateScheduledCallRequest().description("example") ); System.out.println(response); ``` diff --git a/xdks/java/reference/clients/chat.mdx b/xdks/java/reference/clients/chat.mdx index eb396e6d8..de3d05b85 100644 --- a/xdks/java/reference/clients/chat.mdx +++ b/xdks/java/reference/clients/chat.mdx @@ -574,10 +574,7 @@ XClient client = XClient.builder() .accessToken(System.getenv("X_ACCESS_TOKEN")) .build(); -var response = client.chat().enableGroupInvite( - "1895000000000000000", - new Schemas.EnableChatGroupInviteRequest().affiliateUserId("1895000000000000000") -); +var response = client.chat().enableGroupInvite("1895000000000000000", new Schemas.EnableChatGroupInviteRequest()); System.out.println(response); ``` @@ -1630,7 +1627,7 @@ XClient client = XClient.builder() var response = client.chat().updateConversationScreenCapture( "1895000000000000000", - new Schemas.UpdateChatConversationScreenCaptureRequest() + new Schemas.UpdateChatConversationScreenCaptureRequest().blocking(true) ); System.out.println(response); ``` @@ -1705,7 +1702,7 @@ XClient client = XClient.builder() var response = client.chat().updateGroupAdminSettings( "1895000000000000000", - new Schemas.UpdateChatGroupAdminSettingsRequest().blockScreenCapture(true) + new Schemas.UpdateChatGroupAdminSettingsRequest() ); System.out.println(response); ``` @@ -1740,9 +1737,7 @@ XClient client = XClient.builder() .accessToken(System.getenv("X_ACCESS_TOKEN")) .build(); -var response = client.chat().updateSettings( - new Schemas.UpdateChatSettingsRequest().alwaysAllowDmsFromSubscribers(true) -); +var response = client.chat().updateSettings(new Schemas.UpdateChatSettingsRequest().allowDmsFrom("all")); System.out.println(response); ``` diff --git a/xdks/java/reference/clients/media.mdx b/xdks/java/reference/clients/media.mdx index 008930165..cc6c9f63e 100644 --- a/xdks/java/reference/clients/media.mdx +++ b/xdks/java/reference/clients/media.mdx @@ -546,13 +546,14 @@ Starts a chunked media upload and returns its id. Use it for video and for other ```java import com.x.xdk.Schemas; import com.x.xdk.XClient; +import java.util.List; XClient client = XClient.builder() .accessToken(System.getenv("X_ACCESS_TOKEN")) .build(); var response = client.media().initializeUpload( - new Schemas.InitializeMediaUploadRequest().mediaCategory("amplify_video") + new Schemas.InitializeMediaUploadRequest().additionalOwners(List.of("example")) ); System.out.println(response); ``` diff --git a/xdks/python/reference/clients/bots.mdx b/xdks/python/reference/clients/bots.mdx index 07c657272..2ced0bfe4 100644 --- a/xdks/python/reference/clients/bots.mdx +++ b/xdks/python/reference/clients/bots.mdx @@ -193,7 +193,10 @@ from xdk.bots.models import UpdateBotRequest client = Client(bearer_token=os.environ["X_BEARER_TOKEN"]) -response = client.bots.update_bot(id="1895000000000000000", body=UpdateBotRequest(handle="example")) +response = client.bots.update_bot( + id="1895000000000000000", + body=UpdateBotRequest(display_name="example") +) print(response) ``` diff --git a/xdks/python/reference/clients/broadcasts.mdx b/xdks/python/reference/clients/broadcasts.mdx index 6c31771db..f61f1e9da 100644 --- a/xdks/python/reference/clients/broadcasts.mdx +++ b/xdks/python/reference/clients/broadcasts.mdx @@ -1211,10 +1211,7 @@ from xdk.broadcasts.models import UpdateBroadcastRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) -response = client.broadcasts.update_broadcast( - id="1895000000000000000", - body=UpdateBroadcastRequest(live_category_id="1895000000000000000") -) +response = client.broadcasts.update_broadcast(id="1895000000000000000", body=UpdateBroadcastRequest(chat_option=1)) print(response) ``` diff --git a/xdks/python/reference/clients/calls.mdx b/xdks/python/reference/clients/calls.mdx index b1a0e620a..41e3b545d 100644 --- a/xdks/python/reference/clients/calls.mdx +++ b/xdks/python/reference/clients/calls.mdx @@ -80,7 +80,7 @@ from xdk.calls.models import CreateCallRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) -response = client.calls.create_call(body=CreateCallRequest(conversation_id="1500000000000000000")) +response = client.calls.create_call(body=CreateCallRequest(audio_only=True)) print(response) ``` @@ -203,7 +203,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.calls.join_call( id="1895000000000000000", - body=JoinCallRequest(media={"type": "websocket"}) + body=JoinCallRequest(media={"audio": {"encoding": "example"}}) ) print(response) ``` @@ -390,7 +390,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.calls.update_scheduled_call( id="1895000000000000000", - body=UpdateScheduledCallRequest(occurrence_start_time="example") + body=UpdateScheduledCallRequest(description="example") ) print(response) ``` diff --git a/xdks/python/reference/clients/chat.mdx b/xdks/python/reference/clients/chat.mdx index 5e6721ed8..569536e29 100644 --- a/xdks/python/reference/clients/chat.mdx +++ b/xdks/python/reference/clients/chat.mdx @@ -209,7 +209,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.chat.add_user_public_key( id="2244994945", - body=AddUserPublicKeyRequest(public_key={"public_key": "example"}) + body=AddUserPublicKeyRequest(public_key={"identity_public_key_signature": "example"}) ) print(response) ``` @@ -569,7 +569,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.chat.enable_group_invite( id="1895000000000000000", - body=EnableGroupInviteRequest(affiliate_user_id="1895000000000000000") + body=EnableGroupInviteRequest(action_signatures=[{"message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {}}]) ) print(response) ``` @@ -1597,7 +1597,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.chat.update_conversation_screen_capture( id="1895000000000000000", - body=UpdateConversationScreenCaptureRequest(blocking_action_signatures=[{"message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {}}]) + body=UpdateConversationScreenCaptureRequest(blocking=True) ) print(response) ``` @@ -1669,7 +1669,7 @@ client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.chat.update_group_admin_settings( id="1895000000000000000", - body=UpdateGroupAdminSettingsRequest(block_screen_capture=True) + body=UpdateGroupAdminSettingsRequest(action_signatures=[{"message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {}}]) ) print(response) ``` @@ -1703,7 +1703,7 @@ from xdk.chat.models import UpdateSettingsRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) -response = client.chat.update_settings(body=UpdateSettingsRequest(always_allow_dms_from_subscribers=True)) +response = client.chat.update_settings(body=UpdateSettingsRequest(allow_dms_from="all")) print(response) ``` diff --git a/xdks/python/reference/clients/media.mdx b/xdks/python/reference/clients/media.mdx index df8b2bc05..8478a84c6 100644 --- a/xdks/python/reference/clients/media.mdx +++ b/xdks/python/reference/clients/media.mdx @@ -142,7 +142,7 @@ from xdk.media.models import CreateMetadataRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.media.create_metadata( - body=CreateMetadataRequest(id="1895000000000000000", metadata={"shared_info": {"shared": "example"}}) + body=CreateMetadataRequest(id="1895000000000000000", metadata={"allow_download_status": {"allow_download": "example"}}) ) print(response) ``` @@ -173,7 +173,7 @@ from xdk.media.models import CreateSubtitlesRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) response = client.media.create_subtitles( - body=CreateSubtitlesRequest(id="1895000000000000000", media_category="AmplifyVideo", subtitles={"language_code": "example"}) + body=CreateSubtitlesRequest(id="1895000000000000000", media_category="AmplifyVideo", subtitles={"display_name": "example"}) ) print(response) ``` @@ -532,7 +532,7 @@ from xdk.media.models import InitializeUploadRequest client = Client(access_token=os.environ["X_ACCESS_TOKEN"]) -response = client.media.initialize_upload(body=InitializeUploadRequest(media_category="amplify_video")) +response = client.media.initialize_upload(body=InitializeUploadRequest(additional_owners=["example"])) print(response) ``` diff --git a/xdks/typescript/reference/clients/bots.mdx b/xdks/typescript/reference/clients/bots.mdx index 2b2bfd745..cc5afa0b7 100644 --- a/xdks/typescript/reference/clients/bots.mdx +++ b/xdks/typescript/reference/clients/bots.mdx @@ -181,7 +181,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ bearerToken: process.env.X_BEARER_TOKEN }); -const response = await client.bots.updateBot("1895000000000000000", { handle: "example" }); +const response = await client.bots.updateBot("1895000000000000000", { "display_name": "example" }); console.log(response); ``` diff --git a/xdks/typescript/reference/clients/broadcasts.mdx b/xdks/typescript/reference/clients/broadcasts.mdx index 77cc99411..6a662f9c6 100644 --- a/xdks/typescript/reference/clients/broadcasts.mdx +++ b/xdks/typescript/reference/clients/broadcasts.mdx @@ -1156,7 +1156,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.broadcasts.updateBroadcast("1895000000000000000", { "live_category_id": "1895000000000000000" }); +const response = await client.broadcasts.updateBroadcast("1895000000000000000", { "chat_option": 1 }); console.log(response); ``` diff --git a/xdks/typescript/reference/clients/calls.mdx b/xdks/typescript/reference/clients/calls.mdx index 2516cfab9..dfa4cf7d2 100644 --- a/xdks/typescript/reference/clients/calls.mdx +++ b/xdks/typescript/reference/clients/calls.mdx @@ -77,7 +77,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.calls.createCall({ "conversation_id": "1500000000000000000" }); +const response = await client.calls.createCall({ "audio_only": true }); console.log(response); ``` @@ -194,7 +194,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.calls.joinCall("1895000000000000000", { media: { type: "websocket" } }); +const response = await client.calls.joinCall("1895000000000000000", { media: { audio: { encoding: "example" } } }); console.log(response); ``` @@ -367,7 +367,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.calls.updateScheduledCall("1895000000000000000", { "occurrence_start_time": "example" }); +const response = await client.calls.updateScheduledCall("1895000000000000000", { description: "example" }); console.log(response); ``` diff --git a/xdks/typescript/reference/clients/chat.mdx b/xdks/typescript/reference/clients/chat.mdx index c674fb66c..86ab96497 100644 --- a/xdks/typescript/reference/clients/chat.mdx +++ b/xdks/typescript/reference/clients/chat.mdx @@ -192,7 +192,10 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.chat.addUserPublicKey("2244994945", { "public_key": { "public_key": "example" } }); +const response = await client.chat.addUserPublicKey( + "2244994945", + { "public_key": { "identity_public_key_signature": "example" } } +); console.log(response); ``` @@ -528,7 +531,7 @@ const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); const response = await client.chat.enableGroupInvite( "1895000000000000000", - { "affiliate_user_id": "1895000000000000000" } + { "action_signatures": [{ "message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {} }] } ); console.log(response); ``` @@ -1496,10 +1499,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.chat.updateConversationScreenCapture( - "1895000000000000000", - { "blocking_action_signatures": [{ "message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {} }] } -); +const response = await client.chat.updateConversationScreenCapture("1895000000000000000", { blocking: true }); console.log(response); ``` @@ -1564,7 +1564,10 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.chat.updateGroupAdminSettings("1895000000000000000", { "block_screen_capture": true }); +const response = await client.chat.updateGroupAdminSettings( + "1895000000000000000", + { "action_signatures": [{ "message_id": "1895000000000000000", "encoded_message_event_detail": "example", "message_event_signature": {} }] } +); console.log(response); ``` @@ -1595,7 +1598,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.chat.updateSettings({ "always_allow_dms_from_subscribers": true }); +const response = await client.chat.updateSettings({ "allow_dms_from": "all" }); console.log(response); ``` diff --git a/xdks/typescript/reference/clients/media.mdx b/xdks/typescript/reference/clients/media.mdx index 18607895f..2da57fe31 100644 --- a/xdks/typescript/reference/clients/media.mdx +++ b/xdks/typescript/reference/clients/media.mdx @@ -131,7 +131,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); const response = await client.media.createMetadata( - { id: "1895000000000000000", metadata: { "shared_info": { shared: "example" } } } + { id: "1895000000000000000", metadata: { "allow_download_status": { "allow_download": "example" } } } ); console.log(response); ``` @@ -160,7 +160,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); const response = await client.media.createSubtitles( - { id: "1895000000000000000", "media_category": "AmplifyVideo", subtitles: { "language_code": "example" } } + { id: "1895000000000000000", "media_category": "AmplifyVideo", subtitles: { "display_name": "example" } } ); console.log(response); ``` @@ -506,7 +506,7 @@ import { Client } from "@xdevplatform/xdk"; const client = new Client({ accessToken: process.env.X_ACCESS_TOKEN }); -const response = await client.media.initializeUpload({ "media_category": "amplify_video" }); +const response = await client.media.initializeUpload({ "additional_owners": ["example"] }); console.log(response); ```