> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New Relic

> 126 actions available for New Relic through StackOne. Use via Actions RPC, Toolset SDK, MCP, or A2A.

export const GettingStarted = ({connector}) => {
  const linkStyle = {
    textDecoration: 'none'
  };
  const authConfigGuides = connector?.authentication?.filter(a => a?.setupGuide) ?? [];
  const linkAccountGuides = connector?.authentication?.filter(a => a?.configGuide) ?? [];
  return <div style={{
    marginTop: '32px',
    paddingTop: '24px',
    borderTop: '1px solid #e2e8f0'
  }}>
      <div style={{
    fontSize: '20px',
    fontWeight: '600',
    marginBottom: '12px'
  }}>Getting Started</div>
      <Steps>
        <Step title="Create or Select a Project">
          Set up a new project or select an existing one. See the <a href="/guides/managing-projects" style={linkStyle}>Projects Guide</a>.
        </Step>
        <Step title="Configure the Connector">
          <>
            Enable the connector and set up auth configuration in your project. See <a href="/guides/explore-connectors" style={linkStyle}>Managing Connectors</a>.
            {authConfigGuides.length > 0 && <>
              <Columns cols={2}>
                {authConfigGuides.map(auth => <Card title="Auth Config" href={`/${auth.setupGuide}`} icon={connector.icon} horizontal>
                    {connector.name} - {auth.label}
                  </Card>)}
              </Columns> 
              </>}
          </>
        </Step>
        <Step title="Link an Account">
          <>
            Connect an account using <a href="/guides/embedding-stackone-hub" style={linkStyle}>StackOne Hub</a> or <a href="/guides/auth-link" style={linkStyle}>Auth Link</a>.
            {linkAccountGuides.length > 0 && <>
                <Columns cols={2}>
                  {linkAccountGuides.map(auth => <Card title="Link Account" href={`/${auth.configGuide}`} icon={connector.icon} horizontal>
                      {connector.name} - {auth.label}
                    </Card>)}
                </Columns>
              </>}
          </>
        </Step>
        <Step title="Use Actions">
          <>
            Invoke actions using one of the methods below:
            <ul style={{
    marginTop: '8px',
    paddingLeft: '20px'
  }}>
              <li style={{
    marginBottom: '4px'
  }}><a href="/mcp/quickstart" style={linkStyle}>MCP</a> – Model Context Protocol for AI assistants</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/a2a/quickstart" style={linkStyle}>A2A</a> – Agent-to-Agent protocol</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/agents/typescript/introduction" style={linkStyle}>AI Toolset (TypeScript)</a> – TypeScript SDK for AI agents</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/agents/python/introduction" style={linkStyle}>AI Toolset (Python)</a> – Python SDK for AI agents</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/platform/api-reference/actions/make-an-rpc-call-to-an-action" style={linkStyle}>Actions RPC</a> – Direct API calls</li>
              <li style={{
    marginBottom: '4px'
  }}><a href="/guides/playground" style={linkStyle}>Playground</a> – Test actions in the dashboard</li>
            </ul>
          </>
        </Step>
      </Steps>
    </div>;
};

export const ActionsLibrary = ({search, setSearch, filtered, sharedStyles = {}, KeyCell, ScopesCell, availableScopes, selectedScopes, setSelectedScopes}) => {
  const libraryStyles = {
    section: {
      marginTop: '24px',
      marginBottom: '16px'
    },
    sectionTitle: {
      fontSize: '18px',
      fontWeight: '600',
      marginBottom: '12px'
    },
    filterRow: {
      display: 'flex',
      gap: '12px',
      marginBottom: '12px',
      alignItems: 'stretch'
    },
    count: {
      color: '#64748b',
      fontSize: '12px',
      marginBottom: '8px'
    },
    scopesFilterRow: {
      marginBottom: '12px'
    },
    scopesDropdown: {
      display: 'inline-block',
      fontSize: '12px',
      color: '#475569'
    },
    scopesSummary: {
      cursor: 'pointer',
      padding: '6px 10px',
      borderRadius: '999px',
      border: '1px solid #e2e8f0',
      backgroundColor: '#ffffff',
      listStyle: 'none',
      display: 'inline-flex',
      alignItems: 'center',
      gap: '6px'
    },
    scopesSummaryLabel: {
      margin: 0,
      padding: 0
    },
    scopesChipsContainer: {
      marginTop: '8px',
      padding: '4px 2px 2px',
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px',
      maxHeight: '90px',
      overflowY: 'auto'
    },
    scopeChip: {
      borderRadius: '999px',
      border: '1px solid #e2e8f0',
      padding: '4px 8px',
      fontSize: '11px',
      backgroundColor: '#f8fafc',
      color: '#475569',
      cursor: 'pointer'
    },
    scopeChipActive: {
      backgroundColor: '#dbeafe',
      borderColor: '#2563eb',
      color: '#1d4ed8'
    },
    tableContainer: {
      maxHeight: '500px',
      overflowY: 'auto',
      overflowX: 'auto',
      border: '1px solid #e2e8f0',
      borderRadius: '8px',
      fontSize: '13px'
    },
    gridTable: {
      display: 'grid',
      minWidth: '600px',
      gridTemplateColumns: '200px 1fr'
    },
    gridTableWithScopes: {
      gridTemplateColumns: '200px 1fr 150px'
    },
    gridHeader: {
      display: 'contents'
    },
    gridHeaderCell: {
      position: 'sticky',
      top: 0,
      backgroundColor: '#f8fafc',
      padding: '10px 12px',
      fontWeight: '600',
      borderBottom: '1px solid #e2e8f0',
      zIndex: 1
    },
    gridRow: {
      display: 'contents'
    },
    gridCellAction: {
      padding: '10px 12px',
      fontWeight: '500',
      borderBottom: '1px solid #f1f5f9'
    },
    gridCellKey: {
      padding: '10px 12px',
      borderBottom: '1px solid #f1f5f9'
    },
    gridCellScopes: {
      padding: '10px 12px',
      borderBottom: '1px solid #f1f5f9',
      color: '#475569',
      fontSize: '12px'
    },
    gridCellDescription: {
      padding: '10px 12px',
      color: '#64748b',
      borderBottom: '1px solid #f1f5f9'
    }
  };
  const styles = {
    ...libraryStyles,
    ...sharedStyles
  };
  const safeAvailableScopes = Array.isArray(availableScopes) ? availableScopes : [];
  const safeSelectedScopes = Array.isArray(selectedScopes) ? selectedScopes : [];
  const hasScopesColumn = safeAvailableScopes.length > 0;
  const hasScopeFilter = safeAvailableScopes.length > 0 && typeof setSelectedScopes === 'function';
  const ScopesCellComponent = ScopesCell || (() => null);
  return <div style={styles.section}>
      <div style={styles.sectionTitle}>Actions</div>
      <div style={styles.filterRow}>
        <SearchBar value={search} onChange={setSearch} placeholder="Search actions" />
        {hasScopeFilter && <FilterDropdown label="Scopes" items={safeAvailableScopes} selectedItems={safeSelectedScopes} onChange={setSelectedScopes} searchPlaceholder="Search scopes..." emptyLabel="No scopes found" />}
      </div>
      <div style={styles.count}>
        {filtered.length === 0 ? '0 actions found' : `${filtered.length} action${filtered.length !== 1 ? 's' : ''}`}
      </div>
      {}
      <div className="not-prose" style={styles.tableContainer}>
        <div style={{
    ...hasScopesColumn ? {
      ...styles.gridTable,
      ...styles.gridTableWithScopes
    } : styles.gridTable
  }}>
          {}
          <div style={styles.gridHeader}>
            <div style={styles.gridHeaderCell}>Action</div>
            <div style={styles.gridHeaderCell}>Description</div>
            {hasScopesColumn && <div style={styles.gridHeaderCell}>Required scopes</div>}
          </div>
          {}
          {filtered.map(a => <div key={a.id} style={styles.gridRow}>
              <div style={styles.gridCellAction}>
                <div>{a.label}</div>
                <div style={{
    marginTop: '4px'
  }}>
                  <KeyCell id={a.id} />
                </div>
              </div>
              <div style={styles.gridCellDescription}>{a.description}</div>
              {hasScopesColumn && <div style={styles.gridCellScopes}>
                  <ScopesCellComponent scopes={a.requiredScopes} actionId={a.id} />
                </div>}
            </div>)}
        </div>
      </div>
    </div>;
};

