Skip to content

Commit

Permalink
Domain sync
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Sep 5, 2024
1 parent f2094d3 commit 46efa6c
Show file tree
Hide file tree
Showing 14 changed files with 579 additions and 0 deletions.
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;
}
}
}
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
}
}
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;
}
}
}
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;
}
}
}
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;
}
}
}
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
}
}
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;
}
}
}
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;
}
}
}
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;
}
}
}
Loading

0 comments on commit 46efa6c

Please sign in to comment.