@mailrith/public-api
Advanced tools
| export type PublicApiScopeAction = "read" | "write" | "import" | "export"; | ||
| export type PublicApiScopeDefinition = { | ||
| key: string; | ||
| resourceKey: string; | ||
| action: PublicApiScopeAction; | ||
| label: string; | ||
| description: string; | ||
| }; | ||
| export type PublicApiResourceArchetype = "singleton" | "primary_collection" | "supporting_catalog" | "nested_record" | "durable_job" | "ephemeral_handle" | "derived_view"; | ||
| export type PublicApiResourceContract = { | ||
| key: string; | ||
| name: string; | ||
| description: string; | ||
| archetype: PublicApiResourceArchetype; | ||
| collectionPaths?: readonly string[]; | ||
| itemPaths?: readonly string[]; | ||
| exactNaturalKeys: readonly string[]; | ||
| scopeKeys: readonly string[]; | ||
| scopeResourceKey?: string; | ||
| }; | ||
| declare const publicApiScopeDefinitionCatalog: readonly [{ | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "live_actions:write"; | ||
| readonly resourceKey: "live_actions"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:write"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "import"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "export"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "segments:write"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "tags:write"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:write"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "form_submissions:read"; | ||
| readonly resourceKey: "form_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:write"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_page_submissions:read"; | ||
| readonly resourceKey: "landing_page_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:write"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:write"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "magic_links:write"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:write"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_delivery_connections:read"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_delivery_connections:write"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_templates:write"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "custom_fields:write"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }]; | ||
| export type PublicApiScopeKey = (typeof publicApiScopeDefinitionCatalog)[number]["key"]; | ||
| export declare const publicApiResourceContracts: readonly [PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract, PublicApiResourceContract]; | ||
| export declare const publicApiResourceContractByKey: Map<string, PublicApiResourceContract>; | ||
| export declare const publicApiScopeDisplaySections: readonly [{ | ||
| readonly key: "overview"; | ||
| readonly label: "Overview"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Dashboard"; | ||
| readonly resourceKeys: readonly ["analytics"]; | ||
| }, { | ||
| readonly label: "Live Actions"; | ||
| readonly resourceKeys: readonly ["live_actions"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "subscribers"; | ||
| readonly label: "Subscribers"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Subscribers"; | ||
| readonly resourceKeys: readonly ["subscribers"]; | ||
| }, { | ||
| readonly label: "Segments"; | ||
| readonly resourceKeys: readonly ["segments"]; | ||
| }, { | ||
| readonly label: "Tags"; | ||
| readonly resourceKeys: readonly ["tags"]; | ||
| }, { | ||
| readonly label: "Forms"; | ||
| readonly resourceKeys: readonly ["forms", "form_submissions"]; | ||
| }, { | ||
| readonly label: "Landing Pages"; | ||
| readonly resourceKeys: readonly ["landing_pages", "landing_page_submissions"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "campaigns"; | ||
| readonly label: "Campaigns"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Broadcasts"; | ||
| readonly resourceKeys: readonly ["broadcasts"]; | ||
| }, { | ||
| readonly label: "Sequences"; | ||
| readonly resourceKeys: readonly ["sequences"]; | ||
| }, { | ||
| readonly label: "Magic Links"; | ||
| readonly resourceKeys: readonly ["magic_links"]; | ||
| }, { | ||
| readonly label: "Automations"; | ||
| readonly resourceKeys: readonly ["automations"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "account"; | ||
| readonly label: "Account"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Workspaces"; | ||
| readonly resourceKeys: readonly ["workspace"]; | ||
| }, { | ||
| readonly label: "Email Delivery Connections"; | ||
| readonly resourceKeys: readonly ["email_delivery_connections"]; | ||
| }, { | ||
| readonly label: "Email Templates"; | ||
| readonly resourceKeys: readonly ["email_templates"]; | ||
| }, { | ||
| readonly label: "Custom Fields"; | ||
| readonly resourceKeys: readonly ["custom_fields"]; | ||
| }, { | ||
| readonly label: "Integrations"; | ||
| readonly resourceKeys: readonly ["webhooks"]; | ||
| }]; | ||
| }]; | ||
| export declare const publicApiScopeResourceOrder: ("workspace" | "email_delivery_connections" | "analytics" | "subscribers" | "tags" | "custom_fields" | "email_templates" | "forms" | "landing_pages" | "sequences" | "automations" | "magic_links" | "broadcasts" | "segments" | "live_actions" | "form_submissions" | "landing_page_submissions" | "webhooks")[]; | ||
| export declare const publicApiScopeDefinitions: ({ | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "live_actions:write"; | ||
| readonly resourceKey: "live_actions"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:write"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "import"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "export"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:write"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:write"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:write"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "form_submissions:read"; | ||
| readonly resourceKey: "form_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:write"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_page_submissions:read"; | ||
| readonly resourceKey: "landing_page_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:write"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:write"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:write"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:write"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_delivery_connections:read"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_delivery_connections:write"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:write"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:write"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| })[]; | ||
| export declare const publicApiScopeDefinitionByKey: Map<"workspace:read" | "analytics:read" | "live_actions:write" | "subscribers:read" | "subscribers:write" | "subscribers:import" | "subscribers:export" | "segments:read" | "segments:write" | "tags:read" | "tags:write" | "forms:read" | "forms:write" | "form_submissions:read" | "landing_pages:read" | "landing_pages:write" | "landing_page_submissions:read" | "broadcasts:read" | "broadcasts:write" | "sequences:read" | "sequences:write" | "magic_links:read" | "magic_links:write" | "automations:read" | "automations:write" | "email_delivery_connections:read" | "email_delivery_connections:write" | "email_templates:read" | "email_templates:write" | "custom_fields:read" | "custom_fields:write" | "webhooks:read" | "webhooks:write", { | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "live_actions:write"; | ||
| readonly resourceKey: "live_actions"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:write"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "import"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "export"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:write"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:write"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:write"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "form_submissions:read"; | ||
| readonly resourceKey: "form_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:write"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_page_submissions:read"; | ||
| readonly resourceKey: "landing_page_submissions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:write"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:write"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:write"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:write"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_delivery_connections:read"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_delivery_connections:write"; | ||
| readonly resourceKey: "email_delivery_connections"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:write"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:write"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "write"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }>; | ||
| export declare const publicApiScopeKeys: PublicApiScopeKey[]; | ||
| export declare const publicApiReadScopeKeys: PublicApiScopeKey[]; | ||
| export type PublicApiWorkProfileKey = "full_email_marketing_access" | "reporting" | "subscriber_management" | "content_and_capture" | "broadcasts" | "sequences" | "automations" | "email_delivery_setup" | "subscriber_import_export" | "outbound_webhooks"; | ||
| export type PublicApiWorkProfile = { | ||
| key: PublicApiWorkProfileKey; | ||
| label: string; | ||
| description: string; | ||
| scopeKeys: readonly PublicApiScopeKey[]; | ||
| }; | ||
| export declare const publicApiDefaultWorkProfileKey: "full_email_marketing_access"; | ||
| export declare const publicApiWorkProfiles: readonly [PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile, PublicApiWorkProfile]; | ||
| export declare const publicApiWorkProfileDisplaySections: readonly [{ | ||
| readonly key: "recommended"; | ||
| readonly label: "Recommended"; | ||
| readonly profileKeys: readonly ["full_email_marketing_access", "reporting"]; | ||
| }, { | ||
| readonly key: "focused"; | ||
| readonly label: "Focused Work"; | ||
| readonly profileKeys: readonly ["subscriber_management", "content_and_capture", "broadcasts", "sequences", "automations", "subscriber_import_export"]; | ||
| }, { | ||
| readonly key: "connections"; | ||
| readonly label: "Connections"; | ||
| readonly profileKeys: readonly ["email_delivery_setup", "outbound_webhooks"]; | ||
| }]; | ||
| export declare const publicApiWorkProfileByKey: Map<PublicApiWorkProfileKey, PublicApiWorkProfile>; | ||
| export declare const publicApiDefaultScopeKeys: ("workspace:read" | "analytics:read" | "live_actions:write" | "subscribers:read" | "subscribers:write" | "subscribers:import" | "subscribers:export" | "segments:read" | "segments:write" | "tags:read" | "tags:write" | "forms:read" | "forms:write" | "form_submissions:read" | "landing_pages:read" | "landing_pages:write" | "landing_page_submissions:read" | "broadcasts:read" | "broadcasts:write" | "sequences:read" | "sequences:write" | "magic_links:read" | "magic_links:write" | "automations:read" | "automations:write" | "email_delivery_connections:read" | "email_delivery_connections:write" | "email_templates:read" | "email_templates:write" | "custom_fields:read" | "custom_fields:write" | "webhooks:read" | "webhooks:write")[]; | ||
| export declare const publicApiAgentReadQuickstartScopeKeys: readonly ["workspace:read", "subscribers:read"]; | ||
| export declare const isPublicApiScopeKey: (value: string) => value is PublicApiScopeKey; | ||
| export declare const normalizePublicApiScopeKeys: (scopeKeys: Iterable<string>) => PublicApiScopeKey[]; | ||
| export declare const validatePublicApiScopeKeys: (scopeKeys: Iterable<string>) => { | ||
| ok: true; | ||
| value: PublicApiScopeKey[]; | ||
| } | { | ||
| ok: false; | ||
| unsupportedScopeKeys: string[]; | ||
| }; | ||
| export declare const resolvePublicApiOperationRequiredScopes: (params: { | ||
| resourceKey: string; | ||
| operationId: string; | ||
| method: string; | ||
| }) => PublicApiScopeKey[]; | ||
| export {}; | ||
| //# sourceMappingURL=resource-contract.d.ts.map |
| {"version":3,"file":"resource-contract.d.ts","sourceRoot":"","sources":["../src/resource-contract.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAClC,WAAW,GACX,oBAAoB,GACpB,oBAAoB,GACpB,eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,cAAc,CAAC;AAEnB,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,0BAA0B,CAAC;IACtC,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAcF,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,CAAC;AAExB,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,uBAAuB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,iBAAiB,EAAE,CAAC;CACzC,CAAC;AAqBF,eAAO,MAAM,8BAA8B,+BAC+B,CAAC;AAE3E,eAAO,MAAM,qBAAqB,uOAmJkB,CAAC;AAErD,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EA2B7C,CAAC;AAEJ,eAAO,MAAM,yBAAyB,oDAErC,CAAC;AAEF,eAAO,MAAM,yBAAyB,2tBAErC,CAAC;AAEF,eAAO,MAAM,qCAAqC,iDAGD,CAAC;AAElD,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,KACZ,KAAK,IAAI,iBACmD,CAAC;AAEhE,eAAO,MAAM,2BAA2B,GACtC,WAAW,QAAQ,CAAC,MAAM,CAAC,KAC1B,iBAAiB,EAQnB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,WAAW,QAAQ,CAAC,MAAM,CAAC,KAEzB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,GACxC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAc9C,CAAC;AAgDF,eAAO,MAAM,uCAAuC,GAAI,QAAQ;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,KAAG,iBAAiB,EAqCpB,CAAC"} |
| import { requiresPublicApiLiveActionPermission } from "./agent-risk.js"; | ||
| const scope = (key, resourceKey, action, label, description) => ({ key, resourceKey, action, label, description }); | ||
| const publicApiScopeDefinitionCatalog = [ | ||
| scope("workspace:read", "workspace", "read", "View Workspace", "View the selected workspace name, settings, sender identities, and current API context."), | ||
| scope("analytics:read", "analytics", "read", "View Analytics", "Run bounded aggregate reports from compact delivery and engagement rollups."), | ||
| scope("live_actions:write", "live_actions", "write", "Perform Live Actions", "Send email, activate or change running workflows, change Subscriber delivery or targeting status, publish public capture surfaces, and configure outbound event delivery."), | ||
| scope("subscribers:read", "subscribers", "read", "View Subscribers", "View bounded pages of Subscribers, profiles, status, Tags, Sequence enrollment, and compact consent details."), | ||
| scope("subscribers:write", "subscribers", "write", "Manage Subscribers", "Create, change, subscribe, unsubscribe, organize, enroll, and delete individual Subscribers."), | ||
| scope("subscribers:import", "subscribers", "import", "Import Subscribers", "Start bounded bulk imports that can create or change Subscribers."), | ||
| scope("subscribers:export", "subscribers", "export", "Export Subscribers", "Create and download bounded exports containing Subscriber data."), | ||
| scope("segments:read", "segments", "read", "View Segments", "View saved Segment definitions and bounded preview counts."), | ||
| scope("segments:write", "segments", "write", "Manage Segments", "Create, change, preview, and delete saved Subscriber-selection definitions."), | ||
| scope("tags:read", "tags", "read", "View Tags", "View the workspace Tag catalog."), | ||
| scope("tags:write", "tags", "write", "Manage Tags", "Create, change, and delete Tags used to organize Subscribers and target email."), | ||
| scope("forms:read", "forms", "read", "View Forms", "View Form definitions and settings."), | ||
| scope("forms:write", "forms", "write", "Manage Forms", "Create, change, preview, and delete publicly reachable Subscriber capture Forms."), | ||
| scope("form_submissions:read", "form_submissions", "read", "View Form Submissions", "View bounded pages of Form submissions and the Subscriber data they contain."), | ||
| scope("landing_pages:read", "landing_pages", "read", "View Landing Pages", "View hosted Landing Page definitions and settings."), | ||
| scope("landing_pages:write", "landing_pages", "write", "Manage Landing Pages", "Create, change, preview, and delete publicly reachable hosted Landing Pages."), | ||
| scope("landing_page_submissions:read", "landing_page_submissions", "read", "View Landing Page Submissions", "View bounded pages of Landing Page submissions and the Subscriber data they contain."), | ||
| scope("broadcasts:read", "broadcasts", "read", "View Broadcasts", "View Broadcast drafts, readiness, send progress, delivery errors, and aggregate results."), | ||
| scope("broadcasts:write", "broadcasts", "write", "Manage Broadcasts", "Create, change, test, schedule, send, stop, and delete Broadcasts."), | ||
| scope("sequences:read", "sequences", "read", "View Sequences", "View Sequence definitions, readiness, journeys, status, and aggregate results."), | ||
| scope("sequences:write", "sequences", "write", "Manage Sequences", "Create, change, test, start, pause, and delete Sequences."), | ||
| scope("magic_links:read", "magic_links", "read", "View Magic Links", "View Magic Link destinations and configured Subscriber actions."), | ||
| scope("magic_links:write", "magic_links", "write", "Manage Magic Links", "Create, change, and delete public Magic Links and their Subscriber actions."), | ||
| scope("automations:read", "automations", "read", "View Automations", "View Automation definitions, readiness, journeys, runs, status, and aggregate results."), | ||
| scope("automations:write", "automations", "write", "Manage Automations", "Create, change, test, start, pause, return to draft, and delete Automations."), | ||
| scope("email_delivery_connections:read", "email_delivery_connections", "read", "View Email Delivery Connections", "View connection names, providers, sender identities, readiness, and secret-free configuration."), | ||
| scope("email_delivery_connections:write", "email_delivery_connections", "write", "Manage Email Delivery Connections", "Create, change, verify, test, enable, disable, and delete connections. Saved credentials are never returned."), | ||
| scope("email_templates:read", "email_templates", "read", "View Email Templates", "View reusable email template content and settings."), | ||
| scope("email_templates:write", "email_templates", "write", "Manage Email Templates", "Create, change, preview, and delete reusable email content."), | ||
| scope("custom_fields:read", "custom_fields", "read", "View Custom Fields", "View the workspace custom-field schema."), | ||
| scope("custom_fields:write", "custom_fields", "write", "Manage Custom Fields", "Create, change, and delete custom-field definitions used by Subscriber data."), | ||
| scope("webhooks:read", "webhooks", "read", "View Outbound Webhooks", "View outbound webhook destinations, selected events, and delivery health."), | ||
| scope("webhooks:write", "webhooks", "write", "Manage Outbound Webhooks", "Create, change, delete, and rotate signing secrets for outbound webhook destinations."), | ||
| ]; | ||
| const resourceContract = (contract) => ({ | ||
| ...contract, | ||
| scopeKeys: contract.scopeKeys ?? [], | ||
| }); | ||
| export const publicApiResourceContracts = [ | ||
| resourceContract({ | ||
| key: "analytics", | ||
| name: "Analytics", | ||
| description: "Bounded aggregate delivery and engagement reports.", | ||
| archetype: "derived_view", | ||
| collectionPaths: ["/v1/analytics/reports"], | ||
| itemPaths: ["/v1/analytics/reports/{report_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["analytics:read"], | ||
| }), | ||
| resourceContract({ | ||
| key: "live_actions", | ||
| name: "Live Actions", | ||
| description: "Operations that immediately affect Subscribers or external systems.", | ||
| archetype: "derived_view", | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["live_actions:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "subscribers", | ||
| name: "Subscribers", | ||
| description: "Subscriber profiles, status, Tags, and Sequence enrollment.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/subscribers"], | ||
| itemPaths: ["/v1/subscribers/{subscriber_id}"], | ||
| exactNaturalKeys: ["email"], | ||
| scopeKeys: [ | ||
| "subscribers:read", | ||
| "subscribers:write", | ||
| "subscribers:import", | ||
| "subscribers:export", | ||
| ], | ||
| }), | ||
| resourceContract({ | ||
| key: "segments", | ||
| name: "Segments", | ||
| description: "Saved Subscriber-selection definitions.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/segments"], | ||
| itemPaths: ["/v1/segments/{segment_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["segments:read", "segments:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "tags", | ||
| name: "Tags", | ||
| description: "The workspace Tag catalog.", | ||
| archetype: "supporting_catalog", | ||
| collectionPaths: ["/v1/tags"], | ||
| itemPaths: ["/v1/tags/{tag_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["tags:read", "tags:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "forms", | ||
| name: "Forms", | ||
| description: "Subscriber capture Forms.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/forms"], | ||
| itemPaths: ["/v1/forms/{form_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["forms:read", "forms:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "form_submissions", | ||
| name: "Form Submissions", | ||
| description: "Bounded Form submission records.", | ||
| archetype: "nested_record", | ||
| collectionPaths: ["/v1/forms/{form_id}/submissions"], | ||
| itemPaths: ["/v1/forms/{form_id}/submissions/{submission_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["form_submissions:read"], | ||
| }), | ||
| resourceContract({ | ||
| key: "landing_pages", | ||
| name: "Landing Pages", | ||
| description: "Hosted Subscriber capture pages.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/landing-pages"], | ||
| itemPaths: ["/v1/landing-pages/{landing_page_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["landing_pages:read", "landing_pages:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "landing_page_submissions", | ||
| name: "Landing Page Submissions", | ||
| description: "Bounded Landing Page submission records.", | ||
| archetype: "nested_record", | ||
| collectionPaths: ["/v1/landing-pages/{landing_page_id}/submissions"], | ||
| itemPaths: [ | ||
| "/v1/landing-pages/{landing_page_id}/submissions/{submission_id}", | ||
| ], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["landing_page_submissions:read"], | ||
| }), | ||
| resourceContract({ | ||
| key: "broadcasts", | ||
| name: "Broadcasts", | ||
| description: "One-time email messages and their delivery state.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/broadcasts"], | ||
| itemPaths: ["/v1/broadcasts/{broadcast_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["broadcasts:read", "broadcasts:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "sequences", | ||
| name: "Sequences", | ||
| description: "Ordered lifecycle email series.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/sequences"], | ||
| itemPaths: ["/v1/sequences/{sequence_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["sequences:read", "sequences:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "magic_links", | ||
| name: "Magic Links", | ||
| description: "Links that apply configured Subscriber actions.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/magic-links"], | ||
| itemPaths: ["/v1/magic-links/{magic_link_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["magic_links:read", "magic_links:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "automations", | ||
| name: "Automations", | ||
| description: "Event-driven email and Subscriber workflows.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/automations"], | ||
| itemPaths: ["/v1/automations/{automation_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["automations:read", "automations:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "workspace", | ||
| name: "Workspace", | ||
| description: "The authenticated workspace context.", | ||
| archetype: "singleton", | ||
| itemPaths: ["/v1/workspace"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["workspace:read"], | ||
| }), | ||
| resourceContract({ | ||
| key: "sender_identities", | ||
| name: "Sender Identities", | ||
| description: "Verified sender identities in the workspace.", | ||
| archetype: "supporting_catalog", | ||
| collectionPaths: ["/v1/sender-identities"], | ||
| itemPaths: ["/v1/sender-identities/{sender_identity_id}"], | ||
| exactNaturalKeys: [], | ||
| }), | ||
| resourceContract({ | ||
| key: "email_delivery_connections", | ||
| name: "Email Delivery Connections", | ||
| description: "Secret-safe email provider connections.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/email-delivery-connections"], | ||
| itemPaths: ["/v1/email-delivery-connections/{connection_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: [ | ||
| "email_delivery_connections:read", | ||
| "email_delivery_connections:write", | ||
| ], | ||
| }), | ||
| resourceContract({ | ||
| key: "email_delivery_connection_setup_sessions", | ||
| name: "Email Delivery Connection Setup Sessions", | ||
| description: "Short-lived browser handoffs for connection setup.", | ||
| archetype: "ephemeral_handle", | ||
| collectionPaths: ["/v1/email-delivery-connection-setup-sessions"], | ||
| itemPaths: [ | ||
| "/v1/email-delivery-connection-setup-sessions/{setup_session_id}", | ||
| "/v1/email-delivery-connection-setup-sessions/{setup_session_id}/renew", | ||
| ], | ||
| exactNaturalKeys: [], | ||
| }), | ||
| resourceContract({ | ||
| key: "starting_points", | ||
| name: "Starting Points", | ||
| description: "Canonical email, Form, and Landing Page starting points shared with the Mailrith UI.", | ||
| archetype: "supporting_catalog", | ||
| collectionPaths: [ | ||
| "/v1/starting-points/email-templates", | ||
| "/v1/starting-points/forms", | ||
| "/v1/starting-points/landing-pages", | ||
| ], | ||
| itemPaths: [ | ||
| "/v1/starting-points/email-templates/{starting_point_id}", | ||
| "/v1/starting-points/forms/{starting_point_id}", | ||
| "/v1/starting-points/landing-pages/{starting_point_id}", | ||
| ], | ||
| exactNaturalKeys: [], | ||
| }), | ||
| resourceContract({ | ||
| key: "email_templates", | ||
| name: "Email Templates", | ||
| description: "Reusable email content.", | ||
| archetype: "supporting_catalog", | ||
| collectionPaths: ["/v1/email-templates"], | ||
| itemPaths: ["/v1/email-templates/{template_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["email_templates:read", "email_templates:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "custom_fields", | ||
| name: "Custom Fields", | ||
| description: "The workspace Subscriber field schema.", | ||
| archetype: "supporting_catalog", | ||
| collectionPaths: ["/v1/custom-fields"], | ||
| itemPaths: ["/v1/custom-fields/{custom_field_id}"], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["custom_fields:read", "custom_fields:write"], | ||
| }), | ||
| resourceContract({ | ||
| key: "webhook_subscriptions", | ||
| name: "Outbound Webhooks", | ||
| description: "Signed event delivery destinations.", | ||
| archetype: "primary_collection", | ||
| collectionPaths: ["/v1/webhook-subscriptions"], | ||
| itemPaths: [ | ||
| "/v1/webhook-subscriptions/{webhook_subscription_id}", | ||
| ], | ||
| exactNaturalKeys: [], | ||
| scopeKeys: ["webhooks:read", "webhooks:write"], | ||
| scopeResourceKey: "webhooks", | ||
| }), | ||
| resourceContract({ | ||
| key: "jobs", | ||
| name: "Subscriber Jobs", | ||
| description: "Durable Subscriber import and export jobs.", | ||
| archetype: "durable_job", | ||
| collectionPaths: [ | ||
| "/v1/jobs/subscriber-import-uploads", | ||
| "/v1/jobs/subscriber-imports", | ||
| "/v1/jobs/subscriber-exports", | ||
| ], | ||
| itemPaths: [ | ||
| "/v1/jobs/subscriber-import-uploads/{upload_id}", | ||
| "/v1/jobs/subscriber-imports/{job_id}", | ||
| "/v1/jobs/subscriber-exports/{job_id}", | ||
| ], | ||
| exactNaturalKeys: [], | ||
| }), | ||
| resourceContract({ | ||
| key: "diagnostics", | ||
| name: "Diagnostics", | ||
| description: "Bounded operational views of existing resources.", | ||
| archetype: "derived_view", | ||
| exactNaturalKeys: [], | ||
| }), | ||
| ]; | ||
| export const publicApiResourceContractByKey = new Map(publicApiResourceContracts.map((contract) => [contract.key, contract])); | ||
| export const publicApiScopeDisplaySections = [ | ||
| { | ||
| key: "overview", | ||
| label: "Overview", | ||
| resources: [ | ||
| { label: "Dashboard", resourceKeys: ["analytics"] }, | ||
| { label: "Live Actions", resourceKeys: ["live_actions"] }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "subscribers", | ||
| label: "Subscribers", | ||
| resources: [ | ||
| { label: "Subscribers", resourceKeys: ["subscribers"] }, | ||
| { label: "Segments", resourceKeys: ["segments"] }, | ||
| { label: "Tags", resourceKeys: ["tags"] }, | ||
| { | ||
| label: "Forms", | ||
| resourceKeys: ["forms", "form_submissions"], | ||
| }, | ||
| { | ||
| label: "Landing Pages", | ||
| resourceKeys: ["landing_pages", "landing_page_submissions"], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "campaigns", | ||
| label: "Campaigns", | ||
| resources: [ | ||
| { label: "Broadcasts", resourceKeys: ["broadcasts"] }, | ||
| { label: "Sequences", resourceKeys: ["sequences"] }, | ||
| { label: "Magic Links", resourceKeys: ["magic_links"] }, | ||
| { label: "Automations", resourceKeys: ["automations"] }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "account", | ||
| label: "Account", | ||
| resources: [ | ||
| { label: "Workspaces", resourceKeys: ["workspace"] }, | ||
| { | ||
| label: "Email Delivery Connections", | ||
| resourceKeys: ["email_delivery_connections"], | ||
| }, | ||
| { label: "Email Templates", resourceKeys: ["email_templates"] }, | ||
| { label: "Custom Fields", resourceKeys: ["custom_fields"] }, | ||
| { label: "Integrations", resourceKeys: ["webhooks"] }, | ||
| ], | ||
| }, | ||
| ]; | ||
| export const publicApiScopeResourceOrder = publicApiScopeDisplaySections.flatMap((section) => section.resources.flatMap((resource) => resource.resourceKeys)); | ||
| const publicApiScopeResourceOrderByKey = new Map(publicApiScopeResourceOrder.map((resourceKey, index) => [resourceKey, index])); | ||
| export const publicApiScopeDefinitions = [ | ||
| ...publicApiScopeDefinitionCatalog, | ||
| ].sort((left, right) => (publicApiScopeResourceOrderByKey.get(left.resourceKey) ?? | ||
| Number.MAX_SAFE_INTEGER) - | ||
| (publicApiScopeResourceOrderByKey.get(right.resourceKey) ?? | ||
| Number.MAX_SAFE_INTEGER)); | ||
| export const publicApiScopeDefinitionByKey = new Map(publicApiScopeDefinitions.map((definition) => [definition.key, definition])); | ||
| export const publicApiScopeKeys = publicApiScopeDefinitions.map((definition) => definition.key); | ||
| export const publicApiReadScopeKeys = publicApiScopeDefinitions | ||
| .filter((definition) => definition.action === "read") | ||
| .map((definition) => definition.key); | ||
| const orderedScopes = (scopeKeys) => { | ||
| const selected = new Set(scopeKeys); | ||
| return publicApiScopeKeys.filter((scopeKey) => selected.has(scopeKey)); | ||
| }; | ||
| const workProfile = (key, label, description, scopeKeys) => ({ | ||
| key, | ||
| label, | ||
| description, | ||
| scopeKeys: orderedScopes(scopeKeys), | ||
| }); | ||
| export const publicApiDefaultWorkProfileKey = "full_email_marketing_access"; | ||
| export const publicApiWorkProfiles = [ | ||
| workProfile("full_email_marketing_access", "Full Email Marketing Access", "Create, view, change, send, import, export, and manage every public email-marketing resource in the selected workspace. This does not grant billing, team, account-security, credential-reading, or internal administration access.", publicApiScopeKeys), | ||
| workProfile("reporting", "Reporting", "View workspace, Subscriber, content, workflow, and delivery information without changing anything.", publicApiReadScopeKeys.filter((scopeKey) => scopeKey !== "webhooks:read")), | ||
| workProfile("subscriber_management", "Subscriber Management", "Manage individual Subscribers, Tags, custom fields, Segments, status, and Sequence enrollment.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "subscribers:read", | ||
| "subscribers:write", | ||
| "segments:read", | ||
| "segments:write", | ||
| "tags:read", | ||
| "tags:write", | ||
| "custom_fields:read", | ||
| "custom_fields:write", | ||
| "sequences:read", | ||
| ]), | ||
| workProfile("content_and_capture", "Content And Capture", "Manage Templates, Forms, Landing Pages, Magic Links, Tags, fields, Segments, and captured submissions.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "subscribers:read", | ||
| "segments:read", | ||
| "segments:write", | ||
| "tags:read", | ||
| "tags:write", | ||
| "forms:read", | ||
| "forms:write", | ||
| "form_submissions:read", | ||
| "landing_pages:read", | ||
| "landing_pages:write", | ||
| "landing_page_submissions:read", | ||
| "magic_links:read", | ||
| "magic_links:write", | ||
| "email_templates:read", | ||
| "email_templates:write", | ||
| "custom_fields:read", | ||
| "custom_fields:write", | ||
| ]), | ||
| workProfile("broadcasts", "Broadcasts", "Create, review, test, schedule, send, stop, delete, and report on Broadcasts.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "analytics:read", | ||
| "subscribers:read", | ||
| "segments:read", | ||
| "segments:write", | ||
| "tags:read", | ||
| "broadcasts:read", | ||
| "broadcasts:write", | ||
| "email_delivery_connections:read", | ||
| "email_templates:read", | ||
| "custom_fields:read", | ||
| ]), | ||
| workProfile("sequences", "Sequences", "Create, review, test, start, pause, delete, and report on Sequences, including Subscriber enrollment.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "analytics:read", | ||
| "subscribers:read", | ||
| "subscribers:write", | ||
| "tags:read", | ||
| "sequences:read", | ||
| "sequences:write", | ||
| "email_delivery_connections:read", | ||
| "email_templates:read", | ||
| "custom_fields:read", | ||
| ]), | ||
| workProfile("automations", "Automations", "Create, review, test, start, pause, return to draft, delete, and report on Automations.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "analytics:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "automations:read", | ||
| "automations:write", | ||
| "email_delivery_connections:read", | ||
| "email_templates:read", | ||
| "custom_fields:read", | ||
| ]), | ||
| workProfile("email_delivery_setup", "Email Delivery Setup", "View and manage email delivery connections without exposing saved provider credentials.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "email_delivery_connections:read", | ||
| "email_delivery_connections:write", | ||
| ]), | ||
| workProfile("subscriber_import_export", "Subscriber Import And Export", "Import, export, and monitor bounded Subscriber transfer jobs.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "subscribers:read", | ||
| "subscribers:import", | ||
| "subscribers:export", | ||
| "tags:read", | ||
| "custom_fields:read", | ||
| ]), | ||
| workProfile("outbound_webhooks", "Outbound Webhooks", "View and manage signed outbound webhook destinations.", [ | ||
| "workspace:read", | ||
| "live_actions:write", | ||
| "webhooks:read", | ||
| "webhooks:write", | ||
| ]), | ||
| ]; | ||
| export const publicApiWorkProfileDisplaySections = [ | ||
| { | ||
| key: "recommended", | ||
| label: "Recommended", | ||
| profileKeys: ["full_email_marketing_access", "reporting"], | ||
| }, | ||
| { | ||
| key: "focused", | ||
| label: "Focused Work", | ||
| profileKeys: [ | ||
| "subscriber_management", | ||
| "content_and_capture", | ||
| "broadcasts", | ||
| "sequences", | ||
| "automations", | ||
| "subscriber_import_export", | ||
| ], | ||
| }, | ||
| { | ||
| key: "connections", | ||
| label: "Connections", | ||
| profileKeys: ["email_delivery_setup", "outbound_webhooks"], | ||
| }, | ||
| ]; | ||
| export const publicApiWorkProfileByKey = new Map(publicApiWorkProfiles.map((definition) => [definition.key, definition])); | ||
| export const publicApiDefaultScopeKeys = [ | ||
| ...publicApiWorkProfileByKey.get(publicApiDefaultWorkProfileKey).scopeKeys, | ||
| ]; | ||
| export const publicApiAgentReadQuickstartScopeKeys = [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| ]; | ||
| export const isPublicApiScopeKey = (value) => publicApiScopeDefinitionByKey.has(value); | ||
| export const normalizePublicApiScopeKeys = (scopeKeys) => { | ||
| const selected = new Set(); | ||
| for (const scopeKey of scopeKeys) { | ||
| if (isPublicApiScopeKey(scopeKey)) { | ||
| selected.add(scopeKey); | ||
| } | ||
| } | ||
| return publicApiScopeKeys.filter((scopeKey) => selected.has(scopeKey)); | ||
| }; | ||
| export const validatePublicApiScopeKeys = (scopeKeys) => { | ||
| const requestedScopeKeys = Array.from(scopeKeys); | ||
| const unsupportedScopeKeys = Array.from(new Set(requestedScopeKeys.filter((scopeKey) => !isPublicApiScopeKey(scopeKey)))); | ||
| if (unsupportedScopeKeys.length > 0) { | ||
| return { ok: false, unsupportedScopeKeys }; | ||
| } | ||
| return { | ||
| ok: true, | ||
| value: normalizePublicApiScopeKeys(requestedScopeKeys), | ||
| }; | ||
| }; | ||
| const explicitOperationScopes = { | ||
| listSenderIdentities: ["workspace:read"], | ||
| getSenderIdentity: ["workspace:read"], | ||
| startEmailDeliveryConnectionSetup: ["email_delivery_connections:write"], | ||
| getEmailDeliveryConnectionSetup: ["email_delivery_connections:write"], | ||
| renewEmailDeliveryConnectionSetup: ["email_delivery_connections:write"], | ||
| listEmailStartingPoints: ["email_templates:read"], | ||
| getEmailStartingPoint: ["email_templates:read"], | ||
| listFormStartingPoints: ["forms:read"], | ||
| getFormStartingPoint: ["forms:read"], | ||
| listLandingPageStartingPoints: ["landing_pages:read"], | ||
| getLandingPageStartingPoint: ["landing_pages:read"], | ||
| createAnalyticsReport: ["analytics:read"], | ||
| listAutomationRunDiagnostics: ["automations:read"], | ||
| getAutomationRunDiagnostics: ["automations:read"], | ||
| getSequenceDiagnostics: ["sequences:read"], | ||
| getBroadcastDiagnostics: ["broadcasts:read"], | ||
| getSubscriberActivityDiagnostics: ["subscribers:read"], | ||
| listFormSubmissions: ["form_submissions:read"], | ||
| getFormSubmission: ["form_submissions:read"], | ||
| listLandingPageSubmissions: ["landing_page_submissions:read"], | ||
| getLandingPageSubmission: ["landing_page_submissions:read"], | ||
| previewEmailTemplate: ["email_templates:read", "subscribers:read"], | ||
| previewFormDoubleOptIn: ["forms:read", "subscribers:read"], | ||
| previewLandingPageDoubleOptIn: ["landing_pages:read", "subscribers:read"], | ||
| preflightSequence: ["sequences:read"], | ||
| previewSequenceJourney: ["sequences:read", "subscribers:read"], | ||
| testSequence: ["sequences:write", "subscribers:read"], | ||
| preflightAutomation: ["automations:read"], | ||
| previewAutomationJourney: ["automations:read", "subscribers:read"], | ||
| testAutomation: ["automations:write", "subscribers:read"], | ||
| getBroadcastSendProgress: ["broadcasts:read"], | ||
| listBroadcastDeliveryErrors: ["broadcasts:read"], | ||
| preflightBroadcast: ["broadcasts:read"], | ||
| testBroadcast: ["broadcasts:write", "subscribers:read"], | ||
| previewSegment: ["segments:read"], | ||
| startSubscriberImportUpload: ["subscribers:import"], | ||
| getSubscriberImportUpload: ["subscribers:import"], | ||
| createSubscriberImportJob: ["subscribers:import"], | ||
| listSubscriberImportJobs: ["subscribers:import"], | ||
| getSubscriberImportJob: ["subscribers:import"], | ||
| createSubscriberExportJob: ["subscribers:export"], | ||
| listSubscriberExportJobs: ["subscribers:export"], | ||
| getSubscriberExportJob: ["subscribers:export"], | ||
| }; | ||
| export const resolvePublicApiOperationRequiredScopes = (params) => { | ||
| const withLiveActionScope = (scopeKeys) => requiresPublicApiLiveActionPermission(params.operationId) | ||
| ? normalizePublicApiScopeKeys([ | ||
| ...scopeKeys, | ||
| "live_actions:write", | ||
| ]) | ||
| : normalizePublicApiScopeKeys(scopeKeys); | ||
| const explicit = explicitOperationScopes[params.operationId]; | ||
| if (explicit) { | ||
| return withLiveActionScope(explicit); | ||
| } | ||
| const resource = publicApiResourceContractByKey.get(params.resourceKey); | ||
| if (!resource) { | ||
| throw new Error(`Public API resource contract ${params.resourceKey} is not defined.`); | ||
| } | ||
| const action = params.method.toUpperCase() === "GET" ? "read" : "write"; | ||
| const matchingScope = publicApiScopeDefinitions.find((definition) => definition.resourceKey === (resource.scopeResourceKey ?? resource.key) && | ||
| definition.action === action); | ||
| if (!matchingScope) { | ||
| throw new Error(`Public API operation ${params.operationId} has no ${action} permission in resource contract ${params.resourceKey}.`); | ||
| } | ||
| return withLiveActionScope([matchingScope.key]); | ||
| }; | ||
| //# sourceMappingURL=resource-contract.js.map |
| {"version":3,"file":"resource-contract.js","sourceRoot":"","sources":["../src/resource-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,iBAAiB,CAAC;AAiCxE,MAAM,KAAK,GAAG,CAKZ,GAAQ,EACR,WAAwB,EACxB,MAAc,EACd,KAAa,EACb,WAAmB,EACnB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,CAAU,CAAC;AAEjE,MAAM,+BAA+B,GAAG;IACtC,KAAK,CACH,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,yFAAyF,CAC1F;IACD,KAAK,CACH,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,gBAAgB,EAChB,6EAA6E,CAC9E;IACD,KAAK,CACH,oBAAoB,EACpB,cAAc,EACd,OAAO,EACP,sBAAsB,EACtB,2KAA2K,CAC5K;IACD,KAAK,CACH,kBAAkB,EAClB,aAAa,EACb,MAAM,EACN,kBAAkB,EAClB,8GAA8G,CAC/G;IACD,KAAK,CACH,mBAAmB,EACnB,aAAa,EACb,OAAO,EACP,oBAAoB,EACpB,8FAA8F,CAC/F;IACD,KAAK,CACH,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,mEAAmE,CACpE;IACD,KAAK,CACH,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,iEAAiE,CAClE;IACD,KAAK,CAAC,eAAe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AAE,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3D,MAAM,aAAa,GAAG,yBAAyB,CAAC,IAAI,CAClD,CAAC,UAAU,EAAE,EAAE,CACb,UAAU,CAAC,WAAW,KAAK,CAAC,QAAQ,CAAC,gBAAgB,IAAI,QAAQ,CAAC,GAAG,CAAC;QACtE,UAAU,CAAC,MAAM,KAAK,MAAM,CAC/B,CAAC;IACF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,wBAAwB,MAAM,CAAC,WAAW,WAAW,MAAM,oCAAoC,MAAM,CAAC,WAAW,GAAG,CACrH,CAAC;IACJ,CAAC;IACD,OAAO,mBAAmB,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAClD,CAAC,CAAC"} |
+22
-1
| # Changelog | ||
| ## Unreleased | ||
| ## 0.2.0 - 2026-07-24 | ||
| - Replace fragmented action permissions with 33 stable resource permissions and 10 complete Work Profiles generated from one canonical resource contract, including one centrally derived Live Actions permission and one full-access default for general-purpose agents. | ||
| - Replace inline Subscriber import CSV bodies with short-lived, browser-completed upload sessions so agents receive only bounded headers and row counts. | ||
| - Publish actionable missing-permission details and compact MCP discovery metadata without loading the full operation catalog into agent context. | ||
| - Add direct stable-ID retrieval, self links, and compact import and export job lists across the public contract, SDKs, CLI, and MCP server. | ||
| - Add secret-free Sender Identity discovery and Broadcast schedule, reschedule, and unschedule operations. | ||
| - Add secure, short-lived browser handoff for email delivery connection creation and credential replacement so provider secrets never pass through agent requests. | ||
| - Add email delivery connection verification and idempotent real test-send operations. | ||
| - Make authenticated capabilities report only operations currently available to the credential, plan, workspace state, and rollout state, with actionable prerequisite details. | ||
| - Make MCP capability discovery honor internal task-focused toolsets and read-only filtering, and add bounded Sequence and Automation readiness, journey-preview, and test-message operations. | ||
| - Use one standard MCP URL with purpose-based optional OAuth permissions and actionable permission-upgrade errors. | ||
| - Require a saved Subscriber for every personalized Template, Broadcast, Sequence, Automation, Form, and Landing Page preview or test; report Subscriber eligibility and the selected Automation branch without changing saved data. | ||
| - Make large resource collections use indexed database search, keyset pagination, and compact summaries while keeping complete objects on individual GET operations. | ||
| - Require an active email delivery connection before creating Broadcasts, Sequences, Automations, Forms, or Landing Pages through any interface. | ||
| - Make public resource updates preserve every omitted field and publish exact schemas for email documents, Subscriber filters, Sequences, Automations, Forms, and Landing Pages. | ||
| - Remove the pre-launch Agent Sandbox surface. | ||
| - Remove the pre-launch Agent Activity resource and permission. | ||
| ## 0.1.2 - 2026-07-24 | ||
@@ -19,3 +40,3 @@ | ||
| - Publish the coordinated REST, OAuth, scope, risk, MCP, and SDK contract. | ||
| - Add scoped agent operations, sandbox behavior, and Agent Activity operations. | ||
| - Add scoped agent operations and pre-launch test-workspace behavior. | ||
| - Add focused support for Broadcasts, Sequences, Automations, content, targeting, capture, Webhooks, and data transfer. |
@@ -16,11 +16,12 @@ export declare const publicApiAgentRiskClasses: readonly ["read", "draft", "test", "execute", "bulk", "delete", "admin"]; | ||
| externalSideEffect: boolean; | ||
| requiresLiveAction: boolean; | ||
| sideEffectClass: PublicApiAgentSideEffectClass; | ||
| retryMode: PublicApiAgentRetryMode; | ||
| idempotencyPolicy: PublicApiAgentIdempotencyPolicy; | ||
| minimumPermission: string; | ||
| dataScope: PublicApiAgentDataScope; | ||
| rationale: string; | ||
| }; | ||
| export declare const publicApiAgentOperationRiskCatalog: readonly [PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk]; | ||
| export declare const publicApiAgentOperationRiskCatalog: readonly [PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk, PublicApiAgentOperationRisk]; | ||
| export declare const getPublicApiAgentOperationRisk: (operationId: string) => PublicApiAgentOperationRisk | null; | ||
| export declare const requiresPublicApiLiveActionPermission: (operationId: string) => boolean; | ||
| //# sourceMappingURL=agent-risk.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"agent-risk.d.ts","sourceRoot":"","sources":["../src/agent-risk.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,0EAQ5B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,wBAAwB,wDAI3B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C,eAAO,MAAM,iCAAiC,6DAIpC,CAAC;AAEX,MAAM,MAAM,+BAA+B,GACzC,CAAC,OAAO,iCAAiC,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,+BAA+B,+JAUlC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GACvC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,wBAAwB,oEAK3B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5C,MAAM,MAAM,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,uBAAuB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,6BAA6B,CAAC;IAC/C,SAAS,EAAE,uBAAuB,CAAC;IACnC,iBAAiB,EAAE,+BAA+B,CAAC;IACnD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,uBAAuB,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAmEF,eAAO,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,GAAI,aAAa,MAAM,uCACT,CAAC;AAE1D,eAAO,MAAM,qCAAqC,GAChD,aAAa,MAAM,YAEyD,CAAC"} |
+187
-97
@@ -37,3 +37,3 @@ export const publicApiAgentRiskClasses = [ | ||
| ]; | ||
| const read = (operationId, resourceKey, minimumPermission, dataScope, rationale) => ({ | ||
| const read = (operationId, resourceKey, dataScope, rationale) => ({ | ||
| operationId, | ||
@@ -43,12 +43,14 @@ resourceKey, | ||
| externalSideEffect: false, | ||
| requiresLiveAction: false, | ||
| sideEffectClass: "none", | ||
| retryMode: "safe", | ||
| idempotencyPolicy: "safe-read", | ||
| minimumPermission, | ||
| dataScope, | ||
| rationale, | ||
| }); | ||
| const change = (operationId, resourceKey, risk, minimumPermission, options) => { | ||
| const change = (operationId, resourceKey, risk, options) => { | ||
| const retryMode = options.retryMode ?? "idempotency-key"; | ||
| const externalSideEffect = options.externalSideEffect ?? false; | ||
| const requiresLiveAction = options.requiresLiveAction ?? | ||
| (risk === "execute" || risk === "test"); | ||
| const sideEffectClass = options.sideEffectClass ?? | ||
@@ -73,6 +75,6 @@ (risk === "delete" | ||
| externalSideEffect, | ||
| requiresLiveAction, | ||
| sideEffectClass, | ||
| retryMode, | ||
| idempotencyPolicy: retryMode === "resource-state" ? "resource-state" : "idempotency-key", | ||
| minimumPermission, | ||
| dataScope: options.dataScope ?? "workspace", | ||
@@ -83,21 +85,59 @@ rationale: options.rationale, | ||
| export const publicApiAgentOperationRiskCatalog = [ | ||
| read("getPublicApiMeta", "discovery", "public", "public", "Returns public version and discovery metadata."), | ||
| read("getPublicApiCapabilities", "discovery", "workspace:read", "workspace", "Returns the authenticated credential and workspace capability boundary."), | ||
| read("getPublicApiOpenApiDocument", "discovery", "public", "public", "Returns the public API contract without reading workspace data."), | ||
| read("getWorkspace", "workspace", "workspace:read", "workspace", "Reads one authenticated workspace profile."), | ||
| read("listAgentActivity", "agent_activity", "activity:read", "workspace", "Reads a bounded, redacted page of agent-originated workspace mutations."), | ||
| read("getAgentActivity", "agent_activity", "activity:read", "workspace", "Reads one redacted agent mutation trail by its stable action identifier."), | ||
| read("createAnalyticsReport", "analytics", "analytics:read", "workspace", "Creates or reuses one bounded, expiring aggregate report from compact rollups."), | ||
| read("getAnalyticsReport", "analytics", "analytics:read", "workspace", "Reads one bounded, expiring aggregate report."), | ||
| read("listAutomationRunDiagnostics", "diagnostics", "automations:read", "workspace", "Reads a bounded page of redacted Automation run diagnostics."), | ||
| read("getAutomationRunDiagnostics", "diagnostics", "automations:read", "workspace", "Reads one redacted Automation run and its bounded step diagnostics."), | ||
| read("getSequenceDiagnostics", "diagnostics", "sequences:read", "workspace", "Reads bounded Sequence failure and retry diagnostics."), | ||
| read("getBroadcastDiagnostics", "diagnostics", "broadcasts:read", "workspace", "Reads bounded Broadcast selection, provider readiness, and delivery reasons."), | ||
| read("getSubscriberActivityDiagnostics", "diagnostics", "subscribers:read", "subscriber", "Reads one privacy-conscious Subscriber activity and subscription summary without an email address."), | ||
| read("listSubscribers", "subscribers", "subscribers:read", "subscriber", "Reads a bounded, cursor-paginated page of Subscribers."), | ||
| change("upsertSubscriber", "subscribers", "execute", "subscribers:profile", { | ||
| read("getPublicApiMeta", "discovery", "public", "Returns public version and discovery metadata."), | ||
| read("getPublicApiCapabilities", "discovery", "workspace", "Returns the authenticated credential and workspace capability boundary."), | ||
| read("getPublicApiOpenApiDocument", "discovery", "public", "Returns the public API contract without reading workspace data."), | ||
| read("getWorkspace", "workspace", "workspace", "Reads one authenticated workspace profile."), | ||
| read("listSenderIdentities", "sender_identities", "workspace", "Reads a bounded page of enabled sender metadata without provider credentials."), | ||
| read("getSenderIdentity", "sender_identities", "workspace", "Reads one enabled sender identity without provider credentials."), | ||
| read("listEmailDeliveryConnections", "email_delivery_connections", "workspace", "Reads a bounded page of secret-free delivery connection metadata."), | ||
| change("startEmailDeliveryConnectionSetup", "email_delivery_connections", "admin", { | ||
| sideEffectClass: "secret-change", | ||
| retryMode: "resource-state", | ||
| rationale: "Creates a short-lived browser handoff so provider credentials never pass through the agent API.", | ||
| }), | ||
| read("getEmailDeliveryConnectionSetup", "email_delivery_connections", "workspace", "Reads the bounded status of one short-lived secure setup session."), | ||
| change("renewEmailDeliveryConnectionSetup", "email_delivery_connections", "admin", { | ||
| sideEffectClass: "secret-change", | ||
| retryMode: "resource-state", | ||
| rationale: "Reissues a short-lived browser handoff from bounded non-secret setup context.", | ||
| }), | ||
| read("listEmailStartingPoints", "starting_points", "workspace", "Reads compact metadata for the canonical email starting points shared with the Mailrith UI."), | ||
| read("getEmailStartingPoint", "starting_points", "workspace", "Reads one canonical email starting point on demand."), | ||
| read("listFormStartingPoints", "starting_points", "workspace", "Reads compact metadata for the canonical Form starting points shared with the Mailrith UI."), | ||
| read("getFormStartingPoint", "starting_points", "workspace", "Reads one canonical Form starting point on demand."), | ||
| read("listLandingPageStartingPoints", "starting_points", "workspace", "Reads compact metadata for the canonical Landing Page starting points shared with the Mailrith UI."), | ||
| read("getLandingPageStartingPoint", "starting_points", "workspace", "Reads one canonical Landing Page starting point on demand."), | ||
| read("getEmailDeliveryConnection", "email_delivery_connections", "workspace", "Reads one secret-free delivery connection linked to the workspace."), | ||
| change("updateEmailDeliveryConnection", "email_delivery_connections", "admin", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes non-secret sender settings for one workspace-only connection.", | ||
| }), | ||
| change("updateEmailDeliveryConnectionStatus", "email_delivery_connections", "admin", { | ||
| retryMode: "resource-state", | ||
| rationale: "Enables or disables a delivery connection and can change whether workspace resources may be created or sent.", | ||
| }), | ||
| read("verifyEmailDeliveryConnection", "email_delivery_connections", "workspace", "Checks the saved provider credential and sender without storing a verification history."), | ||
| change("testEmailDeliveryConnection", "email_delivery_connections", "test", { | ||
| externalSideEffect: true, | ||
| sideEffectClass: "external-email", | ||
| rationale: "Sends one real test email to a controlled recipient.", | ||
| }), | ||
| change("deleteEmailDeliveryConnection", "email_delivery_connections", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Deletes one eligible workspace-only delivery connection and its saved provider credentials.", | ||
| }), | ||
| read("createAnalyticsReport", "analytics", "workspace", "Creates or reuses one bounded, expiring aggregate report from compact rollups."), | ||
| read("getAnalyticsReport", "analytics", "workspace", "Reads one bounded, expiring aggregate report."), | ||
| read("listAutomationRunDiagnostics", "diagnostics", "workspace", "Reads a bounded page of redacted Automation run diagnostics."), | ||
| read("getAutomationRunDiagnostics", "diagnostics", "workspace", "Reads one redacted Automation run and its bounded step diagnostics."), | ||
| read("getSequenceDiagnostics", "diagnostics", "workspace", "Reads bounded Sequence failure and retry diagnostics."), | ||
| read("getBroadcastDiagnostics", "diagnostics", "workspace", "Reads bounded Broadcast selection, provider readiness, and delivery reasons."), | ||
| read("getSubscriberActivityDiagnostics", "diagnostics", "subscriber", "Reads one privacy-conscious Subscriber activity and subscription summary without an email address."), | ||
| read("listSubscribers", "subscribers", "subscriber", "Reads a bounded, cursor-paginated page of Subscribers."), | ||
| read("getSubscriber", "subscribers", "subscriber", "Reads one Subscriber by its stable identifier."), | ||
| change("upsertSubscriber", "subscribers", "execute", { | ||
| dataScope: "subscriber", | ||
| rationale: "Creates or changes one Subscriber and can change sending eligibility.", | ||
| }), | ||
| change("updateSubscriber", "subscribers", "draft", "subscribers:profile", { | ||
| change("updateSubscriber", "subscribers", "draft", { | ||
| retryMode: "resource-state", | ||
@@ -107,3 +147,3 @@ dataScope: "subscriber", | ||
| }), | ||
| change("deleteSubscriber", "subscribers", "delete", "subscribers:delete", { | ||
| change("deleteSubscriber", "subscribers", "delete", { | ||
| retryMode: "resource-state", | ||
@@ -113,3 +153,3 @@ dataScope: "subscriber", | ||
| }), | ||
| change("updateSubscriberStatus", "subscribers", "execute", "subscriptions:write", { | ||
| change("updateSubscriberStatus", "subscribers", "execute", { | ||
| retryMode: "resource-state", | ||
@@ -119,3 +159,3 @@ dataScope: "subscriber", | ||
| }), | ||
| change("addSubscriberTag", "subscribers", "execute", "subscribers:targeting", { | ||
| change("addSubscriberTag", "subscribers", "execute", { | ||
| retryMode: "resource-state", | ||
@@ -125,3 +165,3 @@ dataScope: "subscriber", | ||
| }), | ||
| change("removeSubscriberTag", "subscribers", "execute", "subscribers:targeting", { | ||
| change("removeSubscriberTag", "subscribers", "execute", { | ||
| retryMode: "resource-state", | ||
@@ -131,3 +171,3 @@ dataScope: "subscriber", | ||
| }), | ||
| change("addSubscriberSequence", "subscribers", "execute", "subscribers:sequence_enroll", { | ||
| change("addSubscriberSequence", "subscribers", "execute", { | ||
| externalSideEffect: true, | ||
@@ -139,3 +179,3 @@ sideEffectClass: "external-email", | ||
| }), | ||
| change("removeSubscriberSequence", "subscribers", "execute", "subscribers:sequence_enroll", { | ||
| change("removeSubscriberSequence", "subscribers", "execute", { | ||
| retryMode: "resource-state", | ||
@@ -145,81 +185,99 @@ dataScope: "subscriber", | ||
| }), | ||
| read("listTags", "tags", "tags:read", "workspace", "Reads the bounded Tag catalog."), | ||
| change("createTag", "tags", "draft", "tags:configure", { | ||
| read("listTags", "tags", "workspace", "Reads the bounded Tag catalog."), | ||
| change("createTag", "tags", "draft", { | ||
| rationale: "Creates targeting metadata without contacting Subscribers.", | ||
| }), | ||
| read("getTag", "tags", "tags:read", "workspace", "Reads one Tag definition."), | ||
| change("updateTag", "tags", "draft", "tags:configure", { | ||
| read("getTag", "tags", "workspace", "Reads one Tag definition."), | ||
| change("updateTag", "tags", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes targeting metadata without contacting Subscribers.", | ||
| }), | ||
| change("deleteTag", "tags", "delete", "tags:delete", { | ||
| change("deleteTag", "tags", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes targeting metadata when no saved resource references it.", | ||
| }), | ||
| read("listCustomFields", "custom_fields", "custom_fields:read", "workspace", "Reads the bounded custom-field schema."), | ||
| change("createCustomField", "custom_fields", "draft", "custom_fields:configure", { rationale: "Creates a custom-field definition." }), | ||
| read("getCustomField", "custom_fields", "custom_fields:read", "workspace", "Reads one custom-field definition."), | ||
| change("updateCustomField", "custom_fields", "draft", "custom_fields:configure", { | ||
| read("listCustomFields", "custom_fields", "workspace", "Reads the bounded custom-field schema."), | ||
| change("createCustomField", "custom_fields", "draft", { rationale: "Creates a custom-field definition." }), | ||
| read("getCustomField", "custom_fields", "workspace", "Reads one custom-field definition."), | ||
| change("updateCustomField", "custom_fields", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a custom-field definition used by Subscriber data.", | ||
| }), | ||
| change("deleteCustomField", "custom_fields", "delete", "custom_fields:delete", { | ||
| change("deleteCustomField", "custom_fields", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes a field definition and associated values.", | ||
| }), | ||
| read("listEmailTemplates", "email_templates", "email_templates:read", "workspace", "Reads a bounded page of reusable email templates."), | ||
| change("createEmailTemplate", "email_templates", "draft", "email_templates:draft", { rationale: "Creates reusable draft content without sending email." }), | ||
| read("getEmailTemplate", "email_templates", "email_templates:read", "workspace", "Reads one reusable email template."), | ||
| change("updateEmailTemplate", "email_templates", "draft", "email_templates:draft", { | ||
| read("listEmailTemplates", "email_templates", "workspace", "Reads a bounded page of reusable email templates."), | ||
| change("createEmailTemplate", "email_templates", "draft", { rationale: "Creates reusable draft content without sending email." }), | ||
| read("getEmailTemplate", "email_templates", "workspace", "Reads one reusable email template."), | ||
| read("previewEmailTemplate", "email_templates", "subscriber", "Renders one reusable email template with one saved Subscriber without sending or saving anything."), | ||
| change("updateEmailTemplate", "email_templates", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes reusable draft content without sending email.", | ||
| }), | ||
| change("deleteEmailTemplate", "email_templates", "delete", "email_templates:delete", { | ||
| change("deleteEmailTemplate", "email_templates", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes reusable email content.", | ||
| }), | ||
| read("listForms", "forms", "forms:read", "workspace", "Reads a bounded page of Forms."), | ||
| change("createForm", "forms", "draft", "forms:configure", { | ||
| read("listForms", "forms", "workspace", "Reads a bounded page of Forms."), | ||
| change("createForm", "forms", "draft", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| rationale: "Creates a publicly reachable Subscriber capture surface.", | ||
| }), | ||
| read("getForm", "forms", "forms:read", "workspace", "Reads one Form definition."), | ||
| read("listFormSubmissions", "forms", "forms:submissions_read", "subscriber", "Reads a bounded page of Form submissions and Subscriber data."), | ||
| change("updateForm", "forms", "draft", "forms:configure", { | ||
| read("getForm", "forms", "workspace", "Reads one Form definition."), | ||
| read("listFormSubmissions", "forms", "subscriber", "Reads a bounded page of Form submissions and Subscriber data."), | ||
| read("getFormSubmission", "forms", "subscriber", "Reads one retained Form submission by stable identifier."), | ||
| read("previewFormDoubleOptIn", "forms", "subscriber", "Renders one Form confirmation email with one saved Subscriber without sending or saving anything."), | ||
| change("updateForm", "forms", "draft", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a publicly reachable Subscriber capture surface.", | ||
| }), | ||
| change("deleteForm", "forms", "delete", "forms:delete", { | ||
| change("deleteForm", "forms", "delete", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Removes a public Subscriber capture surface.", | ||
| }), | ||
| read("listLandingPages", "landing_pages", "landing_pages:read", "workspace", "Reads a bounded page of Landing Pages."), | ||
| change("createLandingPage", "landing_pages", "draft", "landing_pages:configure", { | ||
| read("listLandingPages", "landing_pages", "workspace", "Reads a bounded page of Landing Pages."), | ||
| change("createLandingPage", "landing_pages", "draft", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| rationale: "Creates a publicly reachable hosted page.", | ||
| }), | ||
| read("getLandingPage", "landing_pages", "landing_pages:read", "workspace", "Reads one Landing Page definition."), | ||
| read("listLandingPageSubmissions", "landing_pages", "landing_pages:submissions_read", "subscriber", "Reads a bounded page of Landing Page submissions and Subscriber data."), | ||
| change("updateLandingPage", "landing_pages", "draft", "landing_pages:configure", { | ||
| read("getLandingPage", "landing_pages", "workspace", "Reads one Landing Page definition."), | ||
| read("listLandingPageSubmissions", "landing_pages", "subscriber", "Reads a bounded page of Landing Page submissions and Subscriber data."), | ||
| read("getLandingPageSubmission", "landing_pages", "subscriber", "Reads one retained Landing Page submission by stable identifier."), | ||
| read("previewLandingPageDoubleOptIn", "landing_pages", "subscriber", "Renders one Landing Page confirmation email with one saved Subscriber without sending or saving anything."), | ||
| change("updateLandingPage", "landing_pages", "draft", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a publicly reachable hosted page.", | ||
| }), | ||
| change("deleteLandingPage", "landing_pages", "delete", "landing_pages:delete", { | ||
| change("deleteLandingPage", "landing_pages", "delete", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Removes a public hosted page.", | ||
| }), | ||
| read("listSequences", "sequences", "sequences:read", "workspace", "Reads a bounded page of Sequences and aggregate results."), | ||
| change("createSequence", "sequences", "draft", "sequences:draft", { | ||
| read("listSequences", "sequences", "workspace", "Reads a bounded page of Sequences and aggregate results."), | ||
| change("createSequence", "sequences", "draft", { | ||
| rationale: "Creates a paused Sequence without starting delivery.", | ||
| }), | ||
| read("getSequence", "sequences", "sequences:read", "workspace", "Reads one Sequence definition and aggregate results."), | ||
| change("updateSequence", "sequences", "draft", "sequences:draft", { | ||
| read("getSequence", "sequences", "workspace", "Reads one Sequence definition and aggregate results."), | ||
| read("preflightSequence", "sequences", "workspace", "Runs bounded Sequence readiness checks without changing the Sequence."), | ||
| read("previewSequenceJourney", "sequences", "workspace", "Returns a bounded, side-effect-free timeline of the Sequence emails."), | ||
| change("testSequence", "sequences", "test", { | ||
| externalSideEffect: true, | ||
| sideEffectClass: "external-email", | ||
| rationale: "Sends at most five selected Sequence messages to one explicit test address without enrolling Subscribers.", | ||
| }), | ||
| change("updateSequence", "sequences", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a paused Sequence without starting delivery.", | ||
| }), | ||
| change("updateSequenceStatus", "sequences", "execute", "sequences:activate", { | ||
| change("updateSequenceStatus", "sequences", "execute", { | ||
| externalSideEffect: true, | ||
@@ -230,16 +288,23 @@ sideEffectClass: "external-email", | ||
| }), | ||
| change("deleteSequence", "sequences", "delete", "sequences:delete", { | ||
| change("deleteSequence", "sequences", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes a lifecycle workflow.", | ||
| }), | ||
| read("listAutomations", "automations", "automations:read", "workspace", "Reads a bounded page of Automation definitions and states."), | ||
| change("createAutomation", "automations", "draft", "automations:draft", { | ||
| read("listAutomations", "automations", "workspace", "Reads a bounded page of Automation definitions and states."), | ||
| change("createAutomation", "automations", "draft", { | ||
| rationale: "Creates an inactive Automation without running actions.", | ||
| }), | ||
| read("getAutomation", "automations", "automations:read", "workspace", "Reads one Automation definition and state."), | ||
| change("updateAutomation", "automations", "draft", "automations:draft", { | ||
| read("getAutomation", "automations", "workspace", "Reads one Automation definition and state."), | ||
| read("preflightAutomation", "automations", "workspace", "Runs bounded Automation readiness checks without running any actions."), | ||
| read("previewAutomationJourney", "automations", "workspace", "Returns a bounded, side-effect-free view of Automation triggers, steps, and branches."), | ||
| change("testAutomation", "automations", "test", { | ||
| externalSideEffect: true, | ||
| sideEffectClass: "external-email", | ||
| rationale: "Sends at most five selected Automation email steps to one explicit test address without running actions.", | ||
| }), | ||
| change("updateAutomation", "automations", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes an inactive Automation without running actions.", | ||
| }), | ||
| change("updateAutomationStatus", "automations", "execute", "automations:activate", { | ||
| change("updateAutomationStatus", "automations", "execute", { | ||
| externalSideEffect: true, | ||
@@ -250,13 +315,13 @@ sideEffectClass: "external-email", | ||
| }), | ||
| change("deleteAutomation", "automations", "delete", "automations:delete", { | ||
| change("deleteAutomation", "automations", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes an Automation workflow.", | ||
| }), | ||
| read("listMagicLinks", "magic_links", "magic_links:read", "workspace", "Reads a bounded page of Magic Links."), | ||
| change("createMagicLink", "magic_links", "execute", "magic_links:configure", { | ||
| read("listMagicLinks", "magic_links", "workspace", "Reads a bounded page of Magic Links."), | ||
| change("createMagicLink", "magic_links", "execute", { | ||
| externalSideEffect: true, | ||
| rationale: "Creates a public link that can change Subscriber state when used.", | ||
| }), | ||
| read("getMagicLink", "magic_links", "magic_links:read", "workspace", "Reads one Magic Link definition."), | ||
| change("updateMagicLink", "magic_links", "execute", "magic_links:configure", { | ||
| read("getMagicLink", "magic_links", "workspace", "Reads one Magic Link definition."), | ||
| change("updateMagicLink", "magic_links", "execute", { | ||
| externalSideEffect: true, | ||
@@ -266,67 +331,82 @@ retryMode: "resource-state", | ||
| }), | ||
| change("deleteMagicLink", "magic_links", "delete", "magic_links:delete", { | ||
| change("deleteMagicLink", "magic_links", "delete", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Removes a public link and its configured action.", | ||
| }), | ||
| read("listBroadcasts", "broadcasts", "broadcasts:read", "workspace", "Reads a bounded page of Broadcasts and aggregate results."), | ||
| change("createBroadcast", "broadcasts", "draft", "broadcasts:draft", { | ||
| read("listBroadcasts", "broadcasts", "workspace", "Reads a bounded page of Broadcasts and aggregate results."), | ||
| change("createBroadcast", "broadcasts", "draft", { | ||
| rationale: "Creates a Broadcast draft without scheduling or sending it.", | ||
| }), | ||
| read("getBroadcastSendProgress", "broadcasts", "broadcasts:read", "workspace", "Reads bounded progress aggregates without scanning recipient delivery rows."), | ||
| read("listBroadcastDeliveryErrors", "broadcasts", "broadcasts:read", "subscriber", "Reads a bounded, keyset-paginated page of delivery failures."), | ||
| read("getBroadcast", "broadcasts", "broadcasts:read", "workspace", "Reads one Broadcast and aggregate results."), | ||
| change("updateBroadcast", "broadcasts", "draft", "broadcasts:draft", { | ||
| read("getBroadcastSendProgress", "broadcasts", "workspace", "Reads bounded progress aggregates without scanning recipient delivery rows."), | ||
| read("listBroadcastDeliveryErrors", "broadcasts", "subscriber", "Reads a bounded, keyset-paginated page of delivery failures."), | ||
| read("getBroadcast", "broadcasts", "workspace", "Reads one Broadcast and aggregate results."), | ||
| change("updateBroadcast", "broadcasts", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a Broadcast draft without scheduling or sending it.", | ||
| }), | ||
| change("deleteBroadcast", "broadcasts", "delete", "broadcasts:delete", { | ||
| change("deleteBroadcast", "broadcasts", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes an eligible Broadcast.", | ||
| }), | ||
| read("preflightBroadcast", "broadcasts", "broadcasts:preflight", "workspace", "Runs bounded readiness checks and returns counts rather than Subscriber rows."), | ||
| change("sendBroadcast", "broadcasts", "execute", "broadcasts:send", { | ||
| read("preflightBroadcast", "broadcasts", "workspace", "Runs bounded readiness checks and returns counts rather than Subscriber rows."), | ||
| change("scheduleBroadcast", "broadcasts", "execute", { | ||
| externalSideEffect: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Schedules durable delivery to real Subscribers at a future time.", | ||
| }), | ||
| change("unscheduleBroadcast", "broadcasts", "execute", { | ||
| retryMode: "resource-state", | ||
| rationale: "Cancels future delivery before it starts and returns the Broadcast to draft state.", | ||
| }), | ||
| change("sendBroadcast", "broadcasts", "execute", { | ||
| externalSideEffect: true, | ||
| rationale: "Starts durable delivery to real Subscribers.", | ||
| }), | ||
| change("cancelBroadcastSend", "broadcasts", "execute", "broadcasts:cancel", { | ||
| change("cancelBroadcastSend", "broadcasts", "execute", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| rationale: "Stops remaining delivery work and must remain available as a safety action.", | ||
| }), | ||
| change("testBroadcast", "broadcasts", "test", "broadcasts:test", { | ||
| change("testBroadcast", "broadcasts", "test", { | ||
| externalSideEffect: true, | ||
| rationale: "Sends one real test email to a controlled recipient.", | ||
| }), | ||
| read("listSegments", "segments", "segments:read", "workspace", "Reads a bounded page of saved Segments."), | ||
| change("createSegment", "segments", "draft", "segments:configure", { | ||
| read("listSegments", "segments", "workspace", "Reads a bounded page of saved Segments."), | ||
| change("createSegment", "segments", "draft", { | ||
| rationale: "Creates a saved Subscriber-selection definition.", | ||
| }), | ||
| read("getSegment", "segments", "segments:read", "workspace", "Reads one saved Segment definition."), | ||
| change("updateSegment", "segments", "draft", "segments:configure", { | ||
| read("getSegment", "segments", "workspace", "Reads one saved Segment definition."), | ||
| change("updateSegment", "segments", "draft", { | ||
| retryMode: "resource-state", | ||
| rationale: "Changes a saved Subscriber-selection definition.", | ||
| }), | ||
| change("deleteSegment", "segments", "delete", "segments:delete", { | ||
| change("deleteSegment", "segments", "delete", { | ||
| retryMode: "resource-state", | ||
| rationale: "Permanently removes a saved Subscriber-selection definition.", | ||
| }), | ||
| read("previewSegment", "segments", "segments:read", "subscriber", "Returns bounded aggregate counts for an unsaved Segment definition."), | ||
| read("listWebhookSubscriptions", "webhook_subscriptions", "webhooks:read", "workspace", "Reads a bounded page of webhook destinations and delivery health."), | ||
| change("createWebhookSubscription", "webhook_subscriptions", "admin", "webhooks:write", { | ||
| read("previewSegment", "segments", "subscriber", "Returns bounded aggregate counts for an unsaved Segment definition."), | ||
| read("listWebhookSubscriptions", "webhook_subscriptions", "workspace", "Reads a bounded page of webhook destinations and delivery health."), | ||
| change("createWebhookSubscription", "webhook_subscriptions", "admin", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| rationale: "Creates an outbound data destination and returns new secret material once.", | ||
| }), | ||
| read("getWebhookSubscription", "webhook_subscriptions", "webhooks:read", "workspace", "Reads one webhook destination and delivery health record."), | ||
| change("updateWebhookSubscription", "webhook_subscriptions", "admin", "webhooks:write", { | ||
| read("getWebhookSubscription", "webhook_subscriptions", "workspace", "Reads one webhook destination and delivery health record."), | ||
| change("updateWebhookSubscription", "webhook_subscriptions", "admin", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Changes an outbound data destination or subscribed events.", | ||
| }), | ||
| change("deleteWebhookSubscription", "webhook_subscriptions", "delete", "webhooks:write", { | ||
| change("deleteWebhookSubscription", "webhook_subscriptions", "delete", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| retryMode: "resource-state", | ||
| rationale: "Removes an outbound event destination.", | ||
| }), | ||
| change("rotateWebhookSubscriptionSecret", "webhook_subscriptions", "admin", "webhooks:write", { | ||
| change("rotateWebhookSubscriptionSecret", "webhook_subscriptions", "admin", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| sideEffectClass: "secret-change", | ||
@@ -336,13 +416,22 @@ retryMode: "resource-state", | ||
| }), | ||
| change("createSubscriberImportJob", "jobs", "bulk", "subscribers:bulk_import", { | ||
| read("listSubscriberImportJobs", "jobs", "bulk-subscribers", "Reads a bounded page of recent Subscriber import job summaries."), | ||
| change("startSubscriberImportUpload", "jobs", "draft", { | ||
| retryMode: "resource-state", | ||
| dataScope: "bulk-subscribers", | ||
| rationale: "Creates a short-lived browser handoff without importing or storing Subscriber rows.", | ||
| }), | ||
| read("getSubscriberImportUpload", "jobs", "workspace", "Reads bounded status and CSV column metadata for one short-lived upload."), | ||
| change("createSubscriberImportJob", "jobs", "bulk", { | ||
| externalSideEffect: true, | ||
| requiresLiveAction: true, | ||
| dataScope: "bulk-subscribers", | ||
| rationale: "Changes many Subscribers and can enroll them in running Sequences.", | ||
| }), | ||
| read("getSubscriberImportJob", "jobs", "subscribers:bulk_import", "workspace", "Reads one bounded import summary."), | ||
| change("createSubscriberExportJob", "jobs", "bulk", "subscribers:bulk_export", { | ||
| read("getSubscriberImportJob", "jobs", "workspace", "Reads one bounded import summary."), | ||
| read("listSubscriberExportJobs", "jobs", "bulk-subscribers", "Reads a bounded page of recent Subscriber export job summaries."), | ||
| change("createSubscriberExportJob", "jobs", "bulk", { | ||
| dataScope: "bulk-subscribers", | ||
| rationale: "Creates an export containing bulk Subscriber data.", | ||
| }), | ||
| read("getSubscriberExportJob", "jobs", "subscribers:bulk_export", "bulk-subscribers", "Reads export status and a short-lived download location."), | ||
| read("getSubscriberExportJob", "jobs", "bulk-subscribers", "Reads export status and a short-lived download location."), | ||
| ]; | ||
@@ -358,2 +447,3 @@ const publicApiAgentOperationRiskMap = new Map(publicApiAgentOperationRiskCatalog.map((definition) => [ | ||
| export const getPublicApiAgentOperationRisk = (operationId) => publicApiAgentOperationRiskMap.get(operationId) ?? null; | ||
| export const requiresPublicApiLiveActionPermission = (operationId) => publicApiAgentOperationRiskMap.get(operationId)?.requiresLiveAction === true; | ||
| //# sourceMappingURL=agent-risk.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"agent-risk.js","sourceRoot":"","sources":["../src/agent-risk.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,MAAM;IACN,QAAQ;IACR,OAAO;CACC,CAAC;AAKX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,MAAM;IACN,gBAAgB;IAChB,iBAAiB;CACT,CAAC;AAKX,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,WAAW;IACX,gBAAgB;IAChB,iBAAiB;CACT,CAAC;AAKX,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,MAAM;IACN,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;IAChB,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,eAAe;IACf,UAAU;CACF,CAAC;AAKX,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ;IACR,WAAW;IACX,YAAY;IACZ,kBAAkB;CACV,CAAC;AAkBX,MAAM,IAAI,GAAG,CACX,WAAmB,EACnB,WAAmB,EACnB,iBAAyB,EACzB,SAAkC,EAClC,SAAiB,EACY,EAAE,CAAC,CAAC;IACjC,WAAW;IACX,WAAW;IACX,IAAI,EAAE,MAAM;IACZ,kBAAkB,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AAgB;QAC3B,SAAS,EAAE,wCAAwC;KACpD,CACF;IACD,MAAM,CACJ,iCAAiC,EACjC,uBAAuB,EACvB,OAAO,EACP,gBAAgB,EAChB;QACE,kBAAkB,EAAE,IAAI;QACxB,eAAe,EAAE,eAAe;QAChC,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,oEAAoE;KAChF,CACF;IACD,MAAM,CACJ,2BAA2B,EAC3B,MAAM,EACN,MAAM,EACN,yBAAyB,EACzB;QACE,kBAAkB,EAAE,IAAI;QACxB,SAAS,EAAE,kBAAkB;QAC7B,SAAS,EACP,oEAAoE;KACvE,CACF;IACD,IAAI,CACF,wBAAwB,EACxB,MAAM,EACN,yBAAyB,EACzB,WAAW,EACX,mCAAmC,CACpC;IACD,MAAM,CACJ,2BAA2B,EAC3B,MAAM,EACN,MAAM,EACN,yBAAyB,EACzB;QACE,SAAS,EAAE,kBAAkB;QAC7B,SAAS,EAAE,oDAAoD;KAChE,CACF;IACD,IAAI,CACF,wBAAwB,EACxB,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,0DAA0D,CAC3D;CACwD,CAAC;AAE5D,MAAM,8BAA8B,GAAG,IAAI,GAAG,CAC5C,kCAAkC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IACrD,UAAU,CAAC,WAAW;IACtB,UAAU;CACX,CAAC,CACH,CAAC;AAEF,IACE,8BAA8B,CAAC,IAAI;IACnC,kCAAkC,CAAC,MAAM,EACzC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;AACrF,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,WAAmB,EAAE,EAAE,CACpE,8BAA8B,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC"} | ||
| {"version":3,"file":"agent-risk.js","sourceRoot":"","sources":["../src/agent-risk.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC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CAAkC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IACrD,UAAU,CAAC,WAAW;IACtB,UAAU;CACX,CAAC,CACH,CAAC;AAEF,IACE,8BAA8B,CAAC,IAAI;IACnC,kCAAkC,CAAC,MAAM,EACzC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;AACrF,CAAC;AAED,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,WAAmB,EAAE,EAAE,CACpE,8BAA8B,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;AAE1D,MAAM,CAAC,MAAM,qCAAqC,GAAG,CACnD,WAAmB,EACnB,EAAE,CACF,8BAA8B,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC"} |
+5
-36
@@ -1,10 +0,9 @@ | ||
| import type { PublicApiScopeKey } from "./scopes.js"; | ||
| import type { PublicApiAgentIdempotencyPolicy, PublicApiAgentRetryMode, PublicApiAgentRiskClass, PublicApiAgentSideEffectClass } from "./agent-risk.js"; | ||
| import type { PublicApiMcpToolAnnotations, PublicApiMcpToolsetKey } from "./mcp-contract.js"; | ||
| export { getPublicApiAgentOperationRisk, publicApiAgentDataScopes, publicApiAgentIdempotencyPolicies, publicApiAgentOperationRiskCatalog, publicApiAgentRetryModes, publicApiAgentRiskClasses, publicApiAgentSideEffectClasses, } from "./agent-risk.js"; | ||
| export { getPublicApiAgentOperationRisk, publicApiAgentDataScopes, publicApiAgentIdempotencyPolicies, publicApiAgentOperationRiskCatalog, publicApiAgentRetryModes, publicApiAgentRiskClasses, publicApiAgentSideEffectClasses, requiresPublicApiLiveActionPermission, } from "./agent-risk.js"; | ||
| export type { PublicApiAgentDataScope, PublicApiAgentIdempotencyPolicy, PublicApiAgentOperationRisk, PublicApiAgentRetryMode, PublicApiAgentRiskClass, PublicApiAgentSideEffectClass, } from "./agent-risk.js"; | ||
| export { createPublicApiMcpOperationContract, createPublicApiMcpToolAnnotations, isPublicApiMcpToolsetKey, publicApiMcpErrorCategories, publicApiMcpToolsetKeys, publicApiMcpToolsets, resolvePublicApiMcpToolsets, } from "./mcp-contract.js"; | ||
| export type { PublicApiMcpErrorCategory, PublicApiMcpOperationContract, PublicApiMcpToolAnnotations, PublicApiMcpToolset, PublicApiMcpToolsetKey, } from "./mcp-contract.js"; | ||
| export { isPublicApiScopeKey, normalizePublicApiScopeKeys, validatePublicApiScopeKeys, publicApiAgentReadQuickstartScopeKeys, publicApiDefaultScopeKeys, publicApiReadScopeKeys, publicApiScopeDefinitionByKey, publicApiScopeDefinitions, publicApiScopeDisplaySections, publicApiScopeKeys, publicApiScopePresetByKey, publicApiScopePresetDisplaySections, publicApiScopePresets, publicApiScopeResourceOrder, } from "./scopes.js"; | ||
| export type { PublicApiScopeAction, PublicApiScopeDefinition, PublicApiScopeKey, PublicApiScopePreset, PublicApiScopePresetKey, } from "./scopes.js"; | ||
| export { isPublicApiScopeKey, normalizePublicApiScopeKeys, validatePublicApiScopeKeys, publicApiAgentReadQuickstartScopeKeys, publicApiDefaultWorkProfileKey, publicApiDefaultScopeKeys, publicApiReadScopeKeys, publicApiScopeDefinitionByKey, publicApiScopeDefinitions, publicApiScopeDisplaySections, publicApiScopeKeys, publicApiResourceContractByKey, publicApiResourceContracts, publicApiWorkProfileByKey, publicApiWorkProfileDisplaySections, publicApiWorkProfiles, publicApiScopeResourceOrder, resolvePublicApiOperationRequiredScopes, } from "./resource-contract.js"; | ||
| export type { PublicApiResourceArchetype, PublicApiResourceContract, PublicApiScopeAction, PublicApiScopeDefinition, PublicApiScopeKey, PublicApiWorkProfile, PublicApiWorkProfileKey, } from "./resource-contract.js"; | ||
| export type PublicApiSection = { | ||
@@ -42,8 +41,3 @@ id: string; | ||
| }>; | ||
| "x-mailrith-payload-field-scopes"?: Record<string, readonly string[]>; | ||
| }; | ||
| export type PublicApiPayloadFieldScopeRequirements = { | ||
| description: string; | ||
| requiredScopesByField: Record<string, readonly PublicApiScopeKey[]>; | ||
| }; | ||
| export type PublicApiTagDefinition = { | ||
@@ -78,16 +72,3 @@ name: string; | ||
| requiredScopes: string[]; | ||
| eventPatternScopeRequirements?: PublicApiWebhookEventPatternScopeRequirements; | ||
| payloadFieldScopeRequirements?: PublicApiPayloadFieldScopeRequirements; | ||
| }; | ||
| export declare const publicApiSubscriberPayloadFieldScopeRequirements: { | ||
| readonly description: "Subscriber relationship fields require their matching granular permission in addition to the operation's base permissions."; | ||
| readonly requiredScopesByField: { | ||
| readonly status: readonly ["subscriptions:write"]; | ||
| readonly existing_tag_ids: readonly ["subscribers:targeting"]; | ||
| readonly new_tags: readonly ["subscribers:targeting"]; | ||
| readonly form_id: readonly ["subscribers:targeting"]; | ||
| readonly sequence_ids: readonly ["subscribers:sequence_enroll"]; | ||
| readonly consent_evidence: readonly ["subscriptions:write"]; | ||
| }; | ||
| }; | ||
| export type PublicApiCapabilityResource = { | ||
@@ -99,7 +80,2 @@ key: string; | ||
| }; | ||
| export type PublicApiWebhookEventPatternScopeRequirements = { | ||
| requestField: "event_patterns"; | ||
| description: string; | ||
| requiredScopesByEventPattern: Record<PublicApiWebhookEventPattern, PublicApiScopeKey[]>; | ||
| }; | ||
| export declare const emailTemplateNameMaxLength = 160; | ||
@@ -141,8 +117,2 @@ export declare const emailTemplateBodyDocumentMaxBytes: number; | ||
| export declare const isPublicApiWebhookEventPattern: (value: string) => value is PublicApiWebhookEventPattern; | ||
| export declare const getPublicApiWebhookEventPatternRequiredScopes: (eventPatterns: readonly PublicApiWebhookEventPattern[]) => PublicApiScopeKey[]; | ||
| export declare const publicApiWebhookEventPatternScopeRequirements: { | ||
| requestField: "event_patterns"; | ||
| description: string; | ||
| requiredScopesByEventPattern: Record<PublicApiWebhookEventPattern, PublicApiScopeKey[]>; | ||
| }; | ||
| export declare const publicApiWebhookSignatureHeaders: { | ||
@@ -158,3 +128,3 @@ readonly id: "webhook-id"; | ||
| export type PublicApiSdkOperation = { | ||
| namespace: "discovery" | "workspace" | "subscribers" | "tags" | "customFields" | "emailTemplates" | "forms" | "landingPages" | "sequences" | "automations" | "magicLinks" | "broadcasts" | "segments" | "webhookSubscriptions" | "jobs" | "agentActivity" | "analytics" | "diagnostics"; | ||
| namespace: "discovery" | "workspace" | "senderIdentities" | "emailDeliveryConnections" | "subscribers" | "tags" | "customFields" | "emailTemplates" | "startingPoints" | "forms" | "landingPages" | "sequences" | "automations" | "magicLinks" | "broadcasts" | "segments" | "webhookSubscriptions" | "jobs" | "analytics" | "diagnostics"; | ||
| methodName: string; | ||
@@ -171,2 +141,3 @@ operationId: string; | ||
| externalSideEffect: boolean; | ||
| requiresLiveAction: boolean; | ||
| sideEffectClass: PublicApiAgentSideEffectClass; | ||
@@ -183,4 +154,2 @@ retryMode: PublicApiAgentRetryMode; | ||
| requestBodyRequired: boolean; | ||
| eventPatternScopeRequirements?: PublicApiWebhookEventPatternScopeRequirements; | ||
| payloadFieldScopeRequirements?: PublicApiPayloadFieldScopeRequirements; | ||
| }; | ||
@@ -187,0 +156,0 @@ export type PublicApiSdkResource = { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD,OAAO,KAAK,EACV,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,iCAAiC,EACjC,kCAAkC,EAClC,wBAAwB,EACxB,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,uBAAuB,EACvB,+BAA+B,EAC/B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,GAC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B,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACrC,CAAC;AAoGF,eAAO,MAAM,qBAAqB,EAAE,oBAAoB,EA4LvD,CAAC;AAEF,eAAO,MAAM,8BAA8B,6DAc1C,CAAC;AAEF,eAAO,MAAM,gCAAgC,wEAK5C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAE/B,MAAM,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAiC/B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEX,eAAO,MAAM,sBAAsB,4BAO9B,CAAC;AAEN,eAAO,MAAM,2BAA2B;;UA7nWhC,MAAM;iBACC,MAAM;GAooWpB,CAAC"} |
@@ -1,5 +0,5 @@ | ||
| import { type PublicApiScopeKey } from "./scopes.js"; | ||
| import { type PublicApiScopeKey, type PublicApiWorkProfileKey } from "./resource-contract.js"; | ||
| import type { PublicApiAgentOperationRisk } from "./agent-risk.js"; | ||
| export declare const publicApiMcpToolsetKeys: readonly ["reporting", "subscriber_sync", "data_transfer", "content_and_targeting", "capture", "broadcast_preparation", "broadcast_sending", "sequence_preparation", "sequence_operations", "automations", "webhooks", "administration"]; | ||
| export type PublicApiMcpToolsetKey = (typeof publicApiMcpToolsetKeys)[number]; | ||
| export type PublicApiMcpToolsetKey = PublicApiWorkProfileKey; | ||
| export declare const publicApiMcpToolsetKeys: PublicApiMcpToolsetKey[]; | ||
| export type PublicApiMcpToolset = { | ||
@@ -11,63 +11,8 @@ key: PublicApiMcpToolsetKey; | ||
| }; | ||
| export declare const publicApiMcpToolsets: readonly [{ | ||
| readonly key: "reporting"; | ||
| readonly label: "Reporting"; | ||
| readonly description: "Read workspace, Subscriber, content, workflow, and delivery information without changing it."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "subscriber_sync"; | ||
| readonly label: "Subscriber Sync"; | ||
| readonly description: "Manage individual Subscriber profiles, status, Tags, deletion, and custom fields."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "data_transfer"; | ||
| readonly label: "Subscriber Import & Export"; | ||
| readonly description: "Run bounded Subscriber imports and exports and monitor their jobs."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "content_and_targeting"; | ||
| readonly label: "Templates, Tags, Fields & Segments"; | ||
| readonly description: "Manage email templates, Tags, custom fields, and Segments."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "capture"; | ||
| readonly label: "Forms, Landing Pages & Magic Links"; | ||
| readonly description: "Manage Forms, Landing Pages, Magic Links, and their Subscriber capture data."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "broadcast_preparation"; | ||
| readonly label: "Broadcast Preparation"; | ||
| readonly description: "Create, change, check, and delete Broadcast drafts without sending email."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "broadcast_sending"; | ||
| readonly label: "Broadcast Sending"; | ||
| readonly description: "Review, test, send, monitor, and stop Broadcasts."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "sequence_preparation"; | ||
| readonly label: "Sequence Preparation"; | ||
| readonly description: "Create, change, and delete paused Sequences without activating them or enrolling Subscribers."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "sequence_operations"; | ||
| readonly label: "Sequence Operations"; | ||
| readonly description: "Activate or pause Sequences and add or remove individual Subscribers."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "automations"; | ||
| readonly label: "Automations"; | ||
| readonly description: "Create, change, activate, pause, delete, and inspect Automations."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "webhooks"; | ||
| readonly label: "Outbound Webhook Setup"; | ||
| readonly description: "Create, change, rotate secrets for, and delete outbound webhook subscriptions."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }, { | ||
| readonly key: "administration"; | ||
| readonly label: "Administration"; | ||
| readonly description: "Use the complete public API surface, including bulk, deletion, and webhook administration."; | ||
| readonly scopeKeys: readonly ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| }]; | ||
| export declare const publicApiMcpToolsets: { | ||
| key: PublicApiWorkProfileKey; | ||
| label: string; | ||
| description: string; | ||
| scopeKeys: readonly ("workspace:read" | "analytics:read" | "live_actions:write" | "subscribers:read" | "subscribers:write" | "subscribers:import" | "subscribers:export" | "segments:read" | "segments:write" | "tags:read" | "tags:write" | "forms:read" | "forms:write" | "form_submissions:read" | "landing_pages:read" | "landing_pages:write" | "landing_page_submissions:read" | "broadcasts:read" | "broadcasts:write" | "sequences:read" | "sequences:write" | "magic_links:read" | "magic_links:write" | "automations:read" | "automations:write" | "email_delivery_connections:read" | "email_delivery_connections:write" | "email_templates:read" | "email_templates:write" | "custom_fields:read" | "custom_fields:write" | "webhooks:read" | "webhooks:write")[]; | ||
| }[]; | ||
| export declare const isPublicApiMcpToolsetKey: (value: string) => value is PublicApiMcpToolsetKey; | ||
@@ -74,0 +19,0 @@ export declare const resolvePublicApiMcpToolsets: (requiredScopes: readonly string[]) => PublicApiMcpToolsetKey[]; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"mcp-contract.d.ts","sourceRoot":"","sources":["../src/mcp-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,uBAAuB,0OAa1B,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,sBAAsB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAA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,SAAS,EAAE,MAAM,CACf,MAAM,EACN;QACE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,CAAC,CAAC;KAC/D,CACF,CAAC;CACH,CAAC;AAgGF,eAAO,MAAM,mCAAmC,GAC9C,WAAW,gBAAgB,EAC3B,kBAAkB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KACxD,6BAiNF,CAAC"} |
+99
-90
@@ -1,91 +0,9 @@ | ||
| import { publicApiScopePresetByKey, } from "./scopes.js"; | ||
| export const publicApiMcpToolsetKeys = [ | ||
| "reporting", | ||
| "subscriber_sync", | ||
| "data_transfer", | ||
| "content_and_targeting", | ||
| "capture", | ||
| "broadcast_preparation", | ||
| "broadcast_sending", | ||
| "sequence_preparation", | ||
| "sequence_operations", | ||
| "automations", | ||
| "webhooks", | ||
| "administration", | ||
| ]; | ||
| const presetScopes = (key) => publicApiScopePresetByKey.get(key)?.scopeKeys ?? []; | ||
| export const publicApiMcpToolsets = [ | ||
| { | ||
| key: "reporting", | ||
| label: "Reporting", | ||
| description: "Read workspace, Subscriber, content, workflow, and delivery information without changing it.", | ||
| scopeKeys: presetScopes("reporting"), | ||
| }, | ||
| { | ||
| key: "subscriber_sync", | ||
| label: "Subscriber Sync", | ||
| description: "Manage individual Subscriber profiles, status, Tags, deletion, and custom fields.", | ||
| scopeKeys: presetScopes("subscriber_sync"), | ||
| }, | ||
| { | ||
| key: "data_transfer", | ||
| label: "Subscriber Import & Export", | ||
| description: "Run bounded Subscriber imports and exports and monitor their jobs.", | ||
| scopeKeys: presetScopes("data_transfer"), | ||
| }, | ||
| { | ||
| key: "content_and_targeting", | ||
| label: "Templates, Tags, Fields & Segments", | ||
| description: "Manage email templates, Tags, custom fields, and Segments.", | ||
| scopeKeys: presetScopes("content_and_targeting"), | ||
| }, | ||
| { | ||
| key: "capture", | ||
| label: "Forms, Landing Pages & Magic Links", | ||
| description: "Manage Forms, Landing Pages, Magic Links, and their Subscriber capture data.", | ||
| scopeKeys: presetScopes("capture_management"), | ||
| }, | ||
| { | ||
| key: "broadcast_preparation", | ||
| label: "Broadcast Preparation", | ||
| description: "Create, change, check, and delete Broadcast drafts without sending email.", | ||
| scopeKeys: presetScopes("broadcast_preparation"), | ||
| }, | ||
| { | ||
| key: "broadcast_sending", | ||
| label: "Broadcast Sending", | ||
| description: "Review, test, send, monitor, and stop Broadcasts.", | ||
| scopeKeys: presetScopes("broadcast_sending"), | ||
| }, | ||
| { | ||
| key: "sequence_preparation", | ||
| label: "Sequence Preparation", | ||
| description: "Create, change, and delete paused Sequences without activating them or enrolling Subscribers.", | ||
| scopeKeys: presetScopes("sequence_preparation"), | ||
| }, | ||
| { | ||
| key: "sequence_operations", | ||
| label: "Sequence Operations", | ||
| description: "Activate or pause Sequences and add or remove individual Subscribers.", | ||
| scopeKeys: presetScopes("sequence_operations"), | ||
| }, | ||
| { | ||
| key: "automations", | ||
| label: "Automations", | ||
| description: "Create, change, activate, pause, delete, and inspect Automations.", | ||
| scopeKeys: presetScopes("automation_management"), | ||
| }, | ||
| { | ||
| key: "webhooks", | ||
| label: "Outbound Webhook Setup", | ||
| description: "Create, change, rotate secrets for, and delete outbound webhook subscriptions.", | ||
| scopeKeys: presetScopes("webhook_management"), | ||
| }, | ||
| { | ||
| key: "administration", | ||
| label: "Administration", | ||
| description: "Use the complete public API surface, including bulk, deletion, and webhook administration.", | ||
| scopeKeys: presetScopes("full_administration"), | ||
| }, | ||
| ]; | ||
| import { publicApiWorkProfiles, } from "./resource-contract.js"; | ||
| export const publicApiMcpToolsetKeys = publicApiWorkProfiles.map((profile) => profile.key); | ||
| export const publicApiMcpToolsets = publicApiWorkProfiles.map((profile) => ({ | ||
| key: profile.key, | ||
| label: profile.label, | ||
| description: profile.description, | ||
| scopeKeys: profile.scopeKeys, | ||
| })); | ||
| const publicApiMcpToolsetScopeMap = new Map(publicApiMcpToolsets.map((toolset) => [ | ||
@@ -271,2 +189,65 @@ toolset.key, | ||
| retryable: { type: "boolean" }, | ||
| required_scopes: { | ||
| type: "array", | ||
| maxItems: 50, | ||
| items: { type: "string" }, | ||
| }, | ||
| missing_scopes: { | ||
| type: "array", | ||
| maxItems: 50, | ||
| items: { type: "string" }, | ||
| }, | ||
| replacement_scopes: { | ||
| type: "array", | ||
| maxItems: 50, | ||
| items: { type: "string" }, | ||
| }, | ||
| credential_type: { | ||
| type: "string", | ||
| enum: ["workspace_api_key", "oauth_access_token"], | ||
| }, | ||
| recommended_work_profiles: { | ||
| type: "array", | ||
| maxItems: 20, | ||
| items: { type: "string" }, | ||
| }, | ||
| access_update_url: { type: "string", format: "uri" }, | ||
| reconnect_required: { type: "boolean" }, | ||
| permissions_help_url: { type: "string", format: "uri" }, | ||
| recovery: { | ||
| type: "object", | ||
| additionalProperties: false, | ||
| required: ["action", "message"], | ||
| properties: { | ||
| action: { | ||
| type: "string", | ||
| enum: ["replace_api_key", "reconnect_oauth"], | ||
| }, | ||
| message: { type: "string" }, | ||
| replacement_scopes: { | ||
| type: "array", | ||
| maxItems: 50, | ||
| items: { type: "string" }, | ||
| }, | ||
| access_update_url: { type: "string", format: "uri" }, | ||
| permissions_help_url: { type: "string", format: "uri" }, | ||
| }, | ||
| }, | ||
| details: { | ||
| type: "object", | ||
| additionalProperties: false, | ||
| properties: { | ||
| field: { type: "string" }, | ||
| reason: { type: "string" }, | ||
| resource: { | ||
| type: "object", | ||
| additionalProperties: false, | ||
| required: ["type", "id"], | ||
| properties: { | ||
| type: { type: "string" }, | ||
| id: { type: "string" }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| issues: { | ||
@@ -286,2 +267,30 @@ type: "array", | ||
| }, | ||
| prerequisite: { | ||
| type: "object", | ||
| additionalProperties: false, | ||
| required: ["resource", "state"], | ||
| properties: { | ||
| resource: { type: "string" }, | ||
| state: { | ||
| type: "string", | ||
| enum: ["missing", "disabled"], | ||
| }, | ||
| required_scopes: { | ||
| type: "array", | ||
| maxItems: 50, | ||
| items: { type: "string" }, | ||
| }, | ||
| work_profile: { type: "string" }, | ||
| setup_url: { type: "string", format: "uri" }, | ||
| }, | ||
| }, | ||
| retry: { | ||
| type: "object", | ||
| additionalProperties: false, | ||
| required: ["safe", "guidance"], | ||
| properties: { | ||
| safe: { type: "boolean" }, | ||
| guidance: { type: "string" }, | ||
| }, | ||
| }, | ||
| }, | ||
@@ -288,0 +297,0 @@ }, |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"mcp-contract.js","sourceRoot":"","sources":["../src/mcp-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAE1B,MAAM,aAAa,CAAC;AAKrB,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,uBAAuB;IACvB,SAAS;IACT,uBAAuB;IACvB,mBAAmB;IACnB,sBAAsB;IACtB,qBAAqB;IACrB,aAAa;IACb,UAAU;IACV,gBAAgB;CACR,CAAC;AAYX,MAAM,YAAY,GAAG,CACnB,GAYyB,EACzB,EAAE,CAAC,yBAAyB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,SAAS,IAAI,EAAE,CAAC;AAEzD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC;QACE,GAAG,EAAE,WAAW;QAChB,KAAK,EAAE,WAAW;QAClB,WAAW,EACT,8FAA8F;QAChG,SAAS,EAAE,YAAY,CAAC,WAAW,CAAC;KACrC;IACD;QACE,GAAG,EAAE,iBAAiB;QACtB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EACT,mFAAmF;QACrF,SAAS,EAAE,YAAY,CAAC,iBAAiB,CAAC;KAC3C;IACD;QACE,GAAG,EAAE,eAAe;QACpB,KAAK,EAAE,4BAA4B;QACnC,WAAW,EACT,oEAAoE;QACtE,SAAS,EAAE,YAAY,CAAC,eAAe,CAAC;KACzC;IACD;QACE,G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AE;wBACZ,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,KAAK;wBAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;wBAC/B,UAAU,EAAE;4BACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAC5B,KAAK,EAAE;gCACL,IAAI,EAAE,QAAQ;gCACd,IAAI,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;6BAC9B;4BACD,eAAe,EAAE;gCACf,IAAI,EAAE,OAAO;gCACb,QAAQ,EAAE,EAAE;gCACZ,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;6BAC1B;4BACD,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;4BAChC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;yBAC7C;qBACF;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,oBAAoB,EAAE,KAAK;wBAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;wBAC9B,UAAU,EAAE;4BACV,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;4BACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC7B;qBACF;iBACF;aACF;SACF;KACF,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,WAAW;QACX,YAAY;KACb,CAAC;AACJ,CAAC,CAAC"} |
+5
-5
| { | ||
| "name": "@mailrith/public-api", | ||
| "version": "0.1.2", | ||
| "version": "0.2.0", | ||
| "description": "Versioned Mailrith public API, OAuth, MCP, scope, and risk contract.", | ||
@@ -22,6 +22,6 @@ "license": "MIT", | ||
| }, | ||
| "./scopes": { | ||
| "types": "./dist/scopes.d.ts", | ||
| "import": "./dist/scopes.js", | ||
| "default": "./dist/scopes.js" | ||
| "./resource-contract": { | ||
| "types": "./dist/resource-contract.d.ts", | ||
| "import": "./dist/resource-contract.js", | ||
| "default": "./dist/resource-contract.js" | ||
| } | ||
@@ -28,0 +28,0 @@ }, |
-1049
| export type PublicApiScopeAction = "read" | "draft" | "configure" | "execute" | "test" | "bulk" | "delete" | "admin"; | ||
| export type PublicApiScopeDefinition = { | ||
| key: string; | ||
| resourceKey: string; | ||
| action: PublicApiScopeAction; | ||
| label: string; | ||
| description: string; | ||
| }; | ||
| declare const publicApiScopeDefinitionCatalog: readonly [{ | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "activity:read"; | ||
| readonly resourceKey: "agent_activity"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:profile"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscriptions:read"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscriptions:write"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:targeting"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:sequence_enroll"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:delete"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:bulk_import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "subscribers:bulk_export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "tags:configure"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "tags:delete"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "custom_fields:configure"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "custom_fields:delete"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_templates:draft"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "email_templates:delete"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:submissions_read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:configure"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "forms:delete"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:submissions_read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:configure"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "landing_pages:delete"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:draft"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:activate"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "sequences:delete"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:draft"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:activate"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "automations:delete"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "magic_links:configure"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "magic_links:delete"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:draft"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:preflight"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:test"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "test"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:send"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:cancel"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "broadcasts:delete"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "segments:configure"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "segments:delete"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }, { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "admin"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }]; | ||
| export type PublicApiScopeKey = (typeof publicApiScopeDefinitionCatalog)[number]["key"]; | ||
| export declare const publicApiScopeDisplaySections: readonly [{ | ||
| readonly key: "overview"; | ||
| readonly label: "Overview"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Dashboard"; | ||
| readonly resourceKeys: readonly ["analytics"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "subscribers"; | ||
| readonly label: "Subscribers"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Subscribers"; | ||
| readonly resourceKeys: readonly ["subscribers", "subscriptions"]; | ||
| }, { | ||
| readonly label: "Segments"; | ||
| readonly resourceKeys: readonly ["segments"]; | ||
| }, { | ||
| readonly label: "Tags"; | ||
| readonly resourceKeys: readonly ["tags"]; | ||
| }, { | ||
| readonly label: "Forms"; | ||
| readonly resourceKeys: readonly ["forms"]; | ||
| }, { | ||
| readonly label: "Landing Pages"; | ||
| readonly resourceKeys: readonly ["landing_pages"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "campaigns"; | ||
| readonly label: "Campaigns"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Broadcasts"; | ||
| readonly resourceKeys: readonly ["broadcasts"]; | ||
| }, { | ||
| readonly label: "Sequences"; | ||
| readonly resourceKeys: readonly ["sequences"]; | ||
| }, { | ||
| readonly label: "Magic Links"; | ||
| readonly resourceKeys: readonly ["magic_links"]; | ||
| }, { | ||
| readonly label: "Automations"; | ||
| readonly resourceKeys: readonly ["automations"]; | ||
| }]; | ||
| }, { | ||
| readonly key: "account"; | ||
| readonly label: "Account"; | ||
| readonly resources: readonly [{ | ||
| readonly label: "Workspaces"; | ||
| readonly resourceKeys: readonly ["workspace"]; | ||
| }, { | ||
| readonly label: "Email Templates"; | ||
| readonly resourceKeys: readonly ["email_templates"]; | ||
| }, { | ||
| readonly label: "Custom Fields"; | ||
| readonly resourceKeys: readonly ["custom_fields"]; | ||
| }, { | ||
| readonly label: "Integrations"; | ||
| readonly resourceKeys: readonly ["agent_activity", "webhooks"]; | ||
| }]; | ||
| }]; | ||
| export declare const publicApiScopeResourceOrder: ("workspace" | "agent_activity" | "analytics" | "subscribers" | "tags" | "custom_fields" | "email_templates" | "forms" | "landing_pages" | "sequences" | "automations" | "magic_links" | "broadcasts" | "segments" | "subscriptions" | "webhooks")[]; | ||
| export declare const publicApiScopeDefinitions: ({ | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "activity:read"; | ||
| readonly resourceKey: "agent_activity"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:profile"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscriptions:read"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscriptions:write"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:targeting"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:sequence_enroll"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:delete"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:bulk_import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:bulk_export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:configure"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:delete"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:configure"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:delete"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:draft"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:delete"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:submissions_read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:configure"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:delete"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:submissions_read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:configure"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:delete"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:draft"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:activate"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:delete"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:draft"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:activate"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:delete"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:configure"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:delete"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:draft"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:preflight"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:test"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "test"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:send"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:cancel"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:delete"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:configure"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:delete"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "admin"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| })[]; | ||
| export type PublicApiScopePresetKey = "reporting" | "subscriber_sync" | "content_and_targeting" | "capture_management" | "broadcast_preparation" | "broadcast_sending" | "sequence_preparation" | "sequence_operations" | "automation_management" | "webhook_management" | "data_transfer" | "full_administration"; | ||
| export type PublicApiScopePreset = { | ||
| key: PublicApiScopePresetKey; | ||
| label: string; | ||
| description: string; | ||
| scopeKeys: readonly PublicApiScopeKey[]; | ||
| }; | ||
| export declare const publicApiScopeDefinitionByKey: Map<"workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read", { | ||
| readonly key: "workspace:read"; | ||
| readonly resourceKey: "workspace"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "activity:read"; | ||
| readonly resourceKey: "agent_activity"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "analytics:read"; | ||
| readonly resourceKey: "analytics"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:read"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:profile"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscriptions:read"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscriptions:write"; | ||
| readonly resourceKey: "subscriptions"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:targeting"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:sequence_enroll"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:delete"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:bulk_import"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "subscribers:bulk_export"; | ||
| readonly resourceKey: "subscribers"; | ||
| readonly action: "bulk"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:read"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:configure"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "tags:delete"; | ||
| readonly resourceKey: "tags"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:read"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:configure"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "custom_fields:delete"; | ||
| readonly resourceKey: "custom_fields"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:read"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:draft"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "email_templates:delete"; | ||
| readonly resourceKey: "email_templates"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:submissions_read"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:configure"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "forms:delete"; | ||
| readonly resourceKey: "forms"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:submissions_read"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:configure"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "landing_pages:delete"; | ||
| readonly resourceKey: "landing_pages"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:read"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:draft"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:activate"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "sequences:delete"; | ||
| readonly resourceKey: "sequences"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:read"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:draft"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:activate"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "automations:delete"; | ||
| readonly resourceKey: "automations"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:read"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:configure"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "magic_links:delete"; | ||
| readonly resourceKey: "magic_links"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:read"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:draft"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "draft"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:preflight"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:test"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "test"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:send"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:cancel"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "execute"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "broadcasts:delete"; | ||
| readonly resourceKey: "broadcasts"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:read"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:configure"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "configure"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "segments:delete"; | ||
| readonly resourceKey: "segments"; | ||
| readonly action: "delete"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:read"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "read"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| } | { | ||
| readonly key: "webhooks:write"; | ||
| readonly resourceKey: "webhooks"; | ||
| readonly action: "admin"; | ||
| readonly label: string; | ||
| readonly description: string; | ||
| }>; | ||
| export declare const publicApiScopeKeys: PublicApiScopeKey[]; | ||
| export declare const publicApiReadScopeKeys: PublicApiScopeKey[]; | ||
| export declare const publicApiScopePresets: readonly [PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset, PublicApiScopePreset]; | ||
| export declare const publicApiScopePresetDisplaySections: readonly [{ | ||
| readonly key: "overview"; | ||
| readonly label: "Overview"; | ||
| readonly presetKeys: readonly ["reporting"]; | ||
| }, { | ||
| readonly key: "subscribers"; | ||
| readonly label: "Subscribers"; | ||
| readonly presetKeys: readonly ["subscriber_sync", "data_transfer", "content_and_targeting", "capture_management"]; | ||
| }, { | ||
| readonly key: "campaigns"; | ||
| readonly label: "Campaigns"; | ||
| readonly presetKeys: readonly ["broadcast_preparation", "broadcast_sending", "sequence_preparation", "sequence_operations", "automation_management"]; | ||
| }, { | ||
| readonly key: "account"; | ||
| readonly label: "Account"; | ||
| readonly presetKeys: readonly ["webhook_management", "full_administration"]; | ||
| }]; | ||
| export declare const publicApiScopePresetByKey: Map<PublicApiScopePresetKey, PublicApiScopePreset>; | ||
| export declare const publicApiDefaultScopeKeys: ("workspace:read" | "activity:read" | "analytics:read" | "automations:read" | "sequences:read" | "broadcasts:read" | "subscribers:read" | "subscribers:profile" | "subscribers:delete" | "subscriptions:write" | "subscribers:targeting" | "subscribers:sequence_enroll" | "tags:read" | "tags:configure" | "tags:delete" | "custom_fields:read" | "custom_fields:configure" | "custom_fields:delete" | "email_templates:read" | "email_templates:draft" | "email_templates:delete" | "forms:read" | "forms:configure" | "forms:submissions_read" | "forms:delete" | "landing_pages:read" | "landing_pages:configure" | "landing_pages:submissions_read" | "landing_pages:delete" | "sequences:draft" | "sequences:activate" | "sequences:delete" | "automations:draft" | "automations:activate" | "automations:delete" | "magic_links:read" | "magic_links:configure" | "magic_links:delete" | "broadcasts:draft" | "broadcasts:delete" | "broadcasts:preflight" | "broadcasts:send" | "broadcasts:cancel" | "broadcasts:test" | "segments:read" | "segments:configure" | "segments:delete" | "webhooks:read" | "webhooks:write" | "subscribers:bulk_import" | "subscribers:bulk_export" | "subscriptions:read")[]; | ||
| export declare const publicApiAgentReadQuickstartScopeKeys: readonly ["workspace:read", "subscribers:read"]; | ||
| export declare const isPublicApiScopeKey: (value: string) => value is PublicApiScopeKey; | ||
| export declare const normalizePublicApiScopeKeys: (scopeKeys: Iterable<string>) => PublicApiScopeKey[]; | ||
| export declare const validatePublicApiScopeKeys: (scopeKeys: Iterable<string>) => { | ||
| ok: true; | ||
| value: PublicApiScopeKey[]; | ||
| } | { | ||
| ok: false; | ||
| unsupportedScopeKeys: string[]; | ||
| }; | ||
| export {}; | ||
| //# sourceMappingURL=scopes.d.ts.map |
| {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,OAAO,GACP,WAAW,GACX,SAAS,GACT,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG;IACrC,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,MAAM,2BAA2B,GACtC,WAAW,QAAQ,CAAC,MAAM,CAAC,KAC1B,iBAAiB,EAQnB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,WAAW,QAAQ,CAAC,MAAM,CAAC,KAEzB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAAE,GACxC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,oBAAoB,EAAE,MAAM,EAAE,CAAA;CAc9C,CAAC"} |
-313
| const scope = (key, resourceKey, action, label, description) => ({ key, resourceKey, action, label, description }); | ||
| const publicApiScopeDefinitionCatalog = [ | ||
| scope("workspace:read", "workspace", "read", "View workspace", "View the selected workspace name, settings, and current API context."), | ||
| scope("activity:read", "agent_activity", "read", "View agent activity", "View the bounded, redacted activity trail for agent-originated workspace changes."), | ||
| scope("analytics:read", "analytics", "read", "View analytics", "Run bounded aggregate reports from compact delivery and engagement rollups."), | ||
| scope("subscribers:read", "subscribers", "read", "View Subscribers", "View bounded pages of Subscribers and their saved profile data."), | ||
| scope("subscribers:profile", "subscribers", "configure", "Change Subscriber profiles", "Create Subscriber records and change names, email addresses, countries, subscription dates, and custom-field values. This cannot change sending eligibility."), | ||
| scope("subscriptions:read", "subscriptions", "read", "View Subscriber Status", "View email subscription status, sending eligibility, suppression details, and compact consent evidence."), | ||
| scope("subscriptions:write", "subscriptions", "execute", "Manage Subscriber Status", "Subscribe or unsubscribe Subscribers, manage sending eligibility, and record the compact consent evidence required for those changes."), | ||
| scope("subscribers:targeting", "subscribers", "configure", "Manage Subscriber Tags", "Add or remove Tags that can change segmentation and Automation eligibility for one Subscriber."), | ||
| scope("subscribers:sequence_enroll", "subscribers", "execute", "Manage Sequence enrollment", "Add or remove one Subscriber from a Sequence. Enrollment in a running Sequence can send email."), | ||
| scope("subscribers:delete", "subscribers", "delete", "Delete Subscribers", "Permanently remove individual Subscribers and their Mailrith activity history."), | ||
| scope("subscribers:bulk_import", "subscribers", "bulk", "Import Subscribers in bulk", "Start bulk imports that can create or change many Subscribers, Tags, sending eligibility, and Sequence enrollment."), | ||
| scope("subscribers:bulk_export", "subscribers", "bulk", "Export Subscribers in bulk", "Create and download exports containing bulk Subscriber data."), | ||
| scope("tags:read", "tags", "read", "View Tags", "View the workspace Tag catalog."), | ||
| scope("tags:configure", "tags", "configure", "Configure Tags", "Create Tags used for Subscriber organization, targeting, and preferences."), | ||
| scope("tags:delete", "tags", "delete", "Delete Tags", "Permanently remove Tags that are not referenced by another Mailrith resource."), | ||
| scope("custom_fields:read", "custom_fields", "read", "View custom fields", "View the workspace custom-field schema."), | ||
| scope("custom_fields:configure", "custom_fields", "configure", "Configure custom fields", "Create and change custom-field definitions used by Subscriber data."), | ||
| scope("custom_fields:delete", "custom_fields", "delete", "Delete custom fields", "Permanently remove custom-field definitions and their saved Subscriber values."), | ||
| scope("email_templates:read", "email_templates", "read", "View email templates", "View reusable email template content and settings."), | ||
| scope("email_templates:draft", "email_templates", "draft", "Draft email templates", "Create and change reusable email content without sending email."), | ||
| scope("email_templates:delete", "email_templates", "delete", "Delete email templates", "Permanently remove reusable email template content."), | ||
| scope("forms:read", "forms", "read", "View Forms", "View Form definitions and settings."), | ||
| scope("forms:submissions_read", "forms", "read", "View Form submissions", "View bounded pages of Form submissions and the Subscriber data they contain."), | ||
| scope("forms:configure", "forms", "configure", "Configure Forms", "Create and change publicly reachable Subscriber capture Forms."), | ||
| scope("forms:delete", "forms", "delete", "Delete Forms", "Remove publicly reachable Subscriber capture Forms."), | ||
| scope("landing_pages:read", "landing_pages", "read", "View Landing Pages", "View hosted Landing Page definitions and settings."), | ||
| scope("landing_pages:submissions_read", "landing_pages", "read", "View Landing Page submissions", "View bounded pages of Landing Page submissions and the Subscriber data they contain."), | ||
| scope("landing_pages:configure", "landing_pages", "configure", "Configure Landing Pages", "Create and change publicly reachable hosted Landing Pages."), | ||
| scope("landing_pages:delete", "landing_pages", "delete", "Delete Landing Pages", "Remove publicly reachable hosted Landing Pages."), | ||
| scope("sequences:read", "sequences", "read", "View Sequences", "View Sequence definitions, status, and aggregate delivery results."), | ||
| scope("sequences:draft", "sequences", "draft", "Draft Sequences", "Create paused Sequences and change paused Sequence content without starting delivery."), | ||
| scope("sequences:activate", "sequences", "execute", "Activate or pause Sequences", "Start or pause Sequences. Starting a Sequence can send email to enrolled Subscribers."), | ||
| scope("sequences:delete", "sequences", "delete", "Delete Sequences", "Permanently remove lifecycle Sequences."), | ||
| scope("automations:read", "automations", "read", "View Automations", "View Automation definitions, status, and aggregate results."), | ||
| scope("automations:draft", "automations", "draft", "Draft Automations", "Create inactive Automations and change inactive Automation definitions."), | ||
| scope("automations:activate", "automations", "execute", "Activate or pause Automations", "Start or pause Automations. Starting an Automation can run actions for matching Subscribers."), | ||
| scope("automations:delete", "automations", "delete", "Delete Automations", "Permanently remove Automation workflows."), | ||
| scope("magic_links:read", "magic_links", "read", "View Magic Links", "View Magic Link destinations and configured Subscriber actions."), | ||
| scope("magic_links:configure", "magic_links", "configure", "Configure Magic Links", "Create and change public Magic Links that can change Subscriber Tags or Sequence enrollment when clicked."), | ||
| scope("magic_links:delete", "magic_links", "delete", "Delete Magic Links", "Remove public Magic Links and their configured actions."), | ||
| scope("broadcasts:read", "broadcasts", "read", "View Broadcasts", "View Broadcast drafts, send status, and aggregate delivery results."), | ||
| scope("broadcasts:draft", "broadcasts", "draft", "Draft Broadcasts", "Create and change Broadcast drafts without scheduling or sending them."), | ||
| scope("broadcasts:preflight", "broadcasts", "read", "Check Broadcast readiness", "Run bounded readiness checks and view estimated recipient counts before a send."), | ||
| scope("broadcasts:test", "broadcasts", "test", "Send Broadcast tests", "Send a real test email from a Broadcast to one chosen recipient."), | ||
| scope("broadcasts:send", "broadcasts", "execute", "Send Broadcasts", "Start durable delivery of a Broadcast to real Subscribers."), | ||
| scope("broadcasts:cancel", "broadcasts", "execute", "Cancel Broadcast sends", "Stop remaining delivery work for a running Broadcast. Emails already accepted by a provider cannot be recalled."), | ||
| scope("broadcasts:delete", "broadcasts", "delete", "Delete Broadcasts", "Permanently remove eligible Broadcast drafts or failed sends."), | ||
| scope("segments:read", "segments", "read", "View Segments", "View saved Segment definitions and bounded preview counts."), | ||
| scope("segments:configure", "segments", "configure", "Configure Segments", "Create and change saved Subscriber-selection definitions."), | ||
| scope("segments:delete", "segments", "delete", "Delete Segments", "Permanently remove saved Subscriber-selection definitions."), | ||
| scope("webhooks:read", "webhooks", "read", "View Outbound Webhooks", "View outbound webhook destinations, selected events, and delivery health."), | ||
| scope("webhooks:write", "webhooks", "admin", "Configure Outbound Webhooks", "Create, change, delete, and rotate signing secrets for outbound webhook destinations."), | ||
| ]; | ||
| // Keep displayed permissions in the same sections and resource order people | ||
| // already learn from the app sidebar. API-only resources stay beside their | ||
| // nearest visible page. | ||
| export const publicApiScopeDisplaySections = [ | ||
| { | ||
| key: "overview", | ||
| label: "Overview", | ||
| resources: [ | ||
| { | ||
| label: "Dashboard", | ||
| resourceKeys: ["analytics"], | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "subscribers", | ||
| label: "Subscribers", | ||
| resources: [ | ||
| { | ||
| label: "Subscribers", | ||
| resourceKeys: ["subscribers", "subscriptions"], | ||
| }, | ||
| { label: "Segments", resourceKeys: ["segments"] }, | ||
| { label: "Tags", resourceKeys: ["tags"] }, | ||
| { label: "Forms", resourceKeys: ["forms"] }, | ||
| { label: "Landing Pages", resourceKeys: ["landing_pages"] }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "campaigns", | ||
| label: "Campaigns", | ||
| resources: [ | ||
| { label: "Broadcasts", resourceKeys: ["broadcasts"] }, | ||
| { label: "Sequences", resourceKeys: ["sequences"] }, | ||
| { label: "Magic Links", resourceKeys: ["magic_links"] }, | ||
| { label: "Automations", resourceKeys: ["automations"] }, | ||
| ], | ||
| }, | ||
| { | ||
| key: "account", | ||
| label: "Account", | ||
| resources: [ | ||
| { label: "Workspaces", resourceKeys: ["workspace"] }, | ||
| { label: "Email Templates", resourceKeys: ["email_templates"] }, | ||
| { label: "Custom Fields", resourceKeys: ["custom_fields"] }, | ||
| { | ||
| label: "Integrations", | ||
| resourceKeys: ["agent_activity", "webhooks"], | ||
| }, | ||
| ], | ||
| }, | ||
| ]; | ||
| export const publicApiScopeResourceOrder = publicApiScopeDisplaySections.flatMap((section) => section.resources.flatMap((resource) => resource.resourceKeys)); | ||
| const publicApiScopeResourceOrderByKey = new Map(publicApiScopeResourceOrder.map((resourceKey, index) => [resourceKey, index])); | ||
| export const publicApiScopeDefinitions = [ | ||
| ...publicApiScopeDefinitionCatalog, | ||
| ].sort((left, right) => (publicApiScopeResourceOrderByKey.get(left.resourceKey) ?? | ||
| Number.MAX_SAFE_INTEGER) - | ||
| (publicApiScopeResourceOrderByKey.get(right.resourceKey) ?? | ||
| Number.MAX_SAFE_INTEGER)); | ||
| const publicApiScopeDefinitionMap = new Map(publicApiScopeDefinitions.map((definition) => [definition.key, definition])); | ||
| export const publicApiScopeDefinitionByKey = publicApiScopeDefinitionMap; | ||
| export const publicApiScopeKeys = publicApiScopeDefinitions.map((definition) => definition.key); | ||
| export const publicApiReadScopeKeys = publicApiScopeDefinitions | ||
| .filter((definition) => definition.action === "read") | ||
| .map((definition) => definition.key); | ||
| const preset = (key, label, description, scopeKeys) => { | ||
| const selectedScopeKeys = new Set(scopeKeys); | ||
| return { | ||
| key, | ||
| label, | ||
| description, | ||
| scopeKeys: publicApiScopeKeys.filter((scopeKey) => selectedScopeKeys.has(scopeKey)), | ||
| }; | ||
| }; | ||
| export const publicApiScopePresets = [ | ||
| preset("reporting", "Reporting", "View workspace, Subscriber, content, workflow, and delivery information without changing anything.", publicApiReadScopeKeys), | ||
| preset("subscriber_sync", "Subscriber Sync", "Manage individual Subscriber profiles, status, Tags, deletion, and supporting field definitions.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "subscribers:profile", | ||
| "subscriptions:read", | ||
| "subscriptions:write", | ||
| "subscribers:targeting", | ||
| "subscribers:delete", | ||
| "tags:read", | ||
| "tags:configure", | ||
| "custom_fields:read", | ||
| "custom_fields:configure", | ||
| ]), | ||
| preset("data_transfer", "Subscriber Import & Export", "Run bounded Subscriber imports and exports and monitor their jobs.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "subscribers:bulk_import", | ||
| "subscribers:bulk_export", | ||
| "tags:read", | ||
| "custom_fields:read", | ||
| ]), | ||
| preset("content_and_targeting", "Templates, Tags, Fields & Segments", "Manage reusable email content, Tags, custom fields, and Segments without sending email.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "tags:configure", | ||
| "tags:delete", | ||
| "custom_fields:read", | ||
| "custom_fields:configure", | ||
| "custom_fields:delete", | ||
| "email_templates:read", | ||
| "email_templates:draft", | ||
| "email_templates:delete", | ||
| "segments:read", | ||
| "segments:configure", | ||
| "segments:delete", | ||
| "analytics:read", | ||
| ]), | ||
| preset("capture_management", "Forms, Landing Pages & Magic Links", "Manage Forms, Landing Pages, Magic Links, and their Subscriber capture data.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "custom_fields:read", | ||
| "forms:read", | ||
| "forms:submissions_read", | ||
| "forms:configure", | ||
| "forms:delete", | ||
| "landing_pages:read", | ||
| "landing_pages:submissions_read", | ||
| "landing_pages:configure", | ||
| "landing_pages:delete", | ||
| "magic_links:read", | ||
| "magic_links:configure", | ||
| "magic_links:delete", | ||
| ]), | ||
| preset("broadcast_preparation", "Broadcast Preparation", "Create, change, check, and delete Broadcast drafts without sending email.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "custom_fields:read", | ||
| "email_templates:read", | ||
| "broadcasts:read", | ||
| "broadcasts:draft", | ||
| "broadcasts:preflight", | ||
| "broadcasts:delete", | ||
| "segments:read", | ||
| "segments:configure", | ||
| "analytics:read", | ||
| ]), | ||
| preset("broadcast_sending", "Broadcast Sending", "Review, test, send, and stop Broadcasts without changing Automation definitions.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "broadcasts:read", | ||
| "broadcasts:preflight", | ||
| "broadcasts:test", | ||
| "broadcasts:send", | ||
| "broadcasts:cancel", | ||
| "segments:read", | ||
| "analytics:read", | ||
| ]), | ||
| preset("sequence_preparation", "Sequence Preparation", "Create, change, and delete paused Sequences without activating them or enrolling Subscribers.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "email_templates:read", | ||
| "sequences:read", | ||
| "sequences:draft", | ||
| "sequences:delete", | ||
| "analytics:read", | ||
| ]), | ||
| preset("sequence_operations", "Sequence Operations", "Activate or pause Sequences and add or remove individual Subscribers.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "subscribers:sequence_enroll", | ||
| "sequences:read", | ||
| "sequences:activate", | ||
| "analytics:read", | ||
| ]), | ||
| preset("automation_management", "Automation Management", "Create, change, activate, pause, and delete Automations without sending Broadcasts.", [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| "tags:read", | ||
| "email_templates:read", | ||
| "automations:read", | ||
| "automations:draft", | ||
| "automations:activate", | ||
| "automations:delete", | ||
| "analytics:read", | ||
| ]), | ||
| preset("webhook_management", "Outbound Webhook Setup", "View and configure outbound webhook event delivery.", ["workspace:read", "webhooks:read", "webhooks:write"]), | ||
| preset("full_administration", "Full Administration", "Use every current public API permission, including live actions, bulk data, deletion, and webhook administration.", publicApiScopeKeys), | ||
| ]; | ||
| export const publicApiScopePresetDisplaySections = [ | ||
| { | ||
| key: "overview", | ||
| label: "Overview", | ||
| presetKeys: ["reporting"], | ||
| }, | ||
| { | ||
| key: "subscribers", | ||
| label: "Subscribers", | ||
| presetKeys: [ | ||
| "subscriber_sync", | ||
| "data_transfer", | ||
| "content_and_targeting", | ||
| "capture_management", | ||
| ], | ||
| }, | ||
| { | ||
| key: "campaigns", | ||
| label: "Campaigns", | ||
| presetKeys: [ | ||
| "broadcast_preparation", | ||
| "broadcast_sending", | ||
| "sequence_preparation", | ||
| "sequence_operations", | ||
| "automation_management", | ||
| ], | ||
| }, | ||
| { | ||
| key: "account", | ||
| label: "Account", | ||
| presetKeys: ["webhook_management", "full_administration"], | ||
| }, | ||
| ]; | ||
| export const publicApiScopePresetByKey = new Map(publicApiScopePresets.map((definition) => [definition.key, definition])); | ||
| // Reporting is the safest useful starting point. Full access must always be an | ||
| // explicit choice in the credential or OAuth flow. | ||
| export const publicApiDefaultScopeKeys = [ | ||
| ...publicApiScopePresetByKey.get("reporting").scopeKeys, | ||
| ]; | ||
| // The interactive read-only starter deliberately exposes only workspace | ||
| // context and bounded Subscriber reads. Keep this compact list separate from | ||
| // the broader Reporting preset so a first OAuth connection does not gain | ||
| // unrelated analytics, content, workflow, or delivery access. | ||
| export const publicApiAgentReadQuickstartScopeKeys = [ | ||
| "workspace:read", | ||
| "subscribers:read", | ||
| ]; | ||
| export const isPublicApiScopeKey = (value) => publicApiScopeDefinitionMap.has(value); | ||
| export const normalizePublicApiScopeKeys = (scopeKeys) => { | ||
| const selected = new Set(); | ||
| for (const scopeKey of scopeKeys) { | ||
| if (isPublicApiScopeKey(scopeKey)) { | ||
| selected.add(scopeKey); | ||
| } | ||
| } | ||
| return publicApiScopeKeys.filter((scopeKey) => selected.has(scopeKey)); | ||
| }; | ||
| export const validatePublicApiScopeKeys = (scopeKeys) => { | ||
| const requestedScopeKeys = Array.from(scopeKeys); | ||
| const unsupportedScopeKeys = Array.from(new Set(requestedScopeKeys.filter((scopeKey) => !isPublicApiScopeKey(scopeKey)))); | ||
| if (unsupportedScopeKeys.length > 0) { | ||
| return { ok: false, unsupportedScopeKeys }; | ||
| } | ||
| return { | ||
| ok: true, | ||
| value: normalizePublicApiScopeKeys(requestedScopeKeys), | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=scopes.js.map |
| {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAkBA,MAAM,KAAK,GAAG,CAKZ,GAAQ,EACR,WAAwB,EACxB,MAAc,EAC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