Skip to content

Commit eb8e25a

Browse files
authored
Update to latest API specifications (#23)
* Update to latest API specifications * Remove email as required from MagicLinkRequest
1 parent a3e53ff commit eb8e25a

52 files changed

Lines changed: 3810 additions & 525 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/gen/java/io/phasetwo/client/openapi/api/AttributesApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Represents a collection of functions to interact with the API endpoints.
1717
*/
1818
@Path("/{realm}/attributes")
19-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
19+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
2020
public interface AttributesApi {
2121

2222
/**

src/gen/java/io/phasetwo/client/openapi/api/EventsApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Represents a collection of functions to interact with the API endpoints.
1616
*/
1717
@Path("/{realm}")
18-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
18+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
1919
public interface EventsApi {
2020

2121
/**
@@ -159,7 +159,7 @@ public interface EventsApi {
159159
@GET
160160
@Path("/webhooks")
161161
@Produces({ "application/json" })
162-
List<WebhookRepresentation> getWebhooks(@PathParam("realm") String realm, @QueryParam("first") Integer first,@QueryParam("max") Integer max);
162+
List<WebhookRepresentation> getWebhooks(@PathParam("realm") String realm,@QueryParam("first") Integer first,@QueryParam("max") Integer max);
163163

164164

165165
/**

src/gen/java/io/phasetwo/client/openapi/api/IdentityProvidersApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Represents a collection of functions to interact with the API endpoints.
1717
*/
1818
@Path("/{realm}/orgs/{orgId}/idps")
19-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
19+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
2020
public interface IdentityProvidersApi {
2121

2222
/**
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package io.phasetwo.client.openapi.api;
2+
3+
import io.phasetwo.client.openapi.model.OrganizationDomainRepresentation;
4+
5+
import jakarta.ws.rs.*;
6+
7+
import java.util.List;
8+
9+
10+
/**
11+
* Represents a collection of functions to interact with the API endpoints.
12+
*/
13+
@Path("/{realm}/orgs/{orgId}/domains")
14+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
15+
public interface OrganizationApi {
16+
17+
/**
18+
*
19+
*
20+
* @param realm realm name (not id!)
21+
* @param orgId organization id
22+
* @param domainName domain name
23+
* @return success
24+
*/
25+
@GET
26+
@Path("/{domainName}")
27+
@Produces({ "application/json" })
28+
OrganizationDomainRepresentation getOrganizationDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);
29+
30+
31+
/**
32+
*
33+
*
34+
* @param realm realm name (not id!)
35+
* @param orgId organization id
36+
* @return success
37+
*/
38+
@GET
39+
@Produces({ "application/json" })
40+
List<OrganizationDomainRepresentation> getOrganizationDomains(@PathParam("realm") String realm,@PathParam("orgId") String orgId);
41+
42+
}
Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,17 @@
11
package io.phasetwo.client.openapi.api;
22

3-
import io.phasetwo.client.openapi.model.OrganizationDomainRepresentation;
43

54
import jakarta.ws.rs.*;
65
import jakarta.ws.rs.core.Response;
76

87

9-
import java.io.InputStream;
10-
import java.util.Map;
11-
import java.util.List;
12-
13-
148
/**
159
* Represents a collection of functions to interact with the API endpoints.
1610
*/
17-
@Path("/{realm}/orgs/{orgId}/domains")
18-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
11+
@Path("/{realm}/orgs/{orgId}/domains/{domainName}/verify")
12+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
1913
public interface OrganizationDomainsApi {
2014

21-
/**
22-
*
23-
*
24-
* @param realm realm name (not id!)
25-
* @param orgId organization id
26-
* @param domainName domain name
27-
* @return success
28-
*/
29-
@GET
30-
@Path("/{domainName}")
31-
@Produces({ "application/json" })
32-
OrganizationDomainRepresentation getOrganizationDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);
33-
34-
35-
/**
36-
*
37-
*
38-
* @param realm realm name (not id!)
39-
* @param orgId organization id
40-
* @return success
41-
*/
42-
@GET
43-
@Produces({ "application/json" })
44-
List<OrganizationDomainRepresentation> getOrganizationDomains(@PathParam("realm") String realm,@PathParam("orgId") String orgId);
45-
46-
4715
/**
4816
* Initiate a verification check for the domain name owned by this organization
4917
*
@@ -53,7 +21,6 @@ public interface OrganizationDomainsApi {
5321
* @return success
5422
*/
5523
@POST
56-
@Path("/{domainName}/verify")
57-
void verifyDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);
24+
Response verifyDomain(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("domainName") String domainName);
5825

5926
}

src/gen/java/io/phasetwo/client/openapi/api/OrganizationInvitationApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
* Represents a collection of functions to interact with the API endpoints.
1515
*/
1616
@Path("/{realm}/orgs/{orgId}/invitations")
17-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
17+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
1818
public interface OrganizationInvitationApi {
1919

2020
/**
21-
*
21+
* 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.
2222
*
2323
* @param realm realm name (not id!)
2424
* @param orgId organization id

src/gen/java/io/phasetwo/client/openapi/api/OrganizationInvitationsApi.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/gen/java/io/phasetwo/client/openapi/api/OrganizationMembershipsApi.java

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package io.phasetwo.client.openapi.api;
22

3-
import io.phasetwo.client.openapi.model.UserWithOrgsRepresentation;
3+
import java.util.Map;
4+
import io.phasetwo.client.openapi.model.OrganizationMemberAttributeRepresentation;
5+
import io.phasetwo.client.openapi.model.UserWithOrgsBriefRepresentation;
46

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

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

3133

34+
/**
35+
* Add or update attributes for a specific member of an organization
36+
*
37+
* @param realm realm name (not id!)
38+
* @param orgId organization id
39+
* @param userId user id
40+
* @param organizationMemberAttributeRepresentation
41+
* @return success
42+
* @return User is not a member of the organization
43+
* @return User doesn't exist
44+
*/
45+
@PUT
46+
@Path("/{userId}/attributes")
47+
@Consumes({ "application/json" })
48+
@Produces({ "application/json" })
49+
Map<String, List<String>> addOrganizationMemberAttributes(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("userId") String userId,OrganizationMemberAttributeRepresentation organizationMemberAttributeRepresentation);
50+
51+
3252
/**
3353
*
3454
*
@@ -42,6 +62,22 @@ public interface OrganizationMembershipsApi {
4262
Response checkOrganizationMembership(@PathParam("realm") String realm, @PathParam("orgId") String orgId, @PathParam("userId") String userId);
4363

4464

65+
/**
66+
* Get attributes for a specific member of an organization
67+
*
68+
* @param realm realm name (not id!)
69+
* @param orgId organization id
70+
* @param userId user id
71+
* @return success
72+
* @return User is not a member of the organization
73+
* @return User doesn't exist
74+
*/
75+
@GET
76+
@Path("/{userId}/attributes")
77+
@Produces({ "application/json" })
78+
Map<String, List<String>> getOrganizationMemberAttributes(@PathParam("realm") String realm,@PathParam("orgId") String orgId,@PathParam("userId") String userId);
79+
80+
4581
/**
4682
* Get a paginated list of users who are a member of the specified organization.
4783
*
@@ -56,7 +92,7 @@ public interface OrganizationMembershipsApi {
5692
*/
5793
@GET
5894
@Produces({ "application/json" })
59-
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);
95+
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);
6096

6197

6298
/**

src/gen/java/io/phasetwo/client/openapi/api/OrganizationRolesApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Represents a collection of functions to interact with the API endpoints.
1616
*/
1717
@Path("/{realm}/orgs/{orgId}/roles")
18-
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.14.0")
18+
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.21.0")
1919
public interface OrganizationRolesApi {
2020

2121
/**

0 commit comments

Comments
 (0)