lucid-extension-sdk 0.0.449 → 0.0.450

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/commandtypes.d.ts +296 -239
  2. package/commandtypes.js +313 -167
  3. package/core/authorizationflowhandlerregistry.js +2 -1
  4. package/core/cardintegration/cardfielddisplaysettings.d.ts +150 -61
  5. package/core/cardintegration/cardfielddisplaysettings.js +43 -46
  6. package/core/cardintegration/cardintegrationautosyncconfig.d.ts +17 -5
  7. package/core/cardintegration/cardintegrationautosyncconfig.js +5 -6
  8. package/core/cardintegration/cardintegrationconfig.d.ts +32 -33
  9. package/core/cardintegration/cardintegrationparams.d.ts +4 -0
  10. package/core/cardintegration/extensiondatapanel/extensiondatapanellistitemtexttagcolor.d.ts +15 -14
  11. package/core/cardintegration/extensiondatapanel/extensiondatapanellistitemtexttagcolor.js +14 -15
  12. package/core/cardintegration/extensionimportmodalwidthbreakpoint.d.ts +9 -8
  13. package/core/cardintegration/extensionimportmodalwidthbreakpoint.js +8 -9
  14. package/core/cardintegration/lucidcardintegration.d.ts +2 -1
  15. package/core/cardintegration/lucidcardintegration.js +2 -1
  16. package/core/cardintegration/lucidcardintegrationcustomimportmodal.js +2 -1
  17. package/core/cardintegration/lucidcardintegrationregistry.js +11 -101
  18. package/core/data/datasource/datasourcetype.d.ts +12 -11
  19. package/core/data/datasource/datasourcetype.js +11 -12
  20. package/core/data/datasource/metadatatypes.d.ts +10 -9
  21. package/core/data/datasource/metadatatypes.js +9 -10
  22. package/core/data/datasource/semanticcollection.d.ts +21 -6
  23. package/core/data/datasource/semanticcollection.js +6 -7
  24. package/core/data/datasource/semanticrelationships.d.ts +25 -13
  25. package/core/data/datasource/semanticrelationships.js +29 -30
  26. package/core/data/datasource/serializeddatasourceproperties.d.ts +23 -3
  27. package/core/data/datasource/serializedimporteddatasource.d.ts +46 -6
  28. package/core/data/datasource/serializedsourceforeignkey.d.ts +19 -0
  29. package/core/data/datasource/serializedsourceforeignkey.js +7 -1
  30. package/core/data/datasource/serializedupstreamconfig.d.ts +18 -3
  31. package/core/data/datasource/sourceforeignkeys.d.ts +37 -9
  32. package/core/data/datasource/sourceforeignkeys.js +23 -10
  33. package/core/data/datasource/upstreampatchtype.d.ts +6 -5
  34. package/core/data/datasource/upstreampatchtype.js +5 -6
  35. package/core/data/datasource/upstreamupdatetype.d.ts +7 -6
  36. package/core/data/datasource/upstreamupdatetype.js +6 -7
  37. package/core/data/fieldspecification.d.ts +3 -3
  38. package/core/data/fieldtypedefinition/basefieldtypedefinition.js +1 -2
  39. package/core/data/fieldtypedefinition/collectionenumfieldtype.d.ts +18 -10
  40. package/core/data/fieldtypedefinition/collectionenumfieldtype.js +10 -11
  41. package/core/data/fieldtypedefinition/deserializedmapenumfieldtype.js +2 -1
  42. package/core/data/fieldtypedefinition/lucidfields.d.ts +90 -20
  43. package/core/data/fieldtypedefinition/lucidfields.js +20 -21
  44. package/core/data/fieldtypedefinition/ndimensionalfieldtypearray.js +1 -1
  45. package/core/data/fieldtypedefinition/scalarfieldtype.d.ts +43 -14
  46. package/core/data/fieldtypedefinition/scalarfieldtype.js +43 -28
  47. package/core/data/fieldtypedefinition/semanticfields.d.ts +31 -16
  48. package/core/data/fieldtypedefinition/semanticfields.js +16 -17
  49. package/core/data/fieldtypedefinition/semantickind.d.ts +39 -20
  50. package/core/data/fieldtypedefinition/semantickind.js +48 -73
  51. package/core/data/fieldtypedefinition/utils.d.ts +2 -2
  52. package/core/data/serializedfield/serializeddisplayoption.d.ts +13 -6
  53. package/core/data/serializedfield/serializeddisplayoption.js +6 -7
  54. package/core/data/serializedfield/serializedfielddefinition.d.ts +50 -16
  55. package/core/data/serializedfield/serializedfielddefinition.js +13 -14
  56. package/core/dataerrortype.d.ts +11 -10
  57. package/core/dataerrortype.js +43 -0
  58. package/core/format/objectformat.d.ts +1 -1
  59. package/core/lucidproduct.d.ts +6 -5
  60. package/core/lucidproduct.js +5 -6
  61. package/core/offsettype.d.ts +30 -15
  62. package/core/offsettype.js +38 -25
  63. package/core/properties/datagraphic/badgeposition.d.ts +46 -30
  64. package/core/properties/datagraphic/badgeposition.js +36 -58
  65. package/core/properties/datagraphic/datagraphicindexes.d.ts +13 -12
  66. package/core/properties/datagraphic/datagraphicindexes.js +11 -12
  67. package/core/properties/dependencylinename.d.ts +8 -7
  68. package/core/properties/dependencylinename.js +7 -8
  69. package/core/properties/fillcolor.d.ts +8 -7
  70. package/core/properties/fillcolor.js +7 -8
  71. package/core/properties/strokestyle.d.ts +21 -20
  72. package/core/properties/strokestyle.js +22 -23
  73. package/core/quicktools/quicktoolsregistry.js +2 -1
  74. package/core/rules/badgeboxfit.d.ts +5 -4
  75. package/core/rules/badgeboxfit.js +4 -5
  76. package/core/rules/conditions.d.ts +101 -58
  77. package/core/rules/conditions.js +64 -66
  78. package/core/rules/conditiontype.d.ts +10 -9
  79. package/core/rules/conditiontype.js +9 -10
  80. package/core/rules/serializedeffect.d.ts +6 -5
  81. package/core/rules/serializedeffect.js +5 -6
  82. package/core/shapedatainheritance.d.ts +6 -5
  83. package/core/shapedatainheritance.js +5 -6
  84. package/core/sharedcardintegration/cardintegrationdefinitions.d.ts +51 -19
  85. package/core/sharedcardintegration/cardintegrationdefinitions.js +10 -12
  86. package/core/sharedcardintegration/dependencymappingconfig.d.ts +14 -0
  87. package/core/sharedcardintegration/dependencymappingconfig.js +2 -0
  88. package/core/sharedcardintegration/sharedregistryutil.d.ts +4 -0
  89. package/core/sharedcardintegration/sharedregistryutil.js +96 -0
  90. package/core/spreadsheetintegration/lucidspreadsheetintegration.d.ts +15 -7
  91. package/core/spreadsheetintegration/lucidspreadsheetintegration.js +7 -8
  92. package/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.d.ts +1 -0
  93. package/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.js +15 -2
  94. package/core/unfurl/unfurlcallbacks.d.ts +6 -5
  95. package/core/unfurl/unfurlcallbacks.js +5 -6
  96. package/core/unfurl/unfurldetails.d.ts +1 -1
  97. package/core/unfurl/unfurliframe.d.ts +9 -8
  98. package/core/unfurl/unfurliframe.js +18 -19
  99. package/core/unfurl/unfurlrefresherrortype.d.ts +9 -5
  100. package/core/unfurl/unfurlrefresherrortype.js +5 -6
  101. package/data/collectionproxy.js +4 -3
  102. package/data/dataitemproxy.js +4 -3
  103. package/data/dataproxy.js +3 -2
  104. package/data/datasourceproxy.js +3 -2
  105. package/data/dataupdatefiltertype.d.ts +6 -5
  106. package/data/dataupdatefiltertype.js +5 -6
  107. package/data/displayoptiondefinition.d.ts +2 -2
  108. package/data/fieldconstraintdefinition.d.ts +22 -12
  109. package/data/patcherrortype.d.ts +5 -4
  110. package/data/patcherrortype.js +4 -5
  111. package/dataconnector/actions/dataconnectoractionkeys.d.ts +6 -5
  112. package/dataconnector/actions/dataconnectoractionkeys.js +5 -6
  113. package/dataconnector/dataconnector.d.ts +1 -1
  114. package/dataconnector/dataconnector.js +7 -1
  115. package/document/blockclasses/customblockproxy.js +5 -4
  116. package/document/blockclasses/legendblockproxy.d.ts +5 -4
  117. package/document/blockclasses/legendblockproxy.js +8 -9
  118. package/document/blockclasses/linkunfurlblockproxy.js +2 -1
  119. package/document/blockclasses/tableblockproxy.js +5 -4
  120. package/document/blockproxy.js +2 -1
  121. package/document/documentaccesspermission.d.ts +7 -6
  122. package/document/documentaccesspermission.js +6 -7
  123. package/document/documentelement/documentelementtype.d.ts +26 -25
  124. package/document/documentelement/documentelementtype.js +25 -26
  125. package/document/documentelement/ruleproxy.js +2 -1
  126. package/document/documentproxy.js +16 -15
  127. package/document/elementproxy.js +7 -6
  128. package/document/graphdefinition.d.ts +5 -4
  129. package/document/graphdefinition.js +4 -5
  130. package/document/groupproxy.js +7 -6
  131. package/document/itemproxy.js +10 -9
  132. package/document/lineproxy.d.ts +6 -5
  133. package/document/lineproxy.js +9 -9
  134. package/document/pageproxy.js +17 -17
  135. package/document/propertystoreproxy.js +3 -2
  136. package/document/ruledefinition.d.ts +9 -9
  137. package/document/shapedataproxy.js +6 -5
  138. package/document/text/textstyle.d.ts +17 -16
  139. package/document/text/textstyle.js +23 -24
  140. package/editorclient.js +39 -39
  141. package/package.json +1 -1
  142. package/ui/iframeui.d.ts +7 -6
  143. package/ui/iframeui.js +12 -12
  144. package/ui/menu.d.ts +15 -13
  145. package/ui/menu.js +23 -24
  146. package/ui/modal.js +3 -2
  147. package/ui/panel.d.ts +6 -5
  148. package/ui/panel.js +11 -11
  149. package/ui/viewport.js +16 -15
  150. package/user/userproxy.js +3 -2
