Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -3020,6 +3016,10 @@
{
"source": "/xdks/typescript/reference/variables/:slug*",
"destination": "/xdks/typescript/reference/overview"
},
{
"source": "/xdks",
"destination": "/xdks/overview"
}
],
"seo": {
Expand Down
114 changes: 57 additions & 57 deletions overlays/xdk-code-samples.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion xdks/csharp/reference/clients/bots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down
5 changes: 1 addition & 4 deletions xdks/csharp/reference/clients/broadcasts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down
4 changes: 2 additions & 2 deletions xdks/csharp/reference/clients/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```
Expand Down
16 changes: 4 additions & 12 deletions xdks/csharp/reference/clients/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```
Expand Down Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```

Expand Down
5 changes: 4 additions & 1 deletion xdks/csharp/reference/clients/media.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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<string> { "example" } }
);
Console.WriteLine(response);
```

Expand Down
2 changes: 1 addition & 1 deletion xdks/java/reference/clients/bots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
2 changes: 1 addition & 1 deletion xdks/java/reference/clients/broadcasts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
6 changes: 2 additions & 4 deletions xdks/java/reference/clients/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```
Expand Down
13 changes: 4 additions & 9 deletions xdks/java/reference/clients/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```
Expand Down Expand Up @@ -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);
```
Expand Down Expand Up @@ -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);
```

Expand Down
3 changes: 2 additions & 1 deletion xdks/java/reference/clients/media.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```
Expand Down
5 changes: 4 additions & 1 deletion xdks/python/reference/clients/bots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down
5 changes: 1 addition & 4 deletions xdks/python/reference/clients/broadcasts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down
6 changes: 3 additions & 3 deletions xdks/python/reference/clients/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```

Expand Down Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```
Expand Down
10 changes: 5 additions & 5 deletions xdks/python/reference/clients/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```

Expand Down
6 changes: 3 additions & 3 deletions xdks/python/reference/clients/media.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```
Expand Down Expand Up @@ -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)
```

Expand Down
2 changes: 1 addition & 1 deletion xdks/typescript/reference/clients/bots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down
2 changes: 1 addition & 1 deletion xdks/typescript/reference/clients/broadcasts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down
6 changes: 3 additions & 3 deletions xdks/typescript/reference/clients/calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```

Expand Down Expand Up @@ -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);
```

Expand Down
Loading
Loading