@forge/api

7.0.3-next.17.1.0-next.2
out/api/permissions.d.ts
~out/api/permissions.d.tsModified
+8−3
Index: package/out/api/permissions.d.ts
===================================================================
--- package/out/api/permissions.d.ts
+++ package/out/api/permissions.d.ts
@@ -1,6 +1,11 @@
 import { PermissionRequirements, MissingPermissions } from './runtime';
-import { External } from '@forge/manifest';
+import { External, Fetch } from '@forge/manifest';
+declare const RESOURCE_TYPES: readonly ["fonts", "styles", "frames", "images", "media", "scripts"];
+export declare type ResourceType = (typeof RESOURCE_TYPES)[number];
+declare const FETCH_TYPES: readonly ["backend", "client"];
+export declare type FetchType = (typeof FETCH_TYPES)[number];
+export declare type ValidatedArrayField = string[] | External[ResourceType] | Fetch[FetchType];
 export declare function extractUrlString(url: string | {
     address: string;
 } | {
     remote: string;
@@ -12,13 +17,13 @@
     missing?: MissingPermissions;
 }
 export declare const hasPermission: (requirements: Partial<PermissionRequirements>) => PermissionResult;
 export declare const hasScope: (scope: string) => boolean;
-export declare const canFetchFrom: (type: 'backend' | 'client', url: string) => boolean;
+export declare const canFetchFrom: (type: FetchType, url: string) => boolean;
 export declare const canLoadResource: (type: Exclude<keyof External, 'fetch'>, url: string) => boolean;
 export declare const permissions: {
     hasPermission: (requirements: Partial<PermissionRequirements>) => PermissionResult;
     hasScope: (scope: string) => boolean;
-    canFetchFrom: (type: 'backend' | 'client', url: string) => boolean;
+    canFetchFrom: (type: FetchType, url: string) => boolean;
     canLoadResource: (type: Exclude<keyof External, 'fetch'>, url: string) => boolean;
 };
 //# sourceMappingURL=permissions.d.ts.map
\ No newline at end of file