package/commandtypes.d.ts CHANGED
@@ -26,145 +26,148 @@ import { PanelLocation } from './ui/panel';
26
26
  * Follow this guide to add new commands: https://lucidatlassian.atlassian.net/wiki/x/3AA3Xww
27
27
  * Before you add a new command bring it up in #api-committee to get feedback.
28
28
  */
29
- export declare const enum CommandName {
30
- AddAuthorizationFlowHandler = "aafh",
31
- AddCardIntegration = "aci",
32
- AddDiagramFromMermaid = "adfm",
33
- AddDiagramFromLuma = "luma",
34
- AddLineTextArea = "alta",
35
- AddMenuItem = "ami",
36
- AddQuickAction = "aqa",
37
- AddShapeData = "asd",
38
- AddSpreadsheetIntegration = "asi",
39
- AddTableColumn = "atc",
40
- AddTableRow = "atr",
41
- Alert = "a",
42
- AnimateViewport = "av",
43
- AwaitDataSourceImport = "adi",
44
- AwaitImport = "ai",
45
- Bootstrap = "b",
46
- CalculateHash = "hsh",
47
- CanEditPackageSettings = "ceps",
48
- CancelDragBlockToCanvas = "cdc",
49
- CheckUserFlagAssignment = "cufa",
50
- Confirm = "c",
51
- CreateBlock = "cb",
52
- CreateCards = "ca",
53
- CreateCollection = "cc",
54
- CreateDataSource = "cds",
55
- CreateDocumentElement = "cde",
56
- CreateGraph = "cgr",
57
- CreateGroup = "cg",
58
- CreateLine = "cl",
59
- CreatePage = "cp",
60
- CreateUserImage = "cui",
61
- DataAction = "da",
62
- DataItemExists = "die",
63
- DeleteDocumentElement = "dde",
64
- DeleteItem = "di",
65
- DeletePage = "dp",
66
- DeleteShapeData = "dsd",
67
- DeleteTableColumn = "dtc",
68
- DeleteTableRow = "dtr",
69
- Download = "d",
70
- DragPointerMove = "dpm",
71
- DragPointerUp = "dpu",
72
- DuplicateItems = "dis",
73
- ElementExists = "ee",
74
- ExecuteFormula = "ef",
75
- FindAvailableSpace = "fas",
76
- FireBeaconEvent = "fbe",
77
- GetCardIntegrationConfig = "gcic",
78
- GetConnectedLines = "gcl",
79
- GetCurrentPage = "gcp",
80
- GetCustomShape = "gcs",
81
- GetDataItemField = "gdif",
82
- GetDeveloperModeStatus = "gdms",
83
- GetDocumentAccessPermission = "gdap",
84
- GetDocumentChunks = "gdc",
85
- GetDocumentId = "gdid",
86
- GetElementType = "get",
87
- GetEnvironmentConfig = "gec",
88
- GetItemPageId = "gip",
89
- GetItemsAt = "gia",
90
- GetLLMContextFromItems = "llm",
91
- GetOAuthClientId = "goci",
92
- GetOAuthToken = "got",
93
- GetPackageSettings = "gps",
94
- GetProduct = "gpr",
95
- GetProperty = "gp",
96
- GetReferenceKey = "grk",
97
- GetRelativeLinePosition = "grlp",
98
- GetSelection = "gs",
99
- GetShapeData = "gsd",
100
- GetSvg = "gsvg",
101
- GetTextStyle = "gts",
102
- GetUserId = "guid",
103
- GetVisibleRect = "gvr",
104
- HideModal = "hm",
105
- HidePanel = "hp",
106
- HookAllChanges = "hac",
107
- HookCreateItems = "hci",
108
- HookDeleteItems = "hdi",
109
- HookSelection = "hs",
110
- HookTextEdit = "hte",
111
- ImportCards = "ic",
112
- ImportLinks = "il",
113
- ImportPage = "imp",
114
- KillExtension = "k",
115
- ListBlocks = "lb",
116
- ListCollectionFields = "lcf",
117
- ListCollections = "lc",
118
- ListDataItems = "ldi",
119
- ListDataSources = "lds",
120
- ListDocumentElements = "lde",
121
- ListGroups = "lg",
122
- ListLines = "ll",
123
- ListPages = "lp",
124
- ListProperties = "lpr",
125
- ListReferenceKeys = "lrk",
126
- ListShapeData = "lsd",
127
- ListTextAreas = "lta",
128
- LoadBlockClasses = "lbc",
129
- LogForTestCase = "log",
130
- MeasureText = "mt",
131
- OffsetItems = "oi",
132
- PatchDataItems = "pdi",
133
- Prompt = "p",
134
- RegisterPanel = "rp",
135
- RegisterUnfurl = "ru",
136
- ReloadExtension = "r",
137
- SendAsyncOAuthRequest = "aoauth",
138
- SendOAuthRequest = "oauth",
139
- SendPermanentTokenRequest = "perm",
140
- SendUIMessage = "suim",
141
- SendXHR = "xhr",
142
- SetCurrentPage = "scp",
143
- SetPackageSettings = "sps",
144
- SetProperty = "sp",
145
- SetReferenceKey = "srk",
146
- SetSelection = "ss",
147
- SetShapeData = "ssd",
148
- SetText = "st",
149
- SetTextStyle = "sts",
150
- ShowModal = "sm",
151
- ShowPackageSettingsModal = "spsm",
152
- ShowPanel = "spn",
153
- SleepForTestCase = "sleep",
154
- StartDragBlockToCanvas = "sdc",
155
- StartPDFUploadRequest = "pdf",
156
- ThrowForTestCase = "throw",
157
- TriggerAuthFlow = "tauth",
158
- UnhookAllChanges = "uac",
159
- UnhookCreateItems = "uci",
160
- UnhookDeleteItems = "udi",
161
- UnhookSelection = "us",
162
- UnhookTextEdit = "ute",
163
- UpdateCardIntegrationConfig = "ucic",
164
- WithMutex = "wm",
165
- WithSilentActions = "wsa",
166
- ZOrder = "z"
167
- }
29
+ export declare const CommandName: {
30
+ readonly AddAuthorizationFlowHandler: "aafh";
31
+ readonly AddCardIntegration: "aci";
32
+ readonly AddDiagramFromMermaid: "adfm";
33
+ readonly AddDiagramFromLuma: "luma";
34
+ readonly AddLineTextArea: "alta";
35
+ readonly AddMenuItem: "ami";
36
+ readonly AddQuickAction: "aqa";
37
+ readonly AddShapeData: "asd";
38
+ readonly AddSpreadsheetIntegration: "asi";
39
+ readonly AddTableColumn: "atc";
40
+ readonly AddTableRow: "atr";
41
+ readonly Alert: "a";
42
+ readonly AnimateViewport: "av";
43
+ readonly AwaitDataSourceImport: "adi";
44
+ readonly AwaitImport: "ai";
45
+ readonly Bootstrap: "b";
46
+ readonly CalculateHash: "hsh";
47
+ readonly CanEditPackageSettings: "ceps";
48
+ readonly CancelDragBlockToCanvas: "cdc";
49
+ readonly CheckUserFlagAssignment: "cufa";
50
+ readonly Confirm: "c";
51
+ readonly CreateBlock: "cb";
52
+ readonly CreateCards: "ca";
53
+ readonly CreateCollection: "cc";
54
+ readonly CreateDataSource: "cds";
55
+ readonly CreateDocumentElement: "cde";
56
+ readonly CreateGraph: "cgr";
57
+ readonly CreateGroup: "cg";
58
+ readonly CreateLine: "cl";
59
+ readonly CreatePage: "cp";
60
+ readonly CreateUserImage: "cui";
61
+ readonly DataAction: "da";
62
+ readonly DataItemExists: "die";
63
+ readonly DeleteDocumentElement: "dde";
64
+ readonly DeleteItem: "di";
65
+ readonly DeletePage: "dp";
66
+ readonly DeleteShapeData: "dsd";
67
+ readonly DeleteTableColumn: "dtc";
68
+ readonly DeleteTableRow: "dtr";
69
+ readonly Download: "d";
70
+ readonly DragPointerMove: "dpm";
71
+ readonly DragPointerUp: "dpu";
72
+ readonly DuplicateItems: "dis";
73
+ readonly ElementExists: "ee";
74
+ readonly ExecuteFormula: "ef";
75
+ readonly FindAvailableSpace: "fas";
76
+ readonly FireBeaconEvent: "fbe";
77
+ readonly GetCardIntegrationConfig: "gcic";
78
+ readonly GetConnectedLines: "gcl";
79
+ readonly GetCurrentPage: "gcp";
80
+ readonly GetCustomShape: "gcs";
81
+ readonly GetDataItemField: "gdif";
82
+ readonly GetDeveloperModeStatus: "gdms";
83
+ readonly GetDocumentAccessPermission: "gdap";
84
+ readonly GetDocumentChunks: "gdc";
85
+ readonly GetDocumentId: "gdid";
86
+ readonly GetElementType: "get";
87
+ readonly GetEnvironmentConfig: "gec";
88
+ readonly GetItemPageId: "gip";
89
+ readonly GetItemsAt: "gia";
90
+ readonly GetLLMContextFromItems: "llm";
91
+ readonly GetOAuthClientId: "goci";
92
+ readonly GetOAuthToken: "got";
93
+ readonly GetPackageSettings: "gps";
94
+ readonly GetProduct: "gpr";
95
+ readonly GetProperty: "gp";
96
+ readonly GetReferenceKey: "grk";
97
+ readonly GetRelativeLinePosition: "grlp";
98
+ readonly GetSelection: "gs";
99
+ readonly GetShapeData: "gsd";
100
+ readonly GetSvg: "gsvg";
101
+ readonly GetTextStyle: "gts";
102
+ readonly GetUserId: "guid";
103
+ readonly GetVisibleRect: "gvr";
104
+ readonly HideModal: "hm";
105
+ readonly HidePanel: "hp";
106
+ readonly HookAllChanges: "hac";
107
+ readonly HookCreateItems: "hci";
108
+ readonly HookDeleteItems: "hdi";
109
+ readonly HookSelection: "hs";
110
+ readonly HookTextEdit: "hte";
111
+ readonly ImportCards: "ic";
112
+ readonly ImportLinks: "il";
113
+ readonly ImportPage: "imp";
114
+ readonly KillExtension: "k";
115
+ readonly ListBlocks: "lb";
116
+ readonly ListCollectionFields: "lcf";
117
+ readonly ListCollections: "lc";
118
+ readonly ListDataItems: "ldi";
119
+ readonly ListDataSources: "lds";
120
+ readonly ListDocumentElements: "lde";
121
+ readonly ListGroups: "lg";
122
+ readonly ListLines: "ll";
123
+ readonly ListPages: "lp";
124
+ readonly ListProperties: "lpr";
125
+ readonly ListReferenceKeys: "lrk";
126
+ readonly ListShapeData: "lsd";
127
+ readonly ListTextAreas: "lta";
128
+ readonly LoadBlockClasses: "lbc";
129
+ readonly LogForTestCase: "log";
130
+ readonly MeasureText: "mt";
131
+ readonly OffsetItems: "oi";
132
+ readonly PatchDataItems: "pdi";
133
+ readonly Prompt: "p";
134
+ /** @ignore */
135
+ readonly RegisterAiAgent: "raa";
136
+ readonly RegisterPanel: "rp";
137
+ readonly RegisterUnfurl: "ru";
138
+ readonly ReloadExtension: "r";
139
+ readonly SendAsyncOAuthRequest: "aoauth";
140
+ readonly SendOAuthRequest: "oauth";
141
+ readonly SendPermanentTokenRequest: "perm";
142
+ readonly SendUIMessage: "suim";
143
+ readonly SendXHR: "xhr";
144
+ readonly SetCurrentPage: "scp";
145
+ readonly SetPackageSettings: "sps";
146
+ readonly SetProperty: "sp";
147
+ readonly SetReferenceKey: "srk";
148
+ readonly SetSelection: "ss";
149
+ readonly SetShapeData: "ssd";
150
+ readonly SetText: "st";
151
+ readonly SetTextStyle: "sts";
152
+ readonly ShowModal: "sm";
153
+ readonly ShowPackageSettingsModal: "spsm";
154
+ readonly ShowPanel: "spn";
155
+ readonly SleepForTestCase: "sleep";
156
+ readonly StartDragBlockToCanvas: "sdc";
157
+ readonly StartPDFUploadRequest: "pdf";
158
+ readonly ThrowForTestCase: "throw";
159
+ readonly TriggerAuthFlow: "tauth";
160
+ readonly UnhookAllChanges: "uac";
161
+ readonly UnhookCreateItems: "uci";
162
+ readonly UnhookDeleteItems: "udi";
163
+ readonly UnhookSelection: "us";
164
+ readonly UnhookTextEdit: "ute";
165
+ readonly UpdateCardIntegrationConfig: "ucic";
166
+ readonly WithMutex: "wm";
167
+ readonly WithSilentActions: "wsa";
168
+ readonly ZOrder: "z";
169
+ };
170
+ export type CommandName = (typeof CommandName)[keyof typeof CommandName];
168
171
  /** @ignore */