export const FilterDropdown = ({label, items, selectedItems, onChange, searchPlaceholder = 'Search...', emptyLabel = 'No items found', formatLabel}) => {
  const [dropdownOpen, setDropdownOpen] = React.useState(false);
  const [search, setSearch] = React.useState('');
  const [hoveredItem, setHoveredItem] = React.useState(null);
  const dropdownRef = React.useRef(null);
  const styles = {
    dropdownContainer: {
      position: 'relative'
    },
    dropdownTrigger: {
      display: 'flex',
      alignItems: 'center',
      gap: '8px',
      padding: '10px 14px',
      borderRadius: '8px',
      border: '1px solid #e2e8f0',
      fontSize: '14px',
      backgroundColor: 'white',
      cursor: 'pointer',
      whiteSpace: 'nowrap',
      minWidth: '160px',
      justifyContent: 'space-between'
    },
    dropdownTriggerActive: {
      borderColor: '#068F56',
      backgroundColor: '#f0fdf4'
    },
    dropdownMenu: {
      position: 'absolute',
      top: '100%',
      right: 0,
      marginTop: '4px',
      backgroundColor: 'white',
      border: '1px solid #e2e8f0',
      borderRadius: '8px',
      boxShadow: '0 4px 12px rgba(0,0,0,0.1)',
      zIndex: 50,
      minWidth: '220px',
      maxHeight: '320px',
      display: 'flex',
      flexDirection: 'column'
    },
    dropdownHeader: {
      padding: '8px 12px',
      borderBottom: '1px solid #e2e8f0'
    },
    selectActions: {
      display: 'flex',
      alignItems: 'center',
      gap: '8px',
      marginTop: '6px',
      fontSize: '12px'
    },
    selectActionBtn: {
      background: 'none',
      border: 'none',
      color: '#64748b',
      cursor: 'pointer',
      padding: '2px 4px',
      fontSize: '12px'
    },
    dropdownSearchInput: {
      width: '100%',
      padding: '8px 10px',
      borderRadius: '6px',
      border: '1px solid #e2e8f0',
      fontSize: '13px',
      outline: 'none',
      backgroundColor: '#ffffff'
    },
    dropdownList: {
      overflowY: 'auto',
      maxHeight: '220px',
      padding: '4px 0'
    },
    dropdownItem: {
      display: 'flex',
      alignItems: 'center',
      gap: '10px',
      padding: '8px 12px',
      cursor: 'pointer',
      fontSize: '13px',
      color: '#374151',
      transition: 'background-color 0.1s'
    },
    dropdownItemHover: {
      backgroundColor: '#f8fafc'
    },
    checkbox: {
      width: '16px',
      height: '16px',
      borderRadius: '4px',
      border: '2px solid #d1d5db',
      display: 'flex',
      alignItems: 'center',
      justifyContent: 'center',
      flexShrink: 0
    },
    checkboxChecked: {
      backgroundColor: '#068F56',
      borderColor: '#068F56'
    },
    checkmark: {
      color: 'white',
      fontSize: '10px',
      fontWeight: 'bold'
    },
    dropdownFooter: {
      padding: '8px 12px',
      borderTop: '1px solid #e2e8f0',
      display: 'flex',
      justifyContent: 'space-between',
      alignItems: 'center'
    },
    clearButton: {
      fontSize: '12px',
      color: '#64748b',
      cursor: 'pointer',
      padding: '4px 8px',
      borderRadius: '4px',
      border: 'none',
      background: 'none'
    },
    badge: {
      backgroundColor: '#068F56',
      color: 'white',
      fontSize: '11px',
      fontWeight: '600',
      padding: '2px 6px',
      borderRadius: '10px',
      marginLeft: '4px'
    },
    chevron: {
      fontSize: '10px',
      color: '#64748b',
      transition: 'transform 0.15s'
    },
    noResults: {
      padding: '12px',
      textAlign: 'center',
      color: '#64748b',
      fontSize: '13px'
    }
  };
  const safeSelected = Array.isArray(selectedItems) ? selectedItems : [];
  const formatItemLabel = item => {
    if (typeof formatLabel === 'function') {
      return formatLabel(item);
    }
    return item;
  };
  const filteredItems = React.useMemo(() => {
    if (!search) return items;
    const searchLower = search.toLowerCase();
    return items.filter(item => {
      const labelText = formatItemLabel(item);
      return labelText.toLowerCase().includes(searchLower);
    });
  }, [items, search, formatLabel]);
  const isSelected = item => safeSelected.includes(item);
  const toggleItem = item => {
    const next = isSelected(item) ? safeSelected.filter(v => v !== item) : [...safeSelected, item];
    onChange(next);
  };
  const clearFilters = () => {
    onChange([]);
  };
  const selectAll = () => {
    onChange(items);
  };
  React.useEffect(() => {
    const handleClickOutside = e => {
      if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
        setDropdownOpen(false);
        setSearch('');
        setHoveredItem(null);
      }
    };
    document.addEventListener('mousedown', handleClickOutside);
    return () => document.removeEventListener('mousedown', handleClickOutside);
  }, []);
  return <div style={styles.dropdownContainer} ref={dropdownRef}>
      <button type="button" onClick={() => setDropdownOpen(!dropdownOpen)} style={{
    ...styles.dropdownTrigger,
    ...safeSelected.length > 0 ? styles.dropdownTriggerActive : {}
  }}>
        <span>
          {label}
          {safeSelected.length > 0 && <span style={styles.badge}>{safeSelected.length}</span>}
        </span>
        <span style={{
    ...styles.chevron,
    transform: dropdownOpen ? 'rotate(180deg)' : 'rotate(0deg)'
  }}>
          ▼
        </span>
      </button>
      {dropdownOpen && <div style={styles.dropdownMenu}>
          <div style={styles.dropdownHeader}>
            <input type="text" placeholder={searchPlaceholder} value={search} onChange={e => setSearch(e.target.value)} style={styles.dropdownSearchInput} autoFocus />
            <div style={styles.selectActions}>
              <button type="button" onClick={selectAll} style={styles.selectActionBtn} onMouseEnter={e => {
    e.target.style.color = '#1e293b';
  }} onMouseLeave={e => {
    e.target.style.color = '#64748b';
  }}>
                Select all
              </button>
              <span style={{
    color: '#e2e8f0'
  }}>|</span>
              <button type="button" onClick={clearFilters} style={styles.selectActionBtn} onMouseEnter={e => {
    e.target.style.color = '#1e293b';
  }} onMouseLeave={e => {
    e.target.style.color = '#64748b';
  }}>
                Clear
              </button>
            </div>
          </div>
          <div style={styles.dropdownList}>
            {filteredItems.length === 0 ? <div style={styles.noResults}>{emptyLabel}</div> : filteredItems.map(item => <div key={item} onClick={() => toggleItem(item)} onMouseEnter={() => setHoveredItem(item)} onMouseLeave={() => setHoveredItem(null)} style={{
    ...styles.dropdownItem,
    ...hoveredItem === item ? styles.dropdownItemHover : {}
  }}>
                  <div style={{
    ...styles.checkbox,
    ...isSelected(item) ? styles.checkboxChecked : {}
  }}>
                    {isSelected(item) && <span style={styles.checkmark}>✓</span>}
                  </div>
                  <span>{formatItemLabel(item)}</span>
                </div>)}
          </div>
        </div>}
    </div>;
};

export const SearchBar = ({value, onChange, placeholder = 'Search...'}) => {
  const baseStyle = {
    padding: '10px 14px',
    borderRadius: '8px',
    border: '1px solid #e2e8f0',
    fontSize: '14px',
    outline: 'none',
    backgroundColor: '#fafafa',
    flex: 1,
    minWidth: 0
  };
  return <input type="text" placeholder={placeholder} value={value} onChange={e => onChange(e.target.value)} style={baseStyle} />;
};

export const ConnectorPage = ({connector}) => {
  const styles = {
    header: {
      display: 'flex',
      alignItems: 'center',
      gap: '12px',
      marginBottom: '24px'
    },
    tagsRow: {
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px',
      marginTop: '8px'
    },
    releaseTag: {
      display: 'inline-block',
      padding: '2px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      fontWeight: '500'
    },
    betaTag: {
      backgroundColor: '#fef3c7',
      color: '#b45309'
    },
    previewTag: {
      backgroundColor: '#E1E9F4',
      color: '#0D58AE',
      border: '1px solid #BFD5F1'
    },
    categoryTag: {
      display: 'inline-block',
      padding: '2px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      fontWeight: '500',
      backgroundColor: '#f1f5f9',
      color: '#475569'
    },
    icon: {
      width: '48px',
      height: '48px',
      borderRadius: '10px',
      backgroundColor: '#f8fafc',
      padding: '2px'
    },
    title: {
      fontSize: '24px',
      fontWeight: '600'
    },
    subtitle: {
      fontSize: '14px',
      color: '#64748b'
    },
    authDescription: {
      fontSize: '14px',
      color: '#64748b',
      marginTop: 0
    },
    sectionTitle: {
      fontSize: '18px',
      fontWeight: '600',
      marginBottom: '12px'
    },
    authList: {
      paddingLeft: '20px',
      color: '#374151'
    },
    codeWrapper: {
      position: 'relative',
      display: 'inline-flex',
      alignItems: 'center',
      maxWidth: '100%',
      cursor: 'pointer',
      overflowX: 'auto',
      overflowY: 'hidden',
      msOverflowStyle: 'none',
      scrollbarWidth: 'none'
    },
    code: {
      backgroundColor: '#f1f5f9',
      padding: '4px 8px',
      borderRadius: '4px',
      fontSize: '11px',
      color: '#475569',
      display: 'inline-block',
      whiteSpace: 'nowrap',
      transition: 'background-color 0.15s'
    },
    codeHover: {
      backgroundColor: '#e2e8f0'
    },
    codeCopied: {
      backgroundColor: '#d1fae5',
      color: '#065f46'
    },
    tooltip: {
      position: 'absolute',
      top: '100%',
      left: '50%',
      transform: 'translateX(-50%)',
      backgroundColor: '#1e293b',
      color: 'white',
      padding: '6px 10px',
      borderRadius: '6px',
      fontSize: '11px',
      whiteSpace: 'nowrap',
      marginTop: '6px',
      zIndex: 50,
      maxWidth: '300px',
      wordBreak: 'break-all'
    },
    tooltipArrow: {
      position: 'absolute',
      bottom: '100%',
      left: '50%',
      transform: 'translateX(-50%)',
      borderWidth: '5px',
      borderStyle: 'solid',
      borderColor: 'transparent transparent #1e293b transparent',
      zIndex: 50
    },
    tdDescription: {
      padding: '10px 12px',
      color: '#64748b',
      verticalAlign: 'top',
      maxWidth: '400px'
    }
  };
  const [search, setSearch] = React.useState('');
  const [copiedId, setCopiedId] = React.useState(null);
  const [selectedScopes, setSelectedScopes] = React.useState([]);
  const availableScopes = React.useMemo(() => {
    const set = new Set();
    connector.actions.forEach(a => {
      if (Array.isArray(a.requiredScopes)) {
        a.requiredScopes.forEach(s => {
          if (s) set.add(s);
        });
      }
    });
    return Array.from(set).sort();
  }, [connector.actions]);
  const filtered = React.useMemo(() => {
    const searchLower = search.toLowerCase();
    return connector.actions.filter(a => {
      const matchesSearch = a.label.toLowerCase().includes(searchLower) || a.description.toLowerCase().includes(searchLower) || a.id.toLowerCase().includes(searchLower);
      if (!matchesSearch) return false;
      if (selectedScopes.length === 0) return true;
      const scopes = Array.isArray(a.requiredScopes) ? a.requiredScopes : [];
      if (scopes.length === 0) return false;
      return selectedScopes.some(scope => scopes.includes(scope));
    });
  }, [connector.actions, search, selectedScopes]);
  const handleImageError = e => {
    e.target.style.display = 'none';
  };
  const formatCategoryLabel = cat => {
    const acronyms = ['ats', 'crm', 'hris', 'iam', 'lms'];
    if (acronyms.includes(cat.toLowerCase())) {
      return cat.toUpperCase();
    }
    return cat.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
  };
  const ReleaseTag = () => {
    if (!connector.releaseStage || connector.releaseStage === 'ga') return null;
    const tagStyle = connector.releaseStage === 'beta' ? {
      ...styles.releaseTag,
      ...styles.betaTag
    } : {
      ...styles.releaseTag,
      ...styles.previewTag
    };
    return <span style={tagStyle}>
        {connector.releaseStage.charAt(0).toUpperCase() + connector.releaseStage.slice(1)}
      </span>;
  };
  const CategoryTags = () => {
    if (!connector.categories || connector.categories.length === 0) return null;
    return <>
        {connector.categories.map(cat => <span key={cat} style={styles.categoryTag}>
            {formatCategoryLabel(cat)}
          </span>)}
      </>;
  };
  const copyToClipboard = async (text, id) => {
    try {
      await navigator.clipboard.writeText(text);
      setCopiedId(id);
      setTimeout(() => setCopiedId(null), 1500);
    } catch (err) {
      console.error('Failed to copy:', err);
    }
  };
  const CopyChip = ({text, copyId}) => {
    const [isHovered, setIsHovered] = React.useState(false);
    const isCopied = copiedId === copyId;
    if (!text) {
      return null;
    }
    const codeStyle = {
      ...styles.code,
      ...isCopied ? styles.codeCopied : isHovered ? styles.codeHover : {}
    };
    return <div style={styles.codeWrapper} onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} onClick={() => copyToClipboard(text, copyId)} title="">
        {(isHovered || isCopied) && <div style={styles.tooltip}>
            {isCopied ? '✓ Copied!' : 'Click to copy'}
            <div style={styles.tooltipArrow} />
          </div>}
        <code style={codeStyle}>
          {text}
        </code>
      </div>;
  };
  const KeyCell = ({id}) => <CopyChip text={id} copyId={id} />;
  const ScopesCell = ({scopes, actionId}) => {
    const scopeList = Array.isArray(scopes) ? scopes.filter(Boolean) : [];
    if (scopeList.length === 0) return null;
    return <div style={{
      display: 'flex',
      flexWrap: 'wrap',
      gap: '6px'
    }}>
        {scopeList.map(scope => <CopyChip key={scope} text={scope} copyId={`scopes:${actionId}:${scope}`} />)}
      </div>;
  };
  return <div>
      {}
      <div style={styles.header}>
        <img src={connector.icon} alt={connector.name} style={styles.icon} onError={handleImageError} />
        <div>
          <div style={styles.title}>{connector.name}</div>
          <div style={styles.subtitle}>
            {connector.actions.length} actions · {connector.authentication.length} auth method{connector.authentication.length !== 1 ? 's' : ''}
          </div>
          {connector.releaseStage && connector.releaseStage !== 'ga' || connector.categories && connector.categories.length > 0 ? <div style={styles.tagsRow}>
              <ReleaseTag />
              <CategoryTags />
            </div> : null}
        </div>
      </div>

      {}
      <div style={styles.sectionTitle}>Authentication</div>
      <Columns cols={2}>        
        {connector.authentication.length > 0 ? connector.authentication.map(auth => {
    const authLabel = auth?.label || '';
    const authDescription = auth?.description;
    const configGuide = auth?.configGuide;
    const setupGuide = auth?.setupGuide;
    const hasConfigGuide = !!configGuide;
    const hasSetupGuide = !!setupGuide;
    const hasAnyGuide = hasConfigGuide || hasSetupGuide;
    return <Card key={authLabel} title={authLabel}>
                {authDescription && <p style={{
      ...styles.authDescription,
      marginBottom: hasAnyGuide ? '8px' : 0
    }}>
                    {authDescription}
                  </p>}
                {hasAnyGuide && <span style={{
      fontSize: '14px'
    }}>
                    Guides: {hasSetupGuide && <a href={`/${setupGuide}`} style={{
      textDecoration: 'none'
    }}>Auth Config</a>}
                    {hasConfigGuide && hasSetupGuide && ', '}
                    {hasConfigGuide && <a href={`/${configGuide}`} style={{
      textDecoration: 'none'
    }}>Link Account</a>}
                  </span>}
              </Card>;
  }) : <>
            Contact StackOne for authentication details.
          </>}
      </Columns>

      {connector.documentation?.references?.length > 0 && <>
          <div style={styles.sectionTitle}>References</div>
          <Columns cols={2}>
            {connector.documentation.references.map(ref => {
    let safeHref;
    try {
      const parsed = new URL(ref.url);
      safeHref = parsed.protocol === 'http:' || parsed.protocol === 'https:' ? ref.url : undefined;
    } catch {
      safeHref = undefined;
    }
    return <Card key={`${ref.title}-${ref.url}`} title={ref.title} href={safeHref}>
                  {ref.description}
                </Card>;
  })}
          </Columns>
        </>}

      <ActionsLibrary search={search} setSearch={setSearch} filtered={filtered} sharedStyles={{
    sectionTitle: styles.sectionTitle
  }} KeyCell={KeyCell} ScopesCell={ScopesCell} availableScopes={availableScopes} selectedScopes={selectedScopes} setSelectedScopes={setSelectedScopes} />

      <GettingStarted connector={connector} />

    </div>;
};

export const connector = {
  "key": "newrelic",
  "name": "New Relic",
  "icon": "https://stackone-logos.com/api/new-relic/filled/png",
  "authentication": [{
    "label": "API Key",
    "description": "Uses a personal User API Key for both REST v2 and NerdGraph API access. No app registration required. Token inherits the...",
    "configGuide": "connectors/newrelic/guides/link-account/api-key",
    "setupGuide": "connectors/newrelic/guides/auth-config/api-key"
  }],
  "actions": [{
    "id": "newrelic_list_accounts",
    "label": "List Accounts",
    "description": "List all New Relic accounts accessible to the authenticated user"
  }, {
    "id": "newrelic_get_account",
    "label": "Get Account",
    "description": "Get details for the configured New Relic account"
  }, {
    "id": "newrelic_create_account",
    "label": "Create Account",
    "description": "Create a new account within the New Relic organization"
  }, {
    "id": "newrelic_update_account",
    "label": "Update Account",
    "description": "Rename an existing account within the New Relic organization"
  }, {
    "id": "newrelic_cancel_account",
    "label": "Cancel Account",
    "description": "Cancel an account within the New Relic organization"
  }, {
    "id": "newrelic_list_alert_policies",
    "label": "List Alert Policies",
    "description": "Retrieves all alert policies configured in the account."
  }, {
    "id": "newrelic_create_alert_policy",
    "label": "Create Alert Policy",
    "description": "Creates a new alert policy in the account."
  }, {
    "id": "newrelic_update_alert_policy",
    "label": "Update Alert Policy",
    "description": "Updates an existing alert policy by ID."
  }, {
    "id": "newrelic_delete_alert_policy",
    "label": "Delete Alert Policy",
    "description": "Deletes an alert policy by ID."
  }, {
    "id": "newrelic_list_alert_conditions",
    "label": "List Alert Conditions",
    "description": "Retrieves all alert conditions for a given policy."
  }, {
    "id": "newrelic_create_alert_condition",
    "label": "Create Alert Condition",
    "description": "Creates a new APM alert condition for a policy."
  }, {
    "id": "newrelic_update_alert_condition",
    "label": "Update Alert Condition",
    "description": "Updates an existing APM alert condition by ID."
  }, {
    "id": "newrelic_delete_alert_condition",
    "label": "Delete Alert Condition",
    "description": "Deletes an alert condition by ID."
  }, {
    "id": "newrelic_list_nrql_alert_conditions",
    "label": "List NRQL Alert Conditions",
    "description": "Retrieves all NRQL alert conditions for a given policy."
  }, {
    "id": "newrelic_create_nrql_alert_condition",
    "label": "Create NRQL Alert Condition",
    "description": "Creates a new NRQL alert condition for a policy."
  }, {
    "id": "newrelic_update_nrql_alert_condition",
    "label": "Update NRQL Alert Condition",
    "description": "Updates an existing NRQL alert condition by ID."
  }, {
    "id": "newrelic_delete_nrql_alert_condition",
    "label": "Delete NRQL Alert Condition",
    "description": "Deletes a NRQL alert condition by ID."
  }, {
    "id": "newrelic_list_external_service_conditions",
    "label": "List External Service Conditions",
    "description": "Retrieves all external service alert conditions for a given policy."
  }, {
    "id": "newrelic_create_external_service_condition",
    "label": "Create External Service Condition",
    "description": "Creates a new external service alert condition for a policy."
  }, {
    "id": "newrelic_update_external_service_condition",
    "label": "Update External Service Condition",
    "description": "Updates an existing external service alert condition by ID."
  }, {
    "id": "newrelic_delete_external_service_condition",
    "label": "Delete External Service Condition",
    "description": "Deletes an external service alert condition by ID."
  }, {
    "id": "newrelic_list_synthetics_alert_conditions",
    "label": "List Synthetics Alert Conditions",
    "description": "Retrieves all Synthetics alert conditions for a given policy."
  }, {
    "id": "newrelic_create_synthetics_alert_condition",
    "label": "Create Synthetics Alert Condition",
    "description": "Creates a new Synthetics alert condition for a policy."
  }, {
    "id": "newrelic_update_synthetics_alert_condition",
    "label": "Update Synthetics Alert Condition",
    "description": "Updates an existing Synthetics alert condition by ID."
  }, {
    "id": "newrelic_delete_synthetics_alert_condition",
    "label": "Delete Synthetics Alert Condition",
    "description": "Deletes a Synthetics alert condition by ID."
  }, {
    "id": "newrelic_list_policy_notification_channels",
    "label": "List Policy Notification Channels",
    "description": "Retrieves all notification channels, each including its linked policy IDs."
  }, {
    "id": "newrelic_add_channel_to_policy",
    "label": "Add Channel To Policy",
    "description": "Links one or more notification channels to an alert policy."
  }, {
    "id": "newrelic_remove_channel_from_policy",
    "label": "Remove Channel From Policy",
    "description": "Unlinks a notification channel from an alert policy."
  }, {
    "id": "newrelic_list_entity_alert_conditions",
    "label": "List Entity Alert Conditions",
    "description": "Retrieves all alert conditions associated with a specific entity."
  }, {
    "id": "newrelic_add_entity_to_condition",
    "label": "Add Entity To Condition",
    "description": "Associates an entity with an existing alert condition."
  }, {
    "id": "newrelic_remove_entity_from_condition",
    "label": "Remove Entity From Condition",
    "description": "Removes an entity from an existing alert condition."
  }, {
    "id": "newrelic_list_applications",
    "label": "List Applications",
    "description": "Retrieve a paginated list of APM applications with optional filters for name, host, IDs, or language"
  }, {
    "id": "newrelic_get_application",
    "label": "Get Application",
    "description": "Retrieve detailed information about a specific APM application by its ID"
  }, {
    "id": "newrelic_update_application",
    "label": "Update Application",
    "description": "Update an APM application's name or settings such as Apdex thresholds and real user monitoring"
  }, {
    "id": "newrelic_delete_application",
    "label": "Delete Application",
    "description": "Remove an APM application that is no longer reporting data"
  }, {
    "id": "newrelic_list_application_metric_names",
    "label": "List Application Metric Names",
    "description": "Retrieve the available metric names for a specific APM application"
  }, {
    "id": "newrelic_get_application_metric_data",
    "label": "Get Application Metric Data",
    "description": "Retrieve metric timeslice data for a specific APM application"
  }, {
    "id": "newrelic_list_application_hosts",
    "label": "List Application Hosts",
    "description": "Retrieve the hosts running a specific APM application"
  }, {
    "id": "newrelic_get_application_host",
    "label": "Get Application Host",
    "description": "Retrieve detailed information about a specific host running an APM application"
  }, {
    "id": "newrelic_list_application_instances",
    "label": "List Application Instances",
    "description": "Retrieve the running instances of a specific APM application"
  }, {
    "id": "newrelic_get_application_instance",
    "label": "Get Application Instance",
    "description": "Retrieve detailed information about a specific instance of an APM application"
  }, {
    "id": "newrelic_list_browser_applications",
    "label": "List Browser Applications",
    "description": "Retrieve a list of browser (real user monitoring) applications with optional filters"
  }, {
    "id": "newrelic_create_browser_application",
    "label": "Create Browser Application",
    "description": "Create a new browser (real user monitoring) application in New Relic"
  }, {
    "id": "newrelic_list_notification_channels",
    "label": "List Notification Channels",
    "description": "Retrieves all alert notification channels in the account."
  }, {
    "id": "newrelic_create_notification_channel",
    "label": "Create Notification Channel",
    "description": "Creates a new alert notification channel."
  }, {
    "id": "newrelic_delete_notification_channel",
    "label": "Delete Notification Channel",
    "description": "Deletes a notification channel by ID."
  }, {
    "id": "newrelic_list_dashboards",
    "label": "List Dashboards",
    "description": "Search for dashboards using NerdGraph entity search"
  }, {
    "id": "newrelic_get_dashboard",
    "label": "Get Dashboard",
    "description": "Retrieve a dashboard by GUID with all pages and widgets"
  }, {
    "id": "newrelic_create_dashboard",
    "label": "Create Dashboard",
    "description": "Create a new dashboard with pages and widgets"
  }, {
    "id": "newrelic_update_dashboard",
    "label": "Update Dashboard",
    "description": "Update an existing dashboard by GUID"
  }, {
    "id": "newrelic_delete_dashboard",
    "label": "Delete Dashboard",
    "description": "Delete a dashboard by GUID"
  }, {
    "id": "newrelic_create_dashboard_snapshot",
    "label": "Create Dashboard Snapshot",
    "description": "Generate a shareable snapshot URL for a dashboard page"
  }, {
    "id": "newrelic_undelete_dashboard",
    "label": "Undelete Dashboard",
    "description": "Recover a recently deleted dashboard"
  }, {
    "id": "newrelic_list_deployments",
    "label": "List Deployments",
    "description": "Retrieve a paginated list of deployments recorded for a specific APM application"
  }, {
    "id": "newrelic_create_deployment",
    "label": "Create Deployment",
    "description": "Record a new deployment for a specific APM application"
  }, {
    "id": "newrelic_delete_deployment",
    "label": "Delete Deployment",
    "description": "Remove a specific deployment record from an APM application"
  }, {
    "id": "newrelic_create_change_tracking_deployment",
    "label": "Create Change Tracking Deployment",
    "description": "Record a deployment via NerdGraph change tracking API."
  }, {
    "id": "newrelic_search_entities",
    "label": "Search Entities",
    "description": "Search for monitored entities using an NRQL-like query string"
  }, {
    "id": "newrelic_get_entity",
    "label": "Get Entity",
    "description": "Get detailed information about a specific entity by its GUID"
  }, {
    "id": "newrelic_get_entity_relationships",
    "label": "Get Entity Relationships",
    "description": "Get the relationships between an entity and other connected entities"
  }, {
    "id": "newrelic_get_entity_golden_metrics",
    "label": "Get Entity Golden Metrics",
    "description": "Get the golden metrics and golden tags defined for an entity"
  }, {
    "id": "newrelic_list_key_transactions",
    "label": "List Key Transactions",
    "description": "Retrieve a paginated list of key transactions with optional filters for name or IDs"
  }, {
    "id": "newrelic_get_key_transaction",
    "label": "Get Key Transaction",
    "description": "Retrieve detailed information about a specific key transaction by its ID"
  }, {
    "id": "newrelic_list_mobile_applications",
    "label": "List Mobile Applications",
    "description": "Retrieve a paginated list of mobile applications monitored by New Relic"
  }, {
    "id": "newrelic_get_mobile_application",
    "label": "Get Mobile Application",
    "description": "Retrieve detailed information about a specific mobile application by its ID"
  }, {
    "id": "newrelic_create_mobile_application",
    "label": "Create Mobile Application",
    "description": "Create a new mobile application entity in New Relic via NerdGraph"
  }, {
    "id": "newrelic_list_muting_rules",
    "label": "List Muting Rules",
    "description": "Retrieves all alert muting rules for the account."
  }, {
    "id": "newrelic_create_muting_rule",
    "label": "Create Muting Rule",
    "description": "Creates an alert muting rule to suppress notifications."
  }, {
    "id": "newrelic_delete_muting_rule",
    "label": "Delete Muting Rule",
    "description": "Deletes an alert muting rule by ID."
  }, {
    "id": "newrelic_get_muting_rule",
    "label": "Get Muting Rule",
    "description": "Retrieves a specific alert muting rule by its ID."
  }, {
    "id": "newrelic_update_muting_rule",
    "label": "Update Muting Rule",
    "description": "Updates an existing alert muting rule."
  }, {
    "id": "newrelic_list_notification_destinations",
    "label": "List Notification Destinations",
    "description": "List all notification destinations in the account"
  }, {
    "id": "newrelic_create_notification_destination",
    "label": "Create Notification Destination",
    "description": "Create a notification destination for alert delivery"
  }, {
    "id": "newrelic_update_notification_destination",
    "label": "Update Notification Destination",
    "description": "Update an existing notification destination"
  }, {
    "id": "newrelic_delete_notification_destination",
    "label": "Delete Notification Destination",
    "description": "Delete a notification destination by its ID"
  }, {
    "id": "newrelic_list_notification_workflows",
    "label": "List Notification Workflows",
    "description": "List all notification workflows for alert routing"
  }, {
    "id": "newrelic_create_notification_workflow",
    "label": "Create Notification Workflow",
    "description": "Create a notification workflow for alert routing"
  }, {
    "id": "newrelic_update_notification_workflow",
    "label": "Update Notification Workflow",
    "description": "Update an existing notification workflow"
  }, {
    "id": "newrelic_delete_notification_workflow",
    "label": "Delete Notification Workflow",
    "description": "Delete a notification workflow by its ID"
  }, {
    "id": "newrelic_test_notification_destination",
    "label": "Test Notification Destination",
    "description": "Test a notification destination configuration before creating it"
  }, {
    "id": "newrelic_test_notification_destination_by_id",
    "label": "Test Notification Destination By ID",
    "description": "Test an existing notification destination by its ID"
  }, {
    "id": "newrelic_get_notification_destination",
    "label": "Get Notification Destination",
    "description": "Retrieve a specific notification destination by ID"
  }, {
    "id": "newrelic_get_notification_workflow",
    "label": "Get Notification Workflow",
    "description": "Retrieve a specific notification workflow by ID"
  }, {
    "id": "newrelic_run_nrql_query",
    "label": "Run NRQL Query",
    "description": "Execute an NRQL query against your New Relic data"
  }, {
    "id": "newrelic_run_nrql_query_with_metadata",
    "label": "Run NRQL Query With Metadata",
    "description": "Execute an NRQL query and return results with metadata including facets, event types, and time window"
  }, {
    "id": "newrelic_list_service_level_indicators",
    "label": "List Service Level Indicators",
    "description": "List all service level indicators (SLIs) defined for an entity"
  }, {
    "id": "newrelic_create_service_level_indicator",
    "label": "Create Service Level Indicator",
    "description": "Create a new service level indicator (SLI) on an entity"
  }, {
    "id": "newrelic_update_service_level_indicator",
    "label": "Update Service Level Indicator",
    "description": "Update an existing service level indicator (SLI)"
  }, {
    "id": "newrelic_delete_service_level_indicator",
    "label": "Delete Service Level Indicator",
    "description": "Delete a service level indicator (SLI) by its ID"
  }, {
    "id": "newrelic_list_synthetic_monitors",
    "label": "List Synthetic Monitors",
    "description": "Search for synthetic monitors using NerdGraph entity search"
  }, {
    "id": "newrelic_get_synthetic_monitor",
    "label": "Get Synthetic Monitor",
    "description": "Retrieve a synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_simple_monitor",
    "label": "Create Simple Monitor",
    "description": "Create a simple ping synthetic monitor"
  }, {
    "id": "newrelic_update_simple_monitor",
    "label": "Update Simple Monitor",
    "description": "Update a simple ping synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_simple_browser_monitor",
    "label": "Create Simple Browser Monitor",
    "description": "Create a simple browser synthetic monitor"
  }, {
    "id": "newrelic_update_simple_browser_monitor",
    "label": "Update Simple Browser Monitor",
    "description": "Update a simple browser synthetic monitor by GUID"
  }, {
    "id": "newrelic_delete_synthetic_monitor",
    "label": "Delete Synthetic Monitor",
    "description": "Delete a synthetic monitor by GUID"
  }, {
    "id": "newrelic_list_synthetic_private_locations",
    "label": "List Synthetic Private Locations",
    "description": "List private monitoring locations using entity search"
  }, {
    "id": "newrelic_create_private_location",
    "label": "Create Private Location",
    "description": "Create a synthetic private location in New Relic"
  }, {
    "id": "newrelic_delete_private_location",
    "label": "Delete Private Location",
    "description": "Delete a synthetic private location by GUID"
  }, {
    "id": "newrelic_create_script_api_monitor",
    "label": "Create Script API Monitor",
    "description": "Create a scripted API monitor that executes custom Node.js scripts to test REST APIs"
  }, {
    "id": "newrelic_update_script_api_monitor",
    "label": "Update Script API Monitor",
    "description": "Update a scripted API synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_script_browser_monitor",
    "label": "Create Script Browser Monitor",
    "description": "Create a scripted browser monitor that runs Selenium WebDriver scripts for end-to-end web testing"
  }, {
    "id": "newrelic_update_script_browser_monitor",
    "label": "Update Script Browser Monitor",
    "description": "Update a scripted browser synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_certificate_check_monitor",
    "label": "Create Certificate Check Monitor",
    "description": "Create a synthetic monitor that checks SSL certificate expiration"
  }, {
    "id": "newrelic_update_certificate_check_monitor",
    "label": "Update Certificate Check Monitor",
    "description": "Update a certificate check synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_broken_links_monitor",
    "label": "Create Broken Links Monitor",
    "description": "Create a synthetic monitor that checks for broken links on a web page"
  }, {
    "id": "newrelic_update_broken_links_monitor",
    "label": "Update Broken Links Monitor",
    "description": "Update a broken links synthetic monitor by GUID"
  }, {
    "id": "newrelic_create_step_monitor",
    "label": "Create Step Monitor",
    "description": "Create a no-code step monitor that executes a sequence of UI actions in a browser"
  }, {
    "id": "newrelic_update_step_monitor",
    "label": "Update Step Monitor",
    "description": "Update a step synthetic monitor by GUID"
  }, {
    "id": "newrelic_list_entity_tags",
    "label": "List Entity Tags",
    "description": "List all tags associated with an entity"
  }, {
    "id": "newrelic_add_entity_tags",
    "label": "Add Entity Tags",
    "description": "Add tags to an entity without removing existing tags"
  }, {
    "id": "newrelic_replace_entity_tags",
    "label": "Replace Entity Tags",
    "description": "Replace all tags on an entity with the provided set"
  }, {
    "id": "newrelic_delete_entity_tag",
    "label": "Delete Entity Tag",
    "description": "Delete one or more tag keys and all their values from an entity"
  }, {
    "id": "newrelic_delete_entity_tag_values",
    "label": "Delete Entity Tag Values",
    "description": "Delete specific tag values from an entity while preserving other values under the same key"
  }, {
    "id": "newrelic_list_authentication_domains",
    "label": "List Authentication Domains",
    "description": "List all authentication domains in the organization"
  }, {
    "id": "newrelic_list_users",
    "label": "List Users",
    "description": "List all users across authentication domains in the organization"
  }, {
    "id": "newrelic_get_current_user",
    "label": "Get Current User",
    "description": "Get the currently authenticated user's information"
  }, {
    "id": "newrelic_create_user",
    "label": "Create User",
    "description": "Create a new user in a New Relic authentication domain"
  }, {
    "id": "newrelic_update_user",
    "label": "Update User",
    "description": "Update a user's type or email address in New Relic"
  }, {
    "id": "newrelic_delete_user",
    "label": "Delete User",
    "description": "Delete a user from New Relic by user ID"
  }, {
    "id": "newrelic_list_workloads",
    "label": "List Workloads",
    "description": "List all workloads defined in the account"
  }, {
    "id": "newrelic_get_workload",
    "label": "Get Workload",
    "description": "Get a specific workload by its GUID"
  }, {
    "id": "newrelic_create_workload",
    "label": "Create Workload",
    "description": "Create a new workload to group related entities"
  }, {
    "id": "newrelic_update_workload",
    "label": "Update Workload",
    "description": "Update an existing workload's name or entity membership"
  }, {
    "id": "newrelic_delete_workload",
    "label": "Delete Workload",
    "description": "Delete a workload by its GUID"
  }, {
    "id": "newrelic_duplicate_workload",
    "label": "Duplicate Workload",
    "description": "Duplicate an existing workload into the same or a different account"
  }],
  "releaseStage": "preview",
  "categories": ["observability"]
};

<ConnectorPage connector={connector} />
