import { LayerRef } from "../../polychart/v1/polychart_pb.js"; import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; declare namespace layout_pb_d_exports { export { ChartIndicator, ChartIndicatorSchema, ChartStyle, ChartStyleSchema, ChartWidgetConfig, ChartWidgetConfigSchema, CreateLayoutShareLinkRequest, CreateLayoutShareLinkRequestSchema, CreateLayoutShareLinkResponse, CreateLayoutShareLinkResponseSchema, DeleteLayoutRequest, DeleteLayoutRequestSchema, DeleteLayoutResponse, DeleteLayoutResponseSchema, DeleteLayoutTemplateSubscriptionRequest, DeleteLayoutTemplateSubscriptionRequestSchema, DeleteLayoutTemplateSubscriptionResponse, DeleteLayoutTemplateSubscriptionResponseSchema, GetLayoutRequest, GetLayoutRequestSchema, GetLayoutResponse, GetLayoutResponseSchema, GetLayoutTemplateVersionRequest, GetLayoutTemplateVersionRequestSchema, GetLayoutTemplateVersionResponse, GetLayoutTemplateVersionResponseSchema, GetLayoutsRequest, GetLayoutsRequestSchema, GetLayoutsResponse, GetLayoutsResponseSchema, LayerVisibilityOverride, LayerVisibilityOverrideSchema, Layout, LayoutSchema, LayoutService, LayoutTemplate, LayoutTemplateRef, LayoutTemplateRefSchema, LayoutTemplateSchema, LayoutTemplateSubscription, LayoutTemplateSubscriptionSchema, LayoutTemplateVersionInfo, LayoutTemplateVersionInfoSchema, LayoutWidget, LayoutWidgetSchema, ListLayoutTemplateVersionsRequest, ListLayoutTemplateVersionsRequestSchema, ListLayoutTemplateVersionsResponse, ListLayoutTemplateVersionsResponseSchema, ListMyLayoutTemplateSubscriptionsRequest, ListMyLayoutTemplateSubscriptionsRequestSchema, ListMyLayoutTemplateSubscriptionsResponse, ListMyLayoutTemplateSubscriptionsResponseSchema, ListOwnerPublishedLayoutsRequest, ListOwnerPublishedLayoutsRequestSchema, ListOwnerPublishedLayoutsResponse, ListOwnerPublishedLayoutsResponseSchema, PublishLayoutRequest, PublishLayoutRequestSchema, PublishLayoutResponse, PublishLayoutResponseSchema, ResolveLayoutShareTokenRequest, ResolveLayoutShareTokenRequestSchema, ResolveLayoutShareTokenResponse, ResolveLayoutShareTokenResponseSchema, RevokeLayoutShareLinkRequest, RevokeLayoutShareLinkRequestSchema, RevokeLayoutShareLinkResponse, RevokeLayoutShareLinkResponseSchema, SetLayoutTemplateSubscriptionRequest, SetLayoutTemplateSubscriptionRequestSchema, SetLayoutTemplateSubscriptionResponse, SetLayoutTemplateSubscriptionResponseSchema, UnpublishLayoutRequest, UnpublishLayoutRequestSchema, UnpublishLayoutResponse, UnpublishLayoutResponseSchema, UpsertLayoutRequest, UpsertLayoutRequestSchema, UpsertLayoutResponse, UpsertLayoutResponseSchema, WidgetType, WidgetTypeSchema, file_layout_v1_layout }; } /** * Describes the file layout/v1/layout.proto. */ declare const file_layout_v1_layout: GenFile; /** * LayoutWidget stores one widget instance and its widget-specific configuration. * * @generated from message layout.v1.LayoutWidget */ type LayoutWidget = Message<"layout.v1.LayoutWidget"> & { /** * Stable widget identifier within the layout, such as "chart-1". * * @generated from field: string widget_id = 1; */ widgetId: string; /** * Widget kind that determines how widget_config is decoded. * * @generated from field: layout.v1.WidgetType widget_type = 2; */ widgetType: WidgetType; /** * Serialized widget configuration bytes for the selected widget_type. * * @generated from field: bytes widget_config = 3; */ widgetConfig: Uint8Array; }; /** * Describes the message layout.v1.LayoutWidget. * Use `create(LayoutWidgetSchema)` to create a new message. */ declare const LayoutWidgetSchema: GenMessage; /** * Layout is a saved editor workspace owned by one viewer. * * @generated from message layout.v1.Layout */ type Layout = Message<"layout.v1.Layout"> & { /** * Viewer that owns the saved layout. * * @generated from field: fixed64 viewer_id = 1; */ viewerId: bigint; /** * Layout identifier unique within the viewer's saved layouts. * * @generated from field: fixed64 layout_id = 2; */ layoutId: bigint; /** * Human-readable layout name. * * @generated from field: string name = 3; */ name: string; /** * True when this is the viewer's default layout. * * @generated from field: bool is_default = 4; */ isDefault: boolean; /** * Serialized editor panel arrangement snapshot. * * @generated from field: bytes dockview_state = 5; */ dockviewState: Uint8Array; /** * Widgets contained in the layout. * * @generated from field: repeated layout.v1.LayoutWidget widgets = 6; */ widgets: LayoutWidget[]; /** * Last update time in milliseconds since epoch (UTC). * * @generated from field: fixed64 updated_at_ms = 7; */ updatedAtMs: bigint; }; /** * Describes the message layout.v1.Layout. * Use `create(LayoutSchema)` to create a new message. */ declare const LayoutSchema: GenMessage; /** * Chart widget config (stored in LayoutWidget.widget_config when widget_type == CHART). * * @generated from message layout.v1.ChartWidgetConfig */ type ChartWidgetConfig = Message<"layout.v1.ChartWidgetConfig"> & { /** * Engine symbol identifier for the chart market. * * @generated from field: uint32 engine_symbol_id = 1; */ engineSymbolId: number; /** * Candle timeframe, such as "1m", "5m", "1h", or "1d". * * @generated from field: string timeframe = 2; */ timeframe: string; /** * Indicators configured for this chart. * * @generated from field: repeated layout.v1.ChartIndicator indicators = 3; */ indicators: ChartIndicator[]; /** * Visual style options for this chart. * * @generated from field: layout.v1.ChartStyle style = 4; */ style?: ChartStyle | undefined; /** * Optional: per-widget layer visibility overrides. * If empty, use layer subscriptions defaults for this market. * * @generated from field: repeated layout.v1.LayerVisibilityOverride layer_overrides = 5; */ layerOverrides: LayerVisibilityOverride[]; /** * When true, chart follows the latest candle/price (UI behavior). * * @generated from field: bool follow_latest = 6; */ followLatest: boolean; }; /** * Describes the message layout.v1.ChartWidgetConfig. * Use `create(ChartWidgetConfigSchema)` to create a new message. */ declare const ChartWidgetConfigSchema: GenMessage; /** * ChartIndicator stores one configured technical indicator. * * @generated from message layout.v1.ChartIndicator */ type ChartIndicator = Message<"layout.v1.ChartIndicator"> & { /** * Indicator type, such as "RSI", "MACD", or "BB". * * @generated from field: string indicator_type = 1; */ indicatorType: string; /** * Serialized indicator parameters understood by the chart client. * * @generated from field: bytes params = 2; */ params: Uint8Array; }; /** * Describes the message layout.v1.ChartIndicator. * Use `create(ChartIndicatorSchema)` to create a new message. */ declare const ChartIndicatorSchema: GenMessage; /** * ChartStyle stores visual chart style settings. * * @generated from message layout.v1.ChartStyle */ type ChartStyle = Message<"layout.v1.ChartStyle"> & { /** * Serialized style settings understood by the chart client. * * @generated from field: bytes style_bytes = 1; */ styleBytes: Uint8Array; }; /** * Describes the message layout.v1.ChartStyle. * Use `create(ChartStyleSchema)` to create a new message. */ declare const ChartStyleSchema: GenMessage; /** * LayerVisibilityOverride sets per-chart visibility for one chart layer. * * @generated from message layout.v1.LayerVisibilityOverride */ type LayerVisibilityOverride = Message<"layout.v1.LayerVisibilityOverride"> & { /** * Chart layer whose visibility is overridden. * * @generated from field: polychart.v1.LayerRef layer = 1; */ layer?: LayerRef | undefined; /** * True when the layer should be visible in this chart. * * @generated from field: bool visible = 2; */ visible: boolean; }; /** * Describes the message layout.v1.LayerVisibilityOverride. * Use `create(LayerVisibilityOverrideSchema)` to create a new message. */ declare const LayerVisibilityOverrideSchema: GenMessage; /** * GetLayoutsRequest lists saved layouts for the authenticated caller. * * @generated from message layout.v1.GetLayoutsRequest */ type GetLayoutsRequest = Message<"layout.v1.GetLayoutsRequest"> & { /** * Maximum number of layouts to return. Defaults to 100 when omitted; maximum * is 500. * * @generated from field: uint32 limit = 1; */ limit: number; /** * Opaque keyset cursor from a previous response. The cursor is exclusive and * bound to the authenticated caller and newest-updated sort order. * * @generated from field: string page_token = 2; */ pageToken: string; }; /** * Describes the message layout.v1.GetLayoutsRequest. * Use `create(GetLayoutsRequestSchema)` to create a new message. */ declare const GetLayoutsRequestSchema: GenMessage; /** * GetLayoutsResponse contains the caller's saved layouts. * * @generated from message layout.v1.GetLayoutsResponse */ type GetLayoutsResponse = Message<"layout.v1.GetLayoutsResponse"> & { /** * Saved layouts for the caller, returned newest-updated first. * * @generated from field: repeated layout.v1.Layout layouts = 1; */ layouts: Layout[]; /** * Opaque cursor for the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message layout.v1.GetLayoutsResponse. * Use `create(GetLayoutsResponseSchema)` to create a new message. */ declare const GetLayoutsResponseSchema: GenMessage; /** * GetLayoutRequest fetches one saved layout by ID. * * @generated from message layout.v1.GetLayoutRequest */ type GetLayoutRequest = Message<"layout.v1.GetLayoutRequest"> & { /** * Layout identifier to fetch. * * @generated from field: fixed64 layout_id = 1; */ layoutId: bigint; }; /** * Describes the message layout.v1.GetLayoutRequest. * Use `create(GetLayoutRequestSchema)` to create a new message. */ declare const GetLayoutRequestSchema: GenMessage; /** * GetLayoutResponse contains one saved layout. * * @generated from message layout.v1.GetLayoutResponse */ type GetLayoutResponse = Message<"layout.v1.GetLayoutResponse"> & { /** * Saved layout matching the requested id. * * @generated from field: layout.v1.Layout layout = 1; */ layout?: Layout | undefined; }; /** * Describes the message layout.v1.GetLayoutResponse. * Use `create(GetLayoutResponseSchema)` to create a new message. */ declare const GetLayoutResponseSchema: GenMessage; /** * Resolve a share token to a layout snapshot (template). No auth required. * * @generated from message layout.v1.ResolveLayoutShareTokenRequest */ type ResolveLayoutShareTokenRequest = Message<"layout.v1.ResolveLayoutShareTokenRequest"> & { /** * Opaque share token from a layout share link. * * @generated from field: string token = 1; */ token: string; }; /** * Describes the message layout.v1.ResolveLayoutShareTokenRequest. * Use `create(ResolveLayoutShareTokenRequestSchema)` to create a new message. */ declare const ResolveLayoutShareTokenRequestSchema: GenMessage; /** * ResolveLayoutShareTokenResponse returns the immutable layout snapshot for a share token. * * @generated from message layout.v1.ResolveLayoutShareTokenResponse */ type ResolveLayoutShareTokenResponse = Message<"layout.v1.ResolveLayoutShareTokenResponse"> & { /** * Shared layout snapshot. * * @generated from field: layout.v1.Layout layout = 1; */ layout?: Layout | undefined; /** * Viewer that owns the shared template. * * @generated from field: fixed64 owner_id = 2; */ ownerId: bigint; /** * Template identifier referenced by the share token. * * @generated from field: fixed64 template_id = 3; */ templateId: bigint; /** * Immutable template version referenced by the share token. * * @generated from field: uint32 version = 4; */ version: number; }; /** * Describes the message layout.v1.ResolveLayoutShareTokenResponse. * Use `create(ResolveLayoutShareTokenResponseSchema)` to create a new message. */ declare const ResolveLayoutShareTokenResponseSchema: GenMessage; /** * CreateLayoutShareLinkRequest creates a share token for one saved layout. * * @generated from message layout.v1.CreateLayoutShareLinkRequest */ type CreateLayoutShareLinkRequest = Message<"layout.v1.CreateLayoutShareLinkRequest"> & { /** * Saved layout identifier to share. * * @generated from field: fixed64 layout_id = 1; */ layoutId: bigint; /** * Expiration time in milliseconds since epoch (UTC); 0 means the link does not expire. * * @generated from field: fixed64 expires_at_ms = 2; */ expiresAtMs: bigint; }; /** * Describes the message layout.v1.CreateLayoutShareLinkRequest. * Use `create(CreateLayoutShareLinkRequestSchema)` to create a new message. */ declare const CreateLayoutShareLinkRequestSchema: GenMessage; /** * CreateLayoutShareLinkResponse returns the minted share token and target snapshot. * * @generated from message layout.v1.CreateLayoutShareLinkResponse */ type CreateLayoutShareLinkResponse = Message<"layout.v1.CreateLayoutShareLinkResponse"> & { /** * Opaque share token that can resolve the layout snapshot. * * @generated from field: string token = 1; */ token: string; /** * Viewer that owns the shared template. * * @generated from field: fixed64 owner_id = 2; */ ownerId: bigint; /** * Template identifier created or reused for this layout. * * @generated from field: fixed64 template_id = 3; */ templateId: bigint; /** * Immutable template version captured by this share link. * * @generated from field: uint32 version = 4; */ version: number; }; /** * Describes the message layout.v1.CreateLayoutShareLinkResponse. * Use `create(CreateLayoutShareLinkResponseSchema)` to create a new message. */ declare const CreateLayoutShareLinkResponseSchema: GenMessage; /** * RevokeLayoutShareLinkRequest revokes one previously minted share token. * * @generated from message layout.v1.RevokeLayoutShareLinkRequest */ type RevokeLayoutShareLinkRequest = Message<"layout.v1.RevokeLayoutShareLinkRequest"> & { /** * Opaque share token to revoke. * * @generated from field: string token = 1; */ token: string; }; /** * Describes the message layout.v1.RevokeLayoutShareLinkRequest. * Use `create(RevokeLayoutShareLinkRequestSchema)` to create a new message. */ declare const RevokeLayoutShareLinkRequestSchema: GenMessage; /** * RevokeLayoutShareLinkResponse is empty when the token was revoked. * * @generated from message layout.v1.RevokeLayoutShareLinkResponse */ type RevokeLayoutShareLinkResponse = Message<"layout.v1.RevokeLayoutShareLinkResponse"> & {}; /** * Describes the message layout.v1.RevokeLayoutShareLinkResponse. * Use `create(RevokeLayoutShareLinkResponseSchema)` to create a new message. */ declare const RevokeLayoutShareLinkResponseSchema: GenMessage; /** * LayoutTemplateRef identifies a published layout template. * * @generated from message layout.v1.LayoutTemplateRef */ type LayoutTemplateRef = Message<"layout.v1.LayoutTemplateRef"> & { /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Template identifier unique within the owner. * * @generated from field: fixed64 template_id = 2; */ templateId: bigint; }; /** * Describes the message layout.v1.LayoutTemplateRef. * Use `create(LayoutTemplateRefSchema)` to create a new message. */ declare const LayoutTemplateRefSchema: GenMessage; /** * LayoutTemplate contains discovery metadata for a versioned layout template. * * @generated from message layout.v1.LayoutTemplate */ type LayoutTemplate = Message<"layout.v1.LayoutTemplate"> & { /** * Template identifier. * * @generated from field: layout.v1.LayoutTemplateRef template = 1; */ template?: LayoutTemplateRef | undefined; /** * Public display title. * * @generated from field: string title = 2; */ title: string; /** * Public description shown with the template. * * @generated from field: string description = 3; */ description: string; /** * Public tags used for grouping or filtering. * * @generated from field: repeated string tags = 4; */ tags: string[]; /** * True when the template appears in discovery listings. * * @generated from field: bool is_listed = 5; */ isListed: boolean; /** * Latest immutable version number for this template. * * @generated from field: uint32 latest_version = 6; */ latestVersion: number; /** * Initial publication time in milliseconds since epoch (UTC). * * @generated from field: fixed64 published_at_ms = 7; */ publishedAtMs: bigint; /** * Last metadata update time in milliseconds since epoch (UTC). * * @generated from field: fixed64 updated_at_ms = 8; */ updatedAtMs: bigint; }; /** * Describes the message layout.v1.LayoutTemplate. * Use `create(LayoutTemplateSchema)` to create a new message. */ declare const LayoutTemplateSchema: GenMessage; /** * LayoutTemplateVersionInfo contains metadata for one immutable template version. * * @generated from message layout.v1.LayoutTemplateVersionInfo */ type LayoutTemplateVersionInfo = Message<"layout.v1.LayoutTemplateVersionInfo"> & { /** * Immutable template version number. * * @generated from field: uint32 version = 1; */ version: number; /** * Optional release notes for this version. * * @generated from field: string changelog = 2; */ changelog: string; /** * Version creation time in milliseconds since epoch (UTC). * * @generated from field: fixed64 created_at_ms = 3; */ createdAtMs: bigint; }; /** * Describes the message layout.v1.LayoutTemplateVersionInfo. * Use `create(LayoutTemplateVersionInfoSchema)` to create a new message. */ declare const LayoutTemplateVersionInfoSchema: GenMessage; /** * ListOwnerPublishedLayoutsRequest lists published templates owned by one viewer. * * @generated from message layout.v1.ListOwnerPublishedLayoutsRequest */ type ListOwnerPublishedLayoutsRequest = Message<"layout.v1.ListOwnerPublishedLayoutsRequest"> & { /** * Owner whose published layouts should be listed. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Maximum number of templates to return. Defaults to 100 when omitted; * maximum is 500. * * @generated from field: uint32 limit = 2; */ limit: number; /** * Opaque keyset cursor from a previous response. The cursor is exclusive and * bound to owner and newest-published sort order. * * @generated from field: string page_token = 3; */ pageToken: string; }; /** * Describes the message layout.v1.ListOwnerPublishedLayoutsRequest. * Use `create(ListOwnerPublishedLayoutsRequestSchema)` to create a new message. */ declare const ListOwnerPublishedLayoutsRequestSchema: GenMessage; /** * ListOwnerPublishedLayoutsResponse contains one page of published templates. * * @generated from message layout.v1.ListOwnerPublishedLayoutsResponse */ type ListOwnerPublishedLayoutsResponse = Message<"layout.v1.ListOwnerPublishedLayoutsResponse"> & { /** * Published templates for the owner, returned newest-published first. * * @generated from field: repeated layout.v1.LayoutTemplate templates = 1; */ templates: LayoutTemplate[]; /** * Opaque cursor for the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message layout.v1.ListOwnerPublishedLayoutsResponse. * Use `create(ListOwnerPublishedLayoutsResponseSchema)` to create a new message. */ declare const ListOwnerPublishedLayoutsResponseSchema: GenMessage; /** * ListLayoutTemplateVersionsRequest lists immutable versions for one template. * * @generated from message layout.v1.ListLayoutTemplateVersionsRequest */ type ListLayoutTemplateVersionsRequest = Message<"layout.v1.ListLayoutTemplateVersionsRequest"> & { /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Template identifier. * * @generated from field: fixed64 template_id = 2; */ templateId: bigint; /** * Maximum number of versions to return. Defaults to 100 when omitted; maximum * is 500. * * @generated from field: uint32 limit = 3; */ limit: number; /** * Opaque keyset cursor from a previous response. The cursor is exclusive and * bound to owner, template, and newest-version sort order. * * @generated from field: string page_token = 4; */ pageToken: string; }; /** * Describes the message layout.v1.ListLayoutTemplateVersionsRequest. * Use `create(ListLayoutTemplateVersionsRequestSchema)` to create a new message. */ declare const ListLayoutTemplateVersionsRequestSchema: GenMessage; /** * ListLayoutTemplateVersionsResponse contains version metadata for a template. * * @generated from message layout.v1.ListLayoutTemplateVersionsResponse */ type ListLayoutTemplateVersionsResponse = Message<"layout.v1.ListLayoutTemplateVersionsResponse"> & { /** * Template versions, returned newest version first. * * @generated from field: repeated layout.v1.LayoutTemplateVersionInfo versions = 1; */ versions: LayoutTemplateVersionInfo[]; /** * Opaque cursor for the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message layout.v1.ListLayoutTemplateVersionsResponse. * Use `create(ListLayoutTemplateVersionsResponseSchema)` to create a new message. */ declare const ListLayoutTemplateVersionsResponseSchema: GenMessage; /** * GetLayoutTemplateVersionRequest fetches one immutable template version. * * @generated from message layout.v1.GetLayoutTemplateVersionRequest */ type GetLayoutTemplateVersionRequest = Message<"layout.v1.GetLayoutTemplateVersionRequest"> & { /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Template identifier. * * @generated from field: fixed64 template_id = 2; */ templateId: bigint; /** * Immutable version number to fetch. * * @generated from field: uint32 version = 3; */ version: number; }; /** * Describes the message layout.v1.GetLayoutTemplateVersionRequest. * Use `create(GetLayoutTemplateVersionRequestSchema)` to create a new message. */ declare const GetLayoutTemplateVersionRequestSchema: GenMessage; /** * GetLayoutTemplateVersionResponse returns one immutable template snapshot. * * @generated from message layout.v1.GetLayoutTemplateVersionResponse */ type GetLayoutTemplateVersionResponse = Message<"layout.v1.GetLayoutTemplateVersionResponse"> & { /** * Layout snapshot captured for the requested version. * * @generated from field: layout.v1.Layout layout = 1; */ layout?: Layout | undefined; /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 2; */ ownerId: bigint; /** * Template identifier. * * @generated from field: fixed64 template_id = 3; */ templateId: bigint; /** * Immutable version number returned. * * @generated from field: uint32 version = 4; */ version: number; }; /** * Describes the message layout.v1.GetLayoutTemplateVersionResponse. * Use `create(GetLayoutTemplateVersionResponseSchema)` to create a new message. */ declare const GetLayoutTemplateVersionResponseSchema: GenMessage; /** * PublishLayoutRequest creates a new immutable template version from a saved layout. * * @generated from message layout.v1.PublishLayoutRequest */ type PublishLayoutRequest = Message<"layout.v1.PublishLayoutRequest"> & { /** * Saved layout identifier to publish. * * @generated from field: fixed64 layout_id = 1; */ layoutId: bigint; /** * Public display title. * * @generated from field: string title = 2; */ title: string; /** * Public description shown with the template. * * @generated from field: string description = 3; */ description: string; /** * Public tags used for grouping or filtering. * * @generated from field: repeated string tags = 4; */ tags: string[]; /** * True when the template should appear in discovery listings. * * @generated from field: bool is_listed = 5; */ isListed: boolean; /** * Optional release notes for the new immutable version. * * @generated from field: string changelog = 6; */ changelog: string; }; /** * Describes the message layout.v1.PublishLayoutRequest. * Use `create(PublishLayoutRequestSchema)` to create a new message. */ declare const PublishLayoutRequestSchema: GenMessage; /** * PublishLayoutResponse returns the published template and version number. * * @generated from message layout.v1.PublishLayoutResponse */ type PublishLayoutResponse = Message<"layout.v1.PublishLayoutResponse"> & { /** * Published template metadata after the update. * * @generated from field: layout.v1.LayoutTemplate template = 1; */ template?: LayoutTemplate | undefined; /** * Immutable version number created by this publish operation. * * @generated from field: uint32 version = 2; */ version: number; }; /** * Describes the message layout.v1.PublishLayoutResponse. * Use `create(PublishLayoutResponseSchema)` to create a new message. */ declare const PublishLayoutResponseSchema: GenMessage; /** * UnpublishLayoutRequest removes a template from discovery listings. * * @generated from message layout.v1.UnpublishLayoutRequest */ type UnpublishLayoutRequest = Message<"layout.v1.UnpublishLayoutRequest"> & { /** * Removes the template from discovery (unlisted). Versions and share links remain. * * @generated from field: fixed64 template_id = 1; */ templateId: bigint; }; /** * Describes the message layout.v1.UnpublishLayoutRequest. * Use `create(UnpublishLayoutRequestSchema)` to create a new message. */ declare const UnpublishLayoutRequestSchema: GenMessage; /** * UnpublishLayoutResponse is empty when the template was removed from discovery. * * @generated from message layout.v1.UnpublishLayoutResponse */ type UnpublishLayoutResponse = Message<"layout.v1.UnpublishLayoutResponse"> & {}; /** * Describes the message layout.v1.UnpublishLayoutResponse. * Use `create(UnpublishLayoutResponseSchema)` to create a new message. */ declare const UnpublishLayoutResponseSchema: GenMessage; /** * SetLayoutTemplateSubscriptionRequest follows a template by tracking latest or pinning a version. * * @generated from message layout.v1.SetLayoutTemplateSubscriptionRequest */ type SetLayoutTemplateSubscriptionRequest = Message<"layout.v1.SetLayoutTemplateSubscriptionRequest"> & { /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Template identifier to follow. * * @generated from field: fixed64 template_id = 2; */ templateId: bigint; /** * True to follow the latest version automatically. * * @generated from field: bool track_latest = 3; */ trackLatest: boolean; /** * Version to follow when track_latest is false. * * @generated from field: optional uint32 pinned_version = 4; */ pinnedVersion?: number | undefined; }; /** * Describes the message layout.v1.SetLayoutTemplateSubscriptionRequest. * Use `create(SetLayoutTemplateSubscriptionRequestSchema)` to create a new message. */ declare const SetLayoutTemplateSubscriptionRequestSchema: GenMessage; /** * SetLayoutTemplateSubscriptionResponse is empty when the subscription was saved. * * @generated from message layout.v1.SetLayoutTemplateSubscriptionResponse */ type SetLayoutTemplateSubscriptionResponse = Message<"layout.v1.SetLayoutTemplateSubscriptionResponse"> & {}; /** * Describes the message layout.v1.SetLayoutTemplateSubscriptionResponse. * Use `create(SetLayoutTemplateSubscriptionResponseSchema)` to create a new message. */ declare const SetLayoutTemplateSubscriptionResponseSchema: GenMessage; /** * DeleteLayoutTemplateSubscriptionRequest deletes one followed template. * * @generated from message layout.v1.DeleteLayoutTemplateSubscriptionRequest */ type DeleteLayoutTemplateSubscriptionRequest = Message<"layout.v1.DeleteLayoutTemplateSubscriptionRequest"> & { /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 1; */ ownerId: bigint; /** * Template identifier to unfollow. * * @generated from field: fixed64 template_id = 2; */ templateId: bigint; }; /** * Describes the message layout.v1.DeleteLayoutTemplateSubscriptionRequest. * Use `create(DeleteLayoutTemplateSubscriptionRequestSchema)` to create a new message. */ declare const DeleteLayoutTemplateSubscriptionRequestSchema: GenMessage; /** * DeleteLayoutTemplateSubscriptionResponse is empty when the subscription was deleted. * * @generated from message layout.v1.DeleteLayoutTemplateSubscriptionResponse */ type DeleteLayoutTemplateSubscriptionResponse = Message<"layout.v1.DeleteLayoutTemplateSubscriptionResponse"> & {}; /** * Describes the message layout.v1.DeleteLayoutTemplateSubscriptionResponse. * Use `create(DeleteLayoutTemplateSubscriptionResponseSchema)` to create a new message. */ declare const DeleteLayoutTemplateSubscriptionResponseSchema: GenMessage; /** * LayoutTemplateSubscription describes one template followed by a viewer. * * @generated from message layout.v1.LayoutTemplateSubscription */ type LayoutTemplateSubscription = Message<"layout.v1.LayoutTemplateSubscription"> & { /** * Viewer that follows the template. * * @generated from field: fixed64 viewer_id = 1; */ viewerId: bigint; /** * Viewer that owns the template. * * @generated from field: fixed64 owner_id = 2; */ ownerId: bigint; /** * Followed template identifier. * * @generated from field: fixed64 template_id = 3; */ templateId: bigint; /** * True when the subscription follows the latest version automatically. * * @generated from field: bool track_latest = 4; */ trackLatest: boolean; /** * Version followed when track_latest is false. * * @generated from field: optional uint32 pinned_version = 5; */ pinnedVersion?: number | undefined; /** * Subscription update time in milliseconds since epoch (UTC). * * @generated from field: fixed64 updated_at_ms = 6; */ updatedAtMs: bigint; }; /** * Describes the message layout.v1.LayoutTemplateSubscription. * Use `create(LayoutTemplateSubscriptionSchema)` to create a new message. */ declare const LayoutTemplateSubscriptionSchema: GenMessage; /** * ListMyLayoutTemplateSubscriptionsRequest lists templates followed by the authenticated caller. * * @generated from message layout.v1.ListMyLayoutTemplateSubscriptionsRequest */ type ListMyLayoutTemplateSubscriptionsRequest = Message<"layout.v1.ListMyLayoutTemplateSubscriptionsRequest"> & { /** * Maximum number of subscriptions to return. Defaults to 100 when omitted; * maximum is 500. * * @generated from field: uint32 limit = 1; */ limit: number; /** * Opaque keyset cursor from a previous response. The cursor is exclusive and * bound to the authenticated caller and newest-updated sort order. * * @generated from field: string page_token = 2; */ pageToken: string; }; /** * Describes the message layout.v1.ListMyLayoutTemplateSubscriptionsRequest. * Use `create(ListMyLayoutTemplateSubscriptionsRequestSchema)` to create a new message. */ declare const ListMyLayoutTemplateSubscriptionsRequestSchema: GenMessage; /** * ListMyLayoutTemplateSubscriptionsResponse contains the caller's followed templates. * * @generated from message layout.v1.ListMyLayoutTemplateSubscriptionsResponse */ type ListMyLayoutTemplateSubscriptionsResponse = Message<"layout.v1.ListMyLayoutTemplateSubscriptionsResponse"> & { /** * Followed templates for the caller, returned newest-updated first. * * @generated from field: repeated layout.v1.LayoutTemplateSubscription subscriptions = 1; */ subscriptions: LayoutTemplateSubscription[]; /** * Opaque cursor for the next page. Empty when no more results exist. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; }; /** * Describes the message layout.v1.ListMyLayoutTemplateSubscriptionsResponse. * Use `create(ListMyLayoutTemplateSubscriptionsResponseSchema)` to create a new message. */ declare const ListMyLayoutTemplateSubscriptionsResponseSchema: GenMessage; /** * UpsertLayoutRequest creates or updates a saved layout for the authenticated caller. * * @generated from message layout.v1.UpsertLayoutRequest */ type UpsertLayoutRequest = Message<"layout.v1.UpsertLayoutRequest"> & { /** * Layout payload to save. * * @generated from field: layout.v1.Layout layout = 1; */ layout?: Layout | undefined; }; /** * Describes the message layout.v1.UpsertLayoutRequest. * Use `create(UpsertLayoutRequestSchema)` to create a new message. */ declare const UpsertLayoutRequestSchema: GenMessage; /** * UpsertLayoutResponse returns the saved layout. * * @generated from message layout.v1.UpsertLayoutResponse */ type UpsertLayoutResponse = Message<"layout.v1.UpsertLayoutResponse"> & { /** * Saved layout after server-side ownership and timestamp handling. * * @generated from field: layout.v1.Layout layout = 1; */ layout?: Layout | undefined; }; /** * Describes the message layout.v1.UpsertLayoutResponse. * Use `create(UpsertLayoutResponseSchema)` to create a new message. */ declare const UpsertLayoutResponseSchema: GenMessage; /** * DeleteLayoutRequest deletes one saved layout owned by the authenticated caller. * * @generated from message layout.v1.DeleteLayoutRequest */ type DeleteLayoutRequest = Message<"layout.v1.DeleteLayoutRequest"> & { /** * Layout identifier to delete. * * @generated from field: fixed64 layout_id = 1; */ layoutId: bigint; }; /** * Describes the message layout.v1.DeleteLayoutRequest. * Use `create(DeleteLayoutRequestSchema)` to create a new message. */ declare const DeleteLayoutRequestSchema: GenMessage; /** * DeleteLayoutResponse is empty when the layout was deleted. * * @generated from message layout.v1.DeleteLayoutResponse */ type DeleteLayoutResponse = Message<"layout.v1.DeleteLayoutResponse"> & {}; /** * Describes the message layout.v1.DeleteLayoutResponse. * Use `create(DeleteLayoutResponseSchema)` to create a new message. */ declare const DeleteLayoutResponseSchema: GenMessage; /** * WidgetType identifies the kind of editor widget stored in a layout. * * @generated from enum layout.v1.WidgetType */ declare enum WidgetType { /** * Widget type is not specified. * * @generated from enum value: WIDGET_TYPE_UNSPECIFIED = 0; */ WIDGET_TYPE_UNSPECIFIED = 0, /** * Price chart widget. * * @generated from enum value: CHART = 1; */ CHART = 1, /** * Order book widget. * * @generated from enum value: ORDERBOOK = 2; */ ORDERBOOK = 2, /** * Recent trades widget. * * @generated from enum value: TRADES = 3; */ TRADES = 3, /** * Positions widget. * * @generated from enum value: POSITIONS = 4; */ POSITIONS = 4, /** * Orders widget. * * @generated from enum value: ORDERS = 5; */ ORDERS = 5 } /** * Describes the enum layout.v1.WidgetType. */ declare const WidgetTypeSchema: GenEnum; /** * LayoutService persists saved layouts and manages public layout sharing. * * @generated from service layout.v1.LayoutService */ declare const LayoutService: GenService<{ /** * GetLayouts returns the caller's saved layouts. * * @generated from rpc layout.v1.LayoutService.GetLayouts */ getLayouts: { methodKind: "unary"; input: typeof GetLayoutsRequestSchema; output: typeof GetLayoutsResponseSchema; }; /** * GetLayout returns a single layout by id. * * @generated from rpc layout.v1.LayoutService.GetLayout */ getLayout: { methodKind: "unary"; input: typeof GetLayoutRequestSchema; output: typeof GetLayoutResponseSchema; }; /** * UpsertLayout creates or updates a layout (owner-only). * * @generated from rpc layout.v1.LayoutService.UpsertLayout */ upsertLayout: { methodKind: "unary"; input: typeof UpsertLayoutRequestSchema; output: typeof UpsertLayoutResponseSchema; }; /** * DeleteLayout deletes a layout by id (owner-only). * * @generated from rpc layout.v1.LayoutService.DeleteLayout */ deleteLayout: { methodKind: "unary"; input: typeof DeleteLayoutRequestSchema; output: typeof DeleteLayoutResponseSchema; }; /** * ResolveLayoutShareToken resolves an unauthenticated share token to a layout snapshot (template). * * @generated from rpc layout.v1.LayoutService.ResolveLayoutShareToken */ resolveLayoutShareToken: { methodKind: "unary"; input: typeof ResolveLayoutShareTokenRequestSchema; output: typeof ResolveLayoutShareTokenResponseSchema; }; /** * CreateLayoutShareLink mints a share token for a layout (owner-only). * * @generated from rpc layout.v1.LayoutService.CreateLayoutShareLink */ createLayoutShareLink: { methodKind: "unary"; input: typeof CreateLayoutShareLinkRequestSchema; output: typeof CreateLayoutShareLinkResponseSchema; }; /** * RevokeLayoutShareLink revokes a previously minted share token (owner-only). * * @generated from rpc layout.v1.LayoutService.RevokeLayoutShareLink */ revokeLayoutShareLink: { methodKind: "unary"; input: typeof RevokeLayoutShareLinkRequestSchema; output: typeof RevokeLayoutShareLinkResponseSchema; }; /** * ListOwnerPublishedLayouts lists listed/published layouts for an owner (profile/gallery surfaces). * * @generated from rpc layout.v1.LayoutService.ListOwnerPublishedLayouts */ listOwnerPublishedLayouts: { methodKind: "unary"; input: typeof ListOwnerPublishedLayoutsRequestSchema; output: typeof ListOwnerPublishedLayoutsResponseSchema; }; /** * PublishLayout publishes a layout for discovery (owner-only). * * @generated from rpc layout.v1.LayoutService.PublishLayout */ publishLayout: { methodKind: "unary"; input: typeof PublishLayoutRequestSchema; output: typeof PublishLayoutResponseSchema; }; /** * UnpublishLayout removes a layout from discovery (owner-only). * * @generated from rpc layout.v1.LayoutService.UnpublishLayout */ unpublishLayout: { methodKind: "unary"; input: typeof UnpublishLayoutRequestSchema; output: typeof UnpublishLayoutResponseSchema; }; /** * List available versions for a template (metadata only). * * @generated from rpc layout.v1.LayoutService.ListLayoutTemplateVersions */ listLayoutTemplateVersions: { methodKind: "unary"; input: typeof ListLayoutTemplateVersionsRequestSchema; output: typeof ListLayoutTemplateVersionsResponseSchema; }; /** * Get a specific version snapshot for a template. * * @generated from rpc layout.v1.LayoutService.GetLayoutTemplateVersion */ getLayoutTemplateVersion: { methodKind: "unary"; input: typeof GetLayoutTemplateVersionRequestSchema; output: typeof GetLayoutTemplateVersionResponseSchema; }; /** * Subscribe (follow) a template (pin version or track latest). * * @generated from rpc layout.v1.LayoutService.SetLayoutTemplateSubscription */ setLayoutTemplateSubscription: { methodKind: "unary"; input: typeof SetLayoutTemplateSubscriptionRequestSchema; output: typeof SetLayoutTemplateSubscriptionResponseSchema; }; /** * DeleteLayoutTemplateSubscription unfollows a layout template for the caller. * * @generated from rpc layout.v1.LayoutService.DeleteLayoutTemplateSubscription */ deleteLayoutTemplateSubscription: { methodKind: "unary"; input: typeof DeleteLayoutTemplateSubscriptionRequestSchema; output: typeof DeleteLayoutTemplateSubscriptionResponseSchema; }; /** * ListMyLayoutTemplateSubscriptions lists layout templates followed by the caller. * * @generated from rpc layout.v1.LayoutService.ListMyLayoutTemplateSubscriptions */ listMyLayoutTemplateSubscriptions: { methodKind: "unary"; input: typeof ListMyLayoutTemplateSubscriptionsRequestSchema; output: typeof ListMyLayoutTemplateSubscriptionsResponseSchema; }; }>; //#endregion export { ChartIndicator, ChartIndicatorSchema, ChartStyle, ChartStyleSchema, ChartWidgetConfig, ChartWidgetConfigSchema, CreateLayoutShareLinkRequest, CreateLayoutShareLinkRequestSchema, CreateLayoutShareLinkResponse, CreateLayoutShareLinkResponseSchema, DeleteLayoutRequest, DeleteLayoutRequestSchema, DeleteLayoutResponse, DeleteLayoutResponseSchema, DeleteLayoutTemplateSubscriptionRequest, DeleteLayoutTemplateSubscriptionRequestSchema, DeleteLayoutTemplateSubscriptionResponse, DeleteLayoutTemplateSubscriptionResponseSchema, GetLayoutRequest, GetLayoutRequestSchema, GetLayoutResponse, GetLayoutResponseSchema, GetLayoutTemplateVersionRequest, GetLayoutTemplateVersionRequestSchema, GetLayoutTemplateVersionResponse, GetLayoutTemplateVersionResponseSchema, GetLayoutsRequest, GetLayoutsRequestSchema, GetLayoutsResponse, GetLayoutsResponseSchema, LayerVisibilityOverride, LayerVisibilityOverrideSchema, Layout, LayoutSchema, LayoutService, LayoutTemplate, LayoutTemplateRef, LayoutTemplateRefSchema, LayoutTemplateSchema, LayoutTemplateSubscription, LayoutTemplateSubscriptionSchema, LayoutTemplateVersionInfo, LayoutTemplateVersionInfoSchema, LayoutWidget, LayoutWidgetSchema, ListLayoutTemplateVersionsRequest, ListLayoutTemplateVersionsRequestSchema, ListLayoutTemplateVersionsResponse, ListLayoutTemplateVersionsResponseSchema, ListMyLayoutTemplateSubscriptionsRequest, ListMyLayoutTemplateSubscriptionsRequestSchema, ListMyLayoutTemplateSubscriptionsResponse, ListMyLayoutTemplateSubscriptionsResponseSchema, ListOwnerPublishedLayoutsRequest, ListOwnerPublishedLayoutsRequestSchema, ListOwnerPublishedLayoutsResponse, ListOwnerPublishedLayoutsResponseSchema, PublishLayoutRequest, PublishLayoutRequestSchema, PublishLayoutResponse, PublishLayoutResponseSchema, ResolveLayoutShareTokenRequest, ResolveLayoutShareTokenRequestSchema, ResolveLayoutShareTokenResponse, ResolveLayoutShareTokenResponseSchema, RevokeLayoutShareLinkRequest, RevokeLayoutShareLinkRequestSchema, RevokeLayoutShareLinkResponse, RevokeLayoutShareLinkResponseSchema, SetLayoutTemplateSubscriptionRequest, SetLayoutTemplateSubscriptionRequestSchema, SetLayoutTemplateSubscriptionResponse, SetLayoutTemplateSubscriptionResponseSchema, UnpublishLayoutRequest, UnpublishLayoutRequestSchema, UnpublishLayoutResponse, UnpublishLayoutResponseSchema, UpsertLayoutRequest, UpsertLayoutRequestSchema, UpsertLayoutResponse, UpsertLayoutResponseSchema, WidgetType, WidgetTypeSchema, file_layout_v1_layout, layout_pb_d_exports }; //# sourceMappingURL=layout_pb.d.ts.map