169
172
  export declare const commandTitles: Map<CommandName, string>;
170
173
  /**
@@ -591,6 +594,11 @@ export type CommandArgs = {
591
594
  query: PromptQuery;
592
595
  result: PromptResult;
593
596
  };
597
+ /** @ignore */
598
+ [CommandName.RegisterAiAgent]: {
599
+ query: RegisterAiAgentQuery;
600
+ result: RegisterAiAgentResult;
601
+ };
594
602
  [CommandName.RegisterPanel]: {
595
603
  query: RegisterPanelQuery;
596
604
  result: RegisterPanelResult;
@@ -725,9 +733,10 @@ export type CommandArgs = {
725
733
  };
726
734
  };
727
735
  export type AuthorizationFlowHandlerProvider = string;
728
- export declare enum AuthorizationFlowHandlerStage {
729
- OnFailure = "onFailure"
730
- }
736
+ export declare const AuthorizationFlowHandlerStage: {
737
+ readonly OnFailure: "onFailure";
738
+ };
739
+ export type AuthorizationFlowHandlerStage = (typeof AuthorizationFlowHandlerStage)[keyof typeof AuthorizationFlowHandlerStage];
731
740
  export type AddAuthorizationFlowHandlerQuery = {
732
741
  /**
733
742
  * Specifies the callback function to run when the handler is triggered.
@@ -746,6 +755,76 @@ export type AddCardsActions = {
746
755
  /** Create card action */
747
756
  'cc': string;
748
757
  };
