| // This file is auto-generated by @hey-api/openapi-ts |
| |
| import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client'; |
| import { client } from './client.gen'; |
| import type { DeleteComputeAllocationChangeRequestEventsByIdData, DeleteComputeAllocationChangeRequestEventsByIdErrors, DeleteComputeAllocationChangeRequestEventsByIdResponses, DeleteComputeAllocationChangeRequestsByIdData, DeleteComputeAllocationChangeRequestsByIdErrors, DeleteComputeAllocationChangeRequestsByIdResponses, DeleteComputeAllocationDiffsByIdData, DeleteComputeAllocationDiffsByIdErrors, DeleteComputeAllocationDiffsByIdResponses, DeleteComputeAllocationMembershipResourceOverridesByIdData, DeleteComputeAllocationMembershipResourceOverridesByIdErrors, DeleteComputeAllocationMembershipResourceOverridesByIdResponses, DeleteComputeAllocationMembershipsByIdData, DeleteComputeAllocationMembershipsByIdErrors, DeleteComputeAllocationMembershipsByIdResponses, DeleteComputeAllocationsByIdResourcesByResourceIdData, DeleteComputeAllocationsByIdResourcesByResourceIdErrors, DeleteComputeAllocationsByIdResourcesByResourceIdResponses, DeleteComputeAllocationUsagesByIdData, DeleteComputeAllocationUsagesByIdErrors, DeleteComputeAllocationUsagesByIdResponses, DeleteComputeClusterUsersByIdData, DeleteComputeClusterUsersByIdErrors, DeleteComputeClusterUsersByIdResponses, DeleteRolesByIdData, DeleteRolesByIdErrors, DeleteRolesByIdPrivilegesByKeyData, DeleteRolesByIdPrivilegesByKeyErrors, DeleteRolesByIdPrivilegesByKeyResponses, DeleteRolesByIdResponses, DeleteUserIdentitiesByIdData, DeleteUserIdentitiesByIdErrors, DeleteUserIdentitiesByIdResponses, DeleteUsersByIdPrivilegesByKeyData, DeleteUsersByIdPrivilegesByKeyErrors, DeleteUsersByIdPrivilegesByKeyResponses, DeleteUsersByIdRolesByRoleIdData, DeleteUsersByIdRolesByRoleIdErrors, DeleteUsersByIdRolesByRoleIdResponses, GetAuditEventsData, GetAuditEventsErrors, GetAuditEventsResponses, GetAuditSourcesData, GetAuditSourcesErrors, GetAuditSourcesResponses, GetAuditTracesByTraceIdData, GetAuditTracesByTraceIdErrors, GetAuditTracesByTraceIdResponses, GetAuditTracesData, GetAuditTracesErrors, GetAuditTracesResponses, GetComputeAllocationChangeRequestEventsByIdData, GetComputeAllocationChangeRequestEventsByIdErrors, GetComputeAllocationChangeRequestEventsByIdResponses, GetComputeAllocationChangeRequestsByIdData, GetComputeAllocationChangeRequestsByIdErrors, GetComputeAllocationChangeRequestsByIdEventsData, GetComputeAllocationChangeRequestsByIdEventsErrors, GetComputeAllocationChangeRequestsByIdEventsLatestData, GetComputeAllocationChangeRequestsByIdEventsLatestErrors, GetComputeAllocationChangeRequestsByIdEventsLatestResponses, GetComputeAllocationChangeRequestsByIdEventsResponses, GetComputeAllocationChangeRequestsByIdResponses, GetComputeAllocationDiffsByIdData, GetComputeAllocationDiffsByIdErrors, GetComputeAllocationDiffsByIdResponses, GetComputeAllocationMembershipResourceOverridesByIdData, GetComputeAllocationMembershipResourceOverridesByIdErrors, GetComputeAllocationMembershipResourceOverridesByIdResponses, GetComputeAllocationMembershipsByIdData, GetComputeAllocationMembershipsByIdErrors, GetComputeAllocationMembershipsByIdResourceOverridesData, GetComputeAllocationMembershipsByIdResourceOverridesErrors, GetComputeAllocationMembershipsByIdResourceOverridesResponses, GetComputeAllocationMembershipsByIdResponses, GetComputeAllocationResourceRatesByIdData, GetComputeAllocationResourceRatesByIdErrors, GetComputeAllocationResourceRatesByIdResponses, GetComputeAllocationResourcesByIdAllocationsData, GetComputeAllocationResourcesByIdAllocationsErrors, GetComputeAllocationResourcesByIdAllocationsResponses, GetComputeAllocationResourcesByIdData, GetComputeAllocationResourcesByIdErrors, GetComputeAllocationResourcesByIdMembershipOverridesData, GetComputeAllocationResourcesByIdMembershipOverridesErrors, GetComputeAllocationResourcesByIdMembershipOverridesResponses, GetComputeAllocationResourcesByIdRatesData, GetComputeAllocationResourcesByIdRatesEffectiveData, GetComputeAllocationResourcesByIdRatesEffectiveErrors, GetComputeAllocationResourcesByIdRatesEffectiveResponses, GetComputeAllocationResourcesByIdRatesErrors, GetComputeAllocationResourcesByIdRatesResponses, GetComputeAllocationResourcesByIdResponses, GetComputeAllocationResourcesData, GetComputeAllocationResourcesErrors, GetComputeAllocationResourcesResponses, GetComputeAllocationResourcesSummaryData, GetComputeAllocationResourcesSummaryErrors, GetComputeAllocationResourcesSummaryResponses, GetComputeAllocationsByIdChangeRequestsData, GetComputeAllocationsByIdChangeRequestsErrors, GetComputeAllocationsByIdChangeRequestsResponses, GetComputeAllocationsByIdData, GetComputeAllocationsByIdDiffsData, GetComputeAllocationsByIdDiffsErrors, GetComputeAllocationsByIdDiffsLatestData, GetComputeAllocationsByIdDiffsLatestErrors, GetComputeAllocationsByIdDiffsLatestResponses, GetComputeAllocationsByIdDiffsResponses, GetComputeAllocationsByIdErrors, GetComputeAllocationsByIdMembershipsData, GetComputeAllocationsByIdMembershipsErrors, GetComputeAllocationsByIdMembershipsResponses, GetComputeAllocationsByIdResourcesData, GetComputeAllocationsByIdResourcesErrors, GetComputeAllocationsByIdResourcesResponses, GetComputeAllocationsByIdResponses, GetComputeAllocationsByIdUsagesData, GetComputeAllocationsByIdUsagesErrors, GetComputeAllocationsByIdUsagesResponses, GetComputeAllocationsByIdUsagesTotalData, GetComputeAllocationsByIdUsagesTotalErrors, GetComputeAllocationsByIdUsagesTotalResponses, GetComputeAllocationsByIdUsersByUserIdUsagesTotalData, GetComputeAllocationsByIdUsersByUserIdUsagesTotalErrors, GetComputeAllocationsByIdUsersByUserIdUsagesTotalResponses, GetComputeAllocationsData, GetComputeAllocationsResponses, GetComputeAllocationUsagesByIdData, GetComputeAllocationUsagesByIdErrors, GetComputeAllocationUsagesByIdResponses, GetComputeClustersByIdData, GetComputeClustersByIdErrors, GetComputeClustersByIdResponses, GetComputeClustersByIdUsersByUserIdData, GetComputeClustersByIdUsersByUserIdErrors, GetComputeClustersByIdUsersByUserIdResponses, GetComputeClustersByIdUsersData, GetComputeClustersByIdUsersErrors, GetComputeClustersByIdUsersResponses, GetComputeClustersData, GetComputeClustersErrors, GetComputeClustersResponses, GetComputeClusterUsersByIdData, GetComputeClusterUsersByIdErrors, GetComputeClusterUsersByIdResponses, GetMeData, GetMeErrors, GetMeResponses, GetOrganizationsByIdData, GetOrganizationsByIdErrors, GetOrganizationsByIdResponses, GetOrganizationsData, GetOrganizationsResponses, GetPrivilegesByKeyHoldersData, GetPrivilegesByKeyHoldersErrors, GetPrivilegesByKeyHoldersResponses, GetPrivilegesCatalogData, GetPrivilegesCatalogErrors, GetPrivilegesCatalogResponses, GetProjectsByIdData, GetProjectsByIdErrors, GetProjectsByIdMembersData, GetProjectsByIdMembersErrors, GetProjectsByIdMembersResponses, GetProjectsByIdResponses, GetProjectsData, GetProjectsResponses, GetRolesByIdData, GetRolesByIdErrors, GetRolesByIdHoldersData, GetRolesByIdHoldersErrors, GetRolesByIdHoldersResponses, GetRolesByIdResponses, GetRolesData, GetRolesErrors, GetRolesResponses, GetUserIdentitiesByIdData, GetUserIdentitiesByIdErrors, GetUserIdentitiesByIdResponses, GetUserIdentitiesOidcSubjectsByOidcSubData, GetUserIdentitiesOidcSubjectsByOidcSubErrors, GetUserIdentitiesOidcSubjectsByOidcSubResponses, GetUserIdentitiesSourcesBySourceExternalByExternalIdData, GetUserIdentitiesSourcesBySourceExternalByExternalIdErrors, GetUserIdentitiesSourcesBySourceExternalByExternalIdResponses, GetUserPrivilegesData, GetUserPrivilegesErrors, GetUserPrivilegesResponses, GetUsersByIdChangeRequestsData, GetUsersByIdChangeRequestsErrors, GetUsersByIdChangeRequestsResponses, GetUsersByIdComputeAllocationMembershipsData, GetUsersByIdComputeAllocationMembershipsErrors, GetUsersByIdComputeAllocationMembershipsResponses, GetUsersByIdComputeAllocationUsagesData, GetUsersByIdComputeAllocationUsagesErrors, GetUsersByIdComputeAllocationUsagesResponses, GetUsersByIdComputeClusterUsersData, GetUsersByIdComputeClusterUsersErrors, GetUsersByIdComputeClusterUsersResponses, GetUsersByIdData, GetUsersByIdErrors, GetUsersByIdPrivilegesData, GetUsersByIdPrivilegesErrors, GetUsersByIdPrivilegesResponses, GetUsersByIdResponses, GetUsersByIdRolesData, GetUsersByIdRolesErrors, GetUsersByIdRolesResponses, GetUsersByIdUserIdentitiesData, GetUsersByIdUserIdentitiesErrors, GetUsersByIdUserIdentitiesResponses, GetUsersData, GetUsersResponses, PostComputeAllocationChangeRequestEventsData, PostComputeAllocationChangeRequestEventsErrors, PostComputeAllocationChangeRequestEventsResponses, PostComputeAllocationChangeRequestsData, PostComputeAllocationChangeRequestsErrors, PostComputeAllocationChangeRequestsResponses, PostComputeAllocationDiffsData, PostComputeAllocationDiffsErrors, PostComputeAllocationDiffsResponses, PostComputeAllocationMembershipResourceOverridesData, PostComputeAllocationMembershipResourceOverridesErrors, PostComputeAllocationMembershipResourceOverridesResponses, PostComputeAllocationMembershipsData, PostComputeAllocationMembershipsErrors, PostComputeAllocationMembershipsResponses, PostComputeAllocationResourceRatesData, PostComputeAllocationResourceRatesErrors, PostComputeAllocationResourceRatesResponses, PostComputeAllocationResourcesData, PostComputeAllocationResourcesErrors, PostComputeAllocationResourcesResponses, PostComputeAllocationsByIdResourcesData, PostComputeAllocationsByIdResourcesErrors, PostComputeAllocationsByIdResourcesResponses, PostComputeAllocationsData, PostComputeAllocationsErrors, PostComputeAllocationsResponses, PostComputeAllocationUsagesData, PostComputeAllocationUsagesErrors, PostComputeAllocationUsagesResponses, PostComputeClustersData, PostComputeClustersErrors, PostComputeClustersResponses, PostComputeClusterUsersData, PostComputeClusterUsersErrors, PostComputeClusterUsersResponses, PostOrganizationsData, PostOrganizationsErrors, PostOrganizationsResponses, PostProjectsData, PostProjectsErrors, PostProjectsResponses, PostRolesByIdPrivilegesData, PostRolesByIdPrivilegesErrors, PostRolesByIdPrivilegesResponses, PostRolesData, PostRolesErrors, PostRolesResponses, PostUserIdentitiesData, PostUserIdentitiesErrors, PostUserIdentitiesResponses, PostUsersByIdPrivilegesData, PostUsersByIdPrivilegesErrors, PostUsersByIdPrivilegesResponses, PostUsersByIdRolesData, PostUsersByIdRolesErrors, PostUsersByIdRolesResponses, PostUsersData, PostUsersErrors, PostUsersMergeData, PostUsersMergeErrors, PostUsersMergeResponses, PostUsersResponses, PutComputeAllocationChangeRequestsByIdData, PutComputeAllocationChangeRequestsByIdErrors, PutComputeAllocationChangeRequestsByIdResponses, PutComputeAllocationMembershipResourceOverridesByIdData, PutComputeAllocationMembershipResourceOverridesByIdErrors, PutComputeAllocationMembershipResourceOverridesByIdResponses, PutComputeAllocationMembershipsByIdData, PutComputeAllocationMembershipsByIdErrors, PutComputeAllocationMembershipsByIdResponses, PutComputeAllocationMembershipsByIdStatusData, PutComputeAllocationMembershipsByIdStatusErrors, PutComputeAllocationMembershipsByIdStatusResponses, PutComputeAllocationsByIdResourcesByResourceIdData, PutComputeAllocationsByIdResourcesByResourceIdErrors, PutComputeAllocationsByIdResourcesByResourceIdResponses, PutComputeClusterUsersByIdData, PutComputeClusterUsersByIdErrors, PutComputeClusterUsersByIdResponses, PutProjectsByIdStatusData, PutProjectsByIdStatusErrors, PutProjectsByIdStatusResponses, PutRolesByIdData, PutRolesByIdErrors, PutRolesByIdResponses, PutUserIdentitiesByIdData, PutUserIdentitiesByIdErrors, PutUserIdentitiesByIdResponses, PutUsersByIdData, PutUsersByIdErrors, PutUsersByIdResponses, PutUsersByIdStatusData, PutUsersByIdStatusErrors, PutUsersByIdStatusResponses } from './types.gen'; |
| |
| export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & { |
| /** |
| * You can provide a client instance returned by `createClient()` instead of |
| * individual options. This might be also useful if you want to implement a |
| * custom client. |
| */ |
| client?: Client; |
| /** |
| * You can pass arbitrary values through the `meta` object. This can be |
| * used to access values that aren't defined as part of the SDK function. |
| */ |
| meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta; |
| }; |
| |
| /** |
| * List audit events for a trace (optionally one span) |
| */ |
| export const getAuditEvents = <ThrowOnError extends boolean = false>(options: Options<GetAuditEventsData, ThrowOnError>): RequestResult<GetAuditEventsResponses, GetAuditEventsErrors, ThrowOnError> => (options.client ?? client).get<GetAuditEventsResponses, GetAuditEventsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/audit/events', |
| ...options |
| }); |
| |
| /** |
| * List distinct audit-event sources |
| */ |
| export const getAuditSources = <ThrowOnError extends boolean = false>(options?: Options<GetAuditSourcesData, ThrowOnError>): RequestResult<GetAuditSourcesResponses, GetAuditSourcesErrors, ThrowOnError> => (options?.client ?? client).get<GetAuditSourcesResponses, GetAuditSourcesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/audit/sources', |
| ...options |
| }); |
| |
| /** |
| * List audit traces with filters |
| * |
| * One row per distinct trace_id. `q` matches trace_id hex prefix or root-operation substring. |
| */ |
| export const getAuditTraces = <ThrowOnError extends boolean = false>(options?: Options<GetAuditTracesData, ThrowOnError>): RequestResult<GetAuditTracesResponses, GetAuditTracesErrors, ThrowOnError> => (options?.client ?? client).get<GetAuditTracesResponses, GetAuditTracesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/audit/traces', |
| ...options |
| }); |
| |
| /** |
| * Get a trace's nested span tree |
| */ |
| export const getAuditTracesByTraceId = <ThrowOnError extends boolean = false>(options: Options<GetAuditTracesByTraceIdData, ThrowOnError>): RequestResult<GetAuditTracesByTraceIdResponses, GetAuditTracesByTraceIdErrors, ThrowOnError> => (options.client ?? client).get<GetAuditTracesByTraceIdResponses, GetAuditTracesByTraceIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/audit/traces/{trace_id}', |
| ...options |
| }); |
| |
| /** |
| * Create a change request event |
| */ |
| export const postComputeAllocationChangeRequestEvents = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationChangeRequestEventsData, ThrowOnError>): RequestResult<PostComputeAllocationChangeRequestEventsResponses, PostComputeAllocationChangeRequestEventsErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationChangeRequestEventsResponses, PostComputeAllocationChangeRequestEventsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-request-events', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a change request event |
| */ |
| export const deleteComputeAllocationChangeRequestEventsById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationChangeRequestEventsByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationChangeRequestEventsByIdResponses, DeleteComputeAllocationChangeRequestEventsByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationChangeRequestEventsByIdResponses, DeleteComputeAllocationChangeRequestEventsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-request-events/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a change request event |
| */ |
| export const getComputeAllocationChangeRequestEventsById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationChangeRequestEventsByIdData, ThrowOnError>): RequestResult<GetComputeAllocationChangeRequestEventsByIdResponses, GetComputeAllocationChangeRequestEventsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationChangeRequestEventsByIdResponses, GetComputeAllocationChangeRequestEventsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-request-events/{id}', |
| ...options |
| }); |
| |
| /** |
| * Create a compute allocation change request |
| */ |
| export const postComputeAllocationChangeRequests = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationChangeRequestsData, ThrowOnError>): RequestResult<PostComputeAllocationChangeRequestsResponses, PostComputeAllocationChangeRequestsErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationChangeRequestsResponses, PostComputeAllocationChangeRequestsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a compute allocation change request |
| */ |
| export const deleteComputeAllocationChangeRequestsById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationChangeRequestsByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationChangeRequestsByIdResponses, DeleteComputeAllocationChangeRequestsByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationChangeRequestsByIdResponses, DeleteComputeAllocationChangeRequestsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a compute allocation change request |
| */ |
| export const getComputeAllocationChangeRequestsById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationChangeRequestsByIdData, ThrowOnError>): RequestResult<GetComputeAllocationChangeRequestsByIdResponses, GetComputeAllocationChangeRequestsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationChangeRequestsByIdResponses, GetComputeAllocationChangeRequestsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a compute allocation change request |
| */ |
| export const putComputeAllocationChangeRequestsById = <ThrowOnError extends boolean = false>(options: Options<PutComputeAllocationChangeRequestsByIdData, ThrowOnError>): RequestResult<PutComputeAllocationChangeRequestsByIdResponses, PutComputeAllocationChangeRequestsByIdErrors, ThrowOnError> => (options.client ?? client).put<PutComputeAllocationChangeRequestsByIdResponses, PutComputeAllocationChangeRequestsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List events for a change request |
| */ |
| export const getComputeAllocationChangeRequestsByIdEvents = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationChangeRequestsByIdEventsData, ThrowOnError>): RequestResult<GetComputeAllocationChangeRequestsByIdEventsResponses, GetComputeAllocationChangeRequestsByIdEventsErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationChangeRequestsByIdEventsResponses, GetComputeAllocationChangeRequestsByIdEventsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests/{id}/events', |
| ...options |
| }); |
| |
| /** |
| * Get the most recent event for a change request |
| */ |
| export const getComputeAllocationChangeRequestsByIdEventsLatest = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationChangeRequestsByIdEventsLatestData, ThrowOnError>): RequestResult<GetComputeAllocationChangeRequestsByIdEventsLatestResponses, GetComputeAllocationChangeRequestsByIdEventsLatestErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationChangeRequestsByIdEventsLatestResponses, GetComputeAllocationChangeRequestsByIdEventsLatestErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-change-requests/{id}/events/latest', |
| ...options |
| }); |
| |
| /** |
| * Create a compute allocation diff |
| * |
| * Records a discrete change against a compute allocation (e.g. USAGE_UPDATE or ALLOCATION_STATUS_CHANGE). |
| */ |
| export const postComputeAllocationDiffs = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationDiffsData, ThrowOnError>): RequestResult<PostComputeAllocationDiffsResponses, PostComputeAllocationDiffsErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationDiffsResponses, PostComputeAllocationDiffsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-diffs', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a compute allocation diff |
| */ |
| export const deleteComputeAllocationDiffsById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationDiffsByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationDiffsByIdResponses, DeleteComputeAllocationDiffsByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationDiffsByIdResponses, DeleteComputeAllocationDiffsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-diffs/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a compute allocation diff |
| */ |
| export const getComputeAllocationDiffsById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationDiffsByIdData, ThrowOnError>): RequestResult<GetComputeAllocationDiffsByIdResponses, GetComputeAllocationDiffsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationDiffsByIdResponses, GetComputeAllocationDiffsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-diffs/{id}', |
| ...options |
| }); |
| |
| /** |
| * Create a membership resource override |
| */ |
| export const postComputeAllocationMembershipResourceOverrides = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationMembershipResourceOverridesData, ThrowOnError>): RequestResult<PostComputeAllocationMembershipResourceOverridesResponses, PostComputeAllocationMembershipResourceOverridesErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationMembershipResourceOverridesResponses, PostComputeAllocationMembershipResourceOverridesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-membership-resource-overrides', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a membership resource override |
| */ |
| export const deleteComputeAllocationMembershipResourceOverridesById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationMembershipResourceOverridesByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationMembershipResourceOverridesByIdResponses, DeleteComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationMembershipResourceOverridesByIdResponses, DeleteComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-membership-resource-overrides/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a membership resource override |
| */ |
| export const getComputeAllocationMembershipResourceOverridesById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationMembershipResourceOverridesByIdData, ThrowOnError>): RequestResult<GetComputeAllocationMembershipResourceOverridesByIdResponses, GetComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationMembershipResourceOverridesByIdResponses, GetComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-membership-resource-overrides/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a membership resource override |
| */ |
| export const putComputeAllocationMembershipResourceOverridesById = <ThrowOnError extends boolean = false>(options: Options<PutComputeAllocationMembershipResourceOverridesByIdData, ThrowOnError>): RequestResult<PutComputeAllocationMembershipResourceOverridesByIdResponses, PutComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError> => (options.client ?? client).put<PutComputeAllocationMembershipResourceOverridesByIdResponses, PutComputeAllocationMembershipResourceOverridesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-membership-resource-overrides/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Create a compute allocation membership |
| */ |
| export const postComputeAllocationMemberships = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationMembershipsData, ThrowOnError>): RequestResult<PostComputeAllocationMembershipsResponses, PostComputeAllocationMembershipsErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationMembershipsResponses, PostComputeAllocationMembershipsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a compute allocation membership |
| */ |
| export const deleteComputeAllocationMembershipsById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationMembershipsByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationMembershipsByIdResponses, DeleteComputeAllocationMembershipsByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationMembershipsByIdResponses, DeleteComputeAllocationMembershipsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a compute allocation membership |
| */ |
| export const getComputeAllocationMembershipsById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationMembershipsByIdData, ThrowOnError>): RequestResult<GetComputeAllocationMembershipsByIdResponses, GetComputeAllocationMembershipsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationMembershipsByIdResponses, GetComputeAllocationMembershipsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a compute allocation membership |
| */ |
| export const putComputeAllocationMembershipsById = <ThrowOnError extends boolean = false>(options: Options<PutComputeAllocationMembershipsByIdData, ThrowOnError>): RequestResult<PutComputeAllocationMembershipsByIdResponses, PutComputeAllocationMembershipsByIdErrors, ThrowOnError> => (options.client ?? client).put<PutComputeAllocationMembershipsByIdResponses, PutComputeAllocationMembershipsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List resource overrides for a membership |
| */ |
| export const getComputeAllocationMembershipsByIdResourceOverrides = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationMembershipsByIdResourceOverridesData, ThrowOnError>): RequestResult<GetComputeAllocationMembershipsByIdResourceOverridesResponses, GetComputeAllocationMembershipsByIdResourceOverridesErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationMembershipsByIdResourceOverridesResponses, GetComputeAllocationMembershipsByIdResourceOverridesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships/{id}/resource-overrides', |
| ...options |
| }); |
| |
| /** |
| * Update a membership's status |
| */ |
| export const putComputeAllocationMembershipsByIdStatus = <ThrowOnError extends boolean = false>(options: Options<PutComputeAllocationMembershipsByIdStatusData, ThrowOnError>): RequestResult<PutComputeAllocationMembershipsByIdStatusResponses, PutComputeAllocationMembershipsByIdStatusErrors, ThrowOnError> => (options.client ?? client).put<PutComputeAllocationMembershipsByIdStatusResponses, PutComputeAllocationMembershipsByIdStatusErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-memberships/{id}/status', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Create a compute allocation resource rate |
| * |
| * Records the SU rate (e.g. SU per CPU-hour) for a resource over a time window. |
| */ |
| export const postComputeAllocationResourceRates = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationResourceRatesData, ThrowOnError>): RequestResult<PostComputeAllocationResourceRatesResponses, PostComputeAllocationResourceRatesErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationResourceRatesResponses, PostComputeAllocationResourceRatesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resource-rates', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a compute allocation resource rate |
| */ |
| export const getComputeAllocationResourceRatesById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourceRatesByIdData, ThrowOnError>): RequestResult<GetComputeAllocationResourceRatesByIdResponses, GetComputeAllocationResourceRatesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourceRatesByIdResponses, GetComputeAllocationResourceRatesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resource-rates/{id}', |
| ...options |
| }); |
| |
| /** |
| * List all compute allocation resources |
| */ |
| export const getComputeAllocationResources = <ThrowOnError extends boolean = false>(options?: Options<GetComputeAllocationResourcesData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesResponses, GetComputeAllocationResourcesErrors, ThrowOnError> => (options?.client ?? client).get<GetComputeAllocationResourcesResponses, GetComputeAllocationResourcesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources', |
| ...options |
| }); |
| |
| /** |
| * Create a compute allocation resource |
| * |
| * Defines a resource (partition) — e.g. a CPU or GPU partition that allocations can be attached to. |
| */ |
| export const postComputeAllocationResources = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationResourcesData, ThrowOnError>): RequestResult<PostComputeAllocationResourcesResponses, PostComputeAllocationResourcesErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationResourcesResponses, PostComputeAllocationResourcesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a compute allocation resource |
| */ |
| export const getComputeAllocationResourcesById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourcesByIdData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesByIdResponses, GetComputeAllocationResourcesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourcesByIdResponses, GetComputeAllocationResourcesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/{id}', |
| ...options |
| }); |
| |
| /** |
| * List compute allocations attached to a resource |
| */ |
| export const getComputeAllocationResourcesByIdAllocations = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourcesByIdAllocationsData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesByIdAllocationsResponses, GetComputeAllocationResourcesByIdAllocationsErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourcesByIdAllocationsResponses, GetComputeAllocationResourcesByIdAllocationsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/{id}/allocations', |
| ...options |
| }); |
| |
| /** |
| * List membership overrides referencing a resource |
| */ |
| export const getComputeAllocationResourcesByIdMembershipOverrides = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourcesByIdMembershipOverridesData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesByIdMembershipOverridesResponses, GetComputeAllocationResourcesByIdMembershipOverridesErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourcesByIdMembershipOverridesResponses, GetComputeAllocationResourcesByIdMembershipOverridesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/{id}/membership-overrides', |
| ...options |
| }); |
| |
| /** |
| * List rate history for a resource |
| */ |
| export const getComputeAllocationResourcesByIdRates = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourcesByIdRatesData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesByIdRatesResponses, GetComputeAllocationResourcesByIdRatesErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourcesByIdRatesResponses, GetComputeAllocationResourcesByIdRatesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/{id}/rates', |
| ...options |
| }); |
| |
| /** |
| * Get the effective rate for a resource at a given time |
| * |
| * Returns the rate whose `[start_time, end_time)` window contains the `at` timestamp. Defaults to now when `at` is omitted. |
| */ |
| export const getComputeAllocationResourcesByIdRatesEffective = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationResourcesByIdRatesEffectiveData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesByIdRatesEffectiveResponses, GetComputeAllocationResourcesByIdRatesEffectiveErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationResourcesByIdRatesEffectiveResponses, GetComputeAllocationResourcesByIdRatesEffectiveErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/{id}/rates/effective', |
| ...options |
| }); |
| |
| /** |
| * List compute allocation resources with aggregate figures |
| * |
| * Each row is a resource plus its allocation count, total allocated amount, total used SUs, and rate count. |
| */ |
| export const getComputeAllocationResourcesSummary = <ThrowOnError extends boolean = false>(options?: Options<GetComputeAllocationResourcesSummaryData, ThrowOnError>): RequestResult<GetComputeAllocationResourcesSummaryResponses, GetComputeAllocationResourcesSummaryErrors, ThrowOnError> => (options?.client ?? client).get<GetComputeAllocationResourcesSummaryResponses, GetComputeAllocationResourcesSummaryErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-resources/summary', |
| ...options |
| }); |
| |
| /** |
| * Create a compute allocation usage record |
| */ |
| export const postComputeAllocationUsages = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationUsagesData, ThrowOnError>): RequestResult<PostComputeAllocationUsagesResponses, PostComputeAllocationUsagesErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationUsagesResponses, PostComputeAllocationUsagesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-usages', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a compute allocation usage record |
| */ |
| export const deleteComputeAllocationUsagesById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationUsagesByIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationUsagesByIdResponses, DeleteComputeAllocationUsagesByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationUsagesByIdResponses, DeleteComputeAllocationUsagesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-usages/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a compute allocation usage record |
| */ |
| export const getComputeAllocationUsagesById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationUsagesByIdData, ThrowOnError>): RequestResult<GetComputeAllocationUsagesByIdResponses, GetComputeAllocationUsagesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationUsagesByIdResponses, GetComputeAllocationUsagesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocation-usages/{id}', |
| ...options |
| }); |
| |
| /** |
| * List compute allocations (filtered + paginated) |
| */ |
| export const getComputeAllocations = <ThrowOnError extends boolean = false>(options?: Options<GetComputeAllocationsData, ThrowOnError>): RequestResult<GetComputeAllocationsResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetComputeAllocationsResponses, unknown, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations', |
| ...options |
| }); |
| |
| /** |
| * Create a compute allocation |
| */ |
| export const postComputeAllocations = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationsData, ThrowOnError>): RequestResult<PostComputeAllocationsResponses, PostComputeAllocationsErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationsResponses, PostComputeAllocationsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a compute allocation by ID |
| */ |
| export const getComputeAllocationsById = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdResponses, GetComputeAllocationsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdResponses, GetComputeAllocationsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}', |
| ...options |
| }); |
| |
| /** |
| * List change requests for a compute allocation |
| */ |
| export const getComputeAllocationsByIdChangeRequests = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdChangeRequestsData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdChangeRequestsResponses, GetComputeAllocationsByIdChangeRequestsErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdChangeRequestsResponses, GetComputeAllocationsByIdChangeRequestsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/change-requests', |
| ...options |
| }); |
| |
| /** |
| * List diffs for a compute allocation |
| */ |
| export const getComputeAllocationsByIdDiffs = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdDiffsData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdDiffsResponses, GetComputeAllocationsByIdDiffsErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdDiffsResponses, GetComputeAllocationsByIdDiffsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/diffs', |
| ...options |
| }); |
| |
| /** |
| * Get the most recent diff for a compute allocation |
| */ |
| export const getComputeAllocationsByIdDiffsLatest = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdDiffsLatestData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdDiffsLatestResponses, GetComputeAllocationsByIdDiffsLatestErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdDiffsLatestResponses, GetComputeAllocationsByIdDiffsLatestErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/diffs/latest', |
| ...options |
| }); |
| |
| /** |
| * List members of a compute allocation |
| */ |
| export const getComputeAllocationsByIdMemberships = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdMembershipsData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdMembershipsResponses, GetComputeAllocationsByIdMembershipsErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdMembershipsResponses, GetComputeAllocationsByIdMembershipsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/memberships', |
| ...options |
| }); |
| |
| /** |
| * List resources attached to a compute allocation |
| */ |
| export const getComputeAllocationsByIdResources = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdResourcesData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdResourcesResponses, GetComputeAllocationsByIdResourcesErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdResourcesResponses, GetComputeAllocationsByIdResourcesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/resources', |
| ...options |
| }); |
| |
| /** |
| * Attach a resource to a compute allocation |
| * |
| * Creates a mapping between a compute allocation and a resource (partition) with a specific amount and wall-clock time grant. |
| */ |
| export const postComputeAllocationsByIdResources = <ThrowOnError extends boolean = false>(options: Options<PostComputeAllocationsByIdResourcesData, ThrowOnError>): RequestResult<PostComputeAllocationsByIdResourcesResponses, PostComputeAllocationsByIdResourcesErrors, ThrowOnError> => (options.client ?? client).post<PostComputeAllocationsByIdResourcesResponses, PostComputeAllocationsByIdResourcesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/resources', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Detach a resource from a compute allocation |
| */ |
| export const deleteComputeAllocationsByIdResourcesByResourceId = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeAllocationsByIdResourcesByResourceIdData, ThrowOnError>): RequestResult<DeleteComputeAllocationsByIdResourcesByResourceIdResponses, DeleteComputeAllocationsByIdResourcesByResourceIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeAllocationsByIdResourcesByResourceIdResponses, DeleteComputeAllocationsByIdResourcesByResourceIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/resources/{resourceId}', |
| ...options |
| }); |
| |
| /** |
| * Update a compute allocation -> resource mapping |
| */ |
| export const putComputeAllocationsByIdResourcesByResourceId = <ThrowOnError extends boolean = false>(options: Options<PutComputeAllocationsByIdResourcesByResourceIdData, ThrowOnError>): RequestResult<PutComputeAllocationsByIdResourcesByResourceIdResponses, PutComputeAllocationsByIdResourcesByResourceIdErrors, ThrowOnError> => (options.client ?? client).put<PutComputeAllocationsByIdResourcesByResourceIdResponses, PutComputeAllocationsByIdResourcesByResourceIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/resources/{resourceId}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List usages for a compute allocation |
| */ |
| export const getComputeAllocationsByIdUsages = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdUsagesData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdUsagesResponses, GetComputeAllocationsByIdUsagesErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdUsagesResponses, GetComputeAllocationsByIdUsagesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/usages', |
| ...options |
| }); |
| |
| /** |
| * Get total SU usage for a compute allocation |
| */ |
| export const getComputeAllocationsByIdUsagesTotal = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdUsagesTotalData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdUsagesTotalResponses, GetComputeAllocationsByIdUsagesTotalErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdUsagesTotalResponses, GetComputeAllocationsByIdUsagesTotalErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/usages/total', |
| ...options |
| }); |
| |
| /** |
| * Get total SU usage for a user within a compute allocation |
| */ |
| export const getComputeAllocationsByIdUsersByUserIdUsagesTotal = <ThrowOnError extends boolean = false>(options: Options<GetComputeAllocationsByIdUsersByUserIdUsagesTotalData, ThrowOnError>): RequestResult<GetComputeAllocationsByIdUsersByUserIdUsagesTotalResponses, GetComputeAllocationsByIdUsersByUserIdUsagesTotalErrors, ThrowOnError> => (options.client ?? client).get<GetComputeAllocationsByIdUsersByUserIdUsagesTotalResponses, GetComputeAllocationsByIdUsersByUserIdUsagesTotalErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-allocations/{id}/users/{userId}/usages/total', |
| ...options |
| }); |
| |
| /** |
| * Create a compute cluster user |
| */ |
| export const postComputeClusterUsers = <ThrowOnError extends boolean = false>(options: Options<PostComputeClusterUsersData, ThrowOnError>): RequestResult<PostComputeClusterUsersResponses, PostComputeClusterUsersErrors, ThrowOnError> => (options.client ?? client).post<PostComputeClusterUsersResponses, PostComputeClusterUsersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-cluster-users', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a compute cluster user |
| */ |
| export const deleteComputeClusterUsersById = <ThrowOnError extends boolean = false>(options: Options<DeleteComputeClusterUsersByIdData, ThrowOnError>): RequestResult<DeleteComputeClusterUsersByIdResponses, DeleteComputeClusterUsersByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteComputeClusterUsersByIdResponses, DeleteComputeClusterUsersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-cluster-users/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a compute cluster user by ID |
| */ |
| export const getComputeClusterUsersById = <ThrowOnError extends boolean = false>(options: Options<GetComputeClusterUsersByIdData, ThrowOnError>): RequestResult<GetComputeClusterUsersByIdResponses, GetComputeClusterUsersByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeClusterUsersByIdResponses, GetComputeClusterUsersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-cluster-users/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a compute cluster user |
| */ |
| export const putComputeClusterUsersById = <ThrowOnError extends boolean = false>(options: Options<PutComputeClusterUsersByIdData, ThrowOnError>): RequestResult<PutComputeClusterUsersByIdResponses, PutComputeClusterUsersByIdErrors, ThrowOnError> => (options.client ?? client).put<PutComputeClusterUsersByIdResponses, PutComputeClusterUsersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-cluster-users/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List compute clusters |
| */ |
| export const getComputeClusters = <ThrowOnError extends boolean = false>(options?: Options<GetComputeClustersData, ThrowOnError>): RequestResult<GetComputeClustersResponses, GetComputeClustersErrors, ThrowOnError> => (options?.client ?? client).get<GetComputeClustersResponses, GetComputeClustersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-clusters', |
| ...options |
| }); |
| |
| /** |
| * Create a compute cluster |
| */ |
| export const postComputeClusters = <ThrowOnError extends boolean = false>(options: Options<PostComputeClustersData, ThrowOnError>): RequestResult<PostComputeClustersResponses, PostComputeClustersErrors, ThrowOnError> => (options.client ?? client).post<PostComputeClustersResponses, PostComputeClustersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-clusters', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a compute cluster by ID |
| */ |
| export const getComputeClustersById = <ThrowOnError extends boolean = false>(options: Options<GetComputeClustersByIdData, ThrowOnError>): RequestResult<GetComputeClustersByIdResponses, GetComputeClustersByIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeClustersByIdResponses, GetComputeClustersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-clusters/{id}', |
| ...options |
| }); |
| |
| /** |
| * List users on a compute cluster |
| */ |
| export const getComputeClustersByIdUsers = <ThrowOnError extends boolean = false>(options: Options<GetComputeClustersByIdUsersData, ThrowOnError>): RequestResult<GetComputeClustersByIdUsersResponses, GetComputeClustersByIdUsersErrors, ThrowOnError> => (options.client ?? client).get<GetComputeClustersByIdUsersResponses, GetComputeClustersByIdUsersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-clusters/{id}/users', |
| ...options |
| }); |
| |
| /** |
| * Get a compute cluster user by (cluster, user) pair |
| */ |
| export const getComputeClustersByIdUsersByUserId = <ThrowOnError extends boolean = false>(options: Options<GetComputeClustersByIdUsersByUserIdData, ThrowOnError>): RequestResult<GetComputeClustersByIdUsersByUserIdResponses, GetComputeClustersByIdUsersByUserIdErrors, ThrowOnError> => (options.client ?? client).get<GetComputeClustersByIdUsersByUserIdResponses, GetComputeClustersByIdUsersByUserIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/compute-clusters/{id}/users/{userId}', |
| ...options |
| }); |
| |
| /** |
| * Get the caller's user record, effective privileges, and roles |
| * |
| * Roles are the caller's own grants; unlike /users/{id}/roles this needs no admin privilege. |
| */ |
| export const getMe = <ThrowOnError extends boolean = false>(options?: Options<GetMeData, ThrowOnError>): RequestResult<GetMeResponses, GetMeErrors, ThrowOnError> => (options?.client ?? client).get<GetMeResponses, GetMeErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/me', |
| ...options |
| }); |
| |
| /** |
| * List organizations (paginated) |
| */ |
| export const getOrganizations = <ThrowOnError extends boolean = false>(options?: Options<GetOrganizationsData, ThrowOnError>): RequestResult<GetOrganizationsResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetOrganizationsResponses, unknown, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/organizations', |
| ...options |
| }); |
| |
| /** |
| * Create an organization |
| */ |
| export const postOrganizations = <ThrowOnError extends boolean = false>(options: Options<PostOrganizationsData, ThrowOnError>): RequestResult<PostOrganizationsResponses, PostOrganizationsErrors, ThrowOnError> => (options.client ?? client).post<PostOrganizationsResponses, PostOrganizationsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/organizations', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get an organization by ID |
| */ |
| export const getOrganizationsById = <ThrowOnError extends boolean = false>(options: Options<GetOrganizationsByIdData, ThrowOnError>): RequestResult<GetOrganizationsByIdResponses, GetOrganizationsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetOrganizationsByIdResponses, GetOrganizationsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/organizations/{id}', |
| ...options |
| }); |
| |
| /** |
| * List direct holders of a privilege |
| * |
| * Role-derived holders are NOT listed here. |
| */ |
| export const getPrivilegesByKeyHolders = <ThrowOnError extends boolean = false>(options: Options<GetPrivilegesByKeyHoldersData, ThrowOnError>): RequestResult<GetPrivilegesByKeyHoldersResponses, GetPrivilegesByKeyHoldersErrors, ThrowOnError> => (options.client ?? client).get<GetPrivilegesByKeyHoldersResponses, GetPrivilegesByKeyHoldersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/privileges/{key}/holders', |
| ...options |
| }); |
| |
| /** |
| * List the declared privilege catalog |
| */ |
| export const getPrivilegesCatalog = <ThrowOnError extends boolean = false>(options?: Options<GetPrivilegesCatalogData, ThrowOnError>): RequestResult<GetPrivilegesCatalogResponses, GetPrivilegesCatalogErrors, ThrowOnError> => (options?.client ?? client).get<GetPrivilegesCatalogResponses, GetPrivilegesCatalogErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/privileges/catalog', |
| ...options |
| }); |
| |
| /** |
| * List projects (filtered + paginated, PI joined) |
| */ |
| export const getProjects = <ThrowOnError extends boolean = false>(options?: Options<GetProjectsData, ThrowOnError>): RequestResult<GetProjectsResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetProjectsResponses, unknown, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/projects', |
| ...options |
| }); |
| |
| /** |
| * Create a project |
| */ |
| export const postProjects = <ThrowOnError extends boolean = false>(options: Options<PostProjectsData, ThrowOnError>): RequestResult<PostProjectsResponses, PostProjectsErrors, ThrowOnError> => (options.client ?? client).post<PostProjectsResponses, PostProjectsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/projects', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a project by ID |
| */ |
| export const getProjectsById = <ThrowOnError extends boolean = false>(options: Options<GetProjectsByIdData, ThrowOnError>): RequestResult<GetProjectsByIdResponses, GetProjectsByIdErrors, ThrowOnError> => (options.client ?? client).get<GetProjectsByIdResponses, GetProjectsByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/projects/{id}', |
| ...options |
| }); |
| |
| /** |
| * List project members (one row per distinct user, with allocations) |
| */ |
| export const getProjectsByIdMembers = <ThrowOnError extends boolean = false>(options: Options<GetProjectsByIdMembersData, ThrowOnError>): RequestResult<GetProjectsByIdMembersResponses, GetProjectsByIdMembersErrors, ThrowOnError> => (options.client ?? client).get<GetProjectsByIdMembersResponses, GetProjectsByIdMembersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/projects/{id}/members', |
| ...options |
| }); |
| |
| /** |
| * Update a project's status |
| */ |
| export const putProjectsByIdStatus = <ThrowOnError extends boolean = false>(options: Options<PutProjectsByIdStatusData, ThrowOnError>): RequestResult<PutProjectsByIdStatusResponses, PutProjectsByIdStatusErrors, ThrowOnError> => (options.client ?? client).put<PutProjectsByIdStatusResponses, PutProjectsByIdStatusErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/projects/{id}/status', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List all roles |
| */ |
| export const getRoles = <ThrowOnError extends boolean = false>(options?: Options<GetRolesData, ThrowOnError>): RequestResult<GetRolesResponses, GetRolesErrors, ThrowOnError> => (options?.client ?? client).get<GetRolesResponses, GetRolesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles', |
| ...options |
| }); |
| |
| /** |
| * Create a role |
| */ |
| export const postRoles = <ThrowOnError extends boolean = false>(options: Options<PostRolesData, ThrowOnError>): RequestResult<PostRolesResponses, PostRolesErrors, ThrowOnError> => (options.client ?? client).post<PostRolesResponses, PostRolesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a role |
| * |
| * System roles cannot be deleted. CASCADE drops every assignment of this role. |
| */ |
| export const deleteRolesById = <ThrowOnError extends boolean = false>(options: Options<DeleteRolesByIdData, ThrowOnError>): RequestResult<DeleteRolesByIdResponses, DeleteRolesByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteRolesByIdResponses, DeleteRolesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a role with its privilege bundle |
| */ |
| export const getRolesById = <ThrowOnError extends boolean = false>(options: Options<GetRolesByIdData, ThrowOnError>): RequestResult<GetRolesByIdResponses, GetRolesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetRolesByIdResponses, GetRolesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update role name / description |
| * |
| * System roles cannot be renamed. |
| */ |
| export const putRolesById = <ThrowOnError extends boolean = false>(options: Options<PutRolesByIdData, ThrowOnError>): RequestResult<PutRolesByIdResponses, PutRolesByIdErrors, ThrowOnError> => (options.client ?? client).put<PutRolesByIdResponses, PutRolesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List users holding the role |
| */ |
| export const getRolesByIdHolders = <ThrowOnError extends boolean = false>(options: Options<GetRolesByIdHoldersData, ThrowOnError>): RequestResult<GetRolesByIdHoldersResponses, GetRolesByIdHoldersErrors, ThrowOnError> => (options.client ?? client).get<GetRolesByIdHoldersResponses, GetRolesByIdHoldersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}/holders', |
| ...options |
| }); |
| |
| /** |
| * Add a privilege to a role |
| * |
| * The new privilege propagates to every current holder. |
| */ |
| export const postRolesByIdPrivileges = <ThrowOnError extends boolean = false>(options: Options<PostRolesByIdPrivilegesData, ThrowOnError>): RequestResult<PostRolesByIdPrivilegesResponses, PostRolesByIdPrivilegesErrors, ThrowOnError> => (options.client ?? client).post<PostRolesByIdPrivilegesResponses, PostRolesByIdPrivilegesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}/privileges', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Remove a privilege from a role |
| * |
| * Removal propagates to every holder. Refuses to remove `privileges:grant` or `roles:manage` if that would leave no role anywhere carrying it. |
| */ |
| export const deleteRolesByIdPrivilegesByKey = <ThrowOnError extends boolean = false>(options: Options<DeleteRolesByIdPrivilegesByKeyData, ThrowOnError>): RequestResult<DeleteRolesByIdPrivilegesByKeyResponses, DeleteRolesByIdPrivilegesByKeyErrors, ThrowOnError> => (options.client ?? client).delete<DeleteRolesByIdPrivilegesByKeyResponses, DeleteRolesByIdPrivilegesByKeyErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/roles/{id}/privileges/{key}', |
| ...options |
| }); |
| |
| /** |
| * Create a user identity |
| */ |
| export const postUserIdentities = <ThrowOnError extends boolean = false>(options: Options<PostUserIdentitiesData, ThrowOnError>): RequestResult<PostUserIdentitiesResponses, PostUserIdentitiesErrors, ThrowOnError> => (options.client ?? client).post<PostUserIdentitiesResponses, PostUserIdentitiesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Delete a user identity |
| */ |
| export const deleteUserIdentitiesById = <ThrowOnError extends boolean = false>(options: Options<DeleteUserIdentitiesByIdData, ThrowOnError>): RequestResult<DeleteUserIdentitiesByIdResponses, DeleteUserIdentitiesByIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteUserIdentitiesByIdResponses, DeleteUserIdentitiesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities/{id}', |
| ...options |
| }); |
| |
| /** |
| * Get a user identity |
| */ |
| export const getUserIdentitiesById = <ThrowOnError extends boolean = false>(options: Options<GetUserIdentitiesByIdData, ThrowOnError>): RequestResult<GetUserIdentitiesByIdResponses, GetUserIdentitiesByIdErrors, ThrowOnError> => (options.client ?? client).get<GetUserIdentitiesByIdResponses, GetUserIdentitiesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a user identity |
| */ |
| export const putUserIdentitiesById = <ThrowOnError extends boolean = false>(options: Options<PutUserIdentitiesByIdData, ThrowOnError>): RequestResult<PutUserIdentitiesByIdResponses, PutUserIdentitiesByIdErrors, ThrowOnError> => (options.client ?? client).put<PutUserIdentitiesByIdResponses, PutUserIdentitiesByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a user identity by its OIDC subject claim |
| */ |
| export const getUserIdentitiesOidcSubjectsByOidcSub = <ThrowOnError extends boolean = false>(options: Options<GetUserIdentitiesOidcSubjectsByOidcSubData, ThrowOnError>): RequestResult<GetUserIdentitiesOidcSubjectsByOidcSubResponses, GetUserIdentitiesOidcSubjectsByOidcSubErrors, ThrowOnError> => (options.client ?? client).get<GetUserIdentitiesOidcSubjectsByOidcSubResponses, GetUserIdentitiesOidcSubjectsByOidcSubErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities/oidc-subjects/{oidcSub}', |
| ...options |
| }); |
| |
| /** |
| * Get a user identity by source and external ID |
| */ |
| export const getUserIdentitiesSourcesBySourceExternalByExternalId = <ThrowOnError extends boolean = false>(options: Options<GetUserIdentitiesSourcesBySourceExternalByExternalIdData, ThrowOnError>): RequestResult<GetUserIdentitiesSourcesBySourceExternalByExternalIdResponses, GetUserIdentitiesSourcesBySourceExternalByExternalIdErrors, ThrowOnError> => (options.client ?? client).get<GetUserIdentitiesSourcesBySourceExternalByExternalIdResponses, GetUserIdentitiesSourcesBySourceExternalByExternalIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user-identities/sources/{source}/external/{externalId}', |
| ...options |
| }); |
| |
| /** |
| * Get caller's effective privileges |
| * |
| * Effective set is direct grants UNION every privilege carried by every role the caller holds. |
| */ |
| export const getUserPrivileges = <ThrowOnError extends boolean = false>(options?: Options<GetUserPrivilegesData, ThrowOnError>): RequestResult<GetUserPrivilegesResponses, GetUserPrivilegesErrors, ThrowOnError> => (options?.client ?? client).get<GetUserPrivilegesResponses, GetUserPrivilegesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/user/privileges', |
| ...options |
| }); |
| |
| /** |
| * List users (paginated) |
| */ |
| export const getUsers = <ThrowOnError extends boolean = false>(options?: Options<GetUsersData, ThrowOnError>): RequestResult<GetUsersResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetUsersResponses, unknown, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users', |
| ...options |
| }); |
| |
| /** |
| * Create a user |
| */ |
| export const postUsers = <ThrowOnError extends boolean = false>(options: Options<PostUsersData, ThrowOnError>): RequestResult<PostUsersResponses, PostUsersErrors, ThrowOnError> => (options.client ?? client).post<PostUsersResponses, PostUsersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Get a user by ID |
| */ |
| export const getUsersById = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdData, ThrowOnError>): RequestResult<GetUsersByIdResponses, GetUsersByIdErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdResponses, GetUsersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}', |
| ...options |
| }); |
| |
| /** |
| * Update a user's name |
| */ |
| export const putUsersById = <ThrowOnError extends boolean = false>(options: Options<PutUsersByIdData, ThrowOnError>): RequestResult<PutUsersByIdResponses, PutUsersByIdErrors, ThrowOnError> => (options.client ?? client).put<PutUsersByIdResponses, PutUsersByIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List change requests submitted by a user |
| */ |
| export const getUsersByIdChangeRequests = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdChangeRequestsData, ThrowOnError>): RequestResult<GetUsersByIdChangeRequestsResponses, GetUsersByIdChangeRequestsErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdChangeRequestsResponses, GetUsersByIdChangeRequestsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/change-requests', |
| ...options |
| }); |
| |
| /** |
| * List a user's compute allocation memberships |
| */ |
| export const getUsersByIdComputeAllocationMemberships = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdComputeAllocationMembershipsData, ThrowOnError>): RequestResult<GetUsersByIdComputeAllocationMembershipsResponses, GetUsersByIdComputeAllocationMembershipsErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdComputeAllocationMembershipsResponses, GetUsersByIdComputeAllocationMembershipsErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/compute-allocation-memberships', |
| ...options |
| }); |
| |
| /** |
| * List usages submitted by a user |
| */ |
| export const getUsersByIdComputeAllocationUsages = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdComputeAllocationUsagesData, ThrowOnError>): RequestResult<GetUsersByIdComputeAllocationUsagesResponses, GetUsersByIdComputeAllocationUsagesErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdComputeAllocationUsagesResponses, GetUsersByIdComputeAllocationUsagesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/compute-allocation-usages', |
| ...options |
| }); |
| |
| /** |
| * List compute cluster users for a user |
| */ |
| export const getUsersByIdComputeClusterUsers = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdComputeClusterUsersData, ThrowOnError>): RequestResult<GetUsersByIdComputeClusterUsersResponses, GetUsersByIdComputeClusterUsersErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdComputeClusterUsersResponses, GetUsersByIdComputeClusterUsersErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/compute-cluster-users', |
| ...options |
| }); |
| |
| /** |
| * List a user's direct privilege grants |
| * |
| * Returns DIRECT grants only (not role-derived). Combine with `GET /users/{id}/roles` for the full picture. |
| */ |
| export const getUsersByIdPrivileges = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdPrivilegesData, ThrowOnError>): RequestResult<GetUsersByIdPrivilegesResponses, GetUsersByIdPrivilegesErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdPrivilegesResponses, GetUsersByIdPrivilegesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/privileges', |
| ...options |
| }); |
| |
| /** |
| * Grant a direct privilege to a user |
| */ |
| export const postUsersByIdPrivileges = <ThrowOnError extends boolean = false>(options: Options<PostUsersByIdPrivilegesData, ThrowOnError>): RequestResult<PostUsersByIdPrivilegesResponses, PostUsersByIdPrivilegesErrors, ThrowOnError> => (options.client ?? client).post<PostUsersByIdPrivilegesResponses, PostUsersByIdPrivilegesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/privileges', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Revoke a direct privilege from a user |
| * |
| * `privileges:grant` itself cannot be self-revoked or revoked from the last holder. |
| */ |
| export const deleteUsersByIdPrivilegesByKey = <ThrowOnError extends boolean = false>(options: Options<DeleteUsersByIdPrivilegesByKeyData, ThrowOnError>): RequestResult<DeleteUsersByIdPrivilegesByKeyResponses, DeleteUsersByIdPrivilegesByKeyErrors, ThrowOnError> => (options.client ?? client).delete<DeleteUsersByIdPrivilegesByKeyResponses, DeleteUsersByIdPrivilegesByKeyErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/privileges/{key}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List roles a user holds |
| */ |
| export const getUsersByIdRoles = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdRolesData, ThrowOnError>): RequestResult<GetUsersByIdRolesResponses, GetUsersByIdRolesErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdRolesResponses, GetUsersByIdRolesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/roles', |
| ...options |
| }); |
| |
| /** |
| * Grant a role to a user |
| */ |
| export const postUsersByIdRoles = <ThrowOnError extends boolean = false>(options: Options<PostUsersByIdRolesData, ThrowOnError>): RequestResult<PostUsersByIdRolesResponses, PostUsersByIdRolesErrors, ThrowOnError> => (options.client ?? client).post<PostUsersByIdRolesResponses, PostUsersByIdRolesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/roles', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Revoke a role from a user |
| * |
| * Refuses if revoking would leave no holder of `privileges:grant` or `roles:manage` anywhere (last-meta-holder guard). |
| */ |
| export const deleteUsersByIdRolesByRoleId = <ThrowOnError extends boolean = false>(options: Options<DeleteUsersByIdRolesByRoleIdData, ThrowOnError>): RequestResult<DeleteUsersByIdRolesByRoleIdResponses, DeleteUsersByIdRolesByRoleIdErrors, ThrowOnError> => (options.client ?? client).delete<DeleteUsersByIdRolesByRoleIdResponses, DeleteUsersByIdRolesByRoleIdErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/roles/{roleId}', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * Update a user's status |
| */ |
| export const putUsersByIdStatus = <ThrowOnError extends boolean = false>(options: Options<PutUsersByIdStatusData, ThrowOnError>): RequestResult<PutUsersByIdStatusResponses, PutUsersByIdStatusErrors, ThrowOnError> => (options.client ?? client).put<PutUsersByIdStatusResponses, PutUsersByIdStatusErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/status', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |
| |
| /** |
| * List a user's identities |
| */ |
| export const getUsersByIdUserIdentities = <ThrowOnError extends boolean = false>(options: Options<GetUsersByIdUserIdentitiesData, ThrowOnError>): RequestResult<GetUsersByIdUserIdentitiesResponses, GetUsersByIdUserIdentitiesErrors, ThrowOnError> => (options.client ?? client).get<GetUsersByIdUserIdentitiesResponses, GetUsersByIdUserIdentitiesErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/{id}/user-identities', |
| ...options |
| }); |
| |
| /** |
| * Merge two users |
| * |
| * Merges the retiring user into the surviving user; the surviving record is returned. |
| */ |
| export const postUsersMerge = <ThrowOnError extends boolean = false>(options: Options<PostUsersMergeData, ThrowOnError>): RequestResult<PostUsersMergeResponses, PostUsersMergeErrors, ThrowOnError> => (options.client ?? client).post<PostUsersMergeResponses, PostUsersMergeErrors, ThrowOnError>({ |
| security: [{ name: 'Authorization', type: 'apiKey' }], |
| url: '/users/merge', |
| ...options, |
| headers: { |
| 'Content-Type': 'application/json', |
| ...options.headers |
| } |
| }); |