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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/attributes")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface AttributesApi {

/**
Expand Down
4 changes: 2 additions & 2 deletions src/gen/java/io/phasetwo/client/openapi/api/EventsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface EventsApi {

/**
Expand Down Expand Up @@ -159,7 +159,7 @@ public interface EventsApi {
@GET
@Path("/webhooks")
@Produces({ "application/json" })
List<WebhookRepresentation> getWebhooks(@PathParam("realm") String realm, @QueryParam("first") Integer first,@QueryParam("max") Integer max);
List<WebhookRepresentation> getWebhooks(@PathParam("realm") String realm,@QueryParam("first") Integer first,@QueryParam("max") Integer max);


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/idps")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface IdentityProvidersApi {

/**
Expand Down
42 changes: 42 additions & 0 deletions src/gen/java/io/phasetwo/client/openapi/api/OrganizationApi.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package io.phasetwo.client.openapi.api;

import io.phasetwo.client.openapi.model.OrganizationDomainRepresentation;

import jakarta.ws.rs.*;

import java.util.List;


/**
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/domains")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface OrganizationApi {

/**
*
*
* @param realm realm name (not id!)
* @param orgId organization id
* @param domainName domain name
* @return success
*/
@GET
@Path("/{domainName}")
@Produces({ "application/json" })
OrganizationDomainRepresentation getOrganizationDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);


/**
*
*
* @param realm realm name (not id!)
* @param orgId organization id
* @return success
*/
@GET
@Produces({ "application/json" })
List<OrganizationDomainRepresentation> getOrganizationDomains(@PathParam("realm") String realm,@PathParam("orgId") String orgId);

}
Original file line number Diff line number Diff line change
@@ -1,49 +1,17 @@
package io.phasetwo.client.openapi.api;

import io.phasetwo.client.openapi.model.OrganizationDomainRepresentation;

import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;


import java.io.InputStream;
import java.util.Map;
import java.util.List;


/**
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/domains")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@Path("/{realm}/orgs/{orgId}/domains/{domainName}/verify")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface OrganizationDomainsApi {

/**
*
*
* @param realm realm name (not id!)
* @param orgId organization id
* @param domainName domain name
* @return success
*/
@GET
@Path("/{domainName}")
@Produces({ "application/json" })
OrganizationDomainRepresentation getOrganizationDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);


/**
*
*
* @param realm realm name (not id!)
* @param orgId organization id
* @return success
*/
@GET
@Produces({ "application/json" })
List<OrganizationDomainRepresentation> getOrganizationDomains(@PathParam("realm") String realm,@PathParam("orgId") String orgId);


/**
* Initiate a verification check for the domain name owned by this organization
*
Expand All @@ -53,7 +21,6 @@ public interface OrganizationDomainsApi {
* @return success
*/
@POST
@Path("/{domainName}/verify")
void verifyDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);
Response verifyDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/invitations")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface OrganizationInvitationApi {

/**
*
* Create an invitation to join the specified organization. Requires a user to register with the application (if they don't already have an account) before they can accept the invitation. Acceptance happens during login via a required action.
*
* @param realm realm name (not id!)
* @param orgId organization id
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package io.phasetwo.client.openapi.api;

import io.phasetwo.client.openapi.model.UserWithOrgsRepresentation;
import java.util.Map;
import io.phasetwo.client.openapi.model.OrganizationMemberAttributeRepresentation;
import io.phasetwo.client.openapi.model.UserWithOrgsBriefRepresentation;

import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;
Expand All @@ -13,7 +15,7 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/members")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface OrganizationMembershipsApi {

/**
Expand All @@ -29,6 +31,24 @@ public interface OrganizationMembershipsApi {
void addOrganizationMember(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("userId") String userId);


/**
* Add or update attributes for a specific member of an organization
*
* @param realm realm name (not id!)
* @param orgId organization id
* @param userId user id
* @param organizationMemberAttributeRepresentation
* @return success
* @return User is not a member of the organization
* @return User doesn't exist
*/
@PUT
@Path("/{userId}/attributes")
@Consumes({ "application/json" })
@Produces({ "application/json" })
Map<String, List<String>> addOrganizationMemberAttributes(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("userId") String userId,OrganizationMemberAttributeRepresentation organizationMemberAttributeRepresentation);


/**
*
*
Expand All @@ -42,6 +62,22 @@ public interface OrganizationMembershipsApi {
Response checkOrganizationMembership(@PathParam("realm") String realm, @PathParam("orgId") String orgId, @PathParam("userId") String userId);


/**
* Get attributes for a specific member of an organization
*
* @param realm realm name (not id!)
* @param orgId organization id
* @param userId user id
* @return success
* @return User is not a member of the organization
* @return User doesn't exist
*/
@GET
@Path("/{userId}/attributes")
@Produces({ "application/json" })
Map<String, List<String>> getOrganizationMemberAttributes(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("userId") String userId);


/**
* Get a paginated list of users who are a member of the specified organization.
*
Expand All @@ -56,7 +92,7 @@ public interface OrganizationMembershipsApi {
*/
@GET
@Produces({ "application/json" })
List<UserWithOrgsRepresentation> getOrganizationMemberships(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@QueryParam("search") String search,@QueryParam("first") Integer first,@QueryParam("max") Integer max,@QueryParam("excludeAdminAccounts") Boolean excludeAdminAccounts,@QueryParam("includeOrgs") Boolean includeOrgs);
List<UserWithOrgsBriefRepresentation> getOrganizationMemberships(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@QueryParam("search") String search,@QueryParam("first") Integer first,@QueryParam("max") Integer max,@QueryParam("excludeAdminAccounts") Boolean excludeAdminAccounts,@QueryParam("includeOrgs") Boolean includeOrgs);


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Represents a collection of functions to interact with the API endpoints.
*/
@Path("/{realm}/orgs/{orgId}/roles")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
public interface OrganizationRolesApi {

/**
Expand Down
Loading