import type { BulkRecordAction } from "../client/bulk-record-action.js"; import type { CallRecordingInsightTextSelectionAction } from "../client/call-recording-insight-text-selection-action.js"; import type { CallRecordingSummaryTextSelectionAction } from "../client/call-recording-summary-text-selection-action.js"; import type { CallRecordingTranscriptTextSelectionAction } from "../client/call-recording-transcript-text-selection-action.js"; import type { ObjectAction } from "../client/object-action.js"; import type { RecordAction } from "../client/record-action.js"; import type { RecordWidget } from "../client/record-widget.js"; import type { WorkspaceSettings } from "../client/workspace-settings.js"; export declare namespace App { namespace Record { /** * An action that can be taken on a record. * * @example * import type {App} from "attio" * * export const recordAction: App.Record.Action = { * onTrigger: ({recordId, object}) => { * // Do something * }, * label: "Send Invoice", * icon: "Sales" * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type Action = RecordAction; /** * An action that can be taken on a group of records. * * @example * import type {App} from "attio" * * export const bulkRecordAction: App.Record.BulkAction = { * id: "send-invoice", * onTrigger: (records) => { * // Do something * }, * label: "Send Invoice", * icon: "Sales" * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type BulkAction = BulkRecordAction; /** * A React component that will be rendered on a record page. * * @example * import type {App} from "attio" * import {Widget, WidgetTitle} from "attio/client" * * export const widget: App.Record.Widget = { * id: "my-widget", * Widget: ({recordId, object}) => { * return ( * * Hello world * * ) * }, * objects: "people", * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type Widget = RecordWidget; } /** * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ namespace Object { /** * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type Action = ObjectAction; } namespace CallRecording { namespace Insight { /** * An action that can be taken when a user selects text in call recording insights. * * @example * import type {App} from "attio" * * export const callRecordingInsightTextSelectionAction: App.CallRecording.Insight.TextAction = { * onTrigger: (selection) => { * // Do something * }, * label: "Reference", * icon: "Link" * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type TextAction = CallRecordingInsightTextSelectionAction; } namespace Summary { /** * An action is some action that can be taken when a user selects text in call recording * summaries. * * @example * import type {App} from "attio" * * export const callRecordingSummaryTextSelectionAction: App.CallRecording.Summary.TextAction = { * onTrigger: (selection) => { * // Do something * }, * label: "Reference", * icon: "Link" * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type TextAction = CallRecordingSummaryTextSelectionAction; } namespace Transcript { /** * An action that can be taken when a user selects text in a transcript. * * @example * import type {App} from "attio" * * export const callRecordingTranscriptTextSelectionAction: App.CallRecording.Transcript.TextAction = { * onTrigger: ({transcript, url}) => { * // Do something * }, * label: "Reference", * icon: "Link" * } * * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type TextAction = CallRecordingTranscriptTextSelectionAction; } } namespace Settings { /** * @deprecated Use the folder-based Settings API instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ type Workspace = WorkspaceSettings; } } /** * @deprecated Use folder-based src/app/ files instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ export interface App { readonly record?: { readonly actions?: Array; readonly bulkActions?: Array; readonly widgets?: Array; }; readonly callRecording?: { readonly insight?: { readonly textActions: Array; }; readonly summary?: { readonly textActions: Array; }; readonly transcript?: { readonly textActions: Array; }; }; /** * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ readonly object?: { /** * @deprecated Define this in src/app/extensions/ instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ readonly actions?: Array; }; /** * @deprecated Use the folder-based Settings API instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ readonly settings?: { /** * @deprecated Use the folder-based Settings API instead ('attio migrate folder-structure'). * @see https://docs.attio.com/sdk/guides/folder-structure-migration */ readonly workspace?: App.Settings.Workspace; }; } //# sourceMappingURL=app.d.ts.map