diff --git a/.codegen.json b/.codegen.json
index 964676cb..f9437611 100644
--- a/.codegen.json
+++ b/.codegen.json
@@ -1 +1 @@
-{ "engineHash": "bd1adff", "specHash": "b2f7568", "version": "0.3.0" }
+{ "engineHash": "3d3d072", "specHash": "d50ab5f", "version": "0.3.0" }
diff --git a/Box.Sdk.Gen.Tests.Integration/Test/FileMetadata/FileMetadataManagerTests.cs b/Box.Sdk.Gen.Tests.Integration/Test/FileMetadata/FileMetadataManagerTests.cs
index d885865f..5ce38566 100644
--- a/Box.Sdk.Gen.Tests.Integration/Test/FileMetadata/FileMetadataManagerTests.cs
+++ b/Box.Sdk.Gen.Tests.Integration/Test/FileMetadata/FileMetadataManagerTests.cs
@@ -17,7 +17,7 @@ public FileMetadataManagerTests() {
client = new CommonsManager().GetDefaultClient();
}
[TestMethod]
- public async System.Threading.Tasks.Task TestFileMetadata() {
+ public async System.Threading.Tasks.Task TestGlobalFileMetadata() {
FileFull file = await new CommonsManager().UploadNewFileAsync().ConfigureAwait(false);
Metadatas fileMetadata = await client.FileMetadata.GetFileMetadataAsync(fileId: file.Id).ConfigureAwait(false);
Assert.IsTrue(NullableUtils.Unwrap(fileMetadata.Entries).Count == 0);
diff --git a/Box.Sdk.Gen.Tests.Integration/Test/FolderMetadata/FolderMetadataManagerTests.cs b/Box.Sdk.Gen.Tests.Integration/Test/FolderMetadata/FolderMetadataManagerTests.cs
index 19512504..5939544e 100644
--- a/Box.Sdk.Gen.Tests.Integration/Test/FolderMetadata/FolderMetadataManagerTests.cs
+++ b/Box.Sdk.Gen.Tests.Integration/Test/FolderMetadata/FolderMetadataManagerTests.cs
@@ -17,7 +17,7 @@ public FolderMetadataManagerTests() {
client = new CommonsManager().GetDefaultClient();
}
[TestMethod]
- public async System.Threading.Tasks.Task TestFolderMetadata() {
+ public async System.Threading.Tasks.Task TestGlobalFolderMetadata() {
FolderFull folder = await new CommonsManager().CreateNewFolderAsync().ConfigureAwait(false);
Metadatas folderMetadata = await client.FolderMetadata.GetFolderMetadataAsync(folderId: folder.Id).ConfigureAwait(false);
Assert.IsTrue(NullableUtils.Unwrap(folderMetadata.Entries).Count == 0);
diff --git a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBody.cs b/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBody.cs
index dade265d..833bb5e7 100644
--- a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBody.cs
+++ b/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBody.cs
@@ -34,10 +34,10 @@ public class StartWorkflowRequestBody {
public StartWorkflowRequestBodyFolderField Folder { get; set; }
///
- /// A list of outcomes required to be configured at start time.
+ /// A configurable outcome the workflow should complete.
///
[JsonPropertyName("outcomes")]
- public IReadOnlyList? Outcomes { get; set; } = default;
+ public IReadOnlyList? Outcomes { get; set; } = default;
public StartWorkflowRequestBody(StartWorkflowRequestBodyFlowField flow, IReadOnlyList files, StartWorkflowRequestBodyFolderField folder) {
Flow = flow;
diff --git a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesField.cs b/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesField.cs
deleted file mode 100644
index 3e16fd26..00000000
--- a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesField.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using Unions;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Text.Json.Serialization;
-using System;
-using Box.Sdk.Gen.Schemas;
-using Box.Sdk.Gen;
-
-namespace Box.Sdk.Gen.Managers {
- public class StartWorkflowRequestBodyOutcomesField {
- ///
- /// The id of the outcome
- ///
- [JsonPropertyName("id")]
- public string? Id { get; set; } = default;
-
- ///
- /// The type of the outcome object
- ///
- [JsonPropertyName("type")]
- public StartWorkflowRequestBodyOutcomesTypeField? Type { get; set; } = default;
-
- ///
- /// This is a placeholder example for various objects that
- /// can be passed in - refer to the guides section to find
- /// out more information.
- ///
- [JsonPropertyName("parameter")]
- public string? Parameter { get; set; } = default;
-
- public StartWorkflowRequestBodyOutcomesField() {
-
- }
- }
-}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesTypeField.cs b/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesTypeField.cs
deleted file mode 100644
index 34a5288e..00000000
--- a/Box.Sdk.Gen/Managers/Workflows/StartWorkflowRequestBodyOutcomesTypeField.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System.ComponentModel;
-using Serializer;
-using System.Text.Json.Serialization;
-using Box.Sdk.Gen.Schemas;
-using Box.Sdk.Gen;
-
-namespace Box.Sdk.Gen.Managers {
- [JsonConverter(typeof(StringEnumConverter))]
- public enum StartWorkflowRequestBodyOutcomesTypeField {
- [Description("outcome")]
- Outcome
- }
-}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CollaboratorVariable.cs b/Box.Sdk.Gen/Schemas/CollaboratorVariable.cs
new file mode 100644
index 00000000..f8432a49
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CollaboratorVariable.cs
@@ -0,0 +1,39 @@
+using Unions;
+using System.Text.Json.Serialization;
+using System;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
+using System.Text.Json;
+
+namespace Box.Sdk.Gen.Schemas {
+ public class CollaboratorVariable {
+ ///
+ /// Collaborator
+ /// object type.
+ ///
+ ///
+ [JsonPropertyName("type")]
+ public CollaboratorVariableTypeField Type { get; set; }
+
+ ///
+ /// Variable type
+ /// for the Collaborator
+ /// object.
+ ///
+ ///
+ [JsonPropertyName("variable_type")]
+ public CollaboratorVariableVariableTypeField VariableType { get; set; }
+
+ ///
+ /// A list of user IDs.
+ ///
+ [JsonPropertyName("variable_value")]
+ public IReadOnlyList VariableValue { get; set; }
+
+ public CollaboratorVariable(CollaboratorVariableTypeField type, CollaboratorVariableVariableTypeField variableType, IReadOnlyList variableValue) {
+ Type = type;
+ VariableType = variableType;
+ VariableValue = variableValue;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CollaboratorVariableTypeField.cs b/Box.Sdk.Gen/Schemas/CollaboratorVariableTypeField.cs
new file mode 100644
index 00000000..0501af2a
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CollaboratorVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CollaboratorVariableTypeField {
+ [Description("variable")]
+ Variable
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableTypeField.cs b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableTypeField.cs
new file mode 100644
index 00000000..eb8aaaaa
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CollaboratorVariableVariableTypeField {
+ [Description("user_list")]
+ UserList
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueField.cs b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueField.cs
new file mode 100644
index 00000000..91c78964
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueField.cs
@@ -0,0 +1,27 @@
+using Unions;
+using System.Text.Json.Serialization;
+using System;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
+using System.Text.Json;
+
+namespace Box.Sdk.Gen.Schemas {
+ public class CollaboratorVariableVariableValueField {
+ ///
+ /// The object type.
+ ///
+ [JsonPropertyName("type")]
+ public CollaboratorVariableVariableValueTypeField Type { get; set; }
+
+ ///
+ /// User's ID.
+ ///
+ [JsonPropertyName("id")]
+ public string Id { get; set; }
+
+ public CollaboratorVariableVariableValueField(CollaboratorVariableVariableValueTypeField type, string id) {
+ Type = type;
+ Id = id;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueTypeField.cs b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueTypeField.cs
new file mode 100644
index 00000000..ecd6b709
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CollaboratorVariableVariableValueTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CollaboratorVariableVariableValueTypeField {
+ [Description("user")]
+ User
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CompletionRuleVariable.cs b/Box.Sdk.Gen/Schemas/CompletionRuleVariable.cs
new file mode 100644
index 00000000..a464002b
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CompletionRuleVariable.cs
@@ -0,0 +1,42 @@
+using Unions;
+using System.Text.Json.Serialization;
+using System;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
+using System.Text.Json;
+
+namespace Box.Sdk.Gen.Schemas {
+ public class CompletionRuleVariable {
+ ///
+ /// Completion
+ /// Rule object type.
+ ///
+ ///
+ [JsonPropertyName("type")]
+ public CompletionRuleVariableTypeField Type { get; set; }
+
+ ///
+ /// Variable type
+ /// for the Completion
+ /// Rule object.
+ ///
+ ///
+ [JsonPropertyName("variable_type")]
+ public CompletionRuleVariableVariableTypeField VariableType { get; set; }
+
+ ///
+ /// Variable
+ /// values for a completion
+ /// rule.
+ ///
+ ///
+ [JsonPropertyName("variable_value")]
+ public CompletionRuleVariableVariableValueField VariableValue { get; set; }
+
+ public CompletionRuleVariable(CompletionRuleVariableTypeField type, CompletionRuleVariableVariableTypeField variableType, CompletionRuleVariableVariableValueField variableValue) {
+ Type = type;
+ VariableType = variableType;
+ VariableValue = variableValue;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CompletionRuleVariableTypeField.cs b/Box.Sdk.Gen/Schemas/CompletionRuleVariableTypeField.cs
new file mode 100644
index 00000000..fa2aa3fd
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CompletionRuleVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CompletionRuleVariableTypeField {
+ [Description("variable")]
+ Variable
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableTypeField.cs b/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableTypeField.cs
new file mode 100644
index 00000000..84e781d6
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CompletionRuleVariableVariableTypeField {
+ [Description("task_completion_rule")]
+ TaskCompletionRule
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableValueField.cs b/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableValueField.cs
new file mode 100644
index 00000000..a9ede43f
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/CompletionRuleVariableVariableValueField.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum CompletionRuleVariableVariableValueField {
+ [Description("all_assignees")]
+ AllAssignees,
+ [Description("any_assignees")]
+ AnyAssignees
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/Outcome.cs b/Box.Sdk.Gen/Schemas/Outcome.cs
new file mode 100644
index 00000000..fbb8ae90
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/Outcome.cs
@@ -0,0 +1,35 @@
+using Unions;
+using System.Text.Json.Serialization;
+using System;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
+using System.Text.Json;
+
+namespace Box.Sdk.Gen.Schemas {
+ public class Outcome {
+ ///
+ /// ID of a specific outcome
+ ///
+ [JsonPropertyName("id")]
+ public string Id { get; set; }
+
+ [JsonPropertyName("collaborators")]
+ public CollaboratorVariable? Collaborators { get; set; } = default;
+
+ [JsonPropertyName("completion_rule")]
+ public CompletionRuleVariable? CompletionRule { get; set; } = default;
+
+ [JsonPropertyName("file_collaborator_role")]
+ public RoleVariable? FileCollaboratorRole { get; set; } = default;
+
+ [JsonPropertyName("task_collaborators")]
+ public CollaboratorVariable? TaskCollaborators { get; set; } = default;
+
+ [JsonPropertyName("role")]
+ public RoleVariable? Role { get; set; } = default;
+
+ public Outcome(string id) {
+ Id = id;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/RoleVariable.cs b/Box.Sdk.Gen/Schemas/RoleVariable.cs
new file mode 100644
index 00000000..b880550f
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/RoleVariable.cs
@@ -0,0 +1,34 @@
+using Unions;
+using System.Text.Json.Serialization;
+using System;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
+using System.Text.Json;
+
+namespace Box.Sdk.Gen.Schemas {
+ public class RoleVariable {
+ ///
+ /// Role object type.
+ ///
+ ///
+ [JsonPropertyName("type")]
+ public RoleVariableTypeField Type { get; set; }
+
+ ///
+ /// The variable type used
+ /// by the object.
+ ///
+ ///
+ [JsonPropertyName("variable_type")]
+ public RoleVariableVariableTypeField VariableType { get; set; }
+
+ [JsonPropertyName("variable_value")]
+ public RoleVariableVariableValueField VariableValue { get; set; }
+
+ public RoleVariable(RoleVariableTypeField type, RoleVariableVariableTypeField variableType, RoleVariableVariableValueField variableValue) {
+ Type = type;
+ VariableType = variableType;
+ VariableValue = variableValue;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/RoleVariableTypeField.cs b/Box.Sdk.Gen/Schemas/RoleVariableTypeField.cs
new file mode 100644
index 00000000..0ec22768
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/RoleVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum RoleVariableTypeField {
+ [Description("variable")]
+ Variable
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/RoleVariableVariableTypeField.cs b/Box.Sdk.Gen/Schemas/RoleVariableVariableTypeField.cs
new file mode 100644
index 00000000..f5da99c9
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/RoleVariableVariableTypeField.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum RoleVariableVariableTypeField {
+ [Description("collaborator_role")]
+ CollaboratorRole
+ }
+}
\ No newline at end of file
diff --git a/Box.Sdk.Gen/Schemas/RoleVariableVariableValueField.cs b/Box.Sdk.Gen/Schemas/RoleVariableVariableValueField.cs
new file mode 100644
index 00000000..60832f1e
--- /dev/null
+++ b/Box.Sdk.Gen/Schemas/RoleVariableVariableValueField.cs
@@ -0,0 +1,23 @@
+using System.ComponentModel;
+using Serializer;
+using System.Text.Json.Serialization;
+
+namespace Box.Sdk.Gen.Schemas {
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum RoleVariableVariableValueField {
+ [Description("editor")]
+ Editor,
+ [Description("viewer")]
+ Viewer,
+ [Description("previewer")]
+ Previewer,
+ [Description("uploader")]
+ Uploader,
+ [Description("previewer uploader")]
+ PreviewerUploader,
+ [Description("viewer uploader")]
+ ViewerUploader,
+ [Description("co-owner")]
+ CoOwner
+ }
+}
\ No newline at end of file