/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { V1_ContractUserStatusResponse, V1_CreateContractPayload, V1_CreateDataAccessRequestPayload, V1_CreateSubscriptionInput, V1_DataContractApprovedUsersResponse, V1_DataContractsResponse, V1_DataProductLitePaginatedResponse, V1_DataRequestsWithWorkflowResponse, V1_DataRequestTasksResponse, V1_DataSubscriptionResponse, V1_DataSubscriptionsPaginatedResponse, V1_EntitlementsDataProductDetailsResponse, V1_EntitlementsDataProductLiteResponse, V1_EntitlementsLakehouseEnvironmentType, V1_EntitlementsUserEnvResponse, V1_InvalidateDataContractResponse, V1_LiteDataContractsPaginatedResponse, V1_LiteDataContractsResponse, V1_LiteDataContractWithUserStatus, V1_PendingTasksResponse, V1_TaskResponse, V1_TaskStatus, V1_UserPendingContractsRecord, V1_UserPendingContractsResponse } from '@finos/legend-graph'; import { AbstractServerClient, type PlainObject } from '@finos/legend-shared'; import type { LakehouseConsumerGrantResponse } from './models/ConsumerGrants.js'; export interface LakehouseContractServerClientConfig { baseUrl: string; } export declare class LakehouseContractServerClient extends AbstractServerClient { constructor(config: LakehouseContractServerClientConfig); private _token; private _dataContracts; getLiteDataContractsPaginated: (size: number, lastContractId: string | undefined, token: string | undefined) => Promise>; getDataContract: (id: string, withMembers: boolean, token: string | undefined) => Promise>; getApprovedUsersForDataContract: (id: string, token: string | undefined) => Promise>; getContractUserStatus: (contractId: string, userId: string, token: string | undefined) => Promise>; getDataContractsFromDID: (body: PlainObject[], token: string | undefined) => Promise>; getDataContractsForDataProduct: (resourceType: string, resourceId: string, did: number, token: string | undefined) => Promise>; getContractsForUser: (user: string, token: string | undefined) => Promise[]>; getContractsCreatedByUser: (user: string, token: string | undefined) => Promise[]>; getPendingContracts: (user: string | undefined, token: string | undefined) => Promise>; createContract: (contractRequest: PlainObject, token: string | undefined) => Promise; escalateUserOnContract: (contractId: string, user: string, forSystemAccount: boolean, token: string | undefined) => Promise>; invalidateContract: (contractId: string, token: string | undefined) => Promise>; private _tasks; private _contract_tasks; getPendingTasks: (user: string | undefined, token: string | undefined) => Promise>; getTask: (taskId: string, token: string | undefined) => Promise>; getContractTasks: (contractId: string, token: string | undefined) => Promise>; approveTask: (id: string, token: string | undefined) => Promise>; denyTask: (id: string, token: string | undefined) => Promise>; private _dataAccessRequests; getDataRequestsForDataProduct: (resourceType: string, resourceId: string, did: number, token: string | undefined) => Promise; createDataAccessRequest: (requestPayload: PlainObject, token: string | undefined) => Promise; createPermitDataRequest: (payload: PlainObject, token: string | undefined) => Promise; getDataAccessRequestsCreatedBy: (userId: string, token: string | undefined) => Promise; getDataAccessRequestWithWorkflow: (accessRequestId: string, token: string | undefined) => Promise>; getDataAccessRequestTasks: (accessRequestId: string, token: string | undefined) => Promise; getDataRequestWorkflows: (accessRequestId: string, token: string | undefined) => Promise; escalateDataRequest: (requestId: string, taskId: string, justification: string, token: string | undefined) => Promise; approveRequest: (_requestId: string, _taskId: string, _token: string | undefined) => Promise; denyRequest: (_requestId: string, _taskId: string, _token: string | undefined) => Promise; private _subscriptions; getAllSubscriptionsPaginated: (size: number, lastSubscriptionId: string | undefined, token: string | undefined) => Promise>; getSubscriptionsForContract: (contractId: string, token: string | undefined) => Promise[]>; createSubscription: (input: PlainObject, token: string | undefined) => Promise>; private _dataProducts; getDataProductsLitePaginated: (size: number | undefined, environmentType: V1_EntitlementsLakehouseEnvironmentType, lastDataProductId: string | undefined, lastDataProductDeploymentId: number | undefined, token: string | undefined) => Promise>; getAllLiteDataProducts: (environmentType: V1_EntitlementsLakehouseEnvironmentType, size: number | undefined, token: string | undefined) => Promise>; getDataProduct: (dataProductId: string, token: string | undefined) => Promise>; getDataProductByIdAndDID: (dataProductId: string, deploymentId: number, token: string | undefined) => Promise>; private _orgResolver; getUserEntitlementEnvs: (userId: string, token: string | undefined) => Promise; private _consumerEntitlements; getConsumerGrantsByContractId: (contractId: string, token: string | undefined) => Promise>; getContractSyncStatus: (contractId: string, token: string | undefined) => Promise; getOwnersForDid: (deploymentId: number, token: string | undefined) => Promise; } //# sourceMappingURL=LakehouseContractServerClient.d.ts.map