Skip to content

Commit

Permalink
Add identity provider & saml account model typing
Browse files Browse the repository at this point in the history
Change-type: minor
  • Loading branch information
otaviojacobi committed Jul 4, 2024
1 parent 8ef8418 commit b62bf05
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/types/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export interface ResourceTypeMap {
gateway_download: GatewayDownload;
image: Image;
image_install: ImageInstall;
identity_provider: IdentityProvider;
identity_provider_membership: IdentityProviderMembership;
invitee: Invitee;
invitee__is_invited_to__application: ApplicationInvite;
invitee__is_invited_to__organization: OrganizationInvite;
Expand All @@ -57,6 +59,7 @@ export interface ResourceTypeMap {
recovery_two_factor: RecoveryTwoFactor;
release: Release;
release_tag: ReleaseTag;
saml_account: SamlAccount;
service: Service;
service_environment_variable: ServiceEnvironmentVariable;
service_install: ServiceInstall;
Expand Down Expand Up @@ -95,6 +98,7 @@ export interface Organization {
owns__team: ReverseNavigationResource<Team>;
organization__has_private_access_to__device_type: ReverseNavigationResource<OrganizationPrivateDeviceTypeAccess>;
organization_credit_notification: ReverseNavigationResource<OrganizationCreditNotification>;
identity_provider_membership: ReverseNavigationResource<IdentityProviderMembership>;
}

export interface OrganizationCreditNotification {
Expand Down Expand Up @@ -563,6 +567,32 @@ export interface Service {
device_service_environment_variable: ReverseNavigationResource<DeviceServiceEnvironmentVariable>;
}

export interface IdentityProvider {
id: number;
sso_identifier: string;
entry_point: string;
issuer: string;
certificate: string;
requires_signed_authn_response: boolean;
manages__saml_account: ReverseNavigationResource<SamlAccount>;
identity_provider_membership: ReverseNavigationResource<IdentityProviderMembership>;
}

export interface SamlAccount {
id: number;
belongs_to__user: NavigationResource<User>;
was_generated_by__identity_provider: NavigationResource<IdentityProvider>;
remote_id: string;
display_name: string | null;
}

export interface IdentityProviderMembership {
is_authorized_by__identity_provider: NavigationResource<IdentityProvider>;
id: number;
grants_access_to__team: OptionalNavigationResource<Team>;
authorizes__organization: NavigationResource<Organization>;
}

export interface Image {
id: number;
created_at: string;
Expand Down

0 comments on commit b62bf05

Please sign in to comment.