-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Integration information in Actions response
- Loading branch information
Showing
17 changed files
with
628 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Allowable options for this param. | ||
/// </summary> | ||
public class ActionOption | ||
{ | ||
/// <summary> | ||
/// The value of an option that will be used within the application. | ||
/// </summary> | ||
[JsonProperty("value")] | ||
public string Value { get; set; } | ||
|
||
/// <summary> | ||
/// The display value for an option that will be used within the application. | ||
/// </summary> | ||
[JsonProperty("label")] | ||
public string Label { get; set; } | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
src/Auth0.ManagementApi/Models/Actions/ActionRequiredBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
public class ActionRequiredBase | ||
{ | ||
/// <summary> | ||
/// Possible values: [UNSPECIFIED, STRING] | ||
/// </summary> | ||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
/// <summary> | ||
/// Name of the parameter | ||
/// </summary> | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Flag for if this parameter is required | ||
/// </summary> | ||
[JsonProperty("required")] | ||
public bool? Required { get; set; } | ||
|
||
/// <summary> | ||
/// The temp flag for if this parameter is required(experimental; for Labs use only) | ||
/// </summary> | ||
[JsonProperty("optional")] | ||
public bool? Optional { get; set; } | ||
|
||
/// <summary> | ||
/// Short label for this parameter | ||
/// </summary> | ||
[JsonProperty("label")] | ||
public string Label { get; set; } | ||
|
||
/// <summary> | ||
/// Lengthier description for this parameter | ||
/// </summary> | ||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
/// <summary> | ||
/// Default value for this parameter | ||
/// </summary> | ||
[JsonProperty("default_value")] | ||
public string DefaultValue { get; set; } | ||
|
||
/// <summary> | ||
/// Placeholder text for this parameter | ||
/// </summary> | ||
[JsonProperty("placeholder")] | ||
public string Placeholder { get; set; } | ||
|
||
/// <inheritdoc cref="Auth0.ManagementApi.Models.Actions.ActionOption"/> | ||
[JsonProperty("options")] | ||
public IList<ActionOption> Options { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Denotes the major.minor version of an integration release | ||
/// </summary> | ||
public class ActionSemVer | ||
{ | ||
/// <summary> | ||
/// Major version of the semver | ||
/// </summary> | ||
[JsonProperty("major")] | ||
public int Major { get; set; } | ||
|
||
/// <summary> | ||
/// Minor version of the semver | ||
/// </summary> | ||
[JsonProperty("minor")] | ||
public int Minor { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/Auth0.ManagementApi/Models/Actions/ActionsRequiredConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Declares all the necessary configuration fields for an integration to work. | ||
/// </summary> | ||
public class ActionsRequiredConfiguration : ActionRequiredBase | ||
{ | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Auth0.ManagementApi/Models/Actions/ActionsRequiredSecrets.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Declares all the necessary secrets for an integration to work. | ||
/// </summary> | ||
public class ActionsRequiredSecrets : ActionRequiredBase | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// In order to execute an Action, it must be bound to a trigger using a binding. trigger-bound means that | ||
/// bindings are managed by the tenant. entity-bound means that the bindings are automatically managed by Auth0 | ||
/// and other internal resources will control those bindings. Tenants cannot manage entity-bound bindings. | ||
/// </summary> | ||
public enum BindingPolicy | ||
{ | ||
[EnumMember(Value = "trigger-bound")] | ||
TriggerBound, | ||
|
||
[EnumMember(Value = "entity-bound")] | ||
EntityBound | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/Auth0.ManagementApi/Models/Actions/CompatibleTrigger.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Informs which other trigger supports the same event and api. | ||
/// </summary> | ||
public class CompatibleTrigger | ||
{ | ||
/// <summary> | ||
/// Possible values: [post-login, credentials-exchange, pre-user-registration, post-user-registration, | ||
/// post-change-password, send-phone-message, custom-phone-provider, custom-email-provider, iga-approval, | ||
/// iga-certification, iga-fulfillment-assignment, iga-fulfillment-execution, | ||
/// password-reset-post-challenge, custom-token-exchange-beta] | ||
/// An actions extensibility point. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The version of a trigger. v1, v2, etc | ||
/// </summary> | ||
[JsonProperty("version")] | ||
public string Version { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
public class CurrentRelease | ||
{ | ||
/// <summary> | ||
/// Id of the associated IntegrationRelease. | ||
/// </summary> | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
/// <inheritdoc cref="Auth0.ManagementApi.Models.Actions.Trigger"/> | ||
[JsonProperty("trigger")] | ||
public Trigger Trigger { get; set; } | ||
|
||
/// <inheritdoc cref="Auth0.ManagementApi.Models.Actions.ActionSemVer"/> | ||
[JsonProperty("semver")] | ||
public ActionSemVer SemVer { get; set; } | ||
|
||
/// <inheritdoc cref="Auth0.ManagementApi.Models.Actions.ActionsRequiredSecrets"/> | ||
[JsonProperty("required_secrets")] | ||
public IList<ActionsRequiredSecrets> RequiredSecrets { get; set; } | ||
|
||
/// <inheritdoc cref="Auth0.ManagementApi.Models.Actions.ActionsRequiredConfiguration"/> | ||
[JsonProperty("required_configuration")] | ||
public IList<ActionsRequiredConfiguration> RequiredConfigurations { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Auth0.ManagementApi.Models.Actions | ||
{ | ||
/// <summary> | ||
/// Represents the type of the integration. | ||
/// </summary> | ||
public enum FeatureType | ||
{ | ||
[EnumMember(Value = "unspecified")] | ||
Unspecified, | ||
|
||
[EnumMember(Value = "action")] | ||
Action, | ||
|
||
[EnumMember(Value = "social_connection")] | ||
SocialConnection, | ||
|
||
[EnumMember(Value = "log_stream")] | ||
LogStream, | ||
|
||
[EnumMember(Value = "sso_integration")] | ||
SsoIntegration, | ||
|
||
[EnumMember(Value = "sms_provider")] | ||
SmsProvider, | ||
} | ||
} |
Oops, something went wrong.