lucid-extension-sdk 0.0.449 → 0.0.451

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 (154) hide show
  1. package/commandtypes.d.ts +298 -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 +23 -5
  7. package/core/cardintegration/cardintegrationautosyncconfig.js +6 -6
  8. package/core/cardintegration/cardintegrationconfig.d.ts +35 -33
  9. package/core/cardintegration/cardintegrationconfig.js +1 -0
  10. package/core/cardintegration/cardintegrationparams.d.ts +4 -0
  11. package/core/cardintegration/extensiondatapanel/extensiondatapanellistitemtexttagcolor.d.ts +15 -14
  12. package/core/cardintegration/extensiondatapanel/extensiondatapanellistitemtexttagcolor.js +14 -15
  13. package/core/cardintegration/extensionimportmodalwidthbreakpoint.d.ts +9 -8
  14. package/core/cardintegration/extensionimportmodalwidthbreakpoint.js +8 -9
  15. package/core/cardintegration/lucidcardintegration.d.ts +2 -1
  16. package/core/cardintegration/lucidcardintegration.js +2 -1
  17. package/core/cardintegration/lucidcardintegrationcustomimportmodal.js +2 -1
  18. package/core/cardintegration/lucidcardintegrationregistry.js +12 -101
  19. package/core/checks.d.ts +2 -1
  20. package/core/data/datasource/datasourcetype.d.ts +12 -11
  21. package/core/data/datasource/datasourcetype.js +11 -12
  22. package/core/data/datasource/metadatatypes.d.ts +10 -9
  23. package/core/data/datasource/metadatatypes.js +9 -10
  24. package/core/data/datasource/semanticcollection.d.ts +31 -6
  25. package/core/data/datasource/semanticcollection.js +11 -7
  26. package/core/data/datasource/semanticrelationships.d.ts +25 -13
  27. package/core/data/datasource/semanticrelationships.js +29 -30
  28. package/core/data/datasource/serializeddatasourceproperties.d.ts +23 -3
  29. package/core/data/datasource/serializedimporteddatasource.d.ts +46 -6
  30. package/core/data/datasource/serializedsourceforeignkey.d.ts +19 -0
  31. package/core/data/datasource/serializedsourceforeignkey.js +7 -1
  32. package/core/data/datasource/serializedupstreamconfig.d.ts +18 -3
  33. package/core/data/datasource/sourceforeignkeys.d.ts +37 -9
  34. package/core/data/datasource/sourceforeignkeys.js +23 -10
  35. package/core/data/datasource/upstreampatchtype.d.ts +6 -5
  36. package/core/data/datasource/upstreampatchtype.js +5 -6
  37. package/core/data/datasource/upstreamupdatetype.d.ts +7 -6
  38. package/core/data/datasource/upstreamupdatetype.js +6 -7
  39. package/core/data/fieldspecification.d.ts +3 -3
  40. package/core/data/fieldtypedefinition/basefieldtypedefinition.js +1 -2
  41. package/core/data/fieldtypedefinition/collectionenumfieldtype.d.ts +18 -10
  42. package/core/data/fieldtypedefinition/collectionenumfieldtype.js +10 -11
  43. package/core/data/fieldtypedefinition/deserializedmapenumfieldtype.js +2 -1
  44. package/core/data/fieldtypedefinition/lucidfields.d.ts +90 -20
  45. package/core/data/fieldtypedefinition/lucidfields.js +20 -21
  46. package/core/data/fieldtypedefinition/ndimensionalfieldtypearray.js +1 -1
  47. package/core/data/fieldtypedefinition/scalarfieldtype.d.ts +43 -14
  48. package/core/data/fieldtypedefinition/scalarfieldtype.js +43 -28
  49. package/core/data/fieldtypedefinition/semanticfields.d.ts +31 -16
  50. package/core/data/fieldtypedefinition/semanticfields.js +16 -17
  51. package/core/data/fieldtypedefinition/semantickind.d.ts +39 -20
  52. package/core/data/fieldtypedefinition/semantickind.js +48 -73
  53. package/core/data/fieldtypedefinition/utils.d.ts +2 -2
  54. package/core/data/serializedfield/serializeddisplayoption.d.ts +13 -6
  55. package/core/data/serializedfield/serializeddisplayoption.js +6 -7
  56. package/core/data/serializedfield/serializedfielddefinition.d.ts +50 -16
  57. package/core/data/serializedfield/serializedfielddefinition.js +13 -14
  58. package/core/dataerrortype.d.ts +11 -10
  59. package/core/dataerrortype.js +43 -0
  60. package/core/format/objectformat.d.ts +1 -1
  61. package/core/lucidproduct.d.ts +6 -5
  62. package/core/lucidproduct.js +5 -6
  63. package/core/offsettype.d.ts +30 -15
  64. package/core/offsettype.js +38 -25
  65. package/core/properties/datagraphic/badgeposition.d.ts +46 -30
  66. package/core/properties/datagraphic/badgeposition.js +36 -58
  67. package/core/properties/datagraphic/datagraphicindexes.d.ts +13 -12
  68. package/core/properties/datagraphic/datagraphicindexes.js +11 -12
  69. package/core/properties/dependencylinename.d.ts +8 -7
  70. package/core/properties/dependencylinename.js +7 -8
  71. package/core/properties/fillcolor.d.ts +8 -7
  72. package/core/properties/fillcolor.js +7 -8
  73. package/core/properties/strokestyle.d.ts +21 -20
  74. package/core/properties/strokestyle.js +22 -23
  75. package/core/quicktools/quicktoolsregistry.js +2 -1
  76. package/core/rules/badgeboxfit.d.ts +5 -4
  77. package/core/rules/badgeboxfit.js +4 -5
  78. package/core/rules/conditions.d.ts +101 -58
  79. package/core/rules/conditions.js +64 -66
  80. package/core/rules/conditiontype.d.ts +10 -9
  81. package/core/rules/conditiontype.js +9 -10
  82. package/core/rules/serializedeffect.d.ts +6 -5
  83. package/core/rules/serializedeffect.js +5 -6
  84. package/core/shapedatainheritance.d.ts +6 -5
  85. package/core/shapedatainheritance.js +5 -6
  86. package/core/sharedcardintegration/cardintegrationdefinitions.d.ts +51 -19
  87. package/core/sharedcardintegration/cardintegrationdefinitions.js +10 -12
  88. package/core/sharedcardintegration/dependencymappingconfig.d.ts +14 -0
  89. package/core/sharedcardintegration/dependencymappingconfig.js +2 -0
  90. package/core/sharedcardintegration/sharedregistryutil.d.ts +4 -0
  91. package/core/sharedcardintegration/sharedregistryutil.js +96 -0
  92. package/core/spreadsheetintegration/lucidspreadsheetintegration.d.ts +15 -7
  93. package/core/spreadsheetintegration/lucidspreadsheetintegration.js +7 -8
  94. package/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.d.ts +1 -0
  95. package/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.js +15 -2
  96. package/core/unfurl/unfurlcallbacks.d.ts +6 -5
  97. package/core/unfurl/unfurlcallbacks.js +5 -6
  98. package/core/unfurl/unfurldetails.d.ts +1 -1
  99. package/core/unfurl/unfurliframe.d.ts +9 -8
  100. package/core/unfurl/unfurliframe.js +18 -19
  101. package/core/unfurl/unfurlrefresherrortype.d.ts +9 -5
  102. package/core/unfurl/unfurlrefresherrortype.js +5 -6
  103. package/core/validators/validators.d.ts +1 -0
  104. package/core/validators/validators.js +4 -0
  105. package/data/collectionproxy.js +4 -3
  106. package/data/dataitemproxy.js +4 -3
  107. package/data/dataproxy.js +3 -2
  108. package/data/datasourceproxy.js +3 -2
  109. package/data/dataupdatefiltertype.d.ts +6 -5
  110. package/data/dataupdatefiltertype.js +5 -6
  111. package/data/displayoptiondefinition.d.ts +2 -2
  112. package/data/fieldconstraintdefinition.d.ts +22 -12
  113. package/data/patcherrortype.d.ts +5 -4
  114. package/data/patcherrortype.js +4 -5
  115. package/dataconnector/actions/dataconnectoractionkeys.d.ts +6 -5
  116. package/dataconnector/actions/dataconnectoractionkeys.js +5 -6
  117. package/dataconnector/dataconnector.d.ts +1 -1
  118. package/dataconnector/dataconnector.js +7 -1
  119. package/document/blockclasses/customblockproxy.js +5 -4
  120. package/document/blockclasses/legendblockproxy.d.ts +5 -4
  121. package/document/blockclasses/legendblockproxy.js +8 -9
  122. package/document/blockclasses/linkunfurlblockproxy.js +2 -1
  123. package/document/blockclasses/tableblockproxy.js +5 -4
  124. package/document/blockproxy.js +2 -1
  125. package/document/documentaccesspermission.d.ts +7 -6
  126. package/document/documentaccesspermission.js +6 -7
  127. package/document/documentelement/documentelementtype.d.ts +26 -25
  128. package/document/documentelement/documentelementtype.js +25 -26
  129. package/document/documentelement/ruleproxy.js +2 -1
  130. package/document/documentproxy.js +16 -15
  131. package/document/elementproxy.js +7 -6
  132. package/document/graphdefinition.d.ts +5 -4
  133. package/document/graphdefinition.js +4 -5
  134. package/document/groupproxy.js +7 -6
  135. package/document/itemproxy.js +10 -9
  136. package/document/lineproxy.d.ts +6 -5
  137. package/document/lineproxy.js +9 -9
  138. package/document/pageproxy.js +17 -17
  139. package/document/propertystoreproxy.js +3 -2
  140. package/document/ruledefinition.d.ts +9 -9
  141. package/document/shapedataproxy.js +6 -5
  142. package/document/text/textstyle.d.ts +17 -16
  143. package/document/text/textstyle.js +23 -24
  144. package/editorclient.js +39 -39
  145. package/package.json +1 -1
  146. package/ui/iframeui.d.ts +7 -6
  147. package/ui/iframeui.js +12 -12
  148. package/ui/menu.d.ts +15 -13
  149. package/ui/menu.js +23 -24
  150. package/ui/modal.js +3 -2
  151. package/ui/panel.d.ts +6 -5
  152. package/ui/panel.js +11 -11
  153. package/ui/viewport.js +16 -15
  154. 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,11 +755,83 @@ 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'?: {
752
831
  /** Header */
753
832
  'h': string;
833
+ /** Label */
834
+ 'l'?: string | undefined;
754
835
  /** query placeholder */
755
836
  'qph': string;
756
837
  /**remove non matching label */
@@ -772,6 +853,7 @@ export type AutoSyncSettings = {
772
853
  /** Generate preset value action */
773
854
  'gpv': string;
774
855
  } | undefined;
856
+ 'cftqs'?: string | undefined;
775
857
  };
776
858
  export type SerializedFieldConfiguration = {
777
859
  /** Callback to get field definitions for all fields supported by the card integration */
@@ -851,13 +933,6 @@ export type AddCardIntegrationQuery = {
851
933
  'ac'?: AddCardsActions | undefined;
852
934
  /** If specified, auto sync settings */
853
935
  '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
936
  /** Icons to display throughout the card integration */
862
937
  'icu'?: {
863
938
  /** Primary Icon Url */
@@ -877,67 +952,6 @@ export type AddCardIntegrationQuery = {
877
952
  * Banner action callback, to handle action button clicks in import error banners
878
953
  */
879
954
  '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
955
  /**
942
956
  * If provided, this data is used to turn links pasted on the canvas that match the domain(s) into primary keys and
943
957
  * other helpful data, which are sent back to the extension as an import action.
@@ -962,7 +976,7 @@ export type AddCardIntegrationQuery = {
962
976
  /** Get selected instance ID action */
963
977
  'gsii': string;
964
978
  } | undefined;
965
- };
979
+ } & DependencyMappingSettings;
966
980
  export type AddCardIntegrationResult = undefined;
967
981
  export type AddLineTextAreaQuery = {
968
982
  /** Which line */
@@ -1100,6 +1114,7 @@ export type AddSpreadsheetIntegrationQuery = {
1100
1114
  'ac'?: AddCardsActions | undefined;
1101
1115
  /** fieldConfiguration */
1102
1116
  'fc'?: Partial<SerializedFieldConfiguration>;
1117
+ 'dm'?: DependencyMappingSettings | undefined;
1103
1118
  };
1104
1119
  /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
1105
1120
  export type AddSpreadsheetIntegrationResult = undefined;
@@ -1171,10 +1186,11 @@ export type BootstrapQuery = {
1171
1186
  'm'?: boolean | undefined;
1172
1187
  };
1173
1188
  export type BootstrapResult = Promise<void>;
1174
- export declare enum HashAlgorithmEnum {
1189
+ export declare const HashAlgorithmEnum: {
1175
1190
  /** Use the SHA 256 hashing algorithm */
1176
- sha256 = "SHA256"
1177
- }
1191
+ readonly sha256: "SHA256";
1192
+ };
1193
+ export type HashAlgorithmEnum = (typeof HashAlgorithmEnum)[keyof typeof HashAlgorithmEnum];
1178
1194
  export type CalculateHashQuery = {
1179
1195
  'a': HashAlgorithmEnum;
1180
1196
  's': string;
@@ -1476,16 +1492,17 @@ export type GetDeveloperModeStatusQuery = void;
1476
1492
  export type GetDeveloperModeStatusResult = boolean;
1477
1493
  export type GetDocumentAccessPermissionQuery = void;
1478
1494
  export type GetDocumentAccessPermissionResult = DocumentAccessPermission;
1479
- export declare enum GetDocumentChunksType {
1495
+ export declare const GetDocumentChunksType: {
1480
1496
  /**
1481
1497
  * Breaks up a document into chunks geographically
1482
1498
  */
1483
- Geographic = 0,
1499
+ readonly Geographic: 0;
1484
1500
  /**
1485
1501
  * Breaks up a document into chunks by finding containing blocks
1486
1502
  */
1487
- Container = 1
1488
- }
1503
+ readonly Container: 1;
1504
+ };
1505
+ export type GetDocumentChunksType = (typeof GetDocumentChunksType)[keyof typeof GetDocumentChunksType];
1489
1506
  export type GetDocumentChunksQuery = {
1490
1507
  't': GetDocumentChunksType[];
1491
1508
  };
@@ -1503,11 +1520,12 @@ export type GetDocumentIdQuery = void;
1503
1520
  export type GetDocumentIdResult = string;
1504
1521
  export type GetItemPageIdQuery = string;
1505
1522
  export type GetItemPageIdResult = string;
1506
- export declare enum GetItemsAtSearchType {
1507
- PossiblyOverlapping = 0,
1508
- Overlapping = 1,
1509
- Contained = 2
1510
- }
1523
+ export declare const GetItemsAtSearchType: {
1524
+ readonly PossiblyOverlapping: 0;
1525
+ readonly Overlapping: 1;
1526
+ readonly Contained: 2;
1527
+ };
1528
+ export type GetItemsAtSearchType = (typeof GetItemsAtSearchType)[keyof typeof GetItemsAtSearchType];
1511
1529
  export type GetItemsAtQuery = {
1512
1530
  /** Page ID to search */
1513
1531
  'p': string;
@@ -1518,21 +1536,22 @@ export type GetItemsAtQuery = {
1518
1536
  };
1519
1537
  /** IDs of the items found */
1520
1538
  export type GetItemsAtResult = string[];
1521
- export declare enum GetLLMContextType {
1539
+ export declare const GetLLMContextType: {
1522
1540
  /** Get context in a format for LLMs where relationships among connected and
1523
1541
  * contained items are preserved. Expand the scope of the selection to
1524
1542
  * include blocks contained by the selection as well as lines connecting
1525
1543
  * items in the selection. */
1526
- Relational = 1,
1544
+ readonly Relational: 1;
1527
1545
  /** Get context containing only plain text displayed on the given items, more suitable for embeddings */
1528
- PlainText = 2,
1546
+ readonly PlainText: 2;
1529
1547
  /** Get context in a format for LLMs where relationships among connected and
1530
1548
  * contained items are preserved. Do not expand the scope of the selection,
1531
1549
  * other than to ensure relationships are represented. Text on selected
1532
1550
  * items will be included, but text on automatically added items will not.
1533
1551
  * */
1534
- RelationalWithoutExpansion = 3
1535
- }
1552
+ readonly RelationalWithoutExpansion: 3;
1553
+ };
1554
+ export type GetLLMContextType = (typeof GetLLMContextType)[keyof typeof GetLLMContextType];
1536
1555
  export type GetLLMContextFromItemsQuery = {
1537
1556
  /** Page ID to find closely-related items */
1538
1557
  'p': string;
@@ -1747,11 +1766,12 @@ export type MeasureTextResult = {
1747
1766
  /** Text area height */
1748
1767
  'h': number;
1749
1768
  };
1750
- export declare enum MermaidDiagramType {
1751
- FLOWCHART = "flowchart",
1752
- CLASS_DIAGRAM = "class_diagram",
1753
- ERD = "erd"
1754
- }
1769
+ export declare const MermaidDiagramType: {
1770
+ readonly FLOWCHART: "flowchart";
1771
+ readonly CLASS_DIAGRAM: "class_diagram";
1772
+ readonly ERD: "erd";
1773
+ };
1774
+ export type MermaidDiagramType = (typeof MermaidDiagramType)[keyof typeof MermaidDiagramType];
1755
1775
  export type AddDiagramFromMermaidQuery = {
1756
1776
  /** Type of diagram as an enum, e.g., flowchart. */
1757
1777
  't': MermaidDiagramType;
@@ -2078,12 +2098,13 @@ export type WithSilentActionsQuery = {
2078
2098
  'a': string;
2079
2099
  };
2080
2100
  export type WithSilentActionsResult = void;
2081
- export declare enum ZOrderOperation {
2082
- UP = 1,
2083
- TOP = 2,
2084
- DOWN = 3,
2085
- BOTTOM = 4
2086
- }
2101
+ export declare const ZOrderOperation: {
2102
+ readonly UP: 1;
2103
+ readonly TOP: 2;
2104
+ readonly DOWN: 3;
2105
+ readonly BOTTOM: 4;
2106
+ };
2107
+ export type ZOrderOperation = (typeof ZOrderOperation)[keyof typeof ZOrderOperation];
2087
2108
  export type ZOrderQuery = {
2088
2109
  /** IDs of the items to adjust Z order */
2089
2110
  'i': string[];
@@ -2096,4 +2117,42 @@ export type CheckUserFeatureFlagAssignmentQuery = {
2096
2117
  'f': string;
2097
2118
  };
2098
2119
  export type CheckUserFeatureFlagAssignmentResult = boolean;
2120
+ /**
2121
+ * @ignore
2122
+ * Definition of a custom tool that an extension can register with an AI agent.
2123
+ */
2124
+ export type ExtensionToolDefinition = {
2125
+ /** Unique name for this tool within the extension */
2126
+ 'n': string;
2127
+ /** Full description with usage instructions for the LLM */
2128
+ 'd': string;
2129
+ /** Named action to invoke when the tool is called */
2130
+ 'a': string;
2131
+ };
2132
+ /**
2133
+ * @ignore
2134
+ * Query to register an AI agent from an extension.
2135
+ */
2136
+ export type RegisterAiAgentQuery = {
2137
+ /** Agent name (unique identifier within the extension) */
2138
+ 'n': string;
2139
+ /** High-level overview of this agent for other agents/planning (1-2 sentences) */
2140
+ 'ab': string;
2141
+ /** Built-in tool names this agent can access (subset of AiToolName values) */
2142
+ 'bt'?: string[] | undefined;
2143
+ /** Custom tools defined by this extension */
2144
+ 'ct': ExtensionToolDefinition[];
2145
+ /** System prompt for the agent */
2146
+ 'sp': string;
2147
+ };
2148
+ /**
2149
+ * @ignore
2150
+ * Result of registering an AI agent.
2151
+ */
2152
+ export type RegisterAiAgentResult = {
2153
+ /** Whether registration succeeded */
2154
+ 's': boolean;
2155
+ /** Error message if registration failed */
2156
+ 'e'?: string;
2157
+ };
2099
2158
  export {};