758
+ export type DependencyMappingSettings = {
759
+ /** Whether to enable dependency mapping for this integration */
760
+ 'sdm'?: boolean;
761
+ /**
762
+ * Import dependencies action
763
+ * Inconsistent naming convention, to avoid calling this "ID"
764
+ */
765
+ 'idep'?: string | undefined;
766
+ /**
767
+ * If specified, the text phrases to show in the dependency mapping UI.
768
+ * If not specified, dependency mapping for this integration uses the default fallback phrases.
769
+ */
770
+ 'dmp'?: {
771
+ /** Entrypoint text */
772
+ 'ep'?: string;
773
+ /**
774
+ * Text for on-card badge for dependency mapping
775
+ * String, not a function itself; this is the name of the client's registered action hook
776
+ */
777
+ 'cl'?: string;
778
+ /** Text for the dependency manager */
779
+ 'm'?: {
780
+ /** Header */
781
+ 'h'?: string;
782
+ /** All links label */
783
+ 'all'?: string;
784
+ /** Show all links button text */
785
+ 'salb'?: string;
786
+ /** Hide all links button text */
787
+ 'halb'?: string;
788
+ /** Show all links tooltip text (when disabled) */
789
+ 'dsalt'?: string;
790
+ /** Hide all links tooltip text (when disabled) */
791
+ 'dhalt'?: string;
792
+ /** Text for various empty states */
793
+ 'es'?: {
794
+ /** Create link instruction text */
795
+ 'cli'?: string;
796
+ /** Instructional text when no items are selected */
797
+ 'nssi'?: string;
798
+ /** Heading text when no items are selected */
799
+ 'nssh'?: string;
800
+ /**
801
+ * Heading text when selected item has no links
802
+ * String, not a function itself; this is the name of the client's registered action hook
803
+ */
804
+ 'ndh'?: string;
805
+ /** Text when multiple items are selected and have no links */
806
+ 'mikwnl'?: string;
807
+ };
808
+ };
809
+ /** Text for editing a dependency */
810
+ 'ed'?: {
811
+ 'ch'?: string;
812
+ 'cnlo'?: string;
813
+ 'dh'?: string;
814
+ 'dd'?: string;
815
+ 'dab'?: string;
816
+ /**
817
+ * Selected issue heading
818
+ * String, not a function itself; this is the name of the client's registered action hook
819
+ */
820
+ 'sih'?: string;
821
+ };
822
+ /**
823
+ * Item label phrase
824
+ */
825
+ 'ilp'?: string;
826
+ } | undefined;
827
+ };
749
828
  export type AutoSyncSettings = {
750
829
  /** Phrases */
751
830
  'p'?: {
@@ -772,6 +851,7 @@ export type AutoSyncSettings = {
772
851
  /** Generate preset value action */
773
852
  'gpv': string;
774
853
  } | undefined;
854
+ 'cftqs'?: string | undefined;
775
855
  };
776
856
  export type SerializedFieldConfiguration = {
777
857
  /** Callback to get field definitions for all fields supported by the card integration */
@@ -851,13 +931,6 @@ export type AddCardIntegrationQuery = {
851
931
  'ac'?: AddCardsActions | undefined;
852
932
  /** If specified, auto sync settings */
853
933
  'as'?: AutoSyncSettings | undefined;
854
- /** Whether to enable dependency mapping for this integration */
855
- 'sdm'?: boolean;
856
- /**
857
- * Import dependencies action
858
- * Inconsistent naming convention, to avoid calling this "ID"
859
- */
860
- 'idep'?: string | undefined;
861
934
  /** Icons to display throughout the card integration */
862
935
  'icu'?: {
863
936
  /** Primary Icon Url */
@@ -877,67 +950,6 @@ export type AddCardIntegrationQuery = {
877
950
  * Banner action callback, to handle action button clicks in import error banners
878
951
  */
879
952
  'bac'?: string | undefined;
880
- /**
881
- * If specified, the text phrases to show in the dependency mapping UI.
882
- * If not specified, dependency mapping for this integration uses the default fallback phrases.
883
- */
884
- 'dmp'?: {
885
- /** Entrypoint text */
886
- 'ep'?: string;
887
- /**
888
- * Text for on-card badge for dependency mapping
889
- * String, not a function itself; this is the name of the client's registered action hook
890
- */
891
- 'cl'?: string;
892
- /** Text for the dependency manager */
893
- 'm'?: {
894
- /** Header */
895
- 'h'?: string;
896
- /** All links label */
897
- 'all'?: string;
898
- /** Show all links button text */
899
- 'salb'?: string;
900
- /** Hide all links button text */
901
- 'halb'?: string;
902
- /** Show all links tooltip text (when disabled) */
903
- 'dsalt'?: string;
904
- /** Hide all links tooltip text (when disabled) */
905
- 'dhalt'?: string;
906
- /** Text for various empty states */
907
- 'es'?: {
908
- /** Create link instruction text */
909
- 'cli'?: string;
910
- /** Instructional text when no items are selected */
911
- 'nssi'?: string;
912
- /** Heading text when no items are selected */
913
- 'nssh'?: string;
914
- /**
915
- * Heading text when selected item has no links
916
- * String, not a function itself; this is the name of the client's registered action hook
917
- */
918
- 'ndh'?: string;
919
- /** Text when multiple items are selected and have no links */
920
- 'mikwnl'?: string;
921
- };
922
- };
923
- /** Text for editing a dependency */
924
- 'ed'?: {
925
- 'ch'?: string;
926
- 'cnlo'?: string;
927
- 'dh'?: string;
928
- 'dd'?: string;
929
- 'dab'?: string;
930
- /**
931
- * Selected issue heading
932
- * String, not a function itself; this is the name of the client's registered action hook
933
- */
934
- 'sih'?: string;
935
- };
936
- /**
937
- * Item label phrase
938
- */
939
- 'ilp'?: string;
940
- } | undefined;
941
953
  /**
942
954
  * If provided, this data is used to turn links pasted on the canvas that match the domain(s) into primary keys and
943
955
  * other helpful data, which are sent back to the extension as an import action.
@@ -962,7 +974,7 @@ export type AddCardIntegrationQuery = {
962
974
  /** Get selected instance ID action */
963
975
  'gsii': string;
964
976
  } | undefined;
965
- };
977
+ } & DependencyMappingSettings;
966
978
  export type AddCardIntegrationResult = undefined;
967
979
  export type AddLineTextAreaQuery = {
968
980
  /** Which line */
@@ -1100,6 +1112,7 @@ export type AddSpreadsheetIntegrationQuery = {
1100
1112
  'ac'?: AddCardsActions | undefined;
1101
1113
  /** fieldConfiguration */
1102
1114
  'fc'?: Partial<SerializedFieldConfiguration>;
1115
+ 'dm'?: DependencyMappingSettings | undefined;
1103
1116
  };
1104
1117
  /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
1105
1118
  export type AddSpreadsheetIntegrationResult = undefined;
@@ -1171,10 +1184,11 @@ export type BootstrapQuery = {
1171
1184
  'm'?: boolean | undefined;
1172
1185
  };
1173
1186
  export type BootstrapResult = Promise<void>;
1174
- export declare enum HashAlgorithmEnum {
1187
+ export declare const HashAlgorithmEnum: {
1175
1188
  /** Use the SHA 256 hashing algorithm */
1176
- sha256 = "SHA256"
1177
- }
1189
+ readonly sha256: "SHA256";
1190
+ };
1191
+ export type HashAlgorithmEnum = (typeof HashAlgorithmEnum)[keyof typeof HashAlgorithmEnum];
1178
1192
  export type CalculateHashQuery = {
1179
1193
  'a': HashAlgorithmEnum;
1180
1194
  's': string;
@@ -1476,16 +1490,17 @@ export type GetDeveloperModeStatusQuery = void;
1476
1490
  export type GetDeveloperModeStatusResult = boolean;
1477
1491
  export type GetDocumentAccessPermissionQuery = void;
1478
1492
  export type GetDocumentAccessPermissionResult = DocumentAccessPermission;
1479
- export declare enum GetDocumentChunksType {
1493
+ export declare const GetDocumentChunksType: {
1480
1494
  /**
1481
1495
  * Breaks up a document into chunks geographically
1482
1496
  */
1483
- Geographic = 0,
1497
+ readonly Geographic: 0;
1484
1498
  /**
1485
1499
  * Breaks up a document into chunks by finding containing blocks
1486
1500
  */
1487
- Container = 1
1488
- }
1501
+ readonly Container: 1;
1502
+ };
1503
+ export type GetDocumentChunksType = (typeof GetDocumentChunksType)[keyof typeof GetDocumentChunksType];
1489
1504
  export type GetDocumentChunksQuery = {
1490
1505
  't': GetDocumentChunksType[];
1491
1506
  };
@@ -1503,11 +1518,12 @@ export type GetDocumentIdQuery = void;
1503
1518
  export type GetDocumentIdResult = string;
1504
1519
  export type GetItemPageIdQuery = string;
1505
1520
  export type GetItemPageIdResult = string;
1506
- export declare enum GetItemsAtSearchType {
1507
- PossiblyOverlapping = 0,
1508
- Overlapping = 1,
1509
- Contained = 2
1510
- }
1521
+ export declare const GetItemsAtSearchType: {
1522
+ readonly PossiblyOverlapping: 0;
1523
+ readonly Overlapping: 1;
1524
+ readonly Contained: 2;
1525
+ };
1526
+ export type GetItemsAtSearchType = (typeof GetItemsAtSearchType)[keyof typeof GetItemsAtSearchType];
1511
1527
  export type GetItemsAtQuery = {
1512
1528
  /** Page ID to search */
1513
1529
  'p': string;
@@ -1518,21 +1534,22 @@ export type GetItemsAtQuery = {
1518
1534
  };
1519
1535
  /** IDs of the items found */
1520
1536
  export type GetItemsAtResult = string[];
1521
- export declare enum GetLLMContextType {
1537
+ export declare const GetLLMContextType: {
1522
1538
  /** Get context in a format for LLMs where relationships among connected and
1523
1539
  * contained items are preserved. Expand the scope of the selection to
1524
1540
  * include blocks contained by the selection as well as lines connecting
1525
1541
  * items in the selection. */
1526
- Relational = 1,
1542
+ readonly Relational: 1;
1527
1543
  /** Get context containing only plain text displayed on the given items, more suitable for embeddings */
1528
- PlainText = 2,
1544
+ readonly PlainText: 2;
1529
1545
  /** Get context in a format for LLMs where relationships among connected and
1530
1546
  * contained items are preserved. Do not expand the scope of the selection,
1531
1547
  * other than to ensure relationships are represented. Text on selected
1532
1548
  * items will be included, but text on automatically added items will not.
1533
1549
  * */
1534
- RelationalWithoutExpansion = 3
1535
- }
1550
+ readonly RelationalWithoutExpansion: 3;
1551
+ };
1552
+ export type GetLLMContextType = (typeof GetLLMContextType)[keyof typeof GetLLMContextType];
1536
1553
  export type GetLLMContextFromItemsQuery = {
1537
1554
  /** Page ID to find closely-related items */
1538
1555
  'p': string;
@@ -1747,11 +1764,12 @@ export type MeasureTextResult = {
1747
1764
  /** Text area height */
1748
1765
  'h': number;
1749
1766
  };
1750
- export declare enum MermaidDiagramType {
1751
- FLOWCHART = "flowchart",
1752
- CLASS_DIAGRAM = "class_diagram",
1753
- ERD = "erd"
1754
- }
1767
+ export declare const MermaidDiagramType: {
1768
+ readonly FLOWCHART: "flowchart";
1769
+ readonly CLASS_DIAGRAM: "class_diagram";
1770
+ readonly ERD: "erd";
1771
+ };
1772
+ export type MermaidDiagramType = (typeof MermaidDiagramType)[keyof typeof MermaidDiagramType];
1755
1773
  export type AddDiagramFromMermaidQuery = {
1756
1774
  /** Type of diagram as an enum, e.g., flowchart. */
1757
1775
  't': MermaidDiagramType;
@@ -2078,12 +2096,13 @@ export type WithSilentActionsQuery = {
2078
2096
  'a': string;
2079
2097
  };
2080
2098
  export type WithSilentActionsResult = void;
2081
- export declare enum ZOrderOperation {
2082
- UP = 1,
2083
- TOP = 2,
2084
- DOWN = 3,
2085
- BOTTOM = 4
2086
- }
2099
+ export declare const ZOrderOperation: {
2100
+ readonly UP: 1;
2101
+ readonly TOP: 2;
2102
+ readonly DOWN: 3;
2103
+ readonly BOTTOM: 4;
2104
+ };
2105
+ export type ZOrderOperation = (typeof ZOrderOperation)[keyof typeof ZOrderOperation];
2087
2106
  export type ZOrderQuery = {
2088
2107
  /** IDs of the items to adjust Z order */
2089
2108
  'i': string[];
@@ -2096,4 +2115,42 @@ export type CheckUserFeatureFlagAssignmentQuery = {
2096
2115
  'f': string;
2097
2116
  };
2098
2117
  export type CheckUserFeatureFlagAssignmentResult = boolean;
2118
+ /**
2119
+ * @ignore
2120
+ * Definition of a custom tool that an extension can register with an AI agent.
2121
+ */
2122
+ export type ExtensionToolDefinition = {
2123
+ /** Unique name for this tool within the extension */
2124
+ 'n': string;
2125
+ /** Full description with usage instructions for the LLM */
2126
+ 'd': string;
2127
+ /** Named action to invoke when the tool is called */
2128
+ 'a': string;
2129
+ };
2130
+ /**
2131
+ * @ignore
2132
+ * Query to register an AI agent from an extension.
2133
+ */
2134
+ export type RegisterAiAgentQuery = {
2135
+ /** Agent name (unique identifier within the extension) */
2136
+ 'n': string;
2137
+ /** High-level overview of this agent for other agents/planning (1-2 sentences) */
2138
+ 'ab': string;
2139
+ /** Built-in tool names this agent can access (subset of AiToolName values) */
2140
+ 'bt'?: string[] | undefined;
2141
+ /** Custom tools defined by this extension */
2142
+ 'ct': ExtensionToolDefinition[];
2143
+ /** System prompt for the agent */
2144
+ 'sp': string;
2145
+ };
2146
+ /**
2147
+ * @ignore
2148
+ * Result of registering an AI agent.
2149
+ */
2150
+ export type RegisterAiAgentResult = {
2151
+ /** Whether registration succeeded */
2152
+ 's': boolean;
2153
+ /** Error message if registration failed */
2154
+ 'e'?: string;
2155
+ };
2099
2156
  export {};