-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
579 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookAttemptLog.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,52 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
/** | ||
* A webhook call attempt log. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookAttemptLog { | ||
|
||
public IDictionary<string, object> data; | ||
|
||
public DateTimeOffset? endInstant; | ||
|
||
public Guid? id; | ||
|
||
public DateTimeOffset? startInstant; | ||
|
||
public WebhookCallResponse webhookCallResponse; | ||
|
||
public Guid? webhookEventLogId; | ||
|
||
public Guid? webhookId; | ||
|
||
public WebhookAttemptResult attemptResult; | ||
|
||
public WebhookAttemptLog with(Action<WebhookAttemptLog> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookAttemptResult.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,34 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
/** | ||
* The possible states of an individual webhook attempt to a single endpoint. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public enum WebhookAttemptResult { | ||
Success, | ||
Failure, | ||
Unknown | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookCallResponse.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,42 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
/** | ||
* A webhook call response. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookCallResponse { | ||
|
||
public string exception; | ||
|
||
public int? statusCode; | ||
|
||
public string url; | ||
|
||
public WebhookCallResponse with(Action<WebhookCallResponse> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookEventLog.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,58 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using io.fusionauth.domain.@event; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
public class WebhookEventLog { | ||
|
||
public List<WebhookAttemptLog> attempts; | ||
|
||
public IDictionary<string, object> data; | ||
|
||
public EventRequest @event; | ||
|
||
public WebhookEventResult @eventResult; | ||
|
||
public EventType @eventType; | ||
|
||
public Guid? id; | ||
|
||
public DateTimeOffset? insertInstant; | ||
|
||
public DateTimeOffset? lastAttemptInstant; | ||
|
||
public DateTimeOffset? lastUpdateInstant; | ||
|
||
public Guid? linkedObjectId; | ||
|
||
public long? sequence; | ||
|
||
public int? failedAttempts; | ||
|
||
public int? successfulAttempts; | ||
|
||
public WebhookEventLog with(Action<WebhookEventLog> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookEventLogConfiguration.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,38 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
/** | ||
* The system configuration for Webhook Event Log data. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookEventLogConfiguration { | ||
|
||
public DeleteConfiguration delete; | ||
|
||
public WebhookEventLogConfiguration with(Action<WebhookEventLogConfiguration> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
fusionauth-netcore-client/domain/io/fusionauth/domain/WebhookEventResult.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,35 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain | ||
{ | ||
|
||
/** | ||
* The possible result states of a webhook event. This tracks the success of the overall webhook transaction according to the {@link TransactionType} | ||
* and configured webhooks. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public enum WebhookEventResult { | ||
Failed, | ||
Running, | ||
Succeeded | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
fusionauth-netcore-client/domain/io/fusionauth/domain/api/WebhookAttemptLogResponse.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,39 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using io.fusionauth.domain; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain.api | ||
{ | ||
|
||
/** | ||
* Webhook attempt log response. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookAttemptLogResponse { | ||
|
||
public WebhookAttemptLog webhookAttemptLog; | ||
|
||
public WebhookAttemptLogResponse with(Action<WebhookAttemptLogResponse> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
fusionauth-netcore-client/domain/io/fusionauth/domain/api/WebhookEventLogResponse.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,39 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using io.fusionauth.domain; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain.api | ||
{ | ||
|
||
/** | ||
* Webhook event log response. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookEventLogResponse { | ||
|
||
public WebhookEventLog webhookEventLog; | ||
|
||
public WebhookEventLogResponse with(Action<WebhookEventLogResponse> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
fusionauth-netcore-client/domain/io/fusionauth/domain/api/WebhookEventLogSearchRequest.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,39 @@ | ||
/* | ||
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. See the License for the specific | ||
* language governing permissions and limitations under the License. | ||
*/ | ||
|
||
|
||
using io.fusionauth.domain.search; | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
namespace io.fusionauth.domain.api | ||
{ | ||
|
||
/** | ||
* Webhook event log search request. | ||
* | ||
* @author Spencer Witt | ||
*/ | ||
public class WebhookEventLogSearchRequest { | ||
|
||
public WebhookEventLogSearchCriteria search; | ||
|
||
public WebhookEventLogSearchRequest with(Action<WebhookEventLogSearchRequest> action) { | ||
action(this); | ||
return this; | ||
} | ||
} | ||
} |
Oops, something went wrong.