From bc95097be4054c5bf5ac44fecb1c6630b2cbd82b Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 22 Aug 2025 14:15:12 +0000 Subject: [PATCH] feat: update generated APIs --- packages_generated/iam/src/v1alpha1/api.gen.ts | 18 ++++++++++++++++++ .../iam/src/v1alpha1/index.gen.ts | 2 ++ .../iam/src/v1alpha1/marshalling.gen.ts | 14 ++++++++++++++ .../iam/src/v1alpha1/types.gen.ts | 13 +++++++++++++ 4 files changed, 47 insertions(+) diff --git a/packages_generated/iam/src/v1alpha1/api.gen.ts b/packages_generated/iam/src/v1alpha1/api.gen.ts index a0e7cf4eb..8818d9d4c 100644 --- a/packages_generated/iam/src/v1alpha1/api.gen.ts +++ b/packages_generated/iam/src/v1alpha1/api.gen.ts @@ -64,6 +64,7 @@ import { unmarshalQuotum, unmarshalSaml, unmarshalSamlCertificate, + unmarshalSamlInformation, unmarshalSetRulesResponse, unmarshalSSHKey, unmarshalUser, @@ -106,6 +107,7 @@ import type { GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, + GetSamlInformationRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, @@ -153,6 +155,7 @@ import type { RemoveUserConnectionRequest, Saml, SamlCertificate, + SamlInformation, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, @@ -1518,4 +1521,19 @@ export class API extends ParentAPI { method: 'DELETE', path: `/iam/v1alpha1/saml-certificates/${validatePathParam('certificateId', request.certificateId)}`, }) + + /** + * Get SAML information. + * + * @param request - The request {@link GetSamlInformationRequest} + * @returns A Promise of SamlInformation + */ + getSamlInformation = (request: Readonly = {}) => + this.client.fetch( + { + method: 'GET', + path: `/iam/v1alpha1/saml-information`, + }, + unmarshalSamlInformation, + ) } diff --git a/packages_generated/iam/src/v1alpha1/index.gen.ts b/packages_generated/iam/src/v1alpha1/index.gen.ts index 61344b3cf..a9d05e61c 100644 --- a/packages_generated/iam/src/v1alpha1/index.gen.ts +++ b/packages_generated/iam/src/v1alpha1/index.gen.ts @@ -44,6 +44,7 @@ export type { GetOrganizationSecuritySettingsRequest, GetPolicyRequest, GetQuotumRequest, + GetSamlInformationRequest, GetSSHKeyRequest, GetUserConnectionsRequest, GetUserConnectionsResponse, @@ -113,6 +114,7 @@ export type { SamlCertificate, SamlCertificateOrigin, SamlCertificateType, + SamlInformation, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, diff --git a/packages_generated/iam/src/v1alpha1/marshalling.gen.ts b/packages_generated/iam/src/v1alpha1/marshalling.gen.ts index d063b7e0c..bedcd32a4 100644 --- a/packages_generated/iam/src/v1alpha1/marshalling.gen.ts +++ b/packages_generated/iam/src/v1alpha1/marshalling.gen.ts @@ -60,6 +60,7 @@ import type { RuleSpecs, Saml, SamlCertificate, + SamlInformation, SetGroupMembersRequest, SetOrganizationAliasRequest, SetRulesRequest, @@ -711,6 +712,19 @@ export const unmarshalSaml = (data: unknown): Saml => { } as Saml } +export const unmarshalSamlInformation = (data: unknown): SamlInformation => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'SamlInformation' failed as data isn't a dictionary.`, + ) + } + + return { + assertionConsumerServiceUrl: data.assertion_consumer_service_url, + entityId: data.entity_id, + } as SamlInformation +} + export const unmarshalSetRulesResponse = (data: unknown): SetRulesResponse => { if (!isJSONObject(data)) { throw new TypeError( diff --git a/packages_generated/iam/src/v1alpha1/types.gen.ts b/packages_generated/iam/src/v1alpha1/types.gen.ts index 8fbe0e035..4fbd0f141 100644 --- a/packages_generated/iam/src/v1alpha1/types.gen.ts +++ b/packages_generated/iam/src/v1alpha1/types.gen.ts @@ -1191,6 +1191,8 @@ export type GetSSHKeyRequest = { sshKeyId: string } +export type GetSamlInformationRequest = Record + export type GetUserConnectionsRequest = { /** * ID of the user to list connections for. @@ -1842,6 +1844,17 @@ export interface Saml { singleSignOnUrl: string } +export interface SamlInformation { + /** + * Entity ID. + */ + entityId: string + /** + * SAML Assertion Consumer Service url. + */ + assertionConsumerServiceUrl: string +} + export type SetGroupMembersRequest = { groupId: string userIds: string[]