@diagonal-hq/cli 0.38.1 → 0.38.3

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.
@@ -0,0 +1,1052 @@
1
+ import { createRequire as __diagonalCreateRequire } from 'node:module';
2
+ const require = __diagonalCreateRequire(import.meta.url);
3
+
4
+ // packages/cli/package-rules.json
5
+ var package_rules_default = {
6
+ package_name: "^(?:@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$",
7
+ dev_file_infix: "\\.dev(?=\\.[^/]+$)",
8
+ problems: {
9
+ package_name: '"name" must be a package name that npm installs, such as "todo" or "@acme/todo"',
10
+ diagonal_field: '"diagonal" must be an object. Write "diagonal": {} to mark a Diagonal package'
11
+ }
12
+ };
13
+
14
+ // scripts/lib/runtime-build/definition-slug.mjs
15
+ var LATIN_LETTERS = /* @__PURE__ */ new Map([
16
+ ["\xDF", "ss"],
17
+ ["\u1E9E", "ss"],
18
+ ["\xE6", "ae"],
19
+ ["\xC6", "ae"],
20
+ ["\xF8", "o"],
21
+ ["\xD8", "o"],
22
+ ["\u0153", "oe"],
23
+ ["\u0152", "oe"],
24
+ ["\u0111", "d"],
25
+ ["\u0110", "d"],
26
+ ["\u0142", "l"],
27
+ ["\u0141", "l"],
28
+ ["\xFE", "th"],
29
+ ["\xDE", "th"],
30
+ ["\xF0", "d"],
31
+ ["\xD0", "d"],
32
+ ["\u0131", "i"],
33
+ ["\u014B", "n"],
34
+ ["\u014A", "n"],
35
+ ["\u0127", "h"],
36
+ ["\u0126", "h"],
37
+ ["\u0167", "t"],
38
+ ["\u0166", "t"],
39
+ ["\u0138", "k"]
40
+ ]);
41
+ var LATIN_LETTER = new RegExp(`[${[...LATIN_LETTERS.keys()].join("")}]`, "g");
42
+ var DEV_INFIX = new RegExp(package_rules_default.dev_file_infix);
43
+ function isDevPath(path) {
44
+ return DEV_INFIX.test(path);
45
+ }
46
+ function withoutDevInfix(path) {
47
+ return path.replace(DEV_INFIX, "");
48
+ }
49
+
50
+ // scripts/lib/runtime-build/diagnostics.mjs
51
+ var BUILD_STAGE = "build";
52
+ function diagnostic(path, line, column, message, { stage = BUILD_STAGE, severity = "error", relatedPath } = {}) {
53
+ const result = { path, line, column, severity, message, stage };
54
+ if (relatedPath !== void 0) {
55
+ result.related_path = relatedPath;
56
+ }
57
+ return result;
58
+ }
59
+ function diagnosticAt(path, node, message, options) {
60
+ const start = node?.loc?.start;
61
+ return diagnostic(node?.loc?.filename ?? path, start ? start.line : 1, start ? start.column + 1 : 1, message, options);
62
+ }
63
+ function hasErrors(diagnostics) {
64
+ return diagnostics.some((diagnostic2) => diagnostic2.severity === "error");
65
+ }
66
+ function sortDiagnostics(diagnostics) {
67
+ return diagnostics.toSorted(
68
+ (left, right) => left.path.localeCompare(right.path) || left.line - right.line || left.column - right.column
69
+ );
70
+ }
71
+
72
+ // app/pages/resources/js/pageRuntime/sdk/generated/sdkExports.ts
73
+ var PAGES_SDK_PACKAGE = "@diagonal-hq/pages";
74
+ var PAGE_SDK_FILE_ONLY_EXPORTS = Object.freeze(["defineMenu", "useMenu"]);
75
+ var PAGE_SDK_FILE_TYPED_EXPORTS = Object.freeze(["defineMenu", "useMenu", "utils"]);
76
+ var PAGE_SDK_EXPORTS = Object.freeze({
77
+ Accordion: ["Components", "Accordion"],
78
+ AdminNavButtons: ["Components", "AdminNavButtons"],
79
+ AiAgentButton: ["Components", "AiAgentButton"],
80
+ AiChatButton: ["Components", "AiChatButton"],
81
+ Alert: ["Components", "Alert"],
82
+ AnalyticsEmbed: ["Components", "AnalyticsEmbed"],
83
+ Avatar: ["Components", "Avatar"],
84
+ Badge: ["Components", "Badge"],
85
+ BarChart: ["Components", "BarChart"],
86
+ Breadcrumb: ["Components", "Breadcrumb"],
87
+ Button: ["Components", "Button"],
88
+ ButtonLink: ["Components", "ButtonLink"],
89
+ Calendar: ["Components", "Calendar"],
90
+ CalendarConnections: ["Components", "CalendarConnections"],
91
+ CalendarNextButton: ["Components", "CalendarNextButton"],
92
+ CalendarPrevButton: ["Components", "CalendarPrevButton"],
93
+ CalendarSelector: ["Components", "CalendarSelector"],
94
+ CalendarTitle: ["Components", "CalendarTitle"],
95
+ CalendarTodayButton: ["Components", "CalendarTodayButton"],
96
+ CalendarViewSwitcher: ["Components", "CalendarViewSwitcher"],
97
+ Card: ["Components", "Card"],
98
+ Collapsible: ["Components", "Collapsible"],
99
+ ConfirmDialog: ["Components", "ConfirmDialog"],
100
+ CreateResourceRecordForm: ["Components", "CreateResourceRecordForm"],
101
+ DataTable: ["Components", "DataTable"],
102
+ DataTableAddFilter: ["Components", "DataTableAddFilter"],
103
+ DataTableBulkActions: ["Components", "DataTableBulkActions"],
104
+ DataTableColumnToggle: ["Components", "DataTableColumnToggle"],
105
+ DataTableContent: ["Components", "DataTableContent"],
106
+ DataTableFilterChips: ["Components", "DataTableFilterChips"],
107
+ DataTableFilters: ["Components", "DataTableFilters"],
108
+ DataTablePagination: ["Components", "DataTablePagination"],
109
+ DataTableRowActions: ["Components", "DataTableRowActions"],
110
+ DataTableSearch: ["Components", "DataTableSearch"],
111
+ DataTableToolbar: ["Components", "DataTableToolbar"],
112
+ DeleteResourceRecord: ["Components", "DeleteResourceRecord"],
113
+ Dnd: ["Dnd"],
114
+ DropdownMenu: ["Components", "DropdownMenu"],
115
+ EmailComposer: ["Components", "EmailComposer"],
116
+ EmailMessages: ["Components", "EmailMessages"],
117
+ EmptyState: ["Components", "EmptyState"],
118
+ ErrorBoundary: ["Components", "ErrorBoundary"],
119
+ ForgotPasswordForm: ["Components", "ForgotPasswordForm"],
120
+ FormCheckbox: ["Components", "FormCheckbox"],
121
+ FormCheckboxGroupInput: ["Components", "FormCheckboxGroupInput"],
122
+ FormCodeInput: ["Components", "FormCodeInput"],
123
+ FormColorInput: ["Components", "FormColorInput"],
124
+ FormComboboxInput: ["Components", "FormComboboxInput"],
125
+ FormContentInput: ["Components", "FormContentInput"],
126
+ FormDateInput: ["Components", "FormDateInput"],
127
+ FormDatetimeInput: ["Components", "FormDatetimeInput"],
128
+ FormFieldDisplay: ["Components", "FormFieldDisplay"],
129
+ FormFieldInput: ["Components", "FormFieldInput"],
130
+ FormFileUpload: ["Components", "FormFileUpload"],
131
+ FormLocationInput: ["Components", "FormLocationInput"],
132
+ FormMarkdownInput: ["Components", "FormMarkdownInput"],
133
+ FormMoneyInput: ["Components", "FormMoneyInput"],
134
+ FormMultiComboboxInput: ["Components", "FormMultiComboboxInput"],
135
+ FormNumberInput: ["Components", "FormNumberInput"],
136
+ FormPasswordInput: ["Components", "FormPasswordInput"],
137
+ FormPhoneInput: ["Components", "FormPhoneInput"],
138
+ FormRadio: ["Components", "FormRadio"],
139
+ FormSelectInput: ["Components", "FormSelectInput"],
140
+ FormSlider: ["Components", "FormSlider"],
141
+ FormSwitch: ["Components", "FormSwitch"],
142
+ FormTextArea: ["Components", "FormTextArea"],
143
+ FormTextInput: ["Components", "FormTextInput"],
144
+ FormTimeInput: ["Components", "FormTimeInput"],
145
+ FormTimezoneInput: ["Components", "FormTimezoneInput"],
146
+ HasAnyPermission: ["Components", "HasAnyPermission"],
147
+ HasPermission: ["Components", "HasPermission"],
148
+ Icon: ["Components", "Icon"],
149
+ Iframe: ["Components", "Iframe"],
150
+ Image: ["Components", "Image"],
151
+ KeyValueList: ["Components", "KeyValueList"],
152
+ LineChart: ["Components", "LineChart"],
153
+ Link: ["Components", "Link"],
154
+ List: ["Components", "List"],
155
+ LoginForm: ["Components", "LoginForm"],
156
+ LogoutButton: ["Components", "LogoutButton"],
157
+ Map: ["Components", "Map"],
158
+ Modal: ["Components", "Modal"],
159
+ NavMain: ["Components", "NavMain"],
160
+ NotificationComposer: ["Components", "NotificationComposer"],
161
+ NotificationConsentForm: ["Components", "NotificationConsentForm"],
162
+ NotificationHistory: ["Components", "NotificationHistory"],
163
+ NotificationVariablesForm: ["Components", "NotificationVariablesForm"],
164
+ PackageReleaseNotes: ["Components", "PackageReleaseNotes"],
165
+ PageHeader: ["Components", "PageHeader"],
166
+ PaymentForm: ["Components", "PaymentForm"],
167
+ PaymentMethods: ["Components", "PaymentMethods"],
168
+ PieChart: ["Components", "PieChart"],
169
+ Popover: ["Components", "Popover"],
170
+ QrCode: ["Components", "QrCode"],
171
+ RecordFields: ["Components", "RecordFields"],
172
+ RecordScheduleDisplay: ["Components", "RecordScheduleDisplay"],
173
+ ResourceTable: ["Components", "ResourceTable"],
174
+ RestoreResourceRecord: ["Components", "RestoreResourceRecord"],
175
+ RichText: ["Components", "RichText"],
176
+ ScheduledNotificationComposer: ["Components", "ScheduledNotificationComposer"],
177
+ SearchBar: ["Components", "SearchBar"],
178
+ Separator: ["Components", "Separator"],
179
+ SharedFilters: ["Components", "SharedFilters"],
180
+ ShowResourceRecord: ["Components", "ShowResourceRecord"],
181
+ Sidebar: ["Components", "Sidebar"],
182
+ SidebarCollapseButton: ["Components", "SidebarCollapseButton"],
183
+ SidebarContent: ["Components", "SidebarContent"],
184
+ SidebarFooter: ["Components", "SidebarFooter"],
185
+ SidebarHeader: ["Components", "SidebarHeader"],
186
+ SidebarInset: ["Components", "SidebarInset"],
187
+ SidebarMenu: ["Components", "SidebarMenu"],
188
+ SidebarMenuButton: ["Components", "SidebarMenuButton"],
189
+ SidebarMenuItem: ["Components", "SidebarMenuItem"],
190
+ SidebarProvider: ["Components", "SidebarProvider"],
191
+ SidebarTrigger: ["Components", "SidebarTrigger"],
192
+ SimpleTable: ["Components", "SimpleTable"],
193
+ Skeleton: ["Components", "Skeleton"],
194
+ Slideover: ["Components", "Slideover"],
195
+ SlotPicker: ["Components", "SlotPicker"],
196
+ Spinner: ["Components", "Spinner"],
197
+ StatCard: ["Components", "StatCard"],
198
+ Step: ["Components", "Step"],
199
+ Stepper: ["Components", "Stepper"],
200
+ SubscriptionBillingPreview: ["Components", "SubscriptionBillingPreview"],
201
+ SubscriptionChangePreview: ["Components", "SubscriptionChangePreview"],
202
+ SupportChatButton: ["Components", "SupportChatButton"],
203
+ Tabs: ["Components", "Tabs"],
204
+ ThemeToggle: ["Components", "ThemeToggle"],
205
+ Timer: ["Components", "Timer"],
206
+ Tooltip: ["Components", "Tooltip"],
207
+ TwoFactorBackupCodeList: ["Components", "TwoFactorBackupCodeList"],
208
+ TwoFactorBackupCodes: ["Components", "TwoFactorBackupCodes"],
209
+ TwoFactorChallenge: ["Components", "TwoFactorChallenge"],
210
+ TwoFactorSendCodeButton: ["Components", "TwoFactorSendCodeButton"],
211
+ TwoFactorSetup: ["Components", "TwoFactorSetup"],
212
+ TwoFactorSmsConsent: ["Components", "TwoFactorSmsConsent"],
213
+ UpdateResourceRecordForm: ["Components", "UpdateResourceRecordForm"],
214
+ UserMenu: ["Components", "UserMenu"],
215
+ Video: ["Components", "Video"],
216
+ WorkflowForm: ["Components", "WorkflowForm"],
217
+ WorkspaceFieldsForm: ["Components", "WorkspaceFieldsForm"],
218
+ api: ["api"],
219
+ auth: ["auth"],
220
+ defineMenu: ["defineMenu"],
221
+ getInput: ["helpers", "getInput"],
222
+ getRouteBinding: ["helpers", "getRouteBinding"],
223
+ getRouteParam: ["helpers", "getRouteParam"],
224
+ getRouteParams: ["helpers", "getRouteParams"],
225
+ identity: ["identity"],
226
+ page: ["page"],
227
+ permissions: ["permissions"],
228
+ resource: ["resource"],
229
+ resourceId: ["resourceId"],
230
+ resourceIds: ["resourceIds"],
231
+ resourceOrNull: ["resourceOrNull"],
232
+ router: ["router"],
233
+ useAccountingEntities: ["hooks", "useAccountingEntities"],
234
+ useAiChat: ["hooks", "useAiChat"],
235
+ useAnalytics: ["hooks", "useAnalytics"],
236
+ useApi: ["hooks", "useApi"],
237
+ useAvailability: ["hooks", "useAvailability"],
238
+ useAvailableSlots: ["hooks", "useAvailableSlots"],
239
+ useBulkNotificationRun: ["hooks", "useBulkNotificationRun"],
240
+ useCalendarConnections: ["hooks", "useCalendarConnections"],
241
+ useCalendarEvents: ["hooks", "useCalendarEvents"],
242
+ useCalendarSelection: ["hooks", "useCalendarSelection"],
243
+ useCalendarView: ["hooks", "useCalendarView"],
244
+ useCancelScheduledNotification: ["hooks", "useCancelScheduledNotification"],
245
+ useCreateRecord: ["hooks", "useCreateRecord"],
246
+ useCreateResourceRecordForm: ["hooks", "useCreateResourceRecordForm"],
247
+ useDataTable: ["hooks", "useDataTable"],
248
+ useDeleteResourceRecord: ["hooks", "useDeleteResourceRecord"],
249
+ useEmailMessages: ["hooks", "useEmailMessages"],
250
+ useForm: ["useForm"],
251
+ useHoldScheduledNotification: ["hooks", "useHoldScheduledNotification"],
252
+ useInfiniteRecords: ["hooks", "useInfiniteRecords"],
253
+ useInput: ["helpers", "useInput"],
254
+ useInvalidateAll: ["hooks", "useInvalidateAll"],
255
+ useLocalStorage: ["hooks", "useLocalStorage"],
256
+ useMenu: ["useMenu"],
257
+ useNewCalendarEvent: ["hooks", "useNewCalendarEvent"],
258
+ useNotificationConsent: ["hooks", "useNotificationConsent"],
259
+ useNotificationHistory: ["hooks", "useNotificationHistory"],
260
+ useNotificationHistoryDetail: ["hooks", "useNotificationHistoryDetail"],
261
+ useNotificationTemplate: ["hooks", "useNotificationTemplate"],
262
+ useNotificationTemplateEmailDraft: ["hooks", "useNotificationTemplateEmailDraft"],
263
+ useNotificationTemplates: ["hooks", "useNotificationTemplates"],
264
+ useNotificationTypes: ["hooks", "useNotificationTypes"],
265
+ usePackageReleaseNotes: ["hooks", "usePackageReleaseNotes"],
266
+ usePayerBalances: ["hooks", "usePayerBalances"],
267
+ usePaymentRefundPreview: ["hooks", "usePaymentRefundPreview"],
268
+ usePoll: ["hooks", "usePoll"],
269
+ usePreviewScheduledNotification: ["hooks", "usePreviewScheduledNotification"],
270
+ useQueryParams: ["hooks", "useQueryParams"],
271
+ useRecord: ["hooks", "useRecord"],
272
+ useRecordScheduleTimelines: ["hooks", "useRecordScheduleTimelines"],
273
+ useRecords: ["hooks", "useRecords"],
274
+ useResourceDataTable: ["hooks", "useResourceDataTable"],
275
+ useRestoreResourceRecord: ["hooks", "useRestoreResourceRecord"],
276
+ useResumeScheduledNotification: ["hooks", "useResumeScheduledNotification"],
277
+ useSaveNotificationTemplate: ["hooks", "useSaveNotificationTemplate"],
278
+ useScheduleConflicts: ["hooks", "useScheduleConflicts"],
279
+ useScheduleNotification: ["hooks", "useScheduleNotification"],
280
+ useScheduledNotification: ["hooks", "useScheduledNotification"],
281
+ useSendBulkNotifications: ["hooks", "useSendBulkNotifications"],
282
+ useSendEmail: ["hooks", "useSendEmail"],
283
+ useSendNotification: ["hooks", "useSendNotification"],
284
+ useSendResolvedNotification: ["hooks", "useSendResolvedNotification"],
285
+ useSendScheduledNotificationNow: ["hooks", "useSendScheduledNotificationNow"],
286
+ useSharedFilters: ["hooks", "useSharedFilters"],
287
+ useSidebar: ["hooks", "useSidebar"],
288
+ useStepper: ["hooks", "useStepper"],
289
+ useSubscriptionChangePreview: ["hooks", "useSubscriptionChangePreview"],
290
+ useSubscriptionPreview: ["hooks", "useSubscriptionPreview"],
291
+ useTheme: ["hooks", "useTheme"],
292
+ useTwoFactorBackupCodes: ["hooks", "useTwoFactorBackupCodes"],
293
+ useTwoFactorChallenge: ["hooks", "useTwoFactorChallenge"],
294
+ useTwoFactorSetup: ["hooks", "useTwoFactorSetup"],
295
+ useUpcomingNotifications: ["hooks", "useUpcomingNotifications"],
296
+ useUpdateRecord: ["hooks", "useUpdateRecord"],
297
+ useUpdateResourceRecordForm: ["hooks", "useUpdateResourceRecordForm"],
298
+ useUpdateScheduledNotification: ["hooks", "useUpdateScheduledNotification"],
299
+ useWorkflowAction: ["hooks", "useWorkflowAction"],
300
+ useWorkflowForm: ["hooks", "useWorkflowForm"],
301
+ useWorkspaceFieldsForm: ["hooks", "useWorkspaceFieldsForm"],
302
+ useWorkspaceValues: ["hooks", "useWorkspaceValues"],
303
+ utils: ["utils"],
304
+ workspace: ["workspace"]
305
+ });
306
+ var PAGE_SDK_TYPES = {
307
+ AccountingEntities: { "parameters": "", "arguments": "" },
308
+ AccountingEntity: { "parameters": "", "arguments": "" },
309
+ AddCalendarLinkInput: { "parameters": "", "arguments": "" },
310
+ AnalyticsDistributionParams: { "parameters": "", "arguments": "" },
311
+ AnalyticsGranularity: { "parameters": "", "arguments": "" },
312
+ AnalyticsHandle: { "parameters": "<TResult>", "arguments": "<TResult>" },
313
+ AnalyticsKpiParams: { "parameters": '<TMetrics extends readonly import("diagonal:sdk-internal").AnalyticsMetric[] = import("diagonal:sdk-internal").AnalyticsMetric[]>', "arguments": "<TMetrics>" },
314
+ AnalyticsKpiResult: { "parameters": '<TMetrics extends readonly import("diagonal:sdk-internal").AnalyticsMetric[] = import("diagonal:sdk-internal").AnalyticsMetric[]>', "arguments": "<TMetrics>" },
315
+ AnalyticsLeaderboardParams: { "parameters": "", "arguments": "" },
316
+ AnalyticsMetric: { "parameters": "", "arguments": "" },
317
+ AnalyticsResource: { "parameters": '<TKind extends keyof import("diagonal:sdk-internal").SdkResourceAnalytics>', "arguments": "<TKind>" },
318
+ AnalyticsRow: { "parameters": "", "arguments": "" },
319
+ AnalyticsTimeSeriesMetric: { "parameters": "", "arguments": "" },
320
+ AnalyticsTimeSeriesParams: { "parameters": "", "arguments": "" },
321
+ AnalyticsValue: { "parameters": "", "arguments": "" },
322
+ Api: { "parameters": "", "arguments": "" },
323
+ ApiError: { "parameters": "", "arguments": "" },
324
+ ApiErrorBody: { "parameters": "", "arguments": "" },
325
+ ApiFetcher: { "parameters": "<TData>", "arguments": "<TData>" },
326
+ ApiHandle: { "parameters": "<TData>", "arguments": "<TData>" },
327
+ ApiQueryKey: { "parameters": "", "arguments": "" },
328
+ Auth: { "parameters": "", "arguments": "" },
329
+ AuthConfig: { "parameters": "", "arguments": "" },
330
+ AuthLoginInput: { "parameters": "", "arguments": "" },
331
+ AuthMagicLinkInput: { "parameters": "", "arguments": "" },
332
+ AuthPasswordResetInput: { "parameters": "", "arguments": "" },
333
+ AuthResource: { "parameters": "", "arguments": "" },
334
+ AvailabilityHandle: { "parameters": "", "arguments": "" },
335
+ AvailabilityOptions: { "parameters": "", "arguments": "" },
336
+ AvailabilityPiece: { "parameters": "", "arguments": "" },
337
+ AvailableSlot: { "parameters": "", "arguments": "" },
338
+ AvailableSlotsHandle: { "parameters": "", "arguments": "" },
339
+ AvailableSlotsOptions: { "parameters": "", "arguments": "" },
340
+ BadgeVariant: { "parameters": "", "arguments": "" },
341
+ BookingCreateResult: { "parameters": "", "arguments": "" },
342
+ BrandLogoOptions: { "parameters": "", "arguments": "" },
343
+ BulkNotificationRun: { "parameters": "", "arguments": "" },
344
+ BulkNotificationVariable: { "parameters": "", "arguments": "" },
345
+ CalendarAccessRole: { "parameters": "", "arguments": "" },
346
+ CalendarChoice: { "parameters": "", "arguments": "" },
347
+ CalendarChoices: { "parameters": "", "arguments": "" },
348
+ CalendarConnectionsHandle: { "parameters": "", "arguments": "" },
349
+ CalendarEventsChoice: { "parameters": "", "arguments": "" },
350
+ CalendarLink: { "parameters": "", "arguments": "" },
351
+ CalendarLinkFlags: { "parameters": "", "arguments": "" },
352
+ CalendarLinkState: { "parameters": "", "arguments": "" },
353
+ CalendarLinks: { "parameters": "", "arguments": "" },
354
+ CalendarLogin: { "parameters": "", "arguments": "" },
355
+ CalendarResult: { "parameters": "", "arguments": "" },
356
+ CalendarSignInResult: { "parameters": "", "arguments": "" },
357
+ CalendarStaff: { "parameters": "", "arguments": "" },
358
+ CalendarUnavailableReason: { "parameters": "", "arguments": "" },
359
+ CancelScheduledNotificationHandle: { "parameters": "", "arguments": "" },
360
+ CancelledNotificationResult: { "parameters": "", "arguments": "" },
361
+ CatalogRecord: { "parameters": '<TResourceId extends string, TRelations extends readonly import("diagonal:sdk-internal").SdkCatalogRelationPath<TResourceId>[] = readonly []>', "arguments": "<TResourceId, TRelations>" },
362
+ CatalogRelationPath: { "parameters": "<TResourceId extends string>", "arguments": "<TResourceId>" },
363
+ ClassValue: { "parameters": "", "arguments": "" },
364
+ ClipboardCopyOptions: { "parameters": "", "arguments": "" },
365
+ ConfettiOptions: { "parameters": "", "arguments": "" },
366
+ ContentValue: { "parameters": "", "arguments": "" },
367
+ Contract: { "parameters": "", "arguments": "" },
368
+ CreateRecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
369
+ DateAddUnit: { "parameters": "", "arguments": "" },
370
+ DateBoundaryUnit: { "parameters": "", "arguments": "" },
371
+ DisplayFormatOptions: { "parameters": "", "arguments": "" },
372
+ DisplayPriceOptions: { "parameters": "", "arguments": "" },
373
+ DisplayUtils: { "parameters": "", "arguments": "" },
374
+ Dnd: { "parameters": "", "arguments": "" },
375
+ DndCanDrag: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
376
+ DndCanDrop: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
377
+ DndCustomPersistence: { "parameters": "<TItem>", "arguments": "<TItem>" },
378
+ DndGroupMoveChange: { "parameters": "<TItem>", "arguments": "<TItem>" },
379
+ DndGroupMoveResult: { "parameters": "<TItem>", "arguments": "<TItem>" },
380
+ DndGroupedLocation: { "parameters": "", "arguments": "" },
381
+ DndIdentifier: { "parameters": "", "arguments": "" },
382
+ DndItemIdentifier: { "parameters": "<TItem>", "arguments": "<TItem>" },
383
+ DndLocation: { "parameters": "", "arguments": "" },
384
+ DndMoveContext: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
385
+ DndReorder: { "parameters": "", "arguments": "" },
386
+ DndReorderChange: { "parameters": "<TItem>", "arguments": "<TItem>" },
387
+ DndReorderResult: { "parameters": "<TItem>", "arguments": "<TItem>" },
388
+ DndResourcePersistence: { "parameters": "<TItem>", "arguments": "<TItem>" },
389
+ DndSortableGroupRenderState: { "parameters": "<TItem>", "arguments": "<TItem>" },
390
+ DndSortableGroupsCommonProps: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
391
+ DndSortableGroupsComponent: { "parameters": "", "arguments": "" },
392
+ DndSortableGroupsCustomPersistence: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
393
+ DndSortableGroupsProps: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
394
+ DndSortableGroupsResourcePersistence: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
395
+ DndSortableGroupsResourceProps: { "parameters": `<TResource extends import("diagonal:sdk-internal").SdkResourceType & Pick<import("diagonal:sdk-internal").SdkResource, 'fields' | 'updateMany'>, TItem extends import("diagonal:sdk-internal").SdkDndResourceItem<NoInfer<TResource>>, TGroup>`, "arguments": "<TResource, TItem, TGroup>" },
396
+ DndSortableItem: { "parameters": "", "arguments": "" },
397
+ DndSortableListCommonProps: { "parameters": "<TItem>", "arguments": "<TItem>" },
398
+ DndSortableListComponent: { "parameters": "", "arguments": "" },
399
+ DndSortableListProps: { "parameters": "<TItem>", "arguments": "<TItem>" },
400
+ DndSortableListResourceProps: { "parameters": `<TResource extends import("diagonal:sdk-internal").SdkResourceType & Pick<import("diagonal:sdk-internal").SdkResource, 'fields' | 'updateMany'>, TItem extends import("diagonal:sdk-internal").SdkDndResourceItem<NoInfer<TResource>> = import("diagonal:sdk-internal").SdkDndResourceItem<TResource>>`, "arguments": "<TResource, TItem>" },
401
+ DndSortableOptions: { "parameters": "<TItem>", "arguments": "<TItem>" },
402
+ DndSortableRenderState: { "parameters": "", "arguments": "" },
403
+ EmailAddress: { "parameters": "", "arguments": "" },
404
+ EmailAttempt: { "parameters": "", "arguments": "" },
405
+ EmailAttemptAttachment: { "parameters": "", "arguments": "" },
406
+ EmailAttemptEvent: { "parameters": "", "arguments": "" },
407
+ EmailAttemptRecipients: { "parameters": "", "arguments": "" },
408
+ EmailAttemptStatus: { "parameters": "", "arguments": "" },
409
+ EmailMessage: { "parameters": "", "arguments": "" },
410
+ EmailMessages: { "parameters": "", "arguments": "" },
411
+ EmailMessagesFilters: { "parameters": "", "arguments": "" },
412
+ EmailMessagesOptions: { "parameters": "", "arguments": "" },
413
+ EmailMessagesRecord: { "parameters": "", "arguments": "" },
414
+ EmailRecipient: { "parameters": "", "arguments": "" },
415
+ EmailRecipientRole: { "parameters": "", "arguments": "" },
416
+ EventScheduleValue: { "parameters": "", "arguments": "" },
417
+ FieldSelector: { "parameters": "<TKey extends string = string>", "arguments": "<TKey>" },
418
+ FieldValue: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord, TSelector extends import("diagonal:sdk-internal").SdkFieldSelector>', "arguments": "<TRecord, TSelector>" },
419
+ FormField: { "parameters": "", "arguments": "" },
420
+ FormFieldProps: { "parameters": "", "arguments": "" },
421
+ FormWrapperProps: { "parameters": "", "arguments": "" },
422
+ GoogleCalendarLoginStatus: { "parameters": "", "arguments": "" },
423
+ HeldNotificationResult: { "parameters": "", "arguments": "" },
424
+ Helpers: { "parameters": "", "arguments": "" },
425
+ HoldScheduledNotificationHandle: { "parameters": "", "arguments": "" },
426
+ Hooks: { "parameters": "", "arguments": "" },
427
+ Identity: { "parameters": "", "arguments": "" },
428
+ InfiniteRecordsHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
429
+ ListItemField: { "parameters": "", "arguments": "" },
430
+ LocalStorageArray: { "parameters": "", "arguments": "" },
431
+ LocalStorageObject: { "parameters": "", "arguments": "" },
432
+ LocalStoragePrimitive: { "parameters": "", "arguments": "" },
433
+ LocalStorageResult: { "parameters": "<TValue>", "arguments": "<TValue>" },
434
+ LocalStorageSetter: { "parameters": "<TValue>", "arguments": "<TValue>" },
435
+ LocalStorageValue: { "parameters": "", "arguments": "" },
436
+ LocationFormatOptions: { "parameters": "", "arguments": "" },
437
+ LocationValue: { "parameters": "", "arguments": "" },
438
+ Menu: { "parameters": '<E extends import("diagonal:sdk-internal").SdkMenuExtra = Record<never, never>>', "arguments": "<E>" },
439
+ MenuContext: { "parameters": "", "arguments": "" },
440
+ MenuExtra: { "parameters": "", "arguments": "" },
441
+ MenuItem: { "parameters": "", "arguments": "" },
442
+ MenuResult: { "parameters": "", "arguments": "" },
443
+ Money: { "parameters": "", "arguments": "" },
444
+ MoneyFormatOptions: { "parameters": "", "arguments": "" },
445
+ MoneyInput: { "parameters": "", "arguments": "" },
446
+ NavigateOptions: { "parameters": "", "arguments": "" },
447
+ NavigationMenu: { "parameters": "", "arguments": "" },
448
+ NavigationMenuCatalog: { "parameters": "", "arguments": "" },
449
+ NotificationChannel: { "parameters": "", "arguments": "" },
450
+ NotificationChannelAvailability: { "parameters": "", "arguments": "" },
451
+ NotificationChannelUnavailableReason: { "parameters": "", "arguments": "" },
452
+ NotificationChannels: { "parameters": "", "arguments": "" },
453
+ NotificationConsent: { "parameters": "", "arguments": "" },
454
+ NotificationConsentChannels: { "parameters": "", "arguments": "" },
455
+ NotificationConsentHandle: { "parameters": "", "arguments": "" },
456
+ NotificationDeliveryChannel: { "parameters": "", "arguments": "" },
457
+ NotificationHistory: { "parameters": "", "arguments": "" },
458
+ NotificationHistoryDetail: { "parameters": "", "arguments": "" },
459
+ NotificationHistoryItem: { "parameters": "", "arguments": "" },
460
+ NotificationHistoryKind: { "parameters": "", "arguments": "" },
461
+ NotificationHistoryOptions: { "parameters": "", "arguments": "" },
462
+ NotificationHistoryRecord: { "parameters": "", "arguments": "" },
463
+ NotificationHistoryStatus: { "parameters": "", "arguments": "" },
464
+ NotificationListOptions: { "parameters": "", "arguments": "" },
465
+ NotificationRecipient: { "parameters": "", "arguments": "" },
466
+ NotificationSourceKind: { "parameters": "", "arguments": "" },
467
+ NotificationTemplateContent: { "parameters": "", "arguments": "" },
468
+ NotificationTemplateDefinition: { "parameters": "", "arguments": "" },
469
+ NotificationTemplateEmailDraft: { "parameters": "", "arguments": "" },
470
+ NotificationTemplateList: { "parameters": "", "arguments": "" },
471
+ NotificationTemplateReference: { "parameters": "", "arguments": "" },
472
+ NotificationTemplateSummary: { "parameters": "", "arguments": "" },
473
+ NotificationTypeList: { "parameters": "", "arguments": "" },
474
+ NotificationTypeListOptions: { "parameters": "", "arguments": "" },
475
+ NotificationTypeSummary: { "parameters": "", "arguments": "" },
476
+ NotificationVariableSummary: { "parameters": "", "arguments": "" },
477
+ NotifyToastOptions: { "parameters": "", "arguments": "" },
478
+ NotifyVariant: { "parameters": "", "arguments": "" },
479
+ NumberFormatOptions: { "parameters": "", "arguments": "" },
480
+ PackageReleaseHistory: { "parameters": "", "arguments": "" },
481
+ PackageReleaseNotes: { "parameters": "", "arguments": "" },
482
+ PackageReleaseNotesOptions: { "parameters": "", "arguments": "" },
483
+ PackageReleaseNotesProps: { "parameters": "", "arguments": "" },
484
+ PageAliasCatalog: { "parameters": "", "arguments": "" },
485
+ PageHandle: { "parameters": "", "arguments": "" },
486
+ PageReference: { "parameters": "", "arguments": "" },
487
+ PageRouteSettings: { "parameters": "", "arguments": "" },
488
+ PayerBalances: { "parameters": "", "arguments": "" },
489
+ PayerBalancesOptions: { "parameters": "", "arguments": "" },
490
+ PayerEntityBalance: { "parameters": "", "arguments": "" },
491
+ PaymentRefundPreview: { "parameters": "", "arguments": "" },
492
+ PaymentRefundPreviewHandle: { "parameters": "", "arguments": "" },
493
+ PaymentRefundPreviewOptions: { "parameters": "", "arguments": "" },
494
+ Permissions: { "parameters": "", "arguments": "" },
495
+ PhoneFormatOptions: { "parameters": "", "arguments": "" },
496
+ PointValue: { "parameters": "", "arguments": "" },
497
+ PollControls: { "parameters": "", "arguments": "" },
498
+ PollInterval: { "parameters": "<TData>", "arguments": "<TData>" },
499
+ PreviewNotificationInput: { "parameters": "", "arguments": "" },
500
+ PreviewNotificationResponse: { "parameters": "", "arguments": "" },
501
+ RecordAvailability: { "parameters": "", "arguments": "" },
502
+ RecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
503
+ RecordInput: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
504
+ RecordMutationState: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
505
+ RecordOf: { "parameters": '<TKey extends keyof import("diagonal:sdk-internal").ResourceRecordCatalog>', "arguments": "<TKey>" },
506
+ RecordScheduleTimeline: { "parameters": "", "arguments": "" },
507
+ RecordScheduleTimelineOffset: { "parameters": "", "arguments": "" },
508
+ RecordScheduleTimelinesHandle: { "parameters": "", "arguments": "" },
509
+ RecordsHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
510
+ RecurrenceDefinition: { "parameters": "", "arguments": "" },
511
+ RecurrenceValue: { "parameters": "", "arguments": "" },
512
+ ReferenceRecord: { "parameters": '<TReference extends import("diagonal:sdk-internal").ResourceTypeReference, TRelations extends readonly import("diagonal:sdk-internal").SdkReferenceRelationPath<TReference>[] = readonly []>', "arguments": "<TReference, TRelations>" },
513
+ ReferenceRelationPath: { "parameters": '<TReference extends import("diagonal:sdk-internal").ResourceTypeReference>', "arguments": "<TReference>" },
514
+ RegularHoursDay: { "parameters": "", "arguments": "" },
515
+ RegularHoursValue: { "parameters": "", "arguments": "" },
516
+ ResolvedMenuItem: { "parameters": "", "arguments": "" },
517
+ ResolvedNotification: { "parameters": "", "arguments": "" },
518
+ ResolvedNotificationEmail: { "parameters": "", "arguments": "" },
519
+ Resource: { "parameters": '<TFields extends Record<string, import("diagonal:sdk-internal").SdkResourceField> = Record<string, import("diagonal:sdk-internal").SdkResourceField>, TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord, TRelations extends import("diagonal:sdk-internal").ResourceRelationCatalog = import("diagonal:sdk-internal").ResourceRelationCatalog, TWorkflowInputs extends import("diagonal:sdk-internal").SdkResourceWorkflowInputs = import("diagonal:sdk-internal").SdkResourceWorkflowInputs>', "arguments": "<TFields, TRecord, TRelations, TWorkflowInputs>" },
520
+ ResourceAnalytics: { "parameters": "", "arguments": "" },
521
+ ResourceBulkUpdateRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
522
+ ResourceCapabilityFieldMappings: { "parameters": "", "arguments": "" },
523
+ ResourceCollectionResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
524
+ ResourceCountOptions: { "parameters": "", "arguments": "" },
525
+ ResourceDeletePayload: { "parameters": "", "arguments": "" },
526
+ ResourceField: { "parameters": "", "arguments": "" },
527
+ ResourceFieldSettings: { "parameters": "", "arguments": "" },
528
+ ResourceFieldSettingsUi: { "parameters": "", "arguments": "" },
529
+ ResourceFieldUpdatePayload: { "parameters": "", "arguments": "" },
530
+ ResourceForm: { "parameters": "", "arguments": "" },
531
+ ResourceFormWorkflowInputs: { "parameters": `<TResource extends Pick<import("diagonal:sdk-internal").SdkResource, 'workflow_inputs'>, TEvents extends import("diagonal:sdk-internal").SdkWorkflowEvent>`, "arguments": "<TResource, TEvents>" },
532
+ ResourceHandle: { "parameters": "", "arguments": "" },
533
+ ResourceListParams: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
534
+ ResourceOperation: { "parameters": "", "arguments": "" },
535
+ ResourceOperationRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
536
+ ResourceOperations: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType = import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
537
+ ResourcePagination: { "parameters": "", "arguments": "" },
538
+ ResourceQueryHandle: { "parameters": `<TUrl extends keyof import("diagonal:sdk-internal").ResourceUrls = 'show' | 'search'>`, "arguments": "<TUrl>" },
539
+ ResourceQueryReference: { "parameters": `<TUrl extends keyof import("diagonal:sdk-internal").ResourceUrls = 'show' | 'search'>`, "arguments": "<TUrl>" },
540
+ ResourceRecord: { "parameters": "", "arguments": "" },
541
+ ResourceRecordCatalog: { "parameters": "", "arguments": "" },
542
+ ResourceRecordFormActionsProps: { "parameters": "", "arguments": "" },
543
+ ResourceRecordFormFieldsProps: { "parameters": "", "arguments": "" },
544
+ ResourceRecordFormStep: { "parameters": "<RenderState>", "arguments": "<RenderState>" },
545
+ ResourceRecordFrom: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType | null | undefined, TRelations extends readonly import("diagonal:sdk-internal").SdkResourceRelationPath<NonNullable<TResource>>[] = readonly []>', "arguments": "<TResource, TRelations>" },
546
+ ResourceRecordPayload: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
547
+ ResourceRecordResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
548
+ ResourceRecordsResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
549
+ ResourceReference: { "parameters": "", "arguments": "" },
550
+ ResourceRelationCatalog: { "parameters": "", "arguments": "" },
551
+ ResourceRelationPath: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
552
+ ResourceRelationsFrom: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
553
+ ResourceSearchAllOptions: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
554
+ ResourceSearchBody: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
555
+ ResourceSortDescriptor: { "parameters": "", "arguments": "" },
556
+ ResourceSortDescriptorList: { "parameters": "", "arguments": "" },
557
+ ResourceSortDirection: { "parameters": "", "arguments": "" },
558
+ ResourceSortFieldDescriptor: { "parameters": "", "arguments": "" },
559
+ ResourceSortInput: { "parameters": "", "arguments": "" },
560
+ ResourceSortMap: { "parameters": "", "arguments": "" },
561
+ ResourceType: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord, TRelations extends import("diagonal:sdk-internal").ResourceRelationCatalog = import("diagonal:sdk-internal").ResourceRelationCatalog>', "arguments": "<TRecord, TRelations>" },
562
+ ResourceUrls: { "parameters": "", "arguments": "" },
563
+ ResourceWorkflowInputs: { "parameters": "", "arguments": "" },
564
+ ResumeScheduledNotificationHandle: { "parameters": "", "arguments": "" },
565
+ Router: { "parameters": "", "arguments": "" },
566
+ RouterVisitOptions: { "parameters": "", "arguments": "" },
567
+ SaveNotificationTemplateHandle: { "parameters": "", "arguments": "" },
568
+ SaveNotificationTemplateInput: { "parameters": "", "arguments": "" },
569
+ SchedulableRecordRef: { "parameters": "", "arguments": "" },
570
+ ScheduleConflict: { "parameters": "", "arguments": "" },
571
+ ScheduleConflictsHandle: { "parameters": "", "arguments": "" },
572
+ ScheduleConflictsOptions: { "parameters": "", "arguments": "" },
573
+ ScheduleNotificationHandle: { "parameters": "", "arguments": "" },
574
+ ScheduleNotificationInput: { "parameters": "", "arguments": "" },
575
+ ScheduledNotificationContent: { "parameters": "", "arguments": "" },
576
+ ScheduledNotificationDetail: { "parameters": "", "arguments": "" },
577
+ ScheduledNotificationEdits: { "parameters": "", "arguments": "" },
578
+ ScheduledNotificationPreview: { "parameters": "", "arguments": "" },
579
+ ScheduledNotificationResult: { "parameters": "", "arguments": "" },
580
+ SelectedResourceRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord, TRelationCatalog extends import("diagonal:sdk-internal").ResourceRelationCatalog, TRelations extends readonly Extract<keyof TRelationCatalog, string>[] = readonly []>', "arguments": "<TRecord, TRelationCatalog, TRelations>" },
581
+ SendBulkNotificationsHandle: { "parameters": "", "arguments": "" },
582
+ SendBulkNotificationsInput: { "parameters": "", "arguments": "" },
583
+ SendEmailHandle: { "parameters": "", "arguments": "" },
584
+ SendEmailInput: { "parameters": "", "arguments": "" },
585
+ SendEmailResponse: { "parameters": "", "arguments": "" },
586
+ SendNotificationHandle: { "parameters": "", "arguments": "" },
587
+ SendNotificationInput: { "parameters": "", "arguments": "" },
588
+ SendNotificationResponse: { "parameters": "", "arguments": "" },
589
+ SendResolvedNotificationHandle: { "parameters": "", "arguments": "" },
590
+ SendResolvedNotificationInput: { "parameters": "", "arguments": "" },
591
+ SendScheduledNotificationNowHandle: { "parameters": "", "arguments": "" },
592
+ SeriesChangeResult: { "parameters": "", "arguments": "" },
593
+ SeriesOccurrenceMeta: { "parameters": "", "arguments": "" },
594
+ SlotSearchGroup: { "parameters": "", "arguments": "" },
595
+ SmsMessage: { "parameters": "", "arguments": "" },
596
+ SmsMessageStatus: { "parameters": "", "arguments": "" },
597
+ SubscriptionChangePreview: { "parameters": "", "arguments": "" },
598
+ SubscriptionChangePreviewHandle: { "parameters": "", "arguments": "" },
599
+ SubscriptionChangePreviewOptions: { "parameters": "", "arguments": "" },
600
+ SubscriptionPreview: { "parameters": "", "arguments": "" },
601
+ SubscriptionPreviewHandle: { "parameters": "", "arguments": "" },
602
+ SubscriptionPreviewOptions: { "parameters": "", "arguments": "" },
603
+ SystemSettingsPage: { "parameters": "", "arguments": "" },
604
+ SystemSettingsPageEntry: { "parameters": "", "arguments": "" },
605
+ TextGenerateOptions: { "parameters": "", "arguments": "" },
606
+ TimeAddUnit: { "parameters": "", "arguments": "" },
607
+ TimeBoundaryUnit: { "parameters": "", "arguments": "" },
608
+ TiptapParseInput: { "parameters": "", "arguments": "" },
609
+ TwoFactorBackupCodesHandle: { "parameters": "", "arguments": "" },
610
+ TwoFactorBackupCodesState: { "parameters": "", "arguments": "" },
611
+ TwoFactorChallengeHandle: { "parameters": "", "arguments": "" },
612
+ TwoFactorChallengeState: { "parameters": "", "arguments": "" },
613
+ TwoFactorFlow: { "parameters": "", "arguments": "" },
614
+ TwoFactorMode: { "parameters": "", "arguments": "" },
615
+ TwoFactorPending: { "parameters": "", "arguments": "" },
616
+ TwoFactorRequestState: { "parameters": "", "arguments": "" },
617
+ TwoFactorSetupHandle: { "parameters": "", "arguments": "" },
618
+ TwoFactorSetupState: { "parameters": "", "arguments": "" },
619
+ TwoFactorSetupStep: { "parameters": "", "arguments": "" },
620
+ UpcomingNotification: { "parameters": "", "arguments": "" },
621
+ UpcomingNotifications: { "parameters": "", "arguments": "" },
622
+ UpcomingNotificationsOptions: { "parameters": "", "arguments": "" },
623
+ UpdateRecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
624
+ UpdateScheduledNotificationHandle: { "parameters": "", "arguments": "" },
625
+ UpdateScheduledNotificationInput: { "parameters": "", "arguments": "" },
626
+ UseAnalyticsOptions: { "parameters": "", "arguments": "" },
627
+ UseApiOptions: { "parameters": "<TData = any>", "arguments": "<TData>" },
628
+ UseCalendarConnectionsOptions: { "parameters": "", "arguments": "" },
629
+ UseCreateRecordOptions: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
630
+ UseCreateResourceRecordFormResult: { "parameters": "", "arguments": "" },
631
+ UseForm: { "parameters": "", "arguments": "" },
632
+ UseInfiniteRecordsOptions: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
633
+ UseNotificationConsentOptions: { "parameters": "", "arguments": "" },
634
+ UsePollOptions: { "parameters": "", "arguments": "" },
635
+ UseRecordOptions: { "parameters": '<TRelations extends readonly string[] = readonly string[], TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRelations, TRecord>" },
636
+ UseRecordScheduleTimelinesOptions: { "parameters": "", "arguments": "" },
637
+ UseRecordsOptions: { "parameters": '<TRelations extends readonly string[] = readonly string[], TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRelations, TRecord>" },
638
+ UseSaveNotificationTemplateOptions: { "parameters": "", "arguments": "" },
639
+ UseSendEmailOptions: { "parameters": "", "arguments": "" },
640
+ UseSendNotificationOptions: { "parameters": "", "arguments": "" },
641
+ UseTwoFactorOptions: { "parameters": "", "arguments": "" },
642
+ UseUpdateRecordOptions: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
643
+ UseUpdateResourceRecordFormResult: { "parameters": "", "arguments": "" },
644
+ UseWorkflowActionResult: { "parameters": "", "arguments": "" },
645
+ UseWorkflowFormResult: { "parameters": "", "arguments": "" },
646
+ UseWorkspaceFieldsFormOptions: { "parameters": "", "arguments": "" },
647
+ UseWorkspaceFieldsFormResult: { "parameters": "", "arguments": "" },
648
+ Utils: { "parameters": "", "arguments": "" },
649
+ WorkflowEvent: { "parameters": "", "arguments": "" },
650
+ WorkflowForm: { "parameters": "", "arguments": "" },
651
+ WorkflowInput: { "parameters": "", "arguments": "" },
652
+ WorkflowInputProps: { "parameters": "", "arguments": "" },
653
+ WorkflowInputSettings: { "parameters": "", "arguments": "" },
654
+ WorkflowInputsProps: { "parameters": "", "arguments": "" },
655
+ WorkflowOutput: { "parameters": "", "arguments": "" },
656
+ WorkflowPendingResponse: { "parameters": "", "arguments": "" },
657
+ WorkflowReference: { "parameters": "", "arguments": "" },
658
+ WorkflowResponse: { "parameters": "", "arguments": "" },
659
+ WorkflowRouteSettings: { "parameters": "", "arguments": "" },
660
+ WorkflowTarget: { "parameters": "", "arguments": "" },
661
+ Workspace: { "parameters": "", "arguments": "" },
662
+ WorkspaceField: { "parameters": "", "arguments": "" },
663
+ WorkspaceFields: { "parameters": "", "arguments": "" },
664
+ WorkspaceFieldsForm: { "parameters": "", "arguments": "" },
665
+ WorkspaceRecord: { "parameters": "", "arguments": "" },
666
+ WorkspaceValues: { "parameters": "", "arguments": "" }
667
+ };
668
+
669
+ // app/pages/resources/js/pageRuntime/sdk/pageTypeCheckConfig.ts
670
+ var AMBIENT_SHIM = `
671
+ declare namespace React {
672
+ type ReactNode = RenderableChild;
673
+ type ReactElement = any;
674
+ type ComponentType<P = any> = (props: P) => any;
675
+ type FC<P = any> = (props: P & { children?: RenderableChild }) => any;
676
+ type PropsWithChildren<P = unknown> = P & { children?: RenderableChild };
677
+ type CSSProperties = { [property: string]: any };
678
+ type RefObject<T = any> = { current: T };
679
+ type MutableRefObject<T = any> = { current: T };
680
+ type Ref<T = any> = ((instance: T | null) => void) | RefObject<T | null> | null;
681
+ type Dispatch<A = any> = (value: A) => void;
682
+ type SetStateAction<S = any> = S | ((previousState: S) => S);
683
+ type DependencyList = readonly unknown[];
684
+ type ChangeEvent<T = any> = any;
685
+ type FormEvent<T = any> = any;
686
+ type MouseEvent<T = any> = any;
687
+ type KeyboardEvent<T = any> = any;
688
+ type FocusEvent<T = any> = any;
689
+ }
690
+ interface DiagonalReactGlobal {
691
+ useState(initialState: null): [any, React.Dispatch<React.SetStateAction<any>>];
692
+ useState(initialState: never[]): [any[], React.Dispatch<React.SetStateAction<any[]>>];
693
+ useState<S>(initialState: S | (() => S)): [S, React.Dispatch<React.SetStateAction<S>>];
694
+ useState<S = undefined>(): [S | undefined, React.Dispatch<React.SetStateAction<S | undefined>>];
695
+ useEffect(effect: () => any, deps?: React.DependencyList): void;
696
+ useLayoutEffect(effect: () => any, deps?: React.DependencyList): void;
697
+ useMemo<T>(factory: () => T, deps?: React.DependencyList): T;
698
+ useCallback<T extends (...args: any[]) => any>(callback: T, deps?: React.DependencyList): T;
699
+ useRef<T>(initialValue: T): React.RefObject<T>;
700
+ useRef<T>(initialValue: T | null): React.RefObject<T | null>;
701
+ useRef<T>(initialValue: T | undefined): React.RefObject<T | undefined>;
702
+ useReducer<S, A>(reducer: (state: S, action: A) => S, initialState: S): [S, React.Dispatch<A>];
703
+ useReducer<S, A, I>(
704
+ reducer: (state: S, action: A) => S,
705
+ initializerArg: I,
706
+ initializer: (arg: I) => S
707
+ ): [S, React.Dispatch<A>];
708
+ useContext<T = any>(context: unknown): T;
709
+ useId(): string;
710
+ useTransition(): [boolean, (callback: () => void) => void];
711
+ useDeferredValue<T>(value: T): T;
712
+ memo<T>(component: T, arePropsEqual?: (previous: any, next: any) => boolean): T;
713
+ forwardRef<T = any, P = any>(
714
+ render: (props: P, ref: React.Ref<T>) => any
715
+ ): (props: P & { ref?: React.Ref<T> }) => any;
716
+ [member: string]: any;
717
+ }
718
+ declare const React: DiagonalReactGlobal;
719
+ declare namespace JSX {
720
+ type Element = any;
721
+ interface ElementChildrenAttribute { children: {}; }
722
+ interface IntrinsicAttributes { key?: any; }
723
+ interface IntrinsicElements { [name: string]: { [attribute: string]: any; children?: RenderableChild }; }
724
+ }
725
+ type RenderableChild =
726
+ | string
727
+ | number
728
+ | bigint
729
+ | boolean
730
+ | null
731
+ | undefined
732
+ | Iterable<RenderableChild>
733
+ | Promise<RenderableChild>;
734
+ `;
735
+ var SDK_INTERNAL_MODULE = "diagonal:sdk-internal";
736
+ var TYPE_CHECK_LIB = [
737
+ "lib.es2023.d.ts",
738
+ "lib.dom.d.ts",
739
+ "lib.dom.iterable.d.ts"
740
+ ];
741
+ var TYPE_CHECK_FLAGS = {
742
+ strict: false,
743
+ strictNullChecks: true,
744
+ noImplicitAny: true
745
+ };
746
+ var NON_IMPLICIT_ANY_CODES = /* @__PURE__ */ new Set([
747
+ 7027,
748
+ 7028,
749
+ 7029,
750
+ 7030,
751
+ 7036,
752
+ 7038,
753
+ 7041,
754
+ 7042,
755
+ 7059,
756
+ 7060,
757
+ 7061
758
+ ]);
759
+ function isImplicitAnyDiagnostic(code) {
760
+ return code !== void 0 && code >= 7e3 && code <= 7099 && !NON_IMPLICIT_ANY_CODES.has(code);
761
+ }
762
+
763
+ // scripts/lib/runtime-build/module-imports.mjs
764
+ import { existsSync, readdirSync, realpathSync, statSync } from "node:fs";
765
+ import { builtinModules } from "node:module";
766
+ import { basename, dirname, join, posix, relative } from "node:path";
767
+ var APP_PREFIX = "@app/";
768
+ var AUTHORING_MODULE = "@diagonal-hq/cli";
769
+ var PAGES_SDK_MODULE = PAGES_SDK_PACKAGE;
770
+ var RENAMED_MODULES = /* @__PURE__ */ new Map([["@diagonal/pages", PAGES_SDK_MODULE]]);
771
+ function isAuthoringModule(specifier) {
772
+ return specifier === AUTHORING_MODULE;
773
+ }
774
+ var HOST_MODULES = /* @__PURE__ */ new Set([
775
+ "react",
776
+ "react/jsx-runtime",
777
+ "react-dom",
778
+ "react-dom/client",
779
+ "@inertiajs/react",
780
+ PAGES_SDK_MODULE,
781
+ AUTHORING_MODULE
782
+ ]);
783
+ var SOURCE_EXTENSIONS = [".ts", ".tsx", ".js", ".jsx"];
784
+ var BINARY_EXTENSIONS = /* @__PURE__ */ new Set([
785
+ ".apng",
786
+ ".avif",
787
+ ".bmp",
788
+ ".gif",
789
+ ".heic",
790
+ ".heif",
791
+ ".ico",
792
+ ".jpeg",
793
+ ".jpg",
794
+ ".jxl",
795
+ ".png",
796
+ ".svg",
797
+ ".svgz",
798
+ ".tif",
799
+ ".tiff",
800
+ ".webp",
801
+ ".cur",
802
+ ".m4v",
803
+ ".mov",
804
+ ".mp4",
805
+ ".mpeg",
806
+ ".mpg",
807
+ ".ogv",
808
+ ".webm",
809
+ ".aac",
810
+ ".flac",
811
+ ".m4a",
812
+ ".mp3",
813
+ ".oga",
814
+ ".ogg",
815
+ ".opus",
816
+ ".wav",
817
+ ".weba",
818
+ ".pdf",
819
+ ".eot",
820
+ ".otf",
821
+ ".ttf",
822
+ ".woff",
823
+ ".woff2"
824
+ ]);
825
+ var BINARY_FILE_MESSAGE = "Binary files cannot be in the repository. Add it as an Application Asset and use Assets.<Name>.url from @app/generated/assets in code or url(asset:<key>) in CSS. For an icon, use the Icon component from @diagonal-hq/pages or an SVG written as a TSX component";
826
+ var NODE_MODULES = new Set(builtinModules.flatMap((name) => [name, `node:${name}`]));
827
+ var SERVER_PACKAGES = /* @__PURE__ */ new Set(["@diagonal/workflow", "@diagonal/workflow/workspace"]);
828
+ var SERVER_PACKAGE_NAMES = /* @__PURE__ */ new Set(["@diagonal-hq/workflows"]);
829
+ var IMPORT_RULES = {
830
+ hostModules: [...HOST_MODULES],
831
+ nodeModules: [...NODE_MODULES],
832
+ renamedModules: Object.fromEntries(RENAMED_MODULES),
833
+ serverModules: [...SERVER_PACKAGES],
834
+ serverPackages: [...SERVER_PACKAGE_NAMES],
835
+ binaryExtensions: [...BINARY_EXTENSIONS],
836
+ sourceExtensions: SOURCE_EXTENSIONS,
837
+ binaryFileMessage: BINARY_FILE_MESSAGE,
838
+ pagesSdkModule: PAGES_SDK_MODULE,
839
+ pagesSdkExports: Object.keys(PAGE_SDK_EXPORTS),
840
+ pagesSdkTypes: Object.keys(PAGE_SDK_TYPES)
841
+ };
842
+ function importKind(specifier) {
843
+ const bare = specifier.split("?")[0];
844
+ if (specifier.includes("?") || bare.endsWith(".wasm") || /^[a-z][a-z0-9+.-]*:\/\//i.test(specifier)) {
845
+ return "unsupported";
846
+ }
847
+ if (HOST_MODULES.has(specifier)) {
848
+ return "host";
849
+ }
850
+ if (NODE_MODULES.has(specifier) || NODE_MODULES.has(specifier.split("/")[0])) {
851
+ return "node";
852
+ }
853
+ if (RENAMED_MODULES.has(specifier)) {
854
+ return "renamed";
855
+ }
856
+ if (SERVER_PACKAGES.has(specifier) || SERVER_PACKAGE_NAMES.has(packageName(specifier))) {
857
+ return "server";
858
+ }
859
+ if (specifier.startsWith("@/") || specifier.startsWith("#")) {
860
+ return "alias";
861
+ }
862
+ const local = specifier.startsWith(APP_PREFIX) || isRelativeSpecifier(specifier);
863
+ if (!local) {
864
+ return "package";
865
+ }
866
+ if (bare.endsWith(".module.css")) {
867
+ return "style_module";
868
+ }
869
+ if (bare.endsWith(".css")) {
870
+ return "style";
871
+ }
872
+ return BINARY_EXTENSIONS.has(posix.extname(bare).toLowerCase()) ? "binary" : "app";
873
+ }
874
+ function isRelativeSpecifier(specifier) {
875
+ return specifier === "." || specifier === ".." || specifier.startsWith("./") || specifier.startsWith("../");
876
+ }
877
+ function unsupportedImportMessage(specifier, kind, suggestion = null) {
878
+ switch (kind) {
879
+ case "alias":
880
+ return `"${specifier}" is not supported. Import a workspace file by its relative path, such as "${suggestion ?? "../components/Card"}", or from the workspace root with @app/`;
881
+ case "binary":
882
+ return `"${specifier}" is a binary file. ${BINARY_FILE_MESSAGE}`;
883
+ case "node":
884
+ return `"${specifier}" is a Node.js module. Pages run in the browser, so they cannot import it`;
885
+ case "renamed":
886
+ return `"${specifier}" is now "${RENAMED_MODULES.get(specifier)}". Import from "${RENAMED_MODULES.get(specifier)}"`;
887
+ case "server":
888
+ return `"${specifier}" runs in workflows only. A page cannot import it`;
889
+ case "unsupported":
890
+ return `"${specifier}" is not supported. Pages cannot import URLs, query suffixes such as ?worker or ?url, or WebAssembly`;
891
+ default:
892
+ return null;
893
+ }
894
+ }
895
+ function packageName(specifier) {
896
+ const parts = specifier.split("/");
897
+ return specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
898
+ }
899
+ var TEST_SOURCE_PREFIX = "tests/";
900
+ function testSourceImportMessage(from, target) {
901
+ if (!target.startsWith(TEST_SOURCE_PREFIX) || from.startsWith(TEST_SOURCE_PREFIX)) {
902
+ return null;
903
+ }
904
+ return `${from} imports ${target}. Only a file of tests/ can import a file of tests/. Move the shared code to another folder, such as lib/`;
905
+ }
906
+ function resolveLocalSpecifier(root, from, specifier) {
907
+ return localCandidates(from, specifier).find((candidate) => isExactFile(join(root, candidate))) ?? null;
908
+ }
909
+ function localCandidates(from, specifier) {
910
+ const request = specifier.split("?")[0];
911
+ const joined = request.startsWith(APP_PREFIX) ? request.slice(APP_PREFIX.length) : posix.join(posix.dirname(from), request);
912
+ const path = posix.normalize(joined).replace(/\/+$/, "");
913
+ if (path === "" || path === "." || path.startsWith("../") || path === ".." || path.startsWith("/")) {
914
+ return [];
915
+ }
916
+ return [
917
+ path,
918
+ ...SOURCE_EXTENSIONS.map((extension) => `${path}${extension}`),
919
+ ...SOURCE_EXTENSIONS.map((extension) => `${path}/index${extension}`)
920
+ ];
921
+ }
922
+ function relativeSpecifier(from, path) {
923
+ const extension = SOURCE_EXTENSIONS.find((candidate) => path.endsWith(candidate));
924
+ const target = extension === void 0 ? path : path.slice(0, -extension.length);
925
+ const relativePath = posix.relative(posix.dirname(from), target);
926
+ return relativePath.startsWith("../") ? relativePath : `./${relativePath}`;
927
+ }
928
+ function suggestedRelativeSpecifier(root, from, specifier) {
929
+ const tail = specifier.split("?")[0].replace(/^@\//, "").replace(/^#[^/]*\//, "").replace(new RegExp(`^${APP_PREFIX}`), "").replace(/^(\.\.?\/)+/, "");
930
+ if (tail === "" || tail.startsWith("#")) {
931
+ return null;
932
+ }
933
+ const path = resolveLocalSpecifier(root, "", tail);
934
+ return path === null ? null : relativeSpecifier(from, path);
935
+ }
936
+ function isExactFile(path) {
937
+ return existsSync(path) && statSync(path).isFile() && readdirSync(dirname(path)).includes(basename(path));
938
+ }
939
+ function moduleSpecifiers(ast) {
940
+ const found = [];
941
+ for (const statement of ast.program.body) {
942
+ const isImport = statement.type === "ImportDeclaration";
943
+ const isReExport = (statement.type === "ExportAllDeclaration" || statement.type === "ExportNamedDeclaration") && statement.source !== null && statement.source !== void 0;
944
+ if (isImport || isReExport) {
945
+ const typeOnly = statement.importKind === "type" || statement.exportKind === "type";
946
+ found.push({ specifier: statement.source.value, node: statement.source, statement, dynamic: false, typeOnly });
947
+ }
948
+ }
949
+ const pending = [ast.program];
950
+ while (pending.length > 0) {
951
+ const node = pending.pop();
952
+ if (node === null || typeof node !== "object") {
953
+ continue;
954
+ }
955
+ const isDynamicImport = node.type === "ImportExpression" || node.type === "CallExpression" && node.callee.type === "Import";
956
+ if (isDynamicImport) {
957
+ const argument = node.type === "ImportExpression" ? node.source : node.arguments[0];
958
+ const literal = argument?.type === "StringLiteral" ? argument.value : null;
959
+ found.push({ specifier: literal, node: argument ?? node, call: node, statement: null, dynamic: true, typeOnly: false });
960
+ }
961
+ for (const [key, value] of Object.entries(node)) {
962
+ if (key === "loc" || key === "start" || key === "end" || key === "extra") {
963
+ continue;
964
+ }
965
+ if (Array.isArray(value)) {
966
+ pending.push(...value);
967
+ } else if (value !== null && typeof value === "object" && typeof value.type === "string") {
968
+ pending.push(value);
969
+ }
970
+ }
971
+ }
972
+ return found;
973
+ }
974
+ function requestedNames(statement) {
975
+ if (statement === null || statement.importKind === "type" || statement.exportKind === "type") {
976
+ return [];
977
+ }
978
+ if (statement.type === "ExportAllDeclaration") {
979
+ return ["*"];
980
+ }
981
+ if (statement.type === "ExportNamedDeclaration") {
982
+ return (statement.specifiers ?? []).filter((specifier) => specifier.exportKind !== "type").map(
983
+ (specifier) => specifier.type === "ExportNamespaceSpecifier" ? "*" : specifier.local.name ?? specifier.local.value
984
+ );
985
+ }
986
+ if (statement.type !== "ImportDeclaration") {
987
+ return [];
988
+ }
989
+ return statement.specifiers.flatMap((specifier) => {
990
+ if (specifier.type === "ImportDefaultSpecifier") {
991
+ return ["default"];
992
+ }
993
+ if (specifier.type === "ImportNamespaceSpecifier") {
994
+ return ["*"];
995
+ }
996
+ if (specifier.type === "ImportSpecifier" && specifier.importKind !== "type") {
997
+ return [specifier.imported.name ?? specifier.imported.value];
998
+ }
999
+ return [];
1000
+ });
1001
+ }
1002
+
1003
+ // scripts/lib/runtime-build/resource-paths.mjs
1004
+ var CHILD_KINDS = Object.freeze({
1005
+ fields: "resource_field",
1006
+ policies: "resource_policy",
1007
+ records: "resource_record"
1008
+ });
1009
+ var CHILD_PATH = /^resources\/([^/]+)\/(fields|policies|records)\/([^/]+)\.ts$/;
1010
+ function resourceChildOf(path) {
1011
+ const match = CHILD_PATH.exec(withoutDevInfix(path));
1012
+ if (match === null) {
1013
+ return null;
1014
+ }
1015
+ const [, folder, directory, key] = match;
1016
+ return { folder, kind: CHILD_KINDS[directory], key, definitionPath: `resources/${folder}/resource.ts` };
1017
+ }
1018
+
1019
+ export {
1020
+ package_rules_default,
1021
+ isDevPath,
1022
+ withoutDevInfix,
1023
+ diagnostic,
1024
+ diagnosticAt,
1025
+ hasErrors,
1026
+ sortDiagnostics,
1027
+ PAGES_SDK_PACKAGE,
1028
+ PAGE_SDK_FILE_TYPED_EXPORTS,
1029
+ PAGE_SDK_EXPORTS,
1030
+ PAGE_SDK_TYPES,
1031
+ AMBIENT_SHIM,
1032
+ SDK_INTERNAL_MODULE,
1033
+ TYPE_CHECK_LIB,
1034
+ TYPE_CHECK_FLAGS,
1035
+ isImplicitAnyDiagnostic,
1036
+ APP_PREFIX,
1037
+ AUTHORING_MODULE,
1038
+ PAGES_SDK_MODULE,
1039
+ isAuthoringModule,
1040
+ SOURCE_EXTENSIONS,
1041
+ BINARY_EXTENSIONS,
1042
+ BINARY_FILE_MESSAGE,
1043
+ IMPORT_RULES,
1044
+ importKind,
1045
+ unsupportedImportMessage,
1046
+ testSourceImportMessage,
1047
+ resolveLocalSpecifier,
1048
+ suggestedRelativeSpecifier,
1049
+ moduleSpecifiers,
1050
+ requestedNames,
1051
+ resourceChildOf
1052
+ };