From 59e0a15e64c686623e18d9c81efc1c90523e1405 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:09:18 +0200 Subject: [PATCH 01/18] broadcast --- docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx index 28105bc3..217e7c70 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx @@ -25,9 +25,9 @@ call.stop_hls_broadcasting() ```go -call.StartHLSBroadcasting(ctx) +call.StartHLSBroadcasting(ctx, &StartHLSBroadcastingRequest{}) // to end broadcasting -call.StopHLSBroadcasting(ctx) +call.StopHLSBroadcasting(ctx, &StopHLSBroadcastingRequest{}) ``` From cdda4763efd16d8c160d31cc091b0665c535fb9f Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:31:02 +0200 Subject: [PATCH 02/18] StopAllRTMPBroadcasts --- .../docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx index 406d9fb5..a865d797 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx @@ -19,7 +19,7 @@ call.stop_all_rtmp_broadcasts() ```go -call.StopAllRTMPBroadcasts(ctx) +call.StopAllRTMPBroadcasts(ctx, &StopAllRTMPBroadcastsRequest{}) ``` From e6dcd1432f8e43e34744fae3d70b2e96d6f3b57b Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:32:16 +0200 Subject: [PATCH 03/18] end call --- docusaurus/video/docusaurus/docs/api/basics/calls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx index f7ebb635..00bac1ef 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx @@ -337,7 +337,7 @@ call.end() ```go -call.End(ctx) +call.End(ctx, &EndCallRequest{}) ``` From d4058e78838ea38f2711eb83ffdbd14fa631bb25 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:33:25 +0200 Subject: [PATCH 04/18] get app --- docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx index 3ac86693..228d9d03 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx @@ -51,7 +51,7 @@ client.update_app(multi_tenant_enabled=True) ```go -res, _ := client.GetApp(ctx) +res, _ := client.GetApp(ctx, &GetAppRequest{}) fmt.Println(res.Data.App.MultiTenantEnabled) // enables teams From 96d150e00069b29ac2de4ad28f6df5b36df07aad Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:34:56 +0200 Subject: [PATCH 05/18] call types --- .../video/docusaurus/docs/api/call_types/manage-types.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx index ad691e90..c65f07ad 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx @@ -34,10 +34,10 @@ client.get_call_type(name= 'livestream') ```go -client.Video().ListCallTypes(ctx) +client.Video().ListCallTypes(ctx, &ListCallTypesRequest{}) // or -client.Video().GetCallType(ctx, "livestream") +client.Video().GetCallType(ctx, "livestream", &GetCallTypeRequest{}) ``` From 13ce3b8305cee578db0d1e6adafebb4e9650c0a7 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:36:46 +0200 Subject: [PATCH 06/18] list recordings --- .../video/docusaurus/docs/api/recording/recording_calls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index fc39f359..5ad9853e 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -88,7 +88,7 @@ call.list_recordings() ```go -call.ListRecordings(ctx) +call.ListRecordings(ctx, &ListRecordingsRequest{}) ``` From 12e54ec6a7bea139eac900b7e87281a6516a0efa Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:37:59 +0200 Subject: [PATCH 07/18] delete recordings --- .../video/docusaurus/docs/api/recording/recording_calls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index 5ad9853e..b8b2b360 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -128,7 +128,7 @@ call.delete_recording(sessionID, filename) ```go -call.DeleteRecording(ctx, "session_id","filename") +call.DeleteRecording(ctx, "session_id", "filename", &DeleteRecordingRequest{}) ``` From a772b52f890c2ed1b9baab1ea346858b600c4770 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:42:36 +0200 Subject: [PATCH 08/18] get call --- docusaurus/video/docusaurus/docs/api/streaming/hls.mdx | 4 ++-- .../video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx b/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx index f3259339..0e5a7de9 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx @@ -55,7 +55,7 @@ print(f"broadcasting: {response.data.call.egress.broadcasting}") ```go -response, err := call.Get(ctx,nil) +response, err := call.Get(ctx, &GetCallRequest{}) fmt.Printf("broadcasting: %v", response.Data.Call.Egress.Broadcasting) ``` @@ -106,7 +106,7 @@ response.data.call.egress.hls.playlist_url ```go -response, err := call.Get(ctx,nil) +response, err := call.Get(ctx, &GetCallRequest{}) fmt.Printf("HLS URL: %v", response.Data.Call.Egress.Hls.PlaylistUrl) ``` diff --git a/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx b/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx index 566d2bd4..96c8e050 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx @@ -105,7 +105,7 @@ print(f"rtmp broadcasting: {is_rtmp_broadcasting}") ```go -response, err := call.Get(ctx,nil) +response, err := call.Get(ctx, &GetCallRequest{}) // If HLS or any RTMP broadcast active fmt.Printf("broadcasting: %v", response.Data.Call.Egress.Broadcasting) From 7e46a3bd9e022a9792226e1d6784e7860d517e5c Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:44:24 +0200 Subject: [PATCH 09/18] transcriptions start/ stop --- .../docusaurus/docs/api/transcription/transcribing_calls.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx index 55704b6f..986cdf8d 100644 --- a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx @@ -44,10 +44,10 @@ call.stop_transcription() ```go -call.StartTranscription(ctx, nil) +call.StartTranscription(ctx, &StartTranscriptionRequest{}) // stops the transcription for the call -call.StopTranscription(ctx) +call.StopTranscription(ctx, &StopTranscriptionRequest{}) ``` From ede63c5a5385f284c047b39b850559a29317ea93 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:45:07 +0200 Subject: [PATCH 10/18] transcriptions list --- .../docusaurus/docs/api/transcription/transcribing_calls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx index 986cdf8d..d7f78b36 100644 --- a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx @@ -92,7 +92,7 @@ call.list_transcriptions() ```go -call.ListTranscriptions(ctx) +call.ListTranscriptions(ctx, &ListTranscriptionsRequest{}) ``` From 06b78713dc1569c76095116ddce927f04c9d9739 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:54:43 +0200 Subject: [PATCH 11/18] storage --- docusaurus/video/docusaurus/docs/api/_common_/storage.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx index 5a9681e0..cb6cafd7 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx @@ -95,11 +95,11 @@ client.CreateExternalStorage(ctx, &CreateExternalStorageRequest{ S3Secret: PtrTo("my-secret"), }, }) - + // 2. (Optional) Check storage configuration for correctness // In case of any errors, this will throw a StreamAPIException. -response, err := client.CheckExternalStorage(ctx, "my-s3") +response, err := client.CheckExternalStorage(ctx, "my-s3", &CheckExternalStorageRequest{}) // 3. update the call type to use the new storage client.Video().UpdateCallType(ctx, "allhands", &UpdateCallTypeRequest{ From c40d81f38884f6a4d04c44323fd01aabaa607d5a Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:58:07 +0200 Subject: [PATCH 12/18] rtmp --- docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx index fe2cd911..9761f986 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx @@ -45,7 +45,7 @@ print(rtmp_url, stream_key) ```go call := client.Video().Call("default", uuid.New().String()) // create the call where the RTMP will be sent to -response, err := call.GetOrCreate(ctx, nil) +response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{}) // ensure we have a user for the host to send video via RTMP client.UpdateUsers(ctx, &UpdateUsersRequest{ From 963a26f9c6b7bbb5df243321a16fad8b3982fe29 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 16:58:28 +0200 Subject: [PATCH 13/18] recording --- .../video/docusaurus/docs/api/recording/recording_calls.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index b8b2b360..4667f72b 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -44,10 +44,10 @@ call.stop_recording() ```go // starts recording -call.StartRecording(ctx,nil) +call.StartRecording(ctx, &StartRecordingRequest{}) // stops the recording for the call -call.StopRecording(ctx,nil) +call.StopRecording(ctx, &StopRecordingRequest{}) ``` From 399c69a81694efc1933e7b2d5523ec114911868b Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 17:04:53 +0200 Subject: [PATCH 14/18] manage types --- .../video/docusaurus/docs/api/call_types/manage-types.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx index c65f07ad..b605495d 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx @@ -237,7 +237,7 @@ client.video.delete_call_type(name= 'allhands') ```go -client.Video().DeleteCallType(ctx, "allhands") +client.Video().DeleteCallType(ctx, "allhands", &DeleteCallTypeRequest{}) ``` From 9a8831e95fdda483d90b0b5119c353d83339389d Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Wed, 23 Oct 2024 17:05:09 +0200 Subject: [PATCH 15/18] transcription --- .../docusaurus/docs/api/transcription/transcribing_calls.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx index d7f78b36..be24359a 100644 --- a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx @@ -132,7 +132,7 @@ call.delete_transcription(sessionID, filename) ```go -call.DeleteTranscription(ctx, sessionID, filename) +call.DeleteTranscription(ctx, sessionID, filename, &DeleteTranscriptionRequest{}) ``` From cf6b5a1857c32ed5701e49a821dab94b8be0b494 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Thu, 24 Oct 2024 10:37:22 +0200 Subject: [PATCH 16/18] slice to ptr --- .../video/docusaurus/docs/api/basics/calls.mdx | 12 ++++++------ .../docusaurus/docs/api/basics/multi-tenant.mdx | 2 +- .../docusaurus/docs/api/call_types/geofencing.mdx | 4 ++-- .../docusaurus/docs/api/moderation/overview.mdx | 6 +++--- .../video/docusaurus/docs/api/streaming/overview.mdx | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx index 00bac1ef..1fefe047 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx @@ -65,7 +65,7 @@ call.GetOrCreate(ctx, &GetOrCreateCallRequest{ Ring: PtrTo(true), Data: &CallRequest{ CreatedByID: PtrTo("myself"), - Members: &[]MemberRequest{ + Members: []MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, }, @@ -139,7 +139,7 @@ call.GetOrCreate(ctx, &GetOrCreateCallRequest{ Notify: PtrTo(true), Data: &CallRequest{ CreatedByID: PtrTo("myself"), - Members: &[]MemberRequest{ + Members: []MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, }, @@ -428,7 +428,7 @@ client.Video().QueryCalls(ctx, &QueryCallsRequest{}) // sorting and pagination response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ - Sort: &[]*SortParamRequest{&SortParamRequest{ + Sort: []*SortParamRequest{&SortParamRequest{ Field: PtrTo("starts_at"), Direction: PtrTo(-1), } @@ -439,7 +439,7 @@ response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ // loading next page client.Video().QueryCalls(ctx, &QueryCallsRequest{ - Sort: &[]*SortParamRequest{&SortParamRequest{ + Sort: []*SortParamRequest{&SortParamRequest{ Field: PtrTo("starts_at"), Direction: PtrTo(-1), } @@ -705,7 +705,7 @@ client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{}) // sorting and pagination response, err := client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ - Sort: &[]*SortParamRequest{&SortParamRequest{ + Sort: []*SortParamRequest{&SortParamRequest{ Field: PtrTo("user_id"), Direction: PtrTo(1), }, @@ -716,7 +716,7 @@ response, err := client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ // loading next page client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ - Sort: &[]*SortParamRequest{&SortParamRequest{ + Sort: []*SortParamRequest{&SortParamRequest{ Field: PtrTo("user_id"), Direction: PtrTo(1), }, diff --git a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx index 228d9d03..17d9a157 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx @@ -132,7 +132,7 @@ client.UpdateUsers(ctx, &UpdateUsersRequest{ Users: map[string]UserRequest{ "john": { ID: "john", - Teams: &[]string{ + Teams: []string{ "red", "blue", }, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx index 6b7a5148..38f7521a 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx @@ -84,7 +84,7 @@ client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ Name: "", Settings: &CallSettingsRequest{ Geofencing: &GeofenceSettingsRequest{ - Names: &[]string{"european_union"}, + Names: []string{"european_union"}, }, }, }) @@ -95,7 +95,7 @@ call.GetOrCreate(ctx, &GetOrCreateCallRequest{ CreatedByID: PtrTo("john"), SettingsOverride: &CallSettingsRequest{ Geofencing: &GeofenceSettingsRequest{ - Names: &[]string{"european_union", "united_states"}, + Names: []string{"european_union", "united_states"}, }, }, }, diff --git a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx index c52d5a19..e2192811 100644 --- a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx @@ -248,7 +248,7 @@ call.mute_users( ```go call.MuteUsers(ctx, &MuteUsersRequest{ - UserIDs: &[]string{alice.id,bob.id}, + UserIDs: []string{alice.id,bob.id}, Audio: PtrTo(true), Video: PtrTo(true), Screenshare: PtrTo(true), @@ -321,7 +321,7 @@ call.update_user_permissions( ```go call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{ UserID: "sara", - GrantPermissions: &[]string{SEND_AUDIO.String()}, + GrantPermissions: []string{SEND_AUDIO.String()}, }) ``` @@ -375,7 +375,7 @@ call.update_user_permissions( ```go call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{ UserID: "sara", - RevokePermissions: &[]string{SEND_AUDIO.String()}, + RevokePermissions: []string{SEND_AUDIO.String()}, }) ``` diff --git a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx index 1d15f3b8..a6342a15 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx @@ -74,7 +74,7 @@ response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{ Data: &CallRequest{ CreatedByID: PtrTo("john"), // You can add multiple hosts if you want to - Members: &[]MemberRequest{ + Members: []MemberRequest{ {UserID: "john", Role: PtrTo("host")}, }, }, From 442370b8cc58850f1ee29be0adc56b7a4b3f34fd Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Thu, 24 Oct 2024 10:57:57 +0200 Subject: [PATCH 17/18] prefix with package name --- .../docs/api/_common_/broadcast.mdx | 4 +- .../api/_common_/call-type-rtmp-settings.mdx | 10 +-- .../docs/api/_common_/custom-events.mdx | 2 +- .../docusaurus/docs/api/_common_/go_live.mdx | 2 +- .../api/_common_/rtmp-broadcast-start.mdx | 4 +- .../api/_common_/rtmp-broadcast-stop-all.mdx | 2 +- .../docs/api/_common_/rtmp-broadcast-stop.mdx | 2 +- .../docusaurus/docs/api/_common_/rtmp.mdx | 6 +- .../docusaurus/docs/api/_common_/storage.mdx | 20 +++--- .../docusaurus/docs/api/basics/calls.mdx | 72 +++++++++---------- .../docs/api/basics/multi-tenant.mdx | 24 +++---- .../docs/api/call_types/geofencing.mdx | 14 ++-- .../docs/api/call_types/manage-types.mdx | 18 ++--- .../docs/api/call_types/permissions.mdx | 4 +- .../docs/api/call_types/settings.mdx | 20 +++--- .../docs/api/moderation/overview.mdx | 24 +++---- .../docs/api/recording/recording_calls.mdx | 68 +++++++++--------- .../docs/api/streaming/backstage.mdx | 26 +++---- .../docusaurus/docs/api/streaming/hls.mdx | 4 +- .../docs/api/streaming/overview.mdx | 4 +- .../docs/api/streaming/rtmp_broadcast.mdx | 2 +- .../api/transcription/transcribing_calls.mdx | 32 ++++----- 22 files changed, 182 insertions(+), 182 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx index 217e7c70..e261cae3 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/broadcast.mdx @@ -25,9 +25,9 @@ call.stop_hls_broadcasting() ```go -call.StartHLSBroadcasting(ctx, &StartHLSBroadcastingRequest{}) +call.StartHLSBroadcasting(ctx, &getstream.StartHLSBroadcastingRequest{}) // to end broadcasting -call.StopHLSBroadcasting(ctx, &StopHLSBroadcastingRequest{}) +call.StopHLSBroadcasting(ctx, &getstream.StopHLSBroadcastingRequest{}) ``` diff --git a/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx b/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx index bb140d62..869cb4ce 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx @@ -51,14 +51,14 @@ client.video.update_call_type( ```go -response, err := client.Video().UpdateCallType(ctx, callTypeName, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Broadcasting: &BroadcastSettingsRequest{ +response, err := client.Video().UpdateCallType(ctx, callTypeName, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Broadcasting: &getstream.BroadcastSettingsRequest{ Enabled: PtrTo(true), - Rtmp: &RTMPSettingsRequest{ + Rtmp: &getstream.RTMPSettingsRequest{ Enabled: PtrTo(true), Quality: PtrTo("1080p"), - Layout: &LayoutSettingsRequest{ + Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", }, }, diff --git a/docusaurus/video/docusaurus/docs/api/_common_/custom-events.mdx b/docusaurus/video/docusaurus/docs/api/_common_/custom-events.mdx index fb89d126..bd9b7112 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/custom-events.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/custom-events.mdx @@ -28,7 +28,7 @@ call.send_call_event(user_id=user.id, custom={"render-animation": "balloons"}) ```go // send a custom event to all users watching the call -call.SendCallEvent(ctx, &SendCallEventRequest{ +call.SendCallEvent(ctx, &getstream.SendCallEventRequest{ Custom: &map[string]interface{}{ "render-animation": "balloons", }, diff --git a/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx b/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx index 6c7544fd..7b214a2d 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx @@ -23,7 +23,7 @@ call.go_live(start_hls=True, start_recording=True) ```go -call.GoLive(ctx, &GoLiveRequest{ +call.GoLive(ctx, &getstream.GoLiveRequest{ StartHls: PtrTo(true), StartRecording: PtrTo(true), }) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx index 40ef9169..a71d2987 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx @@ -31,8 +31,8 @@ call.start_rtmp_broadcasts( ```go -call.StartRTMPBroadcasts(ctx, &StartRTMPBroadcastsRequest{ - Broadcasts: []RTMPBroadcastRequest{ +call.StartRTMPBroadcasts(ctx, &getstream.StartRTMPBroadcastsRequest{ + Broadcasts: []getstream.RTMPBroadcastRequest{ { Name: "youtube_channel", StreamUrl: "rtmps://x.rtmps.youtube.com/live2", diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx index a865d797..b0eece30 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop-all.mdx @@ -19,7 +19,7 @@ call.stop_all_rtmp_broadcasts() ```go -call.StopAllRTMPBroadcasts(ctx, &StopAllRTMPBroadcastsRequest{}) +call.StopAllRTMPBroadcasts(ctx, &getstream.StopAllRTMPBroadcastsRequest{}) ``` diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop.mdx index 33cea395..d4d17ae8 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-stop.mdx @@ -20,7 +20,7 @@ call.stop_rtmp_broadcast(name='youtube_channel') ```go -call.StopRTMPBroadcast(ctx, "youtube_channel", &StopRTMPBroadcastsRequest{}) +call.StopRTMPBroadcast(ctx, "youtube_channel", &getstream.StopRTMPBroadcastsRequest{}) ``` diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx index 9761f986..88c91a97 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp.mdx @@ -45,11 +45,11 @@ print(rtmp_url, stream_key) ```go call := client.Video().Call("default", uuid.New().String()) // create the call where the RTMP will be sent to -response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{}) +response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{}) // ensure we have a user for the host to send video via RTMP -client.UpdateUsers(ctx, &UpdateUsersRequest{ - Users: map[string]UserRequest{ +client.UpdateUsers(ctx, &getstream.UpdateUsersRequest{ + Users: map[string]getstream.UserRequest{ "tommaso-the-host": { ID: "tommaso-the-host", }, diff --git a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx index cb6cafd7..428beb75 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx @@ -84,12 +84,12 @@ client.video.update_call_type(name='allhands', external_storage='my-s3') ```go // 1. create a new storage with all the required parameters -client.CreateExternalStorage(ctx, &CreateExternalStorageRequest{ +client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-s3", StorageType: "s3", Bucket: "my-bucket", Path: PtrTo("directory_name/"), - AwsS3: &S3Request{ + AwsS3: &getstream.S3Request{ S3Region: "us-east-1", S3ApiKey: PtrTo("my-access"), S3Secret: PtrTo("my-secret"), @@ -99,10 +99,10 @@ client.CreateExternalStorage(ctx, &CreateExternalStorageRequest{ // 2. (Optional) Check storage configuration for correctness // In case of any errors, this will throw a StreamAPIException. -response, err := client.CheckExternalStorage(ctx, "my-s3", &CheckExternalStorageRequest{}) +response, err := client.CheckExternalStorage(ctx, "my-s3", &getstream.CheckExternalStorageRequest{}) // 3. update the call type to use the new storage -client.Video().UpdateCallType(ctx, "allhands", &UpdateCallTypeRequest{ +client.Video().UpdateCallType(ctx, "allhands", &getstream.UpdateCallTypeRequest{ ExternalStorage: PtrTo("my-s3"), }) ``` @@ -224,17 +224,17 @@ call.start_recording(recording_external_storage="my-storage") ```go // update the call type to use Stream S3 storage for recordings -client.Video().UpdateCallType(ctx, "my-call-type", &UpdateCallTypeRequest{ +client.Video().UpdateCallType(ctx, "my-call-type", &getstream.UpdateCallTypeRequest{ ExternalStorage: PtrTo("stream-s3"), }) // specify my-storage storage when starting call transcribing -call.StartTranscription(ctx, &StartTranscriptionRequest{ +call.StartTranscription(ctx, &getstream.StartTranscriptionRequest{ TranscriptionExternalStorage: PtrTo("my-storage"), }) // specify my-storage storage for recording -call.StartRecording(ctx, &StartRecordingRequest{ +call.StartRecording(ctx, &getstream.StartRecordingRequest{ RecordingExternalStorage: PtrTo("my-storage"), }) ``` @@ -378,7 +378,7 @@ if err != nil { log.Fatal(err) } -client.CreateExternalStorage(ctx, &CreateExternalStorageRequest{ +client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-gcs", StorageType: "gcs", Bucket: "my-bucket", @@ -488,12 +488,12 @@ client.create_external_storage( ```go -client.CreateExternalStorage(ctx, &CreateExternalStorageRequest{ +client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-abs", StorageType: "abs", Bucket: "my-bucket", Path: PtrTo("directory_name/"), - AzureBlob: &AzureRequest{ + AzureBlob: &getstream.AzureRequest{ AbsAccountName: "...", AbsClientID: "...", AbsClientSecret: "...", diff --git a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx index 1fefe047..bee201b0 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx @@ -61,11 +61,11 @@ call.get_or_create( ```go -call.GetOrCreate(ctx, &GetOrCreateCallRequest{ +call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Ring: PtrTo(true), - Data: &CallRequest{ + Data: &getstream.CallRequest{ CreatedByID: PtrTo("myself"), - Members: []MemberRequest{ + Members: []getstream.MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, }, @@ -139,7 +139,7 @@ call.GetOrCreate(ctx, &GetOrCreateCallRequest{ Notify: PtrTo(true), Data: &CallRequest{ CreatedByID: PtrTo("myself"), - Members: []MemberRequest{ + Members: []getstream.MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, }, @@ -245,7 +245,7 @@ response = client.video.update_call_type( ```go -response, err := client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{ +response, err := client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ Grants: &map[string][]string{ "user": []string{}, "call_member": []string{ @@ -337,7 +337,7 @@ call.end() ```go -call.End(ctx, &EndCallRequest{}) +call.End(ctx, &getstream.EndCallRequest{}) ``` @@ -424,11 +424,11 @@ client.query_calls( ```go // default sorting -client.Video().QueryCalls(ctx, &QueryCallsRequest{}) +client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{}) // sorting and pagination -response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ - Sort: []*SortParamRequest{&SortParamRequest{ +response, err := client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ + Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ Field: PtrTo("starts_at"), Direction: PtrTo(-1), } @@ -438,8 +438,8 @@ response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ ) // loading next page -client.Video().QueryCalls(ctx, &QueryCallsRequest{ - Sort: []*SortParamRequest{&SortParamRequest{ +client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ + Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ Field: PtrTo("starts_at"), Direction: PtrTo(-1), } @@ -498,7 +498,7 @@ client.video.query_calls( ```go -client.Video().QueryCalls(ctx, &QueryCallsRequest{ +client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ FilterConditions: &map[string]interface{}{ "backstage": false, }, @@ -556,7 +556,7 @@ client.video.query_calls( ```go // in next 30 minutes inNext30Mins := time.Now().Add(30 * time.Minute) -client.Video().QueryCalls(ctx, &QueryCallsRequest{ +client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ FilterConditions: &map[string]interface{}{ "starts_at": inNext30Mins.Format(time.RFC3339), }, @@ -604,7 +604,7 @@ client.video.query_calls( ```go -client.Video().QueryCalls(ctx, &QueryCallsRequest{ +client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ FilterConditions: &map[string]interface{}{ "ongoing": true, }, @@ -701,11 +701,11 @@ call.query_members( ```go // default sorting -client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{}) +client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{}) // sorting and pagination -response, err := client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ - Sort: []*SortParamRequest{&SortParamRequest{ +response, err := client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{ + Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ Field: PtrTo("user_id"), Direction: PtrTo(1), }, @@ -715,8 +715,8 @@ response, err := client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ ) // loading next page -client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ - Sort: []*SortParamRequest{&SortParamRequest{ +client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{ + Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ Field: PtrTo("user_id"), Direction: PtrTo(1), }, @@ -726,7 +726,7 @@ client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ }) // filtering -client.Video().QueryCallMembers(ctx, &QueryCallMembersRequest{ +client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{ FilterConditions: &map[string]interface{}{ "role": "admin", }, @@ -866,13 +866,13 @@ call.video_unpin(session_id="session-id", user_id="user-id-to-unpin") ```go // Pin video for all participants -call.VideoPin(ctx, &PinRequest{ +call.VideoPin(ctx, &getstream.PinRequest{ SessionID: "session-id", UserID: "user-id-to-pin", }) // Unpin video for all participants -call.VideoUnpin(ctx, &UnpinRequest{ +call.VideoUnpin(ctx, &getstream.UnpinRequest{ SessionID: "session-id", UserID: "user-id-to-unpin", }) @@ -989,7 +989,7 @@ client.video.update_call_type( ```go // Set default max duration to 1 hour -client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{ +client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ Settings: &CallSettingsRequest{ Limits: &LimitsSettingsRequest{ MaxDurationSeconds: PtrTo(3600), @@ -998,9 +998,9 @@ client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{ }) // Disable the default session timer -client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Limits: &LimitsSettingsRequest{ +client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Limits: &getstream.LimitsSettingsRequest{ MaxDurationSeconds: PtrTo(0), }, }, @@ -1110,11 +1110,11 @@ call.get_or_create( ```go -call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ +call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ CreatedByID: PtrTo("john"), - SettingsOverride: &CallSettingsRequest{ - Limits: &LimitsSettingsRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Limits: &getstream.LimitsSettingsRequest{ MaxDurationSeconds: PtrTo(3600), }, }, @@ -1210,18 +1210,18 @@ call.update( ```go // Updates a call with session timer -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Limits: &LimitsSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Limits: &getstream.LimitsSettingsRequest{ MaxDurationSeconds: PtrTo(3600), }, }, }) // Disable the session timer -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Limits: &LimitsSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Limits: &getstream.LimitsSettingsRequest{ MaxDurationSeconds: PtrTo(0), }, }, diff --git a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx index 17d9a157..acd684ba 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx @@ -51,11 +51,11 @@ client.update_app(multi_tenant_enabled=True) ```go -res, _ := client.GetApp(ctx, &GetAppRequest{}) +res, _ := client.GetApp(ctx, &getstream.GetAppRequest{}) fmt.Println(res.Data.App.MultiTenantEnabled) // enables teams -client.UpdateApp(ctx, &UpdateAppRequest{ +client.UpdateApp(ctx, &getstream.UpdateAppRequest{ MultiTenantEnabled: PtrTo(true), }) ``` @@ -128,8 +128,8 @@ client.upsert_users( ```go -client.UpdateUsers(ctx, &UpdateUsersRequest{ - Users: map[string]UserRequest{ +client.UpdateUsers(ctx, &getstream.UpdateUsersRequest{ + Users: map[string]getstream.UserRequest{ "john": { ID: "john", Teams: []string{ @@ -212,8 +212,8 @@ response = call.create( ```go call = client.Video().Call("default", "callID") -response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ +response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ Team: PtrTo("blue"), CreatedByID: PtrTo(""), }, @@ -303,8 +303,8 @@ response = client.query_users( ```go -response, err := client.QueryUsers(ctx, &QueryUsersRequest{ - Payload: &QueryUsersPayload{ +response, err := client.QueryUsers(ctx, &getstream.QueryUsersRequest{ + Payload: &getstream.QueryUsersPayload{ FilterConditions: map[string]interface{}{ "name": "Nick", "teams": map[string]interface{}{"$in": []string{"red", "blue"}}, @@ -313,8 +313,8 @@ response, err := client.QueryUsers(ctx, &QueryUsersRequest{ }) // search for users that are not part of any team -response, err = client.QueryUsers(ctx, &QueryUsersRequest{ - Payload: &QueryUsersPayload{ +response, err = client.QueryUsers(ctx, &getstream.QueryUsersRequest{ + Payload: &getstream.QueryUsersPayload{ FilterConditions: map[string]interface{}{ "teams": nil, }, @@ -417,7 +417,7 @@ response = client.video.query_calls( ```go -response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ +response, err := client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ FilterConditions: &map[string]interface{}{ "id": call_id, "team": map[string]interface{}{"$eq": "blue"}, @@ -425,7 +425,7 @@ response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ }) // retrieve calls without a team -response, err := client.Video().QueryCalls(ctx, &QueryCallsRequest{ +response, err := client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ FilterConditions: &map[string]interface{}{ "id": call_id, "team": &map[string]interface{}{"$eq": nil}, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx index 38f7521a..b9b55289 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx @@ -80,21 +80,21 @@ call.create( ```go -client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ +client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "", - Settings: &CallSettingsRequest{ - Geofencing: &GeofenceSettingsRequest{ + Settings: &getstream.CallSettingsRequest{ + Geofencing: &getstream.GeofenceSettingsRequest{ Names: []string{"european_union"}, }, }, }) // override settings on call level -call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ +call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ CreatedByID: PtrTo("john"), - SettingsOverride: &CallSettingsRequest{ - Geofencing: &GeofenceSettingsRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Geofencing: &getstream.GeofenceSettingsRequest{ Names: []string{"european_union", "united_states"}, }, }, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx index b605495d..4e7dc29d 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx @@ -34,10 +34,10 @@ client.get_call_type(name= 'livestream') ```go -client.Video().ListCallTypes(ctx, &ListCallTypesRequest{}) +client.Video().ListCallTypes(ctx, &getstream.ListCallTypesRequest{}) // or -client.Video().GetCallType(ctx, "livestream", &GetCallTypeRequest{}) +client.Video().GetCallType(ctx, "livestream", &getstream.GetCallTypeRequest{}) ``` @@ -106,10 +106,10 @@ client.video.create_call_type( ```go -client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ +client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "allhands", - Settings: &CallSettingsRequest{ - Audio: &AudioSettingsRequest{ + Settings: &getstream.CallSettingsRequest{ + Audio: &getstream.AudioSettingsRequest{ MicDefaultOn: PtrTo(true), DefaultDevice: "speaker", }, @@ -176,9 +176,9 @@ client.video.update_call_type(name='allhands', ```go -client.Video().UpdateCallType(ctx, "allhands", &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Audio: &AudioSettingsRequest{ +client.Video().UpdateCallType(ctx, "allhands", &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Audio: &getstream.AudioSettingsRequest{ MicDefaultOn: PtrTo(false), DefaultDevice: "earpiece", }, @@ -237,7 +237,7 @@ client.video.delete_call_type(name= 'allhands') ```go -client.Video().DeleteCallType(ctx, "allhands", &DeleteCallTypeRequest{}) +client.Video().DeleteCallType(ctx, "allhands", &getstream.DeleteCallTypeRequest{}) ``` diff --git a/docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx b/docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx index 65d8f409..62ca0b3c 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/permissions.mdx @@ -86,7 +86,7 @@ client.video.update_call_type(name = 'default', ```go -client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ +client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "allhands", Grants: &map[string][]string{ "admin": { @@ -101,7 +101,7 @@ client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ }, }) -client.Video().UpdateCallType(ctx, "default", &UpdateCallTypeRequest{ +client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ Grants: &map[string][]string{ /* ... */ }, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx index c2695475..4d4c39a2 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx @@ -83,10 +83,10 @@ call.create( ```go -client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ +client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "", - Settings: &CallSettingsRequest{ - Screensharing: &ScreensharingSettingsRequest{ + Settings: &getstream.CallSettingsRequest{ + Screensharing: &getstream.ScreensharingSettingsRequest{ AccessRequestEnabled: PtrTo(false), Enabled: PtrTo(true), }, @@ -94,11 +94,11 @@ client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ }) // override settings on call level -call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ +call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ CreatedByID: PtrTo("john"), - SettingsOverride: &CallSettingsRequest{ - Screensharing: &ScreensharingSettingsRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Screensharing: &getstream.ScreensharingSettingsRequest{ Enabled: PtrTo(false), }, }, @@ -194,11 +194,11 @@ client.video.create_call_type( ```go -client.Video().CreateCallType(ctx, &CreateCallTypeRequest{ +client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "", - NotificationSettings: &NotificationSettings{ + NotificationSettings: &getstream.NotificationSettings{ Enabled: true, - CallNotification: EventNotificationSettings{ + CallNotification: getstream.EventNotificationSettings{ Apns: APNS{ Title: "{{ user.display_name }} invites you to a call", }, diff --git a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx index e2192811..a34a694e 100644 --- a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx @@ -50,12 +50,12 @@ call.unblock_user(user_id='sara') ```go // Block user -call.BlockUser(ctx, &BlockUserRequest{ +call.BlockUser(ctx, &getstream.BlockUserRequest{ UserID: "sara", }) // Unblock user -call.UnblockUser(ctx, &UnblockUserRequest{ +call.UnblockUser(ctx, &getstream.UnblockUserRequest{ UserID: "sara", }) ``` @@ -120,9 +120,9 @@ call.update( ```go -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Screensharing: &ScreensharingSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Screensharing: &getstream.ScreensharingSettingsRequest{ Enabled: PtrTo(true), AccessRequestEnabled: PtrTo(true), }, @@ -187,7 +187,7 @@ call.mute_users( ```go // You can specify which kind of stream(s) to mute -call.MuteUsers(ctx, &MuteUsersRequest{ +call.MuteUsers(ctx, &getstream.MuteUsersRequest{ MuteAllUsers: PtrTo(true), Audio: PtrTo(true), MutedByID: PtrTo("john"), @@ -247,7 +247,7 @@ call.mute_users( ```go -call.MuteUsers(ctx, &MuteUsersRequest{ +call.MuteUsers(ctx, &getstream.MuteUsersRequest{ UserIDs: []string{alice.id,bob.id}, Audio: PtrTo(true), Video: PtrTo(true), @@ -319,7 +319,7 @@ call.update_user_permissions( ```go -call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{ +call.UpdateUserPermissions(ctx, &getstream.UpdateUserPermissionsRequest{ UserID: "sara", GrantPermissions: []string{SEND_AUDIO.String()}, }) @@ -373,7 +373,7 @@ call.update_user_permissions( ```go -call.UpdateUserPermissions(ctx, &UpdateUserPermissionsRequest{ +call.UpdateUserPermissions(ctx, &getstream.UpdateUserPermissionsRequest{ UserID: "sara", RevokePermissions: []string{SEND_AUDIO.String()}, }) @@ -586,18 +586,18 @@ client.unblock_users(blocked_user_id=bob.id, user_id=alice.id) ```go // alice blocks bob -client.BlockUsers(ctx, &BlockUsersRequest{ +client.BlockUsers(ctx, &getstream.BlockUsersRequest{ BlockedUserID: "bob.ID", UserID: &alice.ID, }) // list blocked users by alice -response, err := client.GetBlockedUsers(ctx, &GetBlockedUsersRequest{ +response, err := client.GetBlockedUsers(ctx, &getstream.GetBlockedUsersRequest{ UserID: &alice.ID, }) // alice unblocks bob -client.UnblockUsers(ctx, &UnblockUsersRequest{ +client.UnblockUsers(ctx, &getstream.UnblockUsersRequest{ BlockedUserID: bob.ID, UserID: &alice.ID, }) diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index 4667f72b..673f2294 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -44,10 +44,10 @@ call.stop_recording() ```go // starts recording -call.StartRecording(ctx, &StartRecordingRequest{}) +call.StartRecording(ctx, &getstream.StartRecordingRequest{}) // stops the recording for the call -call.StopRecording(ctx, &StopRecordingRequest{}) +call.StopRecording(ctx, &getstream.StopRecordingRequest{}) ``` @@ -88,7 +88,7 @@ call.list_recordings() ```go -call.ListRecordings(ctx, &ListRecordingsRequest{}) +call.ListRecordings(ctx, &getstream.ListRecordingsRequest{}) ``` @@ -128,7 +128,7 @@ call.delete_recording(sessionID, filename) ```go -call.DeleteRecording(ctx, "session_id", "filename", &DeleteRecordingRequest{}) +call.DeleteRecording(ctx, "session_id", "filename", &getstream.DeleteRecordingRequest{}) ``` @@ -271,9 +271,9 @@ call.update( ```go // Disable on call level -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "disabled", }, }, @@ -281,18 +281,18 @@ call.Update(ctx, &UpdateCallRequest{ // Disable on call type level call_type_name := "default" -client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "disabled", }, }, }) // Automatically record calls -client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "auto-on", Quality: PtrTo("720p"), }, @@ -300,18 +300,18 @@ client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ }) // Enable recording feature for a specific call -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", }, }, }) // Other settings -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", Quality: PtrTo("1080p"), }, @@ -464,9 +464,9 @@ call.update( ```go // Set recording only for audio -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", AudioOnly: PtrTo(true), }, @@ -657,13 +657,13 @@ layoutOptions := map[string]any{ "participant_label.background_color": "transparent", } -client.Video().UpdateCallType(ctx, "callTypeName", &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", AudioOnly: PtrTo(false), Quality: PtrTo("1080p"), - Layout: &LayoutSettingsRequest{ + Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", Options: &layoutOptions, }, @@ -956,13 +956,13 @@ client.video.update_call_type( ```go -client.Video().UpdateCallType(ctx, "callTypeName", &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", AudioOnly: PtrTo(false), Quality: PtrTo("1080p"), - Layout: &LayoutSettingsRequest{ + Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", ExternalCssUrl: PtrTo("https://path/to/custom.css"), }, @@ -1069,13 +1069,13 @@ client.video.update_call_type( ```go -client.Video().UpdateCallType(ctx, "callTypeName", &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Recording: &RecordSettingsRequest{ +client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Recording: &getstream.RecordSettingsRequest{ Mode: "available", AudioOnly: PtrTo(false), Quality: PtrTo("1080p"), - Layout: &LayoutSettingsRequest{ + Layout: &getstream.LayoutSettingsRequest{ Name: "custom", ExternalAppUrl: PtrTo("https://path/to/layout/app"), }, diff --git a/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx b/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx index c67f738b..65aa1f74 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx @@ -72,12 +72,12 @@ response = call.get_or_create( starts_at := time.Now().Add(30 * time.Minute) call := client.Video().Call("livestream", uuid.New().String()) -response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ - StartsAt: &Timestamp{Time: starts_at}, +response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ + StartsAt: &getstream.Timestamp{Time: starts_at}, CreatedByID: PtrTo("john"), - SettingsOverride: &CallSettingsRequest{ - Backstage: &BackstageSettingsRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Backstage: &getstream.BackstageSettingsRequest{ Enabled: PtrTo(true), JoinAheadTimeSeconds: PtrTo(300), }, @@ -191,9 +191,9 @@ client.video.update_call_type( ```go // call level update -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Backstage: &BackstageSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Backstage: &getstream.BackstageSettingsRequest{ Enabled: PtrTo(true), JoinAheadTimeSeconds: PtrTo(300), }, @@ -202,9 +202,9 @@ call.Update(ctx, &UpdateCallRequest{ // call type level update call_type_name := "" -client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Backstage: &BackstageSettingsRequest{ +client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Backstage: &getstream.BackstageSettingsRequest{ Enabled: PtrTo(true), JoinAheadTimeSeconds: PtrTo(300), }, @@ -307,9 +307,9 @@ client.video.update_call_type( ```go callTypeName := "" -client.Video().UpdateCallType(ctx, callTypeName, &UpdateCallTypeRequest{ +client.Video().UpdateCallType(ctx, callTypeName, &getstream.UpdateCallTypeRequest{ Grants: &map[string][]string{ - "host": []string{JOIN_BACKSTAGE.String()}, + "host": []string{getstream.JOIN_BACKSTAGE.String()}, }, }) ``` diff --git a/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx b/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx index 0e5a7de9..7d1b0b07 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/hls.mdx @@ -55,7 +55,7 @@ print(f"broadcasting: {response.data.call.egress.broadcasting}") ```go -response, err := call.Get(ctx, &GetCallRequest{}) +response, err := call.Get(ctx, &getstream.GetCallRequest{}) fmt.Printf("broadcasting: %v", response.Data.Call.Egress.Broadcasting) ``` @@ -106,7 +106,7 @@ response.data.call.egress.hls.playlist_url ```go -response, err := call.Get(ctx, &GetCallRequest{}) +response, err := call.Get(ctx, &getstream.GetCallRequest{}) fmt.Printf("HLS URL: %v", response.Data.Call.Egress.Hls.PlaylistUrl) ``` diff --git a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx index a6342a15..67dd1360 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx @@ -70,8 +70,8 @@ response = call.create( ```go call := client.Video().Call("livestream", callID) -response, err := call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Data: &CallRequest{ +response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ + Data: &getstream.CallRequest{ CreatedByID: PtrTo("john"), // You can add multiple hosts if you want to Members: []MemberRequest{ diff --git a/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx b/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx index 96c8e050..ccb4c896 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/rtmp_broadcast.mdx @@ -105,7 +105,7 @@ print(f"rtmp broadcasting: {is_rtmp_broadcasting}") ```go -response, err := call.Get(ctx, &GetCallRequest{}) +response, err := call.Get(ctx, &getstream.GetCallRequest{}) // If HLS or any RTMP broadcast active fmt.Printf("broadcasting: %v", response.Data.Call.Egress.Broadcasting) diff --git a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx index be24359a..487cdd5b 100644 --- a/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/transcription/transcribing_calls.mdx @@ -44,10 +44,10 @@ call.stop_transcription() ```go -call.StartTranscription(ctx, &StartTranscriptionRequest{}) +call.StartTranscription(ctx, &getstream.StartTranscriptionRequest{}) // stops the transcription for the call -call.StopTranscription(ctx, &StopTranscriptionRequest{}) +call.StopTranscription(ctx, &getstream.StopTranscriptionRequest{}) ``` @@ -92,7 +92,7 @@ call.list_transcriptions() ```go -call.ListTranscriptions(ctx, &ListTranscriptionsRequest{}) +call.ListTranscriptions(ctx, &getstream.ListTranscriptionsRequest{}) ``` @@ -132,7 +132,7 @@ call.delete_transcription(sessionID, filename) ```go -call.DeleteTranscription(ctx, sessionID, filename, &DeleteTranscriptionRequest{}) +call.DeleteTranscription(ctx, sessionID, filename, &getstream.DeleteTranscriptionRequest{}) ``` @@ -287,9 +287,9 @@ client.update( ```go // Disable on call level -call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Transcription: &TranscriptionSettingsRequest{ +call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Transcription: &getstream.TranscriptionSettingsRequest{ Mode: "disabled", }, }, @@ -299,18 +299,18 @@ call.Update(ctx, &UpdateCallRequest{ call_type_name := "default" // Disable transcription -_, err := client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Transcription: &TranscriptionSettingsRequest{ +_, err := client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Transcription: &getstream.TranscriptionSettingsRequest{ Mode: "disabled", }, }, }) // Automatically transcribe calls -_, err = client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeRequest{ - Settings: &CallSettingsRequest{ - Transcription: &TranscriptionSettingsRequest{ +_, err = client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ + Settings: &getstream.CallSettingsRequest{ + Transcription: &getstream.TranscriptionSettingsRequest{ Mode: "auto-on", }, }, @@ -318,9 +318,9 @@ _, err = client.Video().UpdateCallType(ctx, call_type_name, &UpdateCallTypeReque // Enable transcription (available) call := client.Video().Call("call_type", "call_id") -_, err = call.Update(ctx, &UpdateCallRequest{ - SettingsOverride: &CallSettingsRequest{ - Transcription: &TranscriptionSettingsRequest{ +_, err = call.Update(ctx, &getstream.UpdateCallRequest{ + SettingsOverride: &getstream.CallSettingsRequest{ + Transcription: &getstream.TranscriptionSettingsRequest{ Mode: "available", }, }, From c2c8c23853042ccbf21f4a6d9d5bf70ecb008fe3 Mon Sep 17 00:00:00 2001 From: Sacha Arbonel Date: Thu, 24 Oct 2024 11:10:05 +0200 Subject: [PATCH 18/18] prefix with package name --- .../api/_common_/call-type-rtmp-settings.mdx | 6 +-- .../docusaurus/docs/api/_common_/go_live.mdx | 4 +- .../api/_common_/rtmp-broadcast-start.mdx | 2 +- .../docusaurus/docs/api/_common_/storage.mdx | 18 ++++---- .../docusaurus/docs/api/basics/calls.mdx | 44 +++++++++---------- .../docs/api/basics/multi-tenant.mdx | 6 +-- .../docs/api/call_types/geofencing.mdx | 2 +- .../docs/api/call_types/manage-types.mdx | 8 ++-- .../docs/api/call_types/settings.mdx | 8 ++-- .../docs/api/moderation/overview.mdx | 22 +++++----- .../docs/api/recording/recording_calls.mdx | 22 +++++----- .../docs/api/streaming/backstage.mdx | 14 +++--- .../docs/api/streaming/overview.mdx | 6 +-- 13 files changed, 81 insertions(+), 81 deletions(-) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx b/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx index 869cb4ce..a0bbe92e 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/call-type-rtmp-settings.mdx @@ -54,10 +54,10 @@ client.video.update_call_type( response, err := client.Video().UpdateCallType(ctx, callTypeName, &getstream.UpdateCallTypeRequest{ Settings: &getstream.CallSettingsRequest{ Broadcasting: &getstream.BroadcastSettingsRequest{ - Enabled: PtrTo(true), + Enabled: getstream.PtrTo(true), Rtmp: &getstream.RTMPSettingsRequest{ - Enabled: PtrTo(true), - Quality: PtrTo("1080p"), + Enabled: getstream.PtrTo(true), + Quality: getstream.PtrTo("1080p"), Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", }, diff --git a/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx b/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx index 7b214a2d..1bde4dae 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/go_live.mdx @@ -24,8 +24,8 @@ call.go_live(start_hls=True, start_recording=True) ```go call.GoLive(ctx, &getstream.GoLiveRequest{ - StartHls: PtrTo(true), - StartRecording: PtrTo(true), + StartHls: getstream.PtrTo(true), + StartRecording: getstream.PtrTo(true), }) ``` diff --git a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx index a71d2987..e2d08cb7 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/rtmp-broadcast-start.mdx @@ -36,7 +36,7 @@ call.StartRTMPBroadcasts(ctx, &getstream.StartRTMPBroadcastsRequest{ { Name: "youtube_channel", StreamUrl: "rtmps://x.rtmps.youtube.com/live2", - StreamKey: PtrTo("your_stream_key"), + StreamKey: getstream.PtrTo("your_stream_key"), }, }, }) diff --git a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx index 428beb75..cc81ca4d 100644 --- a/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx +++ b/docusaurus/video/docusaurus/docs/api/_common_/storage.mdx @@ -88,11 +88,11 @@ client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-s3", StorageType: "s3", Bucket: "my-bucket", - Path: PtrTo("directory_name/"), + Path: getstream.PtrTo("directory_name/"), AwsS3: &getstream.S3Request{ S3Region: "us-east-1", - S3ApiKey: PtrTo("my-access"), - S3Secret: PtrTo("my-secret"), + S3ApiKey: getstream.PtrTo("my-access"), + S3Secret: getstream.PtrTo("my-secret"), }, }) @@ -103,7 +103,7 @@ response, err := client.CheckExternalStorage(ctx, "my-s3", &getstream.CheckExter // 3. update the call type to use the new storage client.Video().UpdateCallType(ctx, "allhands", &getstream.UpdateCallTypeRequest{ - ExternalStorage: PtrTo("my-s3"), + ExternalStorage: getstream.PtrTo("my-s3"), }) ``` @@ -225,12 +225,12 @@ call.start_recording(recording_external_storage="my-storage") ```go // update the call type to use Stream S3 storage for recordings client.Video().UpdateCallType(ctx, "my-call-type", &getstream.UpdateCallTypeRequest{ - ExternalStorage: PtrTo("stream-s3"), + ExternalStorage: getstream.PtrTo("stream-s3"), }) // specify my-storage storage when starting call transcribing call.StartTranscription(ctx, &getstream.StartTranscriptionRequest{ - TranscriptionExternalStorage: PtrTo("my-storage"), + TranscriptionExternalStorage: getstream.PtrTo("my-storage"), }) // specify my-storage storage for recording @@ -382,8 +382,8 @@ client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-gcs", StorageType: "gcs", Bucket: "my-bucket", - Path: PtrTo("directory_name/"), - GcsCredentials: PtrTo(string(creds)), + Path: getstream.PtrTo("directory_name/"), + GcsCredentials: getstream.PtrTo(string(creds)), }) ``` @@ -492,7 +492,7 @@ client.CreateExternalStorage(ctx, &getstream.CreateExternalStorageRequest{ Name: "my-abs", StorageType: "abs", Bucket: "my-bucket", - Path: PtrTo("directory_name/"), + Path: getstream.PtrTo("directory_name/"), AzureBlob: &getstream.AzureRequest{ AbsAccountName: "...", AbsClientID: "...", diff --git a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx index bee201b0..aa868f5c 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/calls.mdx @@ -62,9 +62,9 @@ call.get_or_create( ```go call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ - Ring: PtrTo(true), + Ring: getstream.PtrTo(true), Data: &getstream.CallRequest{ - CreatedByID: PtrTo("myself"), + CreatedByID: getstream.PtrTo("myself"), Members: []getstream.MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, @@ -136,9 +136,9 @@ call.get_or_create( ```go call.GetOrCreate(ctx, &GetOrCreateCallRequest{ - Notify: PtrTo(true), + Notify: getstream.PtrTo(true), Data: &CallRequest{ - CreatedByID: PtrTo("myself"), + CreatedByID: getstream.PtrTo("myself"), Members: []getstream.MemberRequest{ {UserID: "myself"}, {UserID: "my friend"}, @@ -429,22 +429,22 @@ client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{}) // sorting and pagination response, err := client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ - Field: PtrTo("starts_at"), - Direction: PtrTo(-1), + Field: getstream.PtrTo("starts_at"), + Direction: getstream.PtrTo(-1), } }, - Limit: PtrTo(2), + Limit: getstream.PtrTo(2), }, ) // loading next page client.Video().QueryCalls(ctx, &getstream.QueryCallsRequest{ Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ - Field: PtrTo("starts_at"), - Direction: PtrTo(-1), + Field: getstream.PtrTo("starts_at"), + Direction: getstream.PtrTo(-1), } }, - Limit: PtrTo(2), + Limit: getstream.PtrTo(2), Next: response.Data.Next, }) ``` @@ -706,22 +706,22 @@ client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{}) // sorting and pagination response, err := client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{ Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ - Field: PtrTo("user_id"), - Direction: PtrTo(1), + Field: getstream.PtrTo("user_id"), + Direction: getstream.PtrTo(1), }, }, - Limit: PtrTo(2), + Limit: getstream.PtrTo(2), }, ) // loading next page client.Video().QueryCallMembers(ctx, &getstream.QueryCallMembersRequest{ Sort: []*getstream.SortParamRequest{&getstream.SortParamRequest{ - Field: PtrTo("user_id"), - Direction: PtrTo(1), + Field: getstream.PtrTo("user_id"), + Direction: getstream.PtrTo(1), }, }, - Limit: PtrTo(2), + Limit: getstream.PtrTo(2), Next: response.Data.Next, }) @@ -992,7 +992,7 @@ client.video.update_call_type( client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ Settings: &CallSettingsRequest{ Limits: &LimitsSettingsRequest{ - MaxDurationSeconds: PtrTo(3600), + MaxDurationSeconds: getstream.PtrTo(3600), }, }, }) @@ -1001,7 +1001,7 @@ client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ client.Video().UpdateCallType(ctx, "default", &getstream.UpdateCallTypeRequest{ Settings: &getstream.CallSettingsRequest{ Limits: &getstream.LimitsSettingsRequest{ - MaxDurationSeconds: PtrTo(0), + MaxDurationSeconds: getstream.PtrTo(0), }, }, }) @@ -1112,10 +1112,10 @@ call.get_or_create( ```go call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ - CreatedByID: PtrTo("john"), + CreatedByID: getstream.PtrTo("john"), SettingsOverride: &getstream.CallSettingsRequest{ Limits: &getstream.LimitsSettingsRequest{ - MaxDurationSeconds: PtrTo(3600), + MaxDurationSeconds: getstream.PtrTo(3600), }, }, }, @@ -1213,7 +1213,7 @@ call.update( call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Limits: &getstream.LimitsSettingsRequest{ - MaxDurationSeconds: PtrTo(3600), + MaxDurationSeconds: getstream.PtrTo(3600), }, }, }) @@ -1222,7 +1222,7 @@ call.Update(ctx, &getstream.UpdateCallRequest{ call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Limits: &getstream.LimitsSettingsRequest{ - MaxDurationSeconds: PtrTo(0), + MaxDurationSeconds: getstream.PtrTo(0), }, }, }) diff --git a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx index acd684ba..47b8ca1a 100644 --- a/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx +++ b/docusaurus/video/docusaurus/docs/api/basics/multi-tenant.mdx @@ -56,7 +56,7 @@ fmt.Println(res.Data.App.MultiTenantEnabled) // enables teams client.UpdateApp(ctx, &getstream.UpdateAppRequest{ - MultiTenantEnabled: PtrTo(true), + MultiTenantEnabled: getstream.PtrTo(true), }) ``` @@ -214,8 +214,8 @@ response = call.create( call = client.Video().Call("default", "callID") response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ - Team: PtrTo("blue"), - CreatedByID: PtrTo(""), + Team: getstream.PtrTo("blue"), + CreatedByID: getstream.PtrTo(""), }, }) ``` diff --git a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx index b9b55289..fab892f9 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/geofencing.mdx @@ -92,7 +92,7 @@ client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ // override settings on call level call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ - CreatedByID: PtrTo("john"), + CreatedByID: getstream.PtrTo("john"), SettingsOverride: &getstream.CallSettingsRequest{ Geofencing: &getstream.GeofenceSettingsRequest{ Names: []string{"european_union", "united_states"}, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx index 4e7dc29d..35b73fe4 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/manage-types.mdx @@ -110,13 +110,13 @@ client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "allhands", Settings: &getstream.CallSettingsRequest{ Audio: &getstream.AudioSettingsRequest{ - MicDefaultOn: PtrTo(true), + MicDefaultOn: getstream.PtrTo(true), DefaultDevice: "speaker", }, }, Grants: &map[string][]string{ - "admin": []string{SEND_AUDIO.String(), SEND_VIDEO.String(), MUTE_USERS.String()}, - "user": []string{SEND_AUDIO.String(), SEND_VIDEO.String()}, + "admin": []string{getream.SEND_AUDIO.String(), getream.SEND_VIDEO.String(), getream.MUTE_USERS.String()}, + "user": []string{getream.SEND_AUDIO.String(), getream.SEND_VIDEO.String()}, }, }) @@ -179,7 +179,7 @@ client.video.update_call_type(name='allhands', client.Video().UpdateCallType(ctx, "allhands", &getstream.UpdateCallTypeRequest{ Settings: &getstream.CallSettingsRequest{ Audio: &getstream.AudioSettingsRequest{ - MicDefaultOn: PtrTo(false), + MicDefaultOn: getstream.PtrTo(false), DefaultDevice: "earpiece", }, }, diff --git a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx index 4d4c39a2..9fb591b5 100644 --- a/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx +++ b/docusaurus/video/docusaurus/docs/api/call_types/settings.mdx @@ -87,8 +87,8 @@ client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ Name: "", Settings: &getstream.CallSettingsRequest{ Screensharing: &getstream.ScreensharingSettingsRequest{ - AccessRequestEnabled: PtrTo(false), - Enabled: PtrTo(true), + AccessRequestEnabled: getstream.PtrTo(false), + Enabled: getstream.PtrTo(true), }, }, }) @@ -96,10 +96,10 @@ client.Video().CreateCallType(ctx, &getstream.CreateCallTypeRequest{ // override settings on call level call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ - CreatedByID: PtrTo("john"), + CreatedByID: getstream.PtrTo("john"), SettingsOverride: &getstream.CallSettingsRequest{ Screensharing: &getstream.ScreensharingSettingsRequest{ - Enabled: PtrTo(false), + Enabled: getstream.PtrTo(false), }, }, }, diff --git a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx index a34a694e..ff081035 100644 --- a/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/moderation/overview.mdx @@ -123,8 +123,8 @@ call.update( call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Screensharing: &getstream.ScreensharingSettingsRequest{ - Enabled: PtrTo(true), - AccessRequestEnabled: PtrTo(true), + Enabled: getstream.PtrTo(true), + AccessRequestEnabled: getstream.PtrTo(true), }, }, }) @@ -188,9 +188,9 @@ call.mute_users( ```go // You can specify which kind of stream(s) to mute call.MuteUsers(ctx, &getstream.MuteUsersRequest{ - MuteAllUsers: PtrTo(true), - Audio: PtrTo(true), - MutedByID: PtrTo("john"), + MuteAllUsers: getstream.PtrTo(true), + Audio: getstream.PtrTo(true), + MutedByID: getstream.PtrTo("john"), }) ``` @@ -249,10 +249,10 @@ call.mute_users( ```go call.MuteUsers(ctx, &getstream.MuteUsersRequest{ UserIDs: []string{alice.id,bob.id}, - Audio: PtrTo(true), - Video: PtrTo(true), - Screenshare: PtrTo(true), - ScreenshareAudio: PtrTo(true), + Audio: getstream.PtrTo(true), + Video: getstream.PtrTo(true), + Screenshare: getstream.PtrTo(true), + ScreenshareAudio: getstream.PtrTo(true), MutedByID: user_id, }) @@ -321,7 +321,7 @@ call.update_user_permissions( ```go call.UpdateUserPermissions(ctx, &getstream.UpdateUserPermissionsRequest{ UserID: "sara", - GrantPermissions: []string{SEND_AUDIO.String()}, + GrantPermissions: []string{getream.SEND_AUDIO.String()}, }) ``` @@ -375,7 +375,7 @@ call.update_user_permissions( ```go call.UpdateUserPermissions(ctx, &getstream.UpdateUserPermissionsRequest{ UserID: "sara", - RevokePermissions: []string{SEND_AUDIO.String()}, + RevokePermissions: []string{getream.SEND_AUDIO.String()}, }) ``` diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index 673f2294..f2325849 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -294,7 +294,7 @@ client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequ Settings: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "auto-on", - Quality: PtrTo("720p"), + Quality: getstream.PtrTo("720p"), }, }, }) @@ -313,7 +313,7 @@ call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "available", - Quality: PtrTo("1080p"), + Quality: getstream.PtrTo("1080p"), }, }, }) @@ -468,7 +468,7 @@ call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "available", - AudioOnly: PtrTo(true), + AudioOnly: getstream.PtrTo(true), }, }, }) @@ -661,8 +661,8 @@ client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequ Settings: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "available", - AudioOnly: PtrTo(false), - Quality: PtrTo("1080p"), + AudioOnly: getstream.PtrTo(false), + Quality: getstream.PtrTo("1080p"), Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", Options: &layoutOptions, @@ -960,11 +960,11 @@ client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequ Settings: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "available", - AudioOnly: PtrTo(false), - Quality: PtrTo("1080p"), + AudioOnly: getstream.PtrTo(false), + Quality: getstream.PtrTo("1080p"), Layout: &getstream.LayoutSettingsRequest{ Name: "spotlight", - ExternalCssUrl: PtrTo("https://path/to/custom.css"), + ExternalCssUrl: getstream.PtrTo("https://path/to/custom.css"), }, }, }, @@ -1073,11 +1073,11 @@ client.Video().UpdateCallType(ctx, "callTypeName", &getstream.UpdateCallTypeRequ Settings: &getstream.CallSettingsRequest{ Recording: &getstream.RecordSettingsRequest{ Mode: "available", - AudioOnly: PtrTo(false), - Quality: PtrTo("1080p"), + AudioOnly: getstream.PtrTo(false), + Quality: getstream.PtrTo("1080p"), Layout: &getstream.LayoutSettingsRequest{ Name: "custom", - ExternalAppUrl: PtrTo("https://path/to/layout/app"), + ExternalAppUrl: getstream.PtrTo("https://path/to/layout/app"), }, }, }, diff --git a/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx b/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx index 65aa1f74..500c9a27 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/backstage.mdx @@ -75,11 +75,11 @@ call := client.Video().Call("livestream", uuid.New().String()) response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ StartsAt: &getstream.Timestamp{Time: starts_at}, - CreatedByID: PtrTo("john"), + CreatedByID: getstream.PtrTo("john"), SettingsOverride: &getstream.CallSettingsRequest{ Backstage: &getstream.BackstageSettingsRequest{ - Enabled: PtrTo(true), - JoinAheadTimeSeconds: PtrTo(300), + Enabled: getstream.PtrTo(true), + JoinAheadTimeSeconds: getstream.PtrTo(300), }, }, }, @@ -194,8 +194,8 @@ client.video.update_call_type( call.Update(ctx, &getstream.UpdateCallRequest{ SettingsOverride: &getstream.CallSettingsRequest{ Backstage: &getstream.BackstageSettingsRequest{ - Enabled: PtrTo(true), - JoinAheadTimeSeconds: PtrTo(300), + Enabled: getstream.PtrTo(true), + JoinAheadTimeSeconds: getstream.PtrTo(300), }, }, }) @@ -205,8 +205,8 @@ call_type_name := "" client.Video().UpdateCallType(ctx, call_type_name, &getstream.UpdateCallTypeRequest{ Settings: &getstream.CallSettingsRequest{ Backstage: &getstream.BackstageSettingsRequest{ - Enabled: PtrTo(true), - JoinAheadTimeSeconds: PtrTo(300), + Enabled: getstream.PtrTo(true), + JoinAheadTimeSeconds: getstream.PtrTo(300), }, }, }) diff --git a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx index 67dd1360..ebb9f358 100644 --- a/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx +++ b/docusaurus/video/docusaurus/docs/api/streaming/overview.mdx @@ -72,10 +72,10 @@ response = call.create( call := client.Video().Call("livestream", callID) response, err := call.GetOrCreate(ctx, &getstream.GetOrCreateCallRequest{ Data: &getstream.CallRequest{ - CreatedByID: PtrTo("john"), + CreatedByID: getstream.PtrTo("john"), // You can add multiple hosts if you want to - Members: []MemberRequest{ - {UserID: "john", Role: PtrTo("host")}, + Members: []getream.MemberRequest{ + {UserID: "john", Role: getstream.PtrTo("host")}, }, }, })