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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions output/csharp/src/Seam/Api/UserIdentities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,18 @@ public class GenerateInstantKeyRequest
[JsonConstructorAttribute]
protected GenerateInstantKeyRequest() { }

public GenerateInstantKeyRequest(string userIdentityId = default)
public GenerateInstantKeyRequest(
float? maxUseCount = default,
string userIdentityId = default
)
{
MaxUseCount = maxUseCount;
UserIdentityId = userIdentityId;
}

[DataMember(Name = "max_use_count", IsRequired = false, EmitDefaultValue = false)]
public float? MaxUseCount { get; set; }

[DataMember(Name = "user_identity_id", IsRequired = true, EmitDefaultValue = false)]
public string UserIdentityId { get; set; }

Expand Down Expand Up @@ -364,10 +371,16 @@ public InstantKey GenerateInstantKey(GenerateInstantKeyRequest request)
.Data.InstantKey;
}

public InstantKey GenerateInstantKey(string userIdentityId = default)
public InstantKey GenerateInstantKey(
float? maxUseCount = default,
string userIdentityId = default
)
{
return GenerateInstantKey(
new GenerateInstantKeyRequest(userIdentityId: userIdentityId)
new GenerateInstantKeyRequest(
maxUseCount: maxUseCount,
userIdentityId: userIdentityId
)
);
}

Expand All @@ -385,11 +398,17 @@ await _seam.PostAsync<GenerateInstantKeyResponse>(
.InstantKey;
}

public async Task<InstantKey> GenerateInstantKeyAsync(string userIdentityId = default)
public async Task<InstantKey> GenerateInstantKeyAsync(
float? maxUseCount = default,
string userIdentityId = default
)
{
return (
await GenerateInstantKeyAsync(
new GenerateInstantKeyRequest(userIdentityId: userIdentityId)
new GenerateInstantKeyRequest(
maxUseCount: maxUseCount,
userIdentityId: userIdentityId
)
)
);
}
Expand Down
85 changes: 85 additions & 0 deletions output/csharp/src/Seam/Api/Workspaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected CreateRequest() { }
public CreateRequest(
string? companyName = default,
string? connectPartnerName = default,
CreateRequestConnectWebviewCustomization? connectWebviewCustomization = default,
bool? isSandbox = default,
string name = default,
CreateRequest.WebviewLogoShapeEnum? webviewLogoShape = default,
Expand All @@ -37,6 +38,7 @@ public CreateRequest(
{
CompanyName = companyName;
ConnectPartnerName = connectPartnerName;
ConnectWebviewCustomization = connectWebviewCustomization;
IsSandbox = isSandbox;
Name = name;
WebviewLogoShape = webviewLogoShape;
Expand Down Expand Up @@ -68,6 +70,13 @@ public enum WebviewLogoShapeEnum
)]
public string? ConnectPartnerName { get; set; }

[DataMember(
Name = "connect_webview_customization",
IsRequired = false,
EmitDefaultValue = false
)]
public CreateRequestConnectWebviewCustomization? ConnectWebviewCustomization { get; set; }

[DataMember(Name = "is_sandbox", IsRequired = false, EmitDefaultValue = false)]
public bool? IsSandbox { get; set; }

Expand Down Expand Up @@ -118,6 +127,78 @@ public override string ToString()
}
}

[DataContract(Name = "createRequestConnectWebviewCustomization_model")]
public class CreateRequestConnectWebviewCustomization
{
[JsonConstructorAttribute]
protected CreateRequestConnectWebviewCustomization() { }

public CreateRequestConnectWebviewCustomization(
CreateRequestConnectWebviewCustomization.LogoShapeEnum? logoShape = default,
string? primaryButtonColor = default,
string? primaryButtonTextColor = default,
string? successMessage = default
)
{
LogoShape = logoShape;
PrimaryButtonColor = primaryButtonColor;
PrimaryButtonTextColor = primaryButtonTextColor;
SuccessMessage = successMessage;
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum LogoShapeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "circle")]
Circle = 1,

[EnumMember(Value = "square")]
Square = 2,
}

[DataMember(Name = "logo_shape", IsRequired = false, EmitDefaultValue = false)]
public CreateRequestConnectWebviewCustomization.LogoShapeEnum? LogoShape { get; set; }

[DataMember(
Name = "primary_button_color",
IsRequired = false,
EmitDefaultValue = false
)]
public string? PrimaryButtonColor { get; set; }

[DataMember(
Name = "primary_button_text_color",
IsRequired = false,
EmitDefaultValue = false
)]
public string? PrimaryButtonTextColor { get; set; }

[DataMember(Name = "success_message", IsRequired = false, EmitDefaultValue = false)]
public string? SuccessMessage { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}

