diff --git a/src/management/__generated/managers/organizations-manager.ts b/src/management/__generated/managers/organizations-manager.ts index a2940a518..110db67f8 100644 --- a/src/management/__generated/managers/organizations-manager.ts +++ b/src/management/__generated/managers/organizations-manager.ts @@ -17,6 +17,7 @@ import type { PostInvitationsRequest, PostMembersRequest, PostOrganizationMemberRolesRequest, + PostOrganizations201Response, PostOrganizationsRequest, GetEnabledConnections200ResponseOneOf, GetInvitations200ResponseOneOf, @@ -831,7 +832,7 @@ export class OrganizationsManager extends BaseAPI { async create( bodyParameters: PostOrganizationsRequest, initOverrides?: InitOverride - ): Promise> { + ): Promise> { const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; diff --git a/src/management/__generated/models/index.ts b/src/management/__generated/models/index.ts index d4662699a..520cc95dc 100644 --- a/src/management/__generated/models/index.ts +++ b/src/management/__generated/models/index.ts @@ -4888,6 +4888,11 @@ export interface GetEnabledConnections200ResponseOneOfInner { * */ assign_membership_on_login: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button: boolean; /** */ connection: GetEnabledConnections200ResponseOneOfInnerConnection; @@ -7539,7 +7544,12 @@ export interface PatchEnabledConnectionsByConnectionIdRequest { * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. * */ - assign_membership_on_login: boolean; + assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** * @@ -8790,6 +8800,11 @@ export interface PostEnabledConnectionsRequest { * */ assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** * @@ -9431,6 +9446,59 @@ export interface PostOrganizationMemberRolesRequest { */ roles: Array; } +/** + * + */ +export interface PostOrganizations201Response { + [key: string]: any | any; + /** + * Organization identifier + * + */ + id: string; + /** + * The name of this organization. + * + */ + name: string; + /** + * Friendly name of this organization. + * + */ + display_name: string; + /** + */ + branding: GetOrganizations200ResponseOneOfInnerBranding; + /** + * Metadata associated with the organization, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. + * + */ + metadata: { [key: string]: any }; + /** + */ + enabled_connections: Array; +} +/** + * + */ +export interface PostOrganizations201ResponseEnabledConnectionsInner { + [key: string]: any | any; + /** + * ID of the connection. + * + */ + connection_id: string; + /** + * When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection. + * + */ + assign_membership_on_login: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button: boolean; +} /** * */ @@ -9486,6 +9554,11 @@ export interface PostOrganizationsRequestEnabledConnectionsInner { * */ assign_membership_on_login?: boolean; + /** + * Enables showing a button for the connection in the organization login page. If false, it will be usable only by HRD. + * + */ + show_as_button?: boolean; } /** * diff --git a/test/management/organizations.test.ts b/test/management/organizations.test.ts index 62e3f18c1..69a05cc8d 100644 --- a/test/management/organizations.test.ts +++ b/test/management/organizations.test.ts @@ -429,6 +429,7 @@ describe('OrganizationsManager', () => { const data = { id: 'org_id', connectionId: 'conn_id', + show_as_button: false, }; beforeEach(() => { @@ -484,7 +485,7 @@ describe('OrganizationsManager', () => { id: 'org_123', }; - const body = { connection_id: '123', assign_membership_on_login: false }; + const body = { connection_id: '123', assign_membership_on_login: false, show_as_button: false }; beforeEach(() => { request = nock(API_URL).post(`/organizations/${data.id}/enabled_connections`).reply(200, {}); @@ -551,6 +552,7 @@ describe('OrganizationsManager', () => { const data = { id: 'org_123', connectionId: '123', + show_as_button: false, }; const body = { assign_membership_on_login: false };