/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { CdsDatabaseReference, ConnectionReference } from '../types/ApiTypes.js'; export type RpCodeApp = { appType: string; appSubtype?: string; properties: RpAppProperties; /** * Flat string-valued metadata tags persisted on the app record. Host/chrome settings authored in * `power.config.json` under `appSettings` are flattened here (e.g. `{ showHeader: 'false' }`) so * the web player can read them from launch metadata. Omitted when there are no settings to send. */ tags?: Record; }; type RpAppProperties = { appOpenUri?: string; displayName: string; description: string; backgroundColor: string; backgroundImageUri: string; environment: { name: string; id: string; }; createdByClientVersion: { major: number; }; appUris: { documentUri?: { value: string; readonlyValue: string; }; codeAppPackageUri?: { value: string; readonlyValue: string; }; }; lifeCycleId: string; connectionReferences?: Record; databaseReferences?: Record; }; export type AppLeaseSessionResponse = { currentSession: { sessionId: string; }; }; export type AppPermissionRole = 'CanView' | 'CanEdit'; export type AppPermissionPrincipal = { tenantId: string; id?: string; email?: string; type?: 'User' | 'Group' | 'ServicePrincipal'; }; export type ModifyAppPermissionsRequest = { put: { properties: { NotifyShareTargetOption: 'DoNotNotify'; roleName: AppPermissionRole; principal: AppPermissionPrincipal; }; }[]; delete: { id: string; }[]; }; export type AppPermissionResourceResponse = { id: string; statusCode: string; responseCode: string; message: string; type: string; }; export type AppPermission = { id: string; properties: { roleName: AppPermissionRole; scope: string; principal: AppPermissionPrincipal & { userType?: string; }; resourceResponses: AppPermissionResourceResponse[]; }; }; export type ModifyAppPermissionsResponse = { put: AppPermission[]; }; export {}; //# sourceMappingURL=PowerAppsRpService.types.d.ts.map