[DataContract(Name = "createResponse_response")]
public class CreateResponse
{
Expand Down Expand Up @@ -162,6 +243,7 @@ public Workspace Create(CreateRequest request)
public Workspace Create(
string? companyName = default,
string? connectPartnerName = default,
CreateRequestConnectWebviewCustomization? connectWebviewCustomization = default,
bool? isSandbox = default,
string name = default,
CreateRequest.WebviewLogoShapeEnum? webviewLogoShape = default,
Expand All @@ -174,6 +256,7 @@ public Workspace Create(
new CreateRequest(
companyName: companyName,
connectPartnerName: connectPartnerName,
connectWebviewCustomization: connectWebviewCustomization,
isSandbox: isSandbox,
name: name,
webviewLogoShape: webviewLogoShape,
Expand All @@ -196,6 +279,7 @@ public async Task<Workspace> CreateAsync(CreateRequest request)
public async Task<Workspace> CreateAsync(
string? companyName = default,
string? connectPartnerName = default,
CreateRequestConnectWebviewCustomization? connectWebviewCustomization = default,
bool? isSandbox = default,
string name = default,
CreateRequest.WebviewLogoShapeEnum? webviewLogoShape = default,
Expand All @@ -209,6 +293,7 @@ await CreateAsync(
new CreateRequest(
companyName: companyName,
connectPartnerName: connectPartnerName,
connectWebviewCustomization: connectWebviewCustomization,
isSandbox: isSandbox,
name: name,
webviewLogoShape: webviewLogoShape,
Expand Down
82 changes: 82 additions & 0 deletions output/csharp/src/Seam/Model/Workspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected Workspace() { }
public Workspace(
string companyName = default,
string? connectPartnerName = default,
WorkspaceConnectWebviewCustomization connectWebviewCustomization = default,
bool isSandbox = default,
bool isSuspended = default,
string name = default,
Expand All @@ -25,6 +26,7 @@ public Workspace(
{
CompanyName = companyName;
ConnectPartnerName = connectPartnerName;
ConnectWebviewCustomization = connectWebviewCustomization;
IsSandbox = isSandbox;
IsSuspended = isSuspended;
Name = name;
Expand All @@ -37,6 +39,13 @@ public Workspace(
[DataMember(Name = "connect_partner_name", IsRequired = false, EmitDefaultValue = false)]
public string? ConnectPartnerName { get; set; }

[DataMember(
Name = "connect_webview_customization",
IsRequired = true,
EmitDefaultValue = false
)]
public WorkspaceConnectWebviewCustomization ConnectWebviewCustomization { get; set; }

[DataMember(Name = "is_sandbox", IsRequired = true, EmitDefaultValue = false)]
public bool IsSandbox { get; set; }

Expand Down Expand Up @@ -68,4 +77,77 @@ public override string ToString()
return stringWriter.ToString();
}
}

[DataContract(Name = "seamModel_workspaceConnectWebviewCustomization_model")]
public class WorkspaceConnectWebviewCustomization
{
[JsonConstructorAttribute]
protected WorkspaceConnectWebviewCustomization() { }

public WorkspaceConnectWebviewCustomization(
string? inviterLogoUrl = default,
WorkspaceConnectWebviewCustomization.LogoShapeEnum? logoShape = default,
string? primaryButtonColor = default,
string? primaryButtonTextColor = default,
string? successMessage = default
)
{
InviterLogoUrl = inviterLogoUrl;
LogoShape = logoShape;
PrimaryButtonColor = primaryButtonColor;
PrimaryButtonTextColor = primaryButtonTextColor;
SuccessMessage = successMessage;
}

[JsonConverter(typeof(SafeStringEnumConverter))]
public enum LogoShapeEnum
{
[EnumMember(Value = "unrecognized")]
Unrecognized = 0,

[EnumMember(Value = "circle")]
Circle = 1,

[EnumMember(Value = "square")]
Square = 2,
}

[DataMember(Name = "inviter_logo_url", IsRequired = false, EmitDefaultValue = false)]
public string? InviterLogoUrl { get; set; }

[DataMember(Name = "logo_shape", IsRequired = false, EmitDefaultValue = false)]
public WorkspaceConnectWebviewCustomization.LogoShapeEnum? LogoShape { get; set; }

[DataMember(Name = "primary_button_color", IsRequired = false, EmitDefaultValue = false)]
public string? PrimaryButtonColor { get; set; }

[DataMember(
Name = "primary_button_text_color",
IsRequired = false,
EmitDefaultValue = false
)]
public string? PrimaryButtonTextColor { get; set; }

[DataMember(Name = "success_message", IsRequired = false, EmitDefaultValue = false)]
public string? SuccessMessage { get; set; }

public override string ToString()
{
JsonSerializer jsonSerializer = JsonSerializer.CreateDefault(null);

StringWriter stringWriter = new StringWriter(
new StringBuilder(256),
System.Globalization.CultureInfo.InvariantCulture
);
using (JsonTextWriter jsonTextWriter = new JsonTextWriter(stringWriter))
{
jsonTextWriter.IndentChar = ' ';
jsonTextWriter.Indentation = 2;
jsonTextWriter.Formatting = Formatting.Indented;
jsonSerializer.Serialize(jsonTextWriter, this, null);
}

return stringWriter.ToString();
}
}
}
2 changes: 1 addition & 1 deletion output/csharp/src/Seam/Seam.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PackageId>Seam</PackageId>

<PackageVersion>0.53.0</PackageVersion>
<PackageVersion>0.54.0</PackageVersion>

<Authors>Seam</Authors>

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"devDependencies": {
"@seamapi/nextlove-sdk-generator": "^1.17.4",
"@seamapi/types": "^1.385.0",
"@seamapi/types": "^1.386.0",
"@types/node": "^18.19.11",
"ava": "^5.0.1",
"axios": "^1.5.0",
Expand Down
Loading