diff --git a/cli/beamable.common/Runtime/BeamCli/Contracts/BundlesService/BundleTagInfo.cs b/cli/beamable.common/Runtime/BeamCli/Contracts/BundlesService/BundleTagInfo.cs
new file mode 100644
index 0000000000..5ed678a943
--- /dev/null
+++ b/cli/beamable.common/Runtime/BeamCli/Contracts/BundlesService/BundleTagInfo.cs
@@ -0,0 +1,33 @@
+using System;
+
+namespace Beamable.Common.BeamCli.Contracts
+{
+ ///
+ /// Contract projection of the autogenerated BundleTag API model. The generated model
+ /// uses Optional-wrapped fields and only exists in the CLI assembly, so command outputs expose
+ /// this type instead, allowing it to be copied into other SDKs.
+ ///
+ [CliContractType, Serializable]
+ public class BundleTagInfo
+ {
+ ///
+ /// The fully qualified bundle name the tag belongs to.
+ ///
+ public string bundleName;
+
+ ///
+ /// The content checksum (sha256:...) the tag currently points at.
+ ///
+ public string checksum;
+
+ ///
+ /// The tag name (e.g. "latest").
+ ///
+ public string tag;
+
+ ///
+ /// Unix timestamp (milliseconds) of when the tag was last moved.
+ ///
+ public long updatedAt;
+ }
+}
diff --git a/cli/beamable.common/Runtime/Content/Optionals.cs b/cli/beamable.common/Runtime/Content/Optionals.cs
index b746cf4715..ca532dd368 100644
--- a/cli/beamable.common/Runtime/Content/Optionals.cs
+++ b/cli/beamable.common/Runtime/Content/Optionals.cs
@@ -369,6 +369,22 @@ public OptionalArrayOfString(IEnumerable data)
}
}
+ [System.Serializable]
+ [Agnostic]
+ public class OptionalArrayOfArrayOfString : OptionalArray
+ {
+ public OptionalArrayOfArrayOfString()
+ {
+
+ }
+
+ public OptionalArrayOfArrayOfString(IEnumerable data)
+ {
+ Value = data.ToArray();
+ HasValue = true;
+ }
+ }
+
[System.Serializable]
[Agnostic]
public class OptionalArrayOfFloat : OptionalArray { }
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamAnalytics.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamAnalytics.gs.cs
new file mode 100644
index 0000000000..f2d0d3c5a3
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamAnalytics.gs.cs
@@ -0,0 +1,36 @@
+
+namespace Beamable.Api.Autogenerated.Analytics
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamAnalyticsApi
+ {
+ ///
+ /// POST call to `/api/analytics/query` endpoint.
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostQuery(AnalyticsQueryRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamAnalyticsApi : IBeamAnalyticsApi
+ {
+ ///
+ /// POST call to `/api/analytics/query` endpoint.
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostQuery(AnalyticsQueryRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/analytics/query";
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamAnalyticsCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamAnalyticsCommon.gs.cs
new file mode 100644
index 0000000000..0218cbf6dd
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamAnalyticsCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Analytics
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamAnalyticsApi
+ {
+ }
+ public partial class BeamAnalyticsApi : IBeamAnalyticsApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamAnalyticsApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamobundle.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamobundle.gs.cs
new file mode 100644
index 0000000000..cb43560628
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamobundle.gs.cs
@@ -0,0 +1,245 @@
+
+namespace Beamable.Api.Autogenerated.Beamobundle
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamobundleApi
+ {
+ ///
+ /// List all bundles visible to the caller's realm.
+ ///
+ /// GET call to `/api/beamo/bundles` endpoint.
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetBundles([System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Latest entry and tag map for a bundle.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetBundles(string bundleName, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Publish history for a bundle (all checksums, newest first).
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/history` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetBundlesHistory(string bundleName, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Fetch a specific bundle version by content checksum.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetBundlesChecksums(string bundleName, string checksum, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Publish new bundle content. Default ACL is the caller's realm.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/publish` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostBundlesPublish(string bundleName, string ns, PublishBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Advance a tag to point at a given checksum.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/tags/{tag}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostBundlesTags(string bundleName, string ns, string tag, PromoteBundleTagRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Yank a bundle checksum — blocks new references; existing deploys unaffected.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/yank` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostBundlesChecksumsYank(string bundleName, string checksum, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Widen the ACL on a bundle checksum. Admin-gated.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/acl` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PatchBundlesChecksumsAcl(string bundleName, string checksum, string ns, UpdateBundleAclRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamBeamobundleApi : IBeamBeamobundleApi
+ {
+ ///
+ /// List all bundles visible to the caller's realm.
+ ///
+ /// GET call to `/api/beamo/bundles` endpoint.
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetBundles([System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles";
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Latest entry and tag map for a bundle.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetBundles(string bundleName, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Publish history for a bundle (all checksums, newest first).
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/history` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetBundlesHistory(string bundleName, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/history";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Fetch a specific bundle version by content checksum.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetBundlesChecksums(string bundleName, string checksum, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ gsUrl = gsUrl.Replace("{checksum}", _requester.EscapeURL(checksum.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Publish new bundle content. Default ACL is the caller's realm.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/publish` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostBundlesPublish(string bundleName, string ns, PublishBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/publish";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Advance a tag to point at a given checksum.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/tags/{tag}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostBundlesTags(string bundleName, string ns, string tag, PromoteBundleTagRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/tags/{tag}";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ gsUrl = gsUrl.Replace("{tag}", _requester.EscapeURL(tag.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Yank a bundle checksum — blocks new references; existing deploys unaffected.
+ ///
+ /// POST call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/yank` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostBundlesChecksumsYank(string bundleName, string checksum, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/yank";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ gsUrl = gsUrl.Replace("{checksum}", _requester.EscapeURL(checksum.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Widen the ACL on a bundle checksum. Admin-gated.
+ ///
+ /// GET call to `/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/acl` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PatchBundlesChecksumsAcl(string bundleName, string checksum, string ns, UpdateBundleAclRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/bundles/{ns}/{bundleName}/checksums/{checksum}/acl";
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ gsUrl = gsUrl.Replace("{checksum}", _requester.EscapeURL(checksum.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamobundleCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamobundleCommon.gs.cs
new file mode 100644
index 0000000000..e1d6406634
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamobundleCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Beamobundle
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamobundleApi
+ {
+ }
+ public partial class BeamBeamobundleApi : IBeamBeamobundleApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamBeamobundleApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundle.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundle.gs.cs
new file mode 100644
index 0000000000..fa2fea2b52
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundle.gs.cs
@@ -0,0 +1,171 @@
+
+namespace Beamable.Api.Autogenerated.Beamoforcedbundle
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamoforcedbundleApi
+ {
+ ///
+ /// List all CID-level forced bundles.
+ ///
+ /// GET call to `/api/beamo/cids/{cid}/forced-bundles` endpoint.
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetCidsForcedBundles(string cid, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Set or update a CID-level forced bundle.
+ ///
+ /// PUT call to `/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PutCidsForcedBundles(string bundleName, string cid, string ns, SetForcedBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Remove a CID-level forced bundle.
+ ///
+ /// DELETE call to `/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise DeleteCidsForcedBundles(string bundleName, string cid, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Set or update a per-realm forced bundle, overriding the CID default.
+ ///
+ /// PUT call to `/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PutRealmsForcedBundles(string bundleName, string cid, string ns, string realmId, SetForcedBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Remove a per-realm forced bundle override.
+ ///
+ /// DELETE call to `/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise DeleteRealmsForcedBundles(string bundleName, string cid, string ns, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamBeamoforcedbundleApi : IBeamBeamoforcedbundleApi
+ {
+ ///
+ /// List all CID-level forced bundles.
+ ///
+ /// GET call to `/api/beamo/cids/{cid}/forced-bundles` endpoint.
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetCidsForcedBundles(string cid, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/cids/{cid}/forced-bundles";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Set or update a CID-level forced bundle.
+ ///
+ /// PUT call to `/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PutCidsForcedBundles(string bundleName, string cid, string ns, SetForcedBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.PUT, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Remove a CID-level forced bundle.
+ ///
+ /// DELETE call to `/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise DeleteCidsForcedBundles(string bundleName, string cid, string ns, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/cids/{cid}/forced-bundles/{ns}/{bundleName}";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.DELETE, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Set or update a per-realm forced bundle, overriding the CID default.
+ ///
+ /// PUT call to `/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PutRealmsForcedBundles(string bundleName, string cid, string ns, string realmId, SetForcedBundleRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.PUT, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Remove a per-realm forced bundle override.
+ ///
+ /// DELETE call to `/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise DeleteRealmsForcedBundles(string bundleName, string cid, string ns, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/forced-bundles/{ns}/{bundleName}";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{ns}", _requester.EscapeURL(ns.ToString()));
+ gsUrl = gsUrl.Replace("{bundleName}", _requester.EscapeURL(bundleName.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.DELETE, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundleCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundleCommon.gs.cs
new file mode 100644
index 0000000000..2220424960
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamoforcedbundleCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Beamoforcedbundle
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamoforcedbundleApi
+ {
+ }
+ public partial class BeamBeamoforcedbundleApi : IBeamBeamoforcedbundleApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamBeamoforcedbundleApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequest.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequest.gs.cs
new file mode 100644
index 0000000000..188a3fd94c
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequest.gs.cs
@@ -0,0 +1,223 @@
+
+namespace Beamable.Api.Autogenerated.Beamopullrequest
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamopullrequestApi
+ {
+ ///
+ /// Submit a pull request proposing a new root manifest for the target realm.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsPrs(string cid, string realmId, SubmitPullRequestRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// List pull requests for the target realm, newest first.
+ ///
+ /// GET call to `/api/beamo/realms/{cid}/{realmId}/prs` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsPrs(string cid, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional limit, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional offset, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional status, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Fetch a pull request with its diff against the realm's current manifest.
+ ///
+ /// GET call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsPrs(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Widen the requested bundle ACLs, then post and deploy the proposed manifest.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/approve` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsPrsApprove(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Reject a pending pull request; submitter (withdrawal) or target realm admin.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/reject` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsPrsReject(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Append a comment to a pull request's discussion thread.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/comments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsPrsComments(string cid, string pullRequestId, string realmId, CommentPullRequestRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamBeamopullrequestApi : IBeamBeamopullrequestApi
+ {
+ ///
+ /// Submit a pull request proposing a new root manifest for the target realm.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsPrs(string cid, string realmId, SubmitPullRequestRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// List pull requests for the target realm, newest first.
+ ///
+ /// GET call to `/api/beamo/realms/{cid}/{realmId}/prs` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetRealmsPrs(string cid, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional limit, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional offset, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional status, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ string gsQuery = "?";
+ System.Collections.Generic.List gsQueries = new System.Collections.Generic.List();
+ if (((status != default(OptionalPullRequestStatus))
+ && status.HasValue))
+ {
+ gsQueries.Add(string.Concat("status=", status.Value.ToString()));
+ }
+ if (((offset != default(OptionalInt))
+ && offset.HasValue))
+ {
+ gsQueries.Add(string.Concat("offset=", offset.Value.ToString()));
+ }
+ if (((limit != default(OptionalInt))
+ && limit.HasValue))
+ {
+ gsQueries.Add(string.Concat("limit=", limit.Value.ToString()));
+ }
+ if ((gsQueries.Count > 0))
+ {
+ gsQuery = string.Concat(gsQuery, string.Join("&", gsQueries));
+ gsUrl = string.Concat(gsUrl, gsQuery);
+ }
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Fetch a pull request with its diff against the realm's current manifest.
+ ///
+ /// GET call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetRealmsPrs(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{pullRequestId}", _requester.EscapeURL(pullRequestId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Widen the requested bundle ACLs, then post and deploy the proposed manifest.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/approve` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsPrsApprove(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/approve";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{pullRequestId}", _requester.EscapeURL(pullRequestId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Reject a pending pull request; submitter (withdrawal) or target realm admin.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/reject` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsPrsReject(string cid, string pullRequestId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/reject";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{pullRequestId}", _requester.EscapeURL(pullRequestId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Append a comment to a pull request's discussion thread.
+ ///
+ /// POST call to `/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/comments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsPrsComments(string cid, string pullRequestId, string realmId, CommentPullRequestRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/beamo/realms/{cid}/{realmId}/prs/{pullRequestId}/comments";
+ gsUrl = gsUrl.Replace("{cid}", _requester.EscapeURL(cid.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{pullRequestId}", _requester.EscapeURL(pullRequestId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequestCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequestCommon.gs.cs
new file mode 100644
index 0000000000..c731b1ad8b
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamBeamopullrequestCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Beamopullrequest
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamBeamopullrequestApi
+ {
+ }
+ public partial class BeamBeamopullrequestApi : IBeamBeamopullrequestApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamBeamopullrequestApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamCustomer.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamCustomer.gs.cs
index 228d9b9cec..cf9ab326da 100644
--- a/cli/beamable.common/Runtime/OpenApi/BeamCustomer.gs.cs
+++ b/cli/beamable.common/Runtime/OpenApi/BeamCustomer.gs.cs
@@ -113,8 +113,28 @@ public partial interface IBeamCustomerApi
///
/// ID of the customer to retrieve config for.
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
- /// A promise containing the
- Promise GetConfig(string customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ /// A promise containing the
+ Promise GetConfig(string customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Replace the entire customer-level configuration.
+ ///
+ /// PUT call to `/api/customers/{customerId}/config` endpoint.
+ ///
+ /// ID of the customer.
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PutConfig(string customerId, ConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// Apply incremental changes to the customer-level configuration.
+ ///
+ /// GET call to `/api/customers/{customerId}/config` endpoint.
+ ///
+ /// ID of the customer.
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PatchConfig(string customerId, ConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
///
/// List all games (top-level realms) for a customer.
///
@@ -186,8 +206,8 @@ public partial interface IBeamCustomerApi
/// ID of the customer.
/// ID of the realm to retrieve config for.
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
- /// A promise containing the
- Promise GetRealmsConfig(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ /// A promise containing the
+ Promise GetRealmsConfig(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
///
/// Replace the entire configuration of a realm.
///
@@ -195,10 +215,10 @@ public partial interface IBeamCustomerApi
///
/// ID of the customer.
/// ID of the realm to update.
- /// The instance to use for the request
+ /// The instance to use for the request
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
/// A promise containing the
- Promise PutRealmsConfig(string customerId, string realmId, CustomerActorRealmConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ Promise PutRealmsConfig(string customerId, string realmId, ConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
///
/// Apply incremental changes to a realm's configuration.
///
@@ -206,10 +226,10 @@ public partial interface IBeamCustomerApi
///
/// ID of the customer.
/// ID of the realm to update.
- /// The instance to use for the request
+ /// The instance to use for the request
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
/// A promise containing the
- Promise PatchRealmsConfig(string customerId, string realmId, RealmConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ Promise PatchRealmsConfig(string customerId, string realmId, ConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
///
/// Get the client-facing realm configuration defaults.
///
@@ -454,13 +474,45 @@ public virtual Promise DeleteRealms(string customerId, string real
///
/// ID of the customer to retrieve config for.
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
- /// A promise containing the
- public virtual Promise GetConfig(string customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ /// A promise containing the
+ public virtual Promise GetConfig(string customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/config";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Replace the entire customer-level configuration.
+ ///
+ /// PUT call to `/api/customers/{customerId}/config` endpoint.
+ ///
+ /// ID of the customer.
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PutConfig(string customerId, ConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/customers/{customerId}/config";
gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
// make the request and return the result
- return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ return _requester.Request(Method.PUT, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// Apply incremental changes to the customer-level configuration.
+ ///
+ /// GET call to `/api/customers/{customerId}/config` endpoint.
+ ///
+ /// ID of the customer.
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PatchConfig(string customerId, ConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/config";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
}
///
/// List all games (top-level realms) for a customer.
@@ -596,14 +648,14 @@ public virtual Promise PutRealmsRename(string customerId, string r
/// ID of the customer.
/// ID of the realm to retrieve config for.
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
- /// A promise containing the
- public virtual Promise GetRealmsConfig(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ /// A promise containing the
+ public virtual Promise GetRealmsConfig(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/customers/{customerId}/realms/{realmId}/config";
gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
// make the request and return the result
- return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
}
///
/// Replace the entire configuration of a realm.
@@ -612,10 +664,10 @@ public virtual Promise GetRealmsConfig(string
///
/// ID of the customer.
/// ID of the realm to update.
- /// The instance to use for the request
+ /// The instance to use for the request
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
/// A promise containing the
- public virtual Promise PutRealmsConfig(string customerId, string realmId, CustomerActorRealmConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ public virtual Promise PutRealmsConfig(string customerId, string realmId, ConfigSaveRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/customers/{customerId}/realms/{realmId}/config";
gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
@@ -630,10 +682,10 @@ public virtual Promise PutRealmsConfig(string customerId, string r
///
/// ID of the customer.
/// ID of the realm to update.
- /// The instance to use for the request
+ /// The instance to use for the request
/// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
/// A promise containing the
- public virtual Promise PatchRealmsConfig(string customerId, string realmId, RealmConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ public virtual Promise PatchRealmsConfig(string customerId, string realmId, ConfigChangeRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/customers/{customerId}/realms/{realmId}/config";
gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamCustomersegments.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamCustomersegments.gs.cs
new file mode 100644
index 0000000000..c6525b7210
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamCustomersegments.gs.cs
@@ -0,0 +1,103 @@
+
+namespace Beamable.Api.Autogenerated.Customersegments
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamCustomersegmentsApi
+ {
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/count` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetSegmentsCount(string customerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/members` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetSegmentsMembers(string customerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/members/{playerId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetSegmentsMembers(string customerId, long playerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamCustomersegmentsApi : IBeamCustomersegmentsApi
+ {
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/count` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetSegmentsCount(string customerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/segments/{segmentId}/count";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{segmentId}", _requester.EscapeURL(segmentId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/members` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetSegmentsMembers(string customerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/segments/{segmentId}/members";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{segmentId}", _requester.EscapeURL(segmentId.ToString()));
+ string gsQuery = "?";
+ System.Collections.Generic.List gsQueries = new System.Collections.Generic.List();
+ if (((cursor != default(OptionalString))
+ && cursor.HasValue))
+ {
+ gsQueries.Add(string.Concat("cursor=", cursor.Value.ToString()));
+ }
+ if ((gsQueries.Count > 0))
+ {
+ gsQuery = string.Concat(gsQuery, string.Join("&", gsQueries));
+ gsUrl = string.Concat(gsUrl, gsQuery);
+ }
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// GET call to `/api/customers/{customerId}/segments/{segmentId}/members/{playerId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetSegmentsMembers(string customerId, long playerId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/segments/{segmentId}/members/{playerId}";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{segmentId}", _requester.EscapeURL(segmentId.ToString()));
+ gsUrl = gsUrl.Replace("{playerId}", _requester.EscapeURL(playerId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamCustomersegmentsCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamCustomersegmentsCommon.gs.cs
new file mode 100644
index 0000000000..d36b1839c7
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamCustomersegmentsCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Customersegments
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamCustomersegmentsApi
+ {
+ }
+ public partial class BeamCustomersegmentsApi : IBeamCustomersegmentsApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamCustomersegmentsApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamPlayersegments.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamPlayersegments.gs.cs
new file mode 100644
index 0000000000..7b2358b9d2
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamPlayersegments.gs.cs
@@ -0,0 +1,98 @@
+
+namespace Beamable.Api.Autogenerated.Playersegments
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamPlayersegmentsApi
+ {
+ ///
+ /// GET call to `/api/realms/{realmId}/players/{playerId}/segments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetPlayersSegments(long playerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/realms/{realmId}/players/{playerId}/segments/transitions` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetPlayersSegmentsTransitions(long playerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamPlayersegmentsApi : IBeamPlayersegmentsApi
+ {
+ ///
+ /// GET call to `/api/realms/{realmId}/players/{playerId}/segments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetPlayersSegments(long playerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/realms/{realmId}/players/{playerId}/segments";
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{playerId}", _requester.EscapeURL(playerId.ToString()));
+ string gsQuery = "?";
+ System.Collections.Generic.List gsQueries = new System.Collections.Generic.List();
+ if (((customerId != default(OptionalString))
+ && customerId.HasValue))
+ {
+ gsQueries.Add(string.Concat("customerId=", customerId.Value.ToString()));
+ }
+ if ((gsQueries.Count > 0))
+ {
+ gsQuery = string.Concat(gsQuery, string.Join("&", gsQueries));
+ gsUrl = string.Concat(gsUrl, gsQuery);
+ }
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// GET call to `/api/realms/{realmId}/players/{playerId}/segments/transitions` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetPlayersSegmentsTransitions(long playerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional customerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/realms/{realmId}/players/{playerId}/segments/transitions";
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{playerId}", _requester.EscapeURL(playerId.ToString()));
+ string gsQuery = "?";
+ System.Collections.Generic.List gsQueries = new System.Collections.Generic.List();
+ if (((cursor != default(OptionalString))
+ && cursor.HasValue))
+ {
+ gsQueries.Add(string.Concat("cursor=", cursor.Value.ToString()));
+ }
+ if (((customerId != default(OptionalString))
+ && customerId.HasValue))
+ {
+ gsQueries.Add(string.Concat("customerId=", customerId.Value.ToString()));
+ }
+ if ((gsQueries.Count > 0))
+ {
+ gsQuery = string.Concat(gsQuery, string.Join("&", gsQueries));
+ gsUrl = string.Concat(gsUrl, gsQuery);
+ }
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamPlayersegmentsCommon.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamPlayersegmentsCommon.gs.cs
new file mode 100644
index 0000000000..1ddd0bf839
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamPlayersegmentsCommon.gs.cs
@@ -0,0 +1,42 @@
+
+namespace Beamable.Api.Autogenerated.Playersegments
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamPlayersegmentsApi
+ {
+ }
+ public partial class BeamPlayersegmentsApi : IBeamPlayersegmentsApi
+ {
+ private IBeamableRequester _requester;
+ private IDependencyProvider _provider;
+ private System.Collections.Generic.List _serializationFactories;
+ public BeamPlayersegmentsApi(IBeamableRequester requester, [System.Runtime.InteropServices.DefaultParameterValueAttribute(default(Beamable.Common.Dependencies.IDependencyProvider))] [System.Runtime.InteropServices.OptionalAttribute()] IDependencyProvider provider)
+ {
+ this._requester = requester;
+ _provider = provider;
+ _serializationFactories = new System.Collections.Generic.List();
+ _serializationFactories.Add(new IOneOf_HttpCallOrPublishMessageOrServiceCallFactory());
+ _serializationFactories.Add(new IOneOf_CronTriggerOrExactTriggerFactory());
+ _serializationFactories.Add(new IOneOf_ContentOrTextOrBinaryFactory());
+ }
+ private T Serialize(string json)
+ where T : Beamable.Serialization.JsonSerializable.ISerializable, new ()
+ {
+ if ((_provider != default(Beamable.Common.Dependencies.IDependencyProvider)))
+ {
+ if (_provider.CanBuildService>())
+ {
+ ICustomSerializer serializer = _provider.GetService>();
+ return serializer.Deserialize(json);
+ }
+ }
+ return Beamable.Serialization.JsonSerializable.FromJson(json, _serializationFactories);
+ }
+ }
+}
diff --git a/cli/beamable.common/Runtime/OpenApi/BeamSegments.gs.cs b/cli/beamable.common/Runtime/OpenApi/BeamSegments.gs.cs
new file mode 100644
index 0000000000..514903e4c2
--- /dev/null
+++ b/cli/beamable.common/Runtime/OpenApi/BeamSegments.gs.cs
@@ -0,0 +1,703 @@
+
+namespace Beamable.Api.Autogenerated.Segments
+{
+ using Beamable.Api.Autogenerated.Models;
+ using Beamable.Common.Content;
+ using Beamable.Common;
+ using IBeamableRequester = Beamable.Common.Api.IBeamableRequester;
+ using Method = Beamable.Common.Api.Method;
+ using Beamable.Common.Dependencies;
+
+ public partial interface IBeamSegmentsApi
+ {
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegments(string customerId, string realmId, CreateSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegments(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional state, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/duplicate` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsDuplicate(string customerId, string realmId, string segmentId, DuplicateSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/preview` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsPreview(string customerId, string realmId, PreviewSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/audience` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsAudience(string customerId, string realmId, AudienceRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/memberships` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsMemberships(string customerId, string realmId, MembershipQueryRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/reconcile` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsReconcile(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/reconcile` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsReconcile(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/attributes` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsAttributes(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/count` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsCount(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegments(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// PUT call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PutRealmsSegments(string customerId, string realmId, string segmentId, UpdateSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// DELETE call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise DeleteRealmsSegments(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// PUT call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/state` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PutRealmsSegmentsState(string customerId, string realmId, string segmentId, SetSegmentStateRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/members` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsMembers(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// DELETE call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/members` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise DeleteRealmsSegmentsMembers(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/members/{playerId}` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsMembers(string customerId, long playerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/includes/add` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsIncludesAdd(string customerId, string realmId, string segmentId, ListMutationRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/includes/remove` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsIncludesRemove(string customerId, string realmId, string segmentId, ListMutationRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/excludes/add` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsExcludesAdd(string customerId, string realmId, string segmentId, ListMutationRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/excludes/remove` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise PostRealmsSegmentsExcludesRemove(string customerId, string realmId, string segmentId, ListMutationRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/transitions` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsTransitions(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional playerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/audit-logs` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ Promise GetRealmsSegmentsAuditLogs(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional AccountId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional SegmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
+ }
+ public partial class BeamSegmentsApi : IBeamSegmentsApi
+ {
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegments(string customerId, string realmId, CreateSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments` endpoint.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetRealmsSegments(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional cursor, [System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional state, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ string gsQuery = "?";
+ System.Collections.Generic.List gsQueries = new System.Collections.Generic.List();
+ if (((cursor != default(OptionalString))
+ && cursor.HasValue))
+ {
+ gsQueries.Add(string.Concat("cursor=", cursor.Value.ToString()));
+ }
+ if (((state != default(OptionalSegmentState))
+ && state.HasValue))
+ {
+ gsQueries.Add(string.Concat("state=", state.Value.ToString()));
+ }
+ if ((gsQueries.Count > 0))
+ {
+ gsQuery = string.Concat(gsQuery, string.Join("&", gsQueries));
+ gsUrl = string.Concat(gsUrl, gsQuery);
+ }
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/duplicate` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsDuplicate(string customerId, string realmId, string segmentId, DuplicateSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/duplicate";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{segmentId}", _requester.EscapeURL(segmentId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/preview` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsPreview(string customerId, string realmId, PreviewSegmentRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/preview";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/audience` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsAudience(string customerId, string realmId, AudienceRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/audience";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/memberships` endpoint.
+ ///
+ ///
+ ///
+ /// The instance to use for the request
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsMemberships(string customerId, string realmId, MembershipQueryRequest gsReq, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/memberships";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, Beamable.Serialization.JsonSerializable.ToJson(gsReq), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/reconcile` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsReconcile(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/reconcile";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// POST call to `/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/reconcile` endpoint.
+ ///
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise PostRealmsSegmentsReconcile(string customerId, string realmId, string segmentId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/{segmentId}/reconcile";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ gsUrl = gsUrl.Replace("{segmentId}", _requester.EscapeURL(segmentId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.POST, gsUrl, default(object), includeAuthHeader, this.Serialize);
+ }
+ ///
+ /// GET call to `/api/customers/{customerId}/realms/{realmId}/segments/attributes` endpoint.
+ ///
+ ///
+ ///
+ /// By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.
+ /// A promise containing the
+ public virtual Promise GetRealmsSegmentsAttributes(string customerId, string realmId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
+ {
+ string gsUrl = "/api/customers/{customerId}/realms/{realmId}/segments/attributes";
+ gsUrl = gsUrl.Replace("{customerId}", _requester.EscapeURL(customerId.ToString()));
+ gsUrl = gsUrl.Replace("{realmId}", _requester.EscapeURL(realmId.ToString()));
+ // make the request and return the result
+ return _requester.Request(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize