/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { IntegrationCredentialSchemaV2 } from '../models/IntegrationCredentialSchemaV2'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; export class IntegrationCredentialsService { /** * Retrieve V2 integration credentials schema with sensitivity metadata. * * Query Parameters: * name (optional): Filter results by integration service name * * Args: * request: The HTTP request * org: Organization key identifier * * Returns: * Response: List of integration credentials schema with is_sensitive metadata. * @returns IntegrationCredentialSchemaV2 * @throws ApiError */ public static aiAccountOrgsIntegrationCredentialSchemaV2List({ org, name, unmaskSensitiveFields = false, }: { org: string, /** * Filter credentials by provider name (e.g., 'openai', 'google') */ name?: string, /** * If true and the requester is a platform admin for the org, returns full unmasked credential values. Restricted to credentials owned by the requested tenant (no main-platform fallback when unmasking). Ignored for non-admins. */ unmaskSensitiveFields?: boolean, }): CancelablePromise> { return __request(OpenAPI, { method: 'GET', url: '/api/ai-account/orgs/{org}/integration-credential/schema/v2/', path: { 'org': org, }, query: { 'name': name, 'unmask_sensitive_fields': unmaskSensitiveFields, }, }); } }