import { SdPlatformResponseModelBase } from "./SdPlatformResponseModel"; import { SdPlatformResponseUserMinimal } from "./SdPlatformResponseUser"; export interface SdPlatformResponseModelSharingPolicy { /** * Id of the sharing relationship. */ readonly id: string; /** * Alias of the policy being shared. */ readonly policy_alias: string; /** * True if the provider of the sharing relationship (the owner of the model) has the required features_provider of the shared policy. */ readonly provider_has_features: boolean; /** * True if the receiver of the sharing relationship (the user stored in the relationship) has the required features_receiver of the shared policy. */ readonly receiver_has_features: boolean; } /** * A model sharing relationship, which shares a policy for accessing a model with a receiving user. */ export interface SdPlatformResponseModelSharing extends SdPlatformResponseModelSharingPolicy { /** * Id of the receiving user. */ readonly user_id: string; /** * Id of the model being shared. */ readonly model_id: string; /** * Gets the shared model. */ readonly model?: SdPlatformResponseModelBase; /** * Gets the user that model is being shared with. */ readonly user?: SdPlatformResponseUserMinimal; /** * Gets the provider of sharing relationship */ readonly provider?: SdPlatformResponseUserMinimal; } /** * The model sharings grouped by user. */ export interface SdPlatformResponseModelSharingGroupedByUser { /** * The user id. */ readonly user_id: string; /** * The user. */ readonly user: SdPlatformResponseUserMinimal; /** * All the policies of a sharing. */ readonly policies: Array; } //# sourceMappingURL=SdPlatformResponseModelSharing.d.ts.map