@redonvn/redai-backend-api-sdk 0.1.17 → 0.1.20

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 (153) hide show
  1. package/dist/core/auth.d.ts +19 -0
  2. package/dist/core/auth.js +47 -0
  3. package/dist/core/http-client.d.ts +9 -0
  4. package/dist/core/http-client.js +41 -0
  5. package/dist/core/types.d.ts +19 -0
  6. package/dist/core/types.js +2 -0
  7. package/{src/generated/dynamic-table/index.ts → dist/generated/dynamic-table/index.d.ts} +0 -1
  8. package/dist/generated/dynamic-table/index.js +19 -0
  9. package/dist/generated/dynamic-table/services/api-docs.service.d.ts +9 -0
  10. package/dist/generated/dynamic-table/services/api-docs.service.js +36 -0
  11. package/dist/generated/dynamic-table/services/api-tokens.service.d.ts +10 -0
  12. package/dist/generated/dynamic-table/services/api-tokens.service.js +45 -0
  13. package/dist/generated/dynamic-table/services/attachments-secure.service.d.ts +8 -0
  14. package/dist/generated/dynamic-table/services/attachments-secure.service.js +27 -0
  15. package/dist/generated/dynamic-table/services/attachments.service.d.ts +10 -0
  16. package/dist/generated/dynamic-table/services/attachments.service.js +45 -0
  17. package/dist/generated/dynamic-table/services/base-members.service.d.ts +10 -0
  18. package/dist/generated/dynamic-table/services/base-members.service.js +45 -0
  19. package/dist/generated/dynamic-table/services/bases.service.d.ts +11 -0
  20. package/dist/generated/dynamic-table/services/bases.service.js +54 -0
  21. package/dist/generated/dynamic-table/services/caches.service.d.ts +9 -0
  22. package/dist/generated/dynamic-table/services/caches.service.js +36 -0
  23. package/dist/generated/dynamic-table/services/calendar-data.service.d.ts +14 -0
  24. package/dist/generated/dynamic-table/services/calendar-data.service.js +36 -0
  25. package/dist/generated/dynamic-table/services/calendars.service.d.ts +9 -0
  26. package/dist/generated/dynamic-table/services/calendars.service.js +36 -0
  27. package/dist/generated/dynamic-table/services/columns.service.d.ts +17 -0
  28. package/dist/generated/dynamic-table/services/columns.service.js +81 -0
  29. package/dist/generated/dynamic-table/services/command-palette.service.d.ts +9 -0
  30. package/dist/generated/dynamic-table/services/command-palette.service.js +36 -0
  31. package/dist/generated/dynamic-table/services/comments.service.d.ts +13 -0
  32. package/dist/generated/dynamic-table/services/comments.service.js +72 -0
  33. package/dist/generated/dynamic-table/services/data-imports.service.d.ts +15 -0
  34. package/dist/generated/dynamic-table/services/data-imports.service.js +63 -0
  35. package/dist/generated/dynamic-table/services/data-table.service.d.ts +33 -0
  36. package/dist/generated/dynamic-table/services/data-table.service.js +162 -0
  37. package/dist/generated/dynamic-table/services/dynamic-table-auth.service.d.ts +7 -0
  38. package/dist/generated/dynamic-table/services/dynamic-table-auth.service.js +18 -0
  39. package/dist/generated/dynamic-table/services/filters.service.d.ts +12 -0
  40. package/dist/generated/dynamic-table/services/filters.service.js +63 -0
  41. package/dist/generated/dynamic-table/services/forms.service.d.ts +9 -0
  42. package/dist/generated/dynamic-table/services/forms.service.js +36 -0
  43. package/dist/generated/dynamic-table/services/galleries.service.d.ts +9 -0
  44. package/dist/generated/dynamic-table/services/galleries.service.js +36 -0
  45. package/dist/generated/dynamic-table/services/grids.service.d.ts +8 -0
  46. package/dist/generated/dynamic-table/services/grids.service.js +27 -0
  47. package/dist/generated/dynamic-table/services/hooks.service.d.ts +18 -0
  48. package/dist/generated/dynamic-table/services/hooks.service.js +117 -0
  49. package/{src/generated/dynamic-table/services/index.ts → dist/generated/dynamic-table/services/index.d.ts} +4 -1
  50. package/dist/generated/dynamic-table/services/index.js +84 -0
  51. package/dist/generated/dynamic-table/services/internal.service.d.ts +9 -0
  52. package/dist/generated/dynamic-table/services/internal.service.js +36 -0
  53. package/dist/generated/dynamic-table/services/jobs-meta.service.d.ts +16 -0
  54. package/dist/generated/dynamic-table/services/jobs-meta.service.js +45 -0
  55. package/dist/generated/dynamic-table/services/jobs.service.d.ts +7 -0
  56. package/dist/generated/dynamic-table/services/jobs.service.js +18 -0
  57. package/dist/generated/dynamic-table/services/kanban-data.service.d.ts +7 -0
  58. package/dist/generated/dynamic-table/services/kanban-data.service.js +18 -0
  59. package/dist/generated/dynamic-table/services/kanbans.service.d.ts +9 -0
  60. package/dist/generated/dynamic-table/services/kanbans.service.js +36 -0
  61. package/dist/generated/dynamic-table/services/maps.service.d.ts +9 -0
  62. package/dist/generated/dynamic-table/services/maps.service.js +36 -0
  63. package/dist/generated/dynamic-table/services/row-color.service.d.ts +12 -0
  64. package/dist/generated/dynamic-table/services/row-color.service.js +63 -0
  65. package/dist/generated/dynamic-table/services/sorts.service.d.ts +12 -0
  66. package/dist/generated/dynamic-table/services/sorts.service.js +63 -0
  67. package/dist/generated/dynamic-table/services/sources.service.d.ts +11 -0
  68. package/dist/generated/dynamic-table/services/sources.service.js +54 -0
  69. package/dist/generated/dynamic-table/services/tables.service.d.ts +12 -0
  70. package/dist/generated/dynamic-table/services/tables.service.js +63 -0
  71. package/dist/generated/dynamic-table/services/user-ui-preferences.service.d.ts +8 -0
  72. package/dist/generated/dynamic-table/services/user-ui-preferences.service.js +27 -0
  73. package/dist/generated/dynamic-table/services/utils.service.d.ts +10 -0
  74. package/dist/generated/dynamic-table/services/utils.service.js +45 -0
  75. package/dist/generated/dynamic-table/services/view-columns.service.d.ts +13 -0
  76. package/dist/generated/dynamic-table/services/view-columns.service.js +72 -0
  77. package/dist/generated/dynamic-table/services/views.service.d.ts +15 -0
  78. package/dist/generated/dynamic-table/services/views.service.js +90 -0
  79. package/dist/generated/dynamic-table/services/workspace-invite-link-settings.service.d.ts +9 -0
  80. package/dist/generated/dynamic-table/services/workspace-invite-link-settings.service.js +36 -0
  81. package/dist/generated/dynamic-table/services/workspace-invite-links.service.d.ts +10 -0
  82. package/dist/generated/dynamic-table/services/workspace-invite-links.service.js +45 -0
  83. package/dist/generated/dynamic-table/services/workspace-invites.service.d.ts +7 -0
  84. package/dist/generated/dynamic-table/services/workspace-invites.service.js +18 -0
  85. package/dist/generated/dynamic-table/services/workspace-join-requests.service.d.ts +9 -0
  86. package/dist/generated/dynamic-table/services/workspace-join-requests.service.js +36 -0
  87. package/dist/generated/dynamic-table/services/workspace-members.service.d.ts +10 -0
  88. package/dist/generated/dynamic-table/services/workspace-members.service.js +45 -0
  89. package/dist/generated/dynamic-table/services/workspaces.service.d.ts +12 -0
  90. package/dist/generated/dynamic-table/services/workspaces.service.js +63 -0
  91. package/dist/generated/dynamic-table/types.d.ts +2539 -0
  92. package/dist/generated/dynamic-table/types.js +488 -0
  93. package/{src/generated/index.ts → dist/generated/index.d.ts} +0 -1
  94. package/dist/generated/index.js +43 -0
  95. package/{src/generated/services/index.ts → dist/generated/services/index.d.ts} +0 -1
  96. package/dist/generated/services/index.js +18 -0
  97. package/{src/generated/types.ts → dist/generated/types.d.ts} +0 -1
  98. package/dist/generated/types.js +18 -0
  99. package/dist/index.d.ts +58 -0
  100. package/dist/index.js +98 -0
  101. package/package.json +19 -13
  102. package/.npm-cache/_cacache/content-v2/sha512/86/70/40787d3ad4c6bb74f182be681858c7e22dc44bd5679779bfe4f3aa562f18810e6b8e80144a539402fe397be24c37e2555f351176e49d8bd1ddff114d5e04 +0 -0
  103. package/.npm-cache/_cacache/tmp/6303939d +0 -0
  104. package/.npm-cache/_update-notifier-last-checked +0 -0
  105. package/src/core/auth.ts +0 -62
  106. package/src/core/http-client.ts +0 -41
  107. package/src/core/types.ts +0 -23
  108. package/src/generated/dynamic-table/services/api-docs.service.ts +0 -42
  109. package/src/generated/dynamic-table/services/api-tokens.service.ts +0 -53
  110. package/src/generated/dynamic-table/services/attachments-secure.service.ts +0 -31
  111. package/src/generated/dynamic-table/services/attachments.service.ts +0 -53
  112. package/src/generated/dynamic-table/services/base-members.service.ts +0 -55
  113. package/src/generated/dynamic-table/services/bases.service.ts +0 -66
  114. package/src/generated/dynamic-table/services/caches.service.ts +0 -42
  115. package/src/generated/dynamic-table/services/calendar-data.service.ts +0 -44
  116. package/src/generated/dynamic-table/services/calendars.service.ts +0 -45
  117. package/src/generated/dynamic-table/services/columns.service.ts +0 -98
  118. package/src/generated/dynamic-table/services/command-palette.service.ts +0 -42
  119. package/src/generated/dynamic-table/services/data-table.service.ts +0 -199
  120. package/src/generated/dynamic-table/services/dynamic-table-auth.service.ts +0 -21
  121. package/src/generated/dynamic-table/services/filters.service.ts +0 -76
  122. package/src/generated/dynamic-table/services/forms.service.ts +0 -45
  123. package/src/generated/dynamic-table/services/galleries.service.ts +0 -45
  124. package/src/generated/dynamic-table/services/grids.service.ts +0 -33
  125. package/src/generated/dynamic-table/services/hooks.service.ts +0 -145
  126. package/src/generated/dynamic-table/services/internal.service.ts +0 -42
  127. package/src/generated/dynamic-table/services/kanban-data.service.ts +0 -21
  128. package/src/generated/dynamic-table/services/kanbans.service.ts +0 -45
  129. package/src/generated/dynamic-table/services/maps.service.ts +0 -45
  130. package/src/generated/dynamic-table/services/row-color.service.ts +0 -77
  131. package/src/generated/dynamic-table/services/sorts.service.ts +0 -76
  132. package/src/generated/dynamic-table/services/sources.service.ts +0 -66
  133. package/src/generated/dynamic-table/services/tables.service.ts +0 -77
  134. package/src/generated/dynamic-table/services/user-ui-preferences.service.ts +0 -32
  135. package/src/generated/dynamic-table/services/utils.service.ts +0 -53
  136. package/src/generated/dynamic-table/services/view-columns.service.ts +0 -87
  137. package/src/generated/dynamic-table/services/views.service.ts +0 -109
  138. package/src/generated/dynamic-table/services/workspace-invite-link-settings.service.ts +0 -43
  139. package/src/generated/dynamic-table/services/workspace-invite-links.service.ts +0 -55
  140. package/src/generated/dynamic-table/services/workspace-invites.service.ts +0 -21
  141. package/src/generated/dynamic-table/services/workspace-join-requests.service.ts +0 -45
  142. package/src/generated/dynamic-table/services/workspace-members.service.ts +0 -56
  143. package/src/generated/dynamic-table/services/workspaces.service.ts +0 -77
  144. package/src/generated/dynamic-table/types.ts +0 -2326
  145. package/src/index.ts +0 -79
  146. package/tools/.reports/dynamic-table-sdk-report.json +0 -9
  147. package/tools/generate-dynamic-table-sdk.ts +0 -31
  148. package/tools/generate-sdk.ts +0 -13
  149. package/tools/generator/openapi-resolver.ts +0 -77
  150. package/tools/generator/shared.ts +0 -162
  151. package/tools/generator/ts-resolver.ts +0 -439
  152. package/tools/verify-generated.ts +0 -23
  153. package/tsconfig.json +0 -19
@@ -0,0 +1,2539 @@
1
+ export type ApiResponseDto<T = unknown> = import('../../core/types').ApiResponseDto<T>;
2
+ export interface AcceptWorkspaceInviteDto {
3
+ token: string;
4
+ }
5
+ export type AclFilter = FilterPayload | FilterPayload[];
6
+ export interface AddBaseMemberDto {
7
+ userId: number;
8
+ role?: WorkspaceMemberRole;
9
+ }
10
+ export type AddWorkspaceInviteDto = WorkspaceMemberRoleDto & {
11
+ email: string;
12
+ };
13
+ export type ApiTokenPermissions = TokenPermissions;
14
+ export declare enum AppEvents {
15
+ PROJECT_CREATE = "base.create",
16
+ PROJECT_INVITE = "base.invite",
17
+ PROJECT_USER_UPDATE = "base.user.update",
18
+ PROJECT_USER_RESEND_INVITE = "base.user.resend.invite",
19
+ PROJECT_DELETE = "base.delete",
20
+ PROJECT_UPDATE = "base.update",
21
+ PROJECT_CLONE = "base.clone",
22
+ WELCOME = "app.welcome",
23
+ WORKSPACE_USER_INVITE = "workspace.invite",
24
+ WORKSPACE_USER_UPDATE = "workspace.user.update",
25
+ WORKSPACE_USER_DELETE = "workspace.user.delete",
26
+ WORKSPACE_CREATE = "workspace.create",
27
+ WORKSPACE_DELETE = "workspace.delete",
28
+ WORKSPACE_UPDATE = "workspace.update",
29
+ WORKSPACE_UPGRADE_REQUEST = "workspace.upgrade.request",
30
+ USER_SIGNUP = "user.signup",
31
+ USER_SIGNIN = "user.signin",
32
+ USER_INVITE = "user.invite",
33
+ USER_UPDATE = "user.update",
34
+ USER_PASSWORD_RESET = "user.password.reset",
35
+ USER_PASSWORD_CHANGE = "user.password.change",
36
+ USER_PASSWORD_FORGOT = "user.password.forgot",
37
+ USER_DELETE = "user.delete",
38
+ USER_EMAIL_VERIFICATION = "user.email.verification",
39
+ TABLE_CREATE = "table.create",
40
+ TABLE_DELETE = "table.delete",
41
+ TABLE_UPDATE = "table.update",
42
+ VIEW_CREATE = "view.create",
43
+ VIEW_DELETE = "view.delete",
44
+ VIEW_UPDATE = "view.update",
45
+ SHARED_VIEW_CREATE = "shared.view.create",
46
+ SHARED_VIEW_DELETE = "shared.view.delete",
47
+ SHARED_VIEW_UPDATE = "shared.view.update",
48
+ FILTER_CREATE = "filter.create",
49
+ FILTER_DELETE = "filter.delete",
50
+ FILTER_UPDATE = "filter.update",
51
+ SORT_CREATE = "sort.create",
52
+ SORT_DELETE = "sort.delete",
53
+ SORT_UPDATE = "sort.update",
54
+ COLUMN_CREATE = "column.create",
55
+ COLUMN_DELETE = "column.delete",
56
+ COLUMN_UPDATE = "column.update",
57
+ DATA_CREATE = "data.create",
58
+ DATA_DELETE = "data.delete",
59
+ DATA_UPDATE = "data.update",
60
+ ORG_USER_INVITE = "org.user.invite",
61
+ ORG_USER_RESEND_INVITE = "org.user.resend.invite",
62
+ VIEW_COLUMN_CREATE = "view.column.create",
63
+ VIEW_COLUMN_UPDATE = "view.column.update",
64
+ API_TOKEN_CREATE = "api.token.create",
65
+ API_TOKEN_DELETE = "api.token.delete",
66
+ API_TOKEN_UPDATE = "api.token.update",
67
+ IMAGE_UPLOAD = "image.upload",
68
+ FORM_COLUMN_UPDATE = "form.column.update",
69
+ FORM_CREATE = "form.create",
70
+ FORM_UPDATE = "form.update",
71
+ GALLERY_CREATE = "gallery.create",
72
+ GALLERY_UPDATE = "gallery.update",
73
+ MAP_CREATE = "map.create",
74
+ MAP_UPDATE = "map.update",
75
+ MAP_DELETE = "map.delete",
76
+ KANBAN_CREATE = "kanban.create",
77
+ KANBAN_UPDATE = "kanban.update",
78
+ META_DIFF_SYNC = "meta.diff.sync",
79
+ GRID_CREATE = "grid.create",
80
+ GRID_UPDATE = "grid.update",
81
+ GRID_COLUMN_UPDATE = "grid.column.update",
82
+ WEBHOOK_CREATE = "webhook.create",
83
+ WEBHOOK_UPDATE = "webhook.update",
84
+ WEBHOOK_DELETE = "webhook.delete",
85
+ WEBHOOK_TEST = "webhook.test",
86
+ WEBHOOK_TRIGGER = "webhook.trigger",
87
+ UI_ACL_UPDATE = "ui.acl.update",
88
+ ORG_API_TOKEN_CREATE = "org.api.token.create",
89
+ ORG_API_TOKEN_DELETE = "org.api.token.delete",
90
+ ORG_API_TOKEN_UPDATE = "org.api.token.update",
91
+ PLUGIN_TEST = "plugin.test",
92
+ PLUGIN_INSTALL = "plugin.install",
93
+ PLUGIN_UNINSTALL = "plugin.uninstall",
94
+ SYNC_SOURCE_CREATE = "sync.source.create",
95
+ SYNC_SOURCE_UPDATE = "sync.source.update",
96
+ SYNC_SOURCE_DELETE = "sync.source.delete",
97
+ RELATION_DELETE = "relation.delete",
98
+ RELATION_CREATE = "relation.create",
99
+ SHARED_BASE_GENERATE_LINK = "shared.base.generate.link",
100
+ SHARED_BASE_DELETE_LINK = "shared.base.delete.link",
101
+ ATTACHMENT_UPLOAD = "attachment.upload",
102
+ APIS_CREATED = "apis.created",
103
+ EXTENSION_CREATE = "extension.create",
104
+ EXTENSION_UPDATE = "extension.update",
105
+ EXTENSION_DELETE = "extension.delete",
106
+ COMMENT_CREATE = "comment.create",
107
+ COMMENT_DELETE = "comment.delete",
108
+ COMMENT_UPDATE = "comment.update",
109
+ INTEGRATION_DELETE = "integration.delete",
110
+ INTEGRATION_CREATE = "integration.create",
111
+ INTEGRATION_UPDATE = "integration.update",
112
+ ROW_USER_MENTION = "row.user.mention",
113
+ CALENDAR_CREATE = "calendar.create",
114
+ FORM_DUPLICATE = "form.duplicate",
115
+ CALENDAR_UPDATE = "calendar.update",
116
+ CALENDAR_DELETE = "calendar.delete",
117
+ FORM_DELETE = "form.delete",
118
+ SOURCE_CREATE = "source.create",
119
+ SOURCE_UPDATE = "source.update",
120
+ SOURCE_DELETE = "source.delete",
121
+ SHARED_BASE_REVOKE_LINK = "shared.base.revoke.link",
122
+ GRID_DELETE = "grid.delete",
123
+ GRID_DUPLICATE = "grid.duplicate",
124
+ KANBAN_DELETE = "kanban.delete",
125
+ KANBAN_DUPLICATE = "kanban.duplicate",
126
+ GALLERY_DELETE = "gallery.delete",
127
+ GALLERY_DUPLICATE = "gallery.duplicate",
128
+ BASE_DUPLICATE_START = "base.duplicate.start",
129
+ BASE_DUPLICATE_COMPLETE = "base.duplicate.complete",
130
+ BASE_DUPLICATE_FAIL = "base.duplicate.fail",
131
+ TABLE_DUPLICATE_START = "table.duplicate.start",
132
+ TABLE_DUPLICATE_COMPLETE = "table.duplicate.complete",
133
+ TABLE_DUPLICATE_FAIL = "table.duplicate.fail",
134
+ COLUMN_DUPLICATE_START = "column.duplicate.start",
135
+ COLUMN_DUPLICATE_COMPLETE = "column.duplicate.complete",
136
+ COLUMN_DUPLICATE_FAIL = "column.duplicate.fail",
137
+ VIEW_DUPLICATE_START = "view.duplicate.start",
138
+ VIEW_DUPLICATE_COMPLETE = "view.duplicate.complete",
139
+ VIEW_DUPLICATE_FAIL = "view.duplicate.fail",
140
+ USER_SIGNOUT = "user.signout",
141
+ PROJECT_USER_DELETE = "base.user.delete",
142
+ UI_ACL = "model.role.ui.acl",
143
+ SNAPSHOT_CREATE = "snapshot.create",
144
+ SNAPSHOT_DELETE = "snapshot.delete",
145
+ SNAPSHOT_RESTORE = "snapshot.restore",
146
+ DATA_EXPORT = "data.export",
147
+ DATA_IMPORT = "data.import",
148
+ USER_PROFILE_UPDATE = "user.profile.update",
149
+ SCRIPT_CREATE = "script.create",
150
+ SCRIPT_DELETE = "script.delete",
151
+ SCRIPT_UPDATE = "script.update",
152
+ SCRIPT_DUPLICATE = "script.duplicate",
153
+ DASHBOARD_CREATE = "dashboard.create",
154
+ DASHBOARD_UPDATE = "dashboard.update",
155
+ DASHBOARD_DELETE = "dashboard.delete",
156
+ SHARED_DASHBOARD_GENERATE_LINK = "shared.dashboard.generate.link",
157
+ SHARED_DASHBOARD_UPDATE_LINK = "shared.dashboard.update.link",
158
+ SHARED_DASHBOARD_DELETE_LINK = "shared.dashboard.delete.link",
159
+ DASHBOARD_DUPLICATE_START = "dashboard.duplicate.start",
160
+ DASHBOARD_DUPLICATE_COMPLETE = "dashboard.duplicate.complete",
161
+ DASHBOARD_DUPLICATE_FAIL = "dashboard.duplicate.fail",
162
+ WIDGET_CREATE = "widget.create",
163
+ WIDGET_UPDATE = "widget.update",
164
+ WIDGET_DELETE = "widget.delete",
165
+ WIDGET_DUPLICATE = "widget.duplicate",
166
+ PERMISSION_CREATE = "permission.create",
167
+ PERMISSION_UPDATE = "permission.update",
168
+ PERMISSION_DELETE = "permission.delete"
169
+ }
170
+ export interface BaseMemberListResponseDto {
171
+ list: BaseMemberResponseDto[];
172
+ pageInfo: BaseMemberPageInfoDto;
173
+ }
174
+ export interface BaseMemberPageInfoDto {
175
+ totalRows: number;
176
+ page: number;
177
+ pageSize: number;
178
+ isFirstPage: boolean;
179
+ isLastPage: boolean;
180
+ offset: number;
181
+ }
182
+ export interface BaseMemberResponseDto {
183
+ id: string;
184
+ workspaceId: string;
185
+ baseId: string;
186
+ userId: number;
187
+ role: WorkspaceMemberRole;
188
+ invitedBy?: number | null;
189
+ deleted: boolean;
190
+ isActive: boolean;
191
+ createdAt?: number | null;
192
+ updatedAt?: number | null;
193
+ user?: BaseMemberUserDto | null;
194
+ }
195
+ export interface BaseMemberUserDto {
196
+ id: number;
197
+ fullName?: string | null;
198
+ avatar?: string | null;
199
+ }
200
+ export type BaseMeta = {
201
+ icon?: string;
202
+ coverImage?: string;
203
+ color?: string;
204
+ tags?: string[];
205
+ defaultTableId?: string;
206
+ defaultViewId?: string;
207
+ isTemplate?: boolean;
208
+ templateId?: string;
209
+ };
210
+ export interface BaseResponseDto {
211
+ id: string;
212
+ fkWorkspaceId: string | null;
213
+ ownerUserId: number | null;
214
+ title: string;
215
+ prefix: string | null;
216
+ status: BaseStatus | null;
217
+ description: string | null;
218
+ meta: BaseMeta | null;
219
+ color: string | null;
220
+ deleted: boolean | null;
221
+ isMeta: boolean | null;
222
+ order: number | null;
223
+ uuid: string | null;
224
+ roles: string | null;
225
+ fkCustomUrlId: string | null;
226
+ isSnapshot: boolean | null;
227
+ createdAt: number | null;
228
+ updatedAt: number | null;
229
+ }
230
+ export declare enum BaseStatus {
231
+ ACTIVE = "active",
232
+ ARCHIVED = "archived"
233
+ }
234
+ export type BulkColumnCreateDto = CreateColumnDto;
235
+ export interface BulkColumnDeleteDto {
236
+ id: string;
237
+ }
238
+ export interface BulkColumnsDto {
239
+ create?: BulkColumnCreateDto[];
240
+ update?: BulkColumnUpdateDto[];
241
+ delete?: BulkColumnDeleteDto[];
242
+ }
243
+ export type BulkColumnUpdateDto = Partial<CreateColumnDto> & {
244
+ id: string;
245
+ };
246
+ export type BulkDataListDto = LimitOffsetQueryDto & {
247
+ viewId?: string;
248
+ fields?: JsonValue;
249
+ filters?: JsonValue;
250
+ sorts?: JsonValue;
251
+ includeSortFilterFields?: JsonValue;
252
+ };
253
+ export type BulkGroupDto = BulkDataListDto & {
254
+ fieldId: string;
255
+ };
256
+ export type BulkLinkDto = RelationUpdateDto & {
257
+ recordId: string;
258
+ };
259
+ export interface BulkUpdateViewColumnsDto {
260
+ items: UpdateViewColumnItemDto[];
261
+ }
262
+ export type CalendarDataQueryDto = RecordListQueryDto & {
263
+ fromDate: string;
264
+ toDate: string;
265
+ prevDate: string;
266
+ nextDate: string;
267
+ limitOverride?: number;
268
+ };
269
+ export interface CalendarViewConfigDto {
270
+ coverImageFieldId?: string | null;
271
+ meta?: CalendarViewMeta;
272
+ ranges?: CalendarViewRangeDto[];
273
+ }
274
+ export interface CalendarViewDetailResponseDto {
275
+ config: CalendarViewResponseDto;
276
+ columns: ViewColumnResponseDto[];
277
+ }
278
+ export type CalendarViewMeta = ViewMeta & {
279
+ timezone?: string;
280
+ weekStart?: 'sun' | 'mon';
281
+ defaultView?: 'month' | 'week' | 'day';
282
+ colorByFieldId?: string;
283
+ };
284
+ export interface CalendarViewRangeDto {
285
+ fromFieldId: string;
286
+ toFieldId?: string | null;
287
+ }
288
+ export interface CalendarViewResponseDto {
289
+ viewId: string;
290
+ workspaceId: string | null;
291
+ baseId: string | null;
292
+ sourceId: string | null;
293
+ coverImageFieldId: string | null;
294
+ meta: CalendarViewMeta;
295
+ createdAt: number;
296
+ updatedAt: number | null;
297
+ }
298
+ export interface ColumnResponseDto {
299
+ id: string;
300
+ tableId: string;
301
+ workspaceId: string | null;
302
+ baseId: string | null;
303
+ sourceId: string | null;
304
+ name: string;
305
+ keyName: string;
306
+ description: string | null;
307
+ columnName: string | null;
308
+ type: FieldType;
309
+ order: number | null;
310
+ isPrimary: boolean | null;
311
+ isPrimaryValue: boolean | null;
312
+ isRequired: boolean | null;
313
+ isUnique: boolean | null;
314
+ isAutoIncrement: boolean | null;
315
+ isUnsigned: boolean | null;
316
+ isSystem: boolean | null;
317
+ isReadonly: boolean | null;
318
+ isVirtual: boolean | null;
319
+ uiDataType: string | null;
320
+ dataType: string | null;
321
+ numericPrecision: string | null;
322
+ numericScale: string | null;
323
+ characterLength: string | null;
324
+ columnDefault: string | null;
325
+ columnType: string | null;
326
+ columnComment: string | null;
327
+ columnSequenceName: string | null;
328
+ dataTypeExtra: string | null;
329
+ dataTypeExtraPrecision: string | null;
330
+ dataTypeExtraScale: string | null;
331
+ autoUpdated: boolean | null;
332
+ config: FieldConfig | null;
333
+ meta: FieldMeta | null;
334
+ validation: string | null;
335
+ externalColumnName: string | null;
336
+ externalDataType: ExternalDataType | null;
337
+ createdAt: number | null;
338
+ updatedAt: number | null;
339
+ }
340
+ export interface CommandPaletteSearchQueryDto {
341
+ q: string;
342
+ limit?: number;
343
+ workspaceId?: string;
344
+ }
345
+ export interface CommentCountItemResponseDto {
346
+ rowId: string;
347
+ count: number;
348
+ }
349
+ export interface CommentReactionResponseDto {
350
+ id: string;
351
+ fkWorkspaceId: string | null;
352
+ baseId: string | null;
353
+ fkCommentId: string | null;
354
+ fkUserId: string | null;
355
+ reaction: string;
356
+ createdAt: number | null;
357
+ updatedAt: number | null;
358
+ }
359
+ export interface CommentResponseDto {
360
+ id: string;
361
+ fkWorkspaceId: string | null;
362
+ baseId: string | null;
363
+ fkModelId: string | null;
364
+ fkUserId: string | null;
365
+ rowId: string;
366
+ commentText: string;
367
+ isDeleted: boolean | null;
368
+ isEdit: boolean | null;
369
+ createdAt: number | null;
370
+ updatedAt: number | null;
371
+ reactions: CommentReactionResponseDto[];
372
+ }
373
+ export interface CountCommentsQueryDto {
374
+ fkModelId: string;
375
+ ids: string[];
376
+ }
377
+ export interface CreateApiTokenDto {
378
+ fkWorkspaceId?: string | null;
379
+ fkBaseId?: string | null;
380
+ description?: string | null;
381
+ permissions?: ApiTokenPermissions | null;
382
+ expiryAt?: string | null;
383
+ }
384
+ export interface CreateBaseDto {
385
+ title: string;
386
+ fkWorkspaceId?: string | null;
387
+ prefix?: string | null;
388
+ status?: BaseStatus | null;
389
+ description?: string | null;
390
+ meta?: BaseMeta | null;
391
+ color?: string | null;
392
+ deleted?: boolean | null;
393
+ isMeta?: boolean | null;
394
+ order?: number | null;
395
+ uuid?: string | null;
396
+ password?: string | null;
397
+ roles?: string | null;
398
+ fkCustomUrlId?: string | null;
399
+ isSnapshot?: boolean | null;
400
+ ownerUserId?: number | null;
401
+ }
402
+ export type CreateCalendarViewDto = CreateViewDto & {
403
+ coverImageFieldId?: string | null;
404
+ ranges?: CalendarViewRangeDto[];
405
+ };
406
+ export interface CreateColumnDto {
407
+ name: string;
408
+ keyName: string;
409
+ type: FieldType;
410
+ description?: string | null;
411
+ config?: FieldConfig;
412
+ isPrimary?: boolean;
413
+ isRequired?: boolean;
414
+ isUnique?: boolean;
415
+ isAutoIncrement?: boolean;
416
+ isUnsigned?: boolean;
417
+ isSystem?: boolean;
418
+ isReadonly?: boolean;
419
+ isVirtual?: boolean;
420
+ orderIndex?: number;
421
+ uiDataType?: string | null;
422
+ dataType?: string | null;
423
+ meta?: Record<string, JsonValue>;
424
+ externalColumnName?: string | null;
425
+ externalDataType?: ExternalDataType | null;
426
+ }
427
+ export interface CreateCommentDto {
428
+ workspaceId: string;
429
+ baseId?: string;
430
+ fkModelId: string;
431
+ rowId: string;
432
+ commentText: string;
433
+ }
434
+ export interface CreateCommentReactionDto {
435
+ reaction: string;
436
+ }
437
+ export type CreateFormViewDto = CreateViewDto & {
438
+ heading?: string | null;
439
+ subheading?: string | null;
440
+ successMessage?: string | null;
441
+ redirectUrl?: string | null;
442
+ redirectAfterSecs?: number | null;
443
+ email?: string | null;
444
+ submitAnotherForm?: boolean;
445
+ showBlankForm?: boolean;
446
+ };
447
+ export type CreateGalleryViewDto = CreateViewDto & {
448
+ coverImageFieldId?: string | null;
449
+ };
450
+ export type CreateGridViewDto = CreateViewDto & {
451
+ rowHeight?: GridRowHeight | null;
452
+ };
453
+ export interface CreateHookDto {
454
+ title: string;
455
+ description?: string;
456
+ env?: HookEnvironment;
457
+ type?: HookType;
458
+ event: AppEvents;
459
+ operation: HookOperation;
460
+ async?: boolean;
461
+ payload?: unknown;
462
+ url?: string;
463
+ headers?: Record<string, string>;
464
+ secret?: string;
465
+ notification?: HookNotificationDto;
466
+ condition?: boolean;
467
+ retries?: number;
468
+ retryInterval?: number;
469
+ timeout?: number;
470
+ active?: boolean;
471
+ version?: HookVersion;
472
+ triggerFields?: string[];
473
+ }
474
+ export type CreateKanbanViewDto = CreateViewDto & {
475
+ groupFieldId?: string | null;
476
+ coverImageFieldId?: string | null;
477
+ };
478
+ export type CreateMapViewDto = CreateViewDto & {
479
+ geoDataFieldId?: string | null;
480
+ mapType?: MapProviderType | null;
481
+ mapApiKey?: string | null;
482
+ };
483
+ export interface CreatePresignedUrlDto {
484
+ path: string;
485
+ ttlSeconds?: number;
486
+ workspaceId?: string;
487
+ baseId?: string;
488
+ integrationId?: string;
489
+ }
490
+ export interface CreateRowColorConditionDto {
491
+ fieldId: string;
492
+ operator: string;
493
+ value?: string | null;
494
+ color?: string | null;
495
+ backgroundColor?: string | null;
496
+ order?: number | null;
497
+ }
498
+ export interface CreateSourceDto {
499
+ fkWorkspaceId?: string | null;
500
+ baseId?: string | null;
501
+ alias?: string | null;
502
+ type: SourceType;
503
+ config?: SourceConfig | null;
504
+ enabled?: boolean | null;
505
+ isMeta?: boolean | null;
506
+ order?: number | null;
507
+ inflectionColumn?: string | null;
508
+ inflectionTable?: string | null;
509
+ meta?: SourceMeta | null;
510
+ deleted?: boolean | null;
511
+ fkIntegrationId?: string | null;
512
+ }
513
+ export interface CreateTableDto {
514
+ workspaceId: string;
515
+ name: string;
516
+ slug: string;
517
+ baseId?: string | null;
518
+ sourceId?: string | null;
519
+ type?: ModelType | null;
520
+ storageMode?: StorageMode | null;
521
+ description?: string | null;
522
+ order?: number | null;
523
+ meta?: TableMeta;
524
+ settings?: TableSettings;
525
+ fields?: CreateTableFieldDto[];
526
+ }
527
+ export type CreateTableFieldDto = CreateColumnDto & {
528
+ type: FieldType;
529
+ relationConfig?: RelationConfigDto;
530
+ lookupConfig?: LookupConfigDto;
531
+ rollupConfig?: RollupConfigDto;
532
+ };
533
+ export interface CreateViewColumnDto {
534
+ fieldId: string;
535
+ show?: boolean;
536
+ order?: number | null;
537
+ width?: string | null;
538
+ groupBy?: boolean;
539
+ groupByOrder?: number | null;
540
+ groupBySort?: string | null;
541
+ aggregation?: string | null;
542
+ label?: string | null;
543
+ helpText?: string | null;
544
+ placeholder?: string | null;
545
+ required?: boolean;
546
+ description?: string | null;
547
+ }
548
+ export interface CreateViewDto {
549
+ name: string;
550
+ description?: string | null;
551
+ type?: ViewType;
552
+ order?: number | null;
553
+ show?: boolean;
554
+ showSystemFields?: boolean;
555
+ lockType?: ViewLockType | null;
556
+ rowColoringMode?: RowColoringMode | null;
557
+ customUrlId?: string | null;
558
+ meta?: ViewMeta;
559
+ ownedBy?: number | null;
560
+ isDefault?: boolean;
561
+ }
562
+ export interface CreateViewFilterDto {
563
+ fieldId?: string | null;
564
+ parentId?: string | null;
565
+ comparisonOp?: FilterComparisonOp | null;
566
+ comparisonSubOp?: FilterComparisonSubOp | null;
567
+ value?: string | null;
568
+ isGroup?: boolean;
569
+ logicalOp?: FilterLogicalOp | null;
570
+ order?: number | null;
571
+ }
572
+ export interface CreateViewSortDto {
573
+ fieldId: string;
574
+ direction?: ViewSortDirection;
575
+ order?: number | null;
576
+ pushToTop?: boolean;
577
+ }
578
+ export interface CreateWorkspaceDto {
579
+ name: string;
580
+ slug: string;
581
+ description?: string | null;
582
+ settings?: WorkspaceSettings;
583
+ isActive?: boolean;
584
+ }
585
+ export type CreateWorkspaceInviteLinkDto = WorkspaceMemberRoleScopeDto;
586
+ export interface DynamicTableTokenExchangeResponseDto {
587
+ token: string;
588
+ expiresInSeconds: number;
589
+ }
590
+ export declare enum ExternalDataType {
591
+ VARCHAR = "VARCHAR",
592
+ CHAR = "CHAR",
593
+ TEXT = "TEXT",
594
+ NVARCHAR = "NVARCHAR",
595
+ NCHAR = "NCHAR",
596
+ LONGTEXT = "LONGTEXT",
597
+ MEDIUMTEXT = "MEDIUMTEXT",
598
+ TINYTEXT = "TINYTEXT",
599
+ INTEGER = "INTEGER",
600
+ INT = "INT",
601
+ SMALLINT = "SMALLINT",
602
+ BIGINT = "BIGINT",
603
+ TINYINT = "TINYINT",
604
+ MEDIUMINT = "MEDIUMINT",
605
+ SERIAL = "SERIAL",
606
+ BIGSERIAL = "BIGSERIAL",
607
+ DECIMAL = "DECIMAL",
608
+ NUMERIC = "NUMERIC",
609
+ FLOAT = "FLOAT",
610
+ DOUBLE = "DOUBLE",
611
+ REAL = "REAL",
612
+ MONEY = "MONEY",
613
+ SMALLMONEY = "SMALLMONEY",
614
+ BOOLEAN = "BOOLEAN",
615
+ BIT = "BIT",
616
+ DATE = "DATE",
617
+ TIME = "TIME",
618
+ DATETIME = "DATETIME",
619
+ DATETIME2 = "DATETIME2",
620
+ SMALLDATETIME = "SMALLDATETIME",
621
+ TIMESTAMP = "TIMESTAMP",
622
+ TIMESTAMPTZ = "TIMESTAMPTZ",
623
+ YEAR = "YEAR",
624
+ BINARY = "BINARY",
625
+ VARBINARY = "VARBINARY",
626
+ BLOB = "BLOB",
627
+ BYTEA = "BYTEA",
628
+ IMAGE = "IMAGE",
629
+ JSON = "JSON",
630
+ JSONB = "JSONB",
631
+ ARRAY = "ARRAY",
632
+ UUID = "UUID",
633
+ UNIQUEIDENTIFIER = "UNIQUEIDENTIFIER",
634
+ GEOMETRY = "GEOMETRY",
635
+ GEOGRAPHY = "GEOGRAPHY",
636
+ POINT = "POINT",
637
+ XML = "XML",
638
+ ENUM = "ENUM",
639
+ SET = "SET",
640
+ OBJECT_ID = "OBJECT_ID",
641
+ DOCUMENT = "DOCUMENT",
642
+ INTERVAL = "INTERVAL",
643
+ CIDR = "CIDR",
644
+ INET = "INET",
645
+ MACADDR = "MACADDR",
646
+ HSTORE = "HSTORE",
647
+ CUSTOM = "CUSTOM"
648
+ }
649
+ export interface ExternalSyncConfig {
650
+ source: 'google_sheets' | 'airtable' | 'notion' | 'api';
651
+ sourceId?: string;
652
+ syncInterval?: number;
653
+ lastSyncAt?: Date;
654
+ }
655
+ export interface FieldConfig {
656
+ options?: {
657
+ id: string;
658
+ label: string;
659
+ color?: string;
660
+ }[];
661
+ precision?: number;
662
+ currencySymbol?: string;
663
+ currencyCode?: string;
664
+ percentFormat?: 'decimal' | 'whole';
665
+ maxRating?: number;
666
+ ratingIcon?: 'star' | 'heart' | 'thumb';
667
+ prefix?: string;
668
+ startNumber?: number;
669
+ digitCount?: number;
670
+ dateFormat?: string;
671
+ timeFormat?: '12h' | '24h';
672
+ includeTime?: boolean;
673
+ timezone?: string;
674
+ durationFormat?: 'h:mm' | 'h:mm:ss' | 'days';
675
+ targetTableId?: string;
676
+ allowMultiple?: boolean;
677
+ symmetricFieldId?: string;
678
+ relationFieldId?: string;
679
+ lookupFieldId?: string;
680
+ rollupRelationFieldId?: string;
681
+ rollupFieldId?: string;
682
+ rollupFunction?: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'counta' | 'countall';
683
+ formulaExpression?: string;
684
+ outputType?: 'number' | 'text' | 'date' | 'boolean';
685
+ enableRichText?: boolean;
686
+ maxLength?: number;
687
+ defaultCountryCode?: string;
688
+ urlType?: 'any' | 'image' | 'video';
689
+ allowMultipleUsers?: boolean;
690
+ notifyOnAssign?: boolean;
691
+ allowedFileTypes?: string[];
692
+ maxFileSize?: number;
693
+ maxFiles?: number;
694
+ qrValueFieldId?: string;
695
+ barcodeValueFieldId?: string;
696
+ barcodeFormat?: string;
697
+ buttonLabel?: string;
698
+ buttonType?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
699
+ buttonActionType?: 'url' | 'api' | 'script' | 'email' | 'page';
700
+ buttonActionConfig?: Record<string, any>;
701
+ buttonIcon?: string;
702
+ buttonTooltip?: string;
703
+ buttonWidth?: number;
704
+ buttonConfirmation?: string;
705
+ aiPrompt?: string;
706
+ aiModel?: string;
707
+ aiConfig?: Record<string, any>;
708
+ }
709
+ export type FieldMeta = {
710
+ placeholder?: string;
711
+ helpText?: string;
712
+ icon?: string;
713
+ color?: string;
714
+ display?: {
715
+ width?: number;
716
+ hidden?: boolean;
717
+ order?: number;
718
+ };
719
+ validation?: {
720
+ min?: number;
721
+ max?: number;
722
+ pattern?: string;
723
+ message?: string;
724
+ };
725
+ };
726
+ export declare enum FieldType {
727
+ TEXT = "text",
728
+ LONG_TEXT = "long_text",
729
+ EMAIL = "email",
730
+ PHONE = "phone",
731
+ URL = "url",
732
+ NUMBER = "number",
733
+ CURRENCY = "currency",
734
+ PERCENT = "percent",
735
+ RATING = "rating",
736
+ AUTONUMBER = "autonumber",
737
+ SELECT = "select",
738
+ MULTI_SELECT = "multi_select",
739
+ BOOLEAN = "boolean",
740
+ DATE = "date",
741
+ DATETIME = "datetime",
742
+ DURATION = "duration",
743
+ RELATION = "relation",
744
+ LINK_TO_ANOTHER_RECORD = "link_to_another_record",
745
+ LINKS = "links",
746
+ LOOKUP = "lookup",
747
+ ROLLUP = "rollup",
748
+ FORMULA = "formula",
749
+ CREATED_TIME = "created_time",
750
+ MODIFIED_TIME = "modified_time",
751
+ CREATED_BY = "created_by",
752
+ MODIFIED_BY = "modified_by",
753
+ ATTACHMENT = "attachment",
754
+ QR_CODE = "qrcode",
755
+ BARCODE = "barcode",
756
+ BUTTON = "button",
757
+ USER = "user",
758
+ AI = "ai"
759
+ }
760
+ export declare enum FilterComparisonOp {
761
+ EQ = "eq",
762
+ NEQ = "neq",
763
+ LIKE = "like",
764
+ NLIKE = "nlike",
765
+ GT = "gt",
766
+ GTE = "gte",
767
+ LT = "lt",
768
+ LTE = "lte",
769
+ EMPTY = "empty",
770
+ NOT_EMPTY = "notempty",
771
+ NULL = "null",
772
+ NOT_NULL = "notnull",
773
+ BLANK = "blank",
774
+ NOT_BLANK = "notblank",
775
+ ALL_OF = "allof",
776
+ ANY_OF = "anyof",
777
+ NOT_ALL_OF = "nallof",
778
+ NOT_ANY_OF = "nanyof",
779
+ CHECKED = "checked",
780
+ NOT_CHECKED = "notchecked",
781
+ IS_WITHIN = "isWithin",
782
+ IS = "is",
783
+ IS_NOT = "isnot",
784
+ BETWEEN = "btw",
785
+ NOT_BETWEEN = "nbtw",
786
+ GROUP_BY_EQ = "gbEq",
787
+ GROUP_BY_NULL = "gbNull"
788
+ }
789
+ export type FilterComparisonOperator = FilterComparisonOp;
790
+ export declare enum FilterComparisonSubOp {
791
+ TODAY = "today",
792
+ TOMORROW = "tomorrow",
793
+ YESTERDAY = "yesterday",
794
+ ONE_WEEK_AGO = "oneWeekAgo",
795
+ ONE_WEEK_FROM_NOW = "oneWeekFromNow",
796
+ ONE_MONTH_AGO = "oneMonthAgo",
797
+ ONE_MONTH_FROM_NOW = "oneMonthFromNow",
798
+ DAYS_AGO = "daysAgo",
799
+ DAYS_FROM_NOW = "daysFromNow",
800
+ EXACT_DATE = "exactDate",
801
+ PAST_WEEK = "pastWeek",
802
+ PAST_MONTH = "pastMonth",
803
+ PAST_YEAR = "pastYear",
804
+ NEXT_WEEK = "nextWeek",
805
+ NEXT_MONTH = "nextMonth",
806
+ NEXT_YEAR = "nextYear",
807
+ PAST_NUMBER_OF_DAYS = "pastNumberOfDays",
808
+ NEXT_NUMBER_OF_DAYS = "nextNumberOfDays"
809
+ }
810
+ export type FilterConditionPayload = {
811
+ fieldId?: string;
812
+ field?: string;
813
+ columnId?: string;
814
+ operator?: FilterComparisonOperator | string;
815
+ op?: FilterComparisonOperator | string;
816
+ comparisonOp?: FilterComparisonOperator | string;
817
+ comparison?: string;
818
+ condition?: string;
819
+ comparisonSubOp?: FilterComparisonSubOp | string;
820
+ logicalOp?: FilterLogicalOperator;
821
+ logical?: FilterLogicalOperator;
822
+ value?: JsonValue;
823
+ };
824
+ export type FilterGroupPayload = {
825
+ isGroup: true;
826
+ logicalOp?: FilterLogicalOperator;
827
+ children?: FilterPayload[];
828
+ };
829
+ export declare enum FilterLogicalOp {
830
+ AND = "and",
831
+ OR = "or",
832
+ NOT = "not"
833
+ }
834
+ export type FilterLogicalOperator = FilterLogicalOp;
835
+ export type FilterLogicalPayload = {
836
+ and?: FilterPayload[];
837
+ or?: FilterPayload[];
838
+ not?: FilterPayload[];
839
+ };
840
+ export type FilterPayload = FilterConditionPayload | FilterGroupPayload | FilterLogicalPayload;
841
+ export interface FilterResponseDto {
842
+ id: string;
843
+ viewId: string | null;
844
+ parentId: string | null;
845
+ fieldId: string | null;
846
+ operator: string | null;
847
+ value: JsonValue | null;
848
+ order: number | null;
849
+ isGroup: boolean | null;
850
+ createdAt: number | null;
851
+ updatedAt: number | null;
852
+ }
853
+ export interface FormViewConfigDto {
854
+ heading?: string | null;
855
+ subheading?: string | null;
856
+ successMessage?: string | null;
857
+ redirectUrl?: string | null;
858
+ redirectAfterSecs?: number | null;
859
+ email?: string | null;
860
+ submitAnotherForm?: boolean;
861
+ showBlankForm?: boolean;
862
+ meta?: FormViewMeta;
863
+ }
864
+ export interface FormViewDetailResponseDto {
865
+ config: FormViewResponseDto;
866
+ columns: ViewColumnResponseDto[];
867
+ }
868
+ export type FormViewMeta = ViewMeta & {
869
+ theme?: string;
870
+ logoUrl?: string;
871
+ coverImageUrl?: string;
872
+ submitButtonLabel?: string;
873
+ showBranding?: boolean;
874
+ };
875
+ export interface FormViewResponseDto {
876
+ viewId: string;
877
+ workspaceId: string | null;
878
+ baseId: string | null;
879
+ sourceId: string | null;
880
+ heading: string | null;
881
+ subheading: string | null;
882
+ successMessage: string | null;
883
+ redirectUrl: string | null;
884
+ redirectAfterSecs: number | null;
885
+ email: string | null;
886
+ submitAnotherForm: boolean;
887
+ showBlankForm: boolean;
888
+ meta: FormViewMeta;
889
+ createdAt: number;
890
+ updatedAt: number | null;
891
+ }
892
+ export interface GalleryViewConfigDto {
893
+ coverImageFieldId?: string | null;
894
+ meta?: GalleryViewMeta;
895
+ }
896
+ export interface GalleryViewDetailResponseDto {
897
+ config: GalleryViewResponseDto;
898
+ columns: ViewColumnResponseDto[];
899
+ }
900
+ export type GalleryViewMeta = ViewMeta & {
901
+ cardSize?: 'small' | 'medium' | 'large';
902
+ showCover?: boolean;
903
+ showEmptyCover?: boolean;
904
+ };
905
+ export interface GalleryViewResponseDto {
906
+ viewId: string;
907
+ workspaceId: string | null;
908
+ baseId: string | null;
909
+ sourceId: string | null;
910
+ coverImageFieldId: string | null;
911
+ meta: GalleryViewMeta;
912
+ createdAt: number;
913
+ updatedAt: number | null;
914
+ }
915
+ export interface GetUserUiPreferencesResponseDto {
916
+ raw: UserUiPreferencesRawDto;
917
+ resolved: UserUiPreferencesResolvedDto;
918
+ }
919
+ export declare enum GridRowHeight {
920
+ SHORT = "short",
921
+ MEDIUM = "medium",
922
+ TALL = "tall",
923
+ EXTRA = "extra"
924
+ }
925
+ export interface GridViewConfigDto {
926
+ rowHeight?: GridRowHeight | null;
927
+ meta?: GridViewMeta;
928
+ }
929
+ export type GridViewMeta = ViewMeta & {
930
+ wrapText?: boolean;
931
+ showEmptyFields?: boolean;
932
+ frozenColumnIds?: string[];
933
+ hiddenColumnIds?: string[];
934
+ columnWidths?: Array<{
935
+ fieldId: string;
936
+ width: number;
937
+ }>;
938
+ };
939
+ export interface GridViewResponseDto {
940
+ viewId: string;
941
+ workspaceId: string | null;
942
+ baseId: string | null;
943
+ sourceId: string | null;
944
+ rowHeight: GridRowHeight | null;
945
+ meta: GridViewMeta;
946
+ createdAt: number;
947
+ updatedAt: number | null;
948
+ }
949
+ export type GroupedListItem = {
950
+ key: JsonValue | null;
951
+ value: PagedResponse<TableRecord>;
952
+ };
953
+ export declare enum HookEnvironment {
954
+ DEV = "dev",
955
+ STAGING = "staging",
956
+ PROD = "prod",
957
+ TEST = "test"
958
+ }
959
+ export interface HookLogResponseDto {
960
+ id: string;
961
+ hookId?: string | null;
962
+ workspaceId?: string | null;
963
+ baseId?: string | null;
964
+ sourceId?: string | null;
965
+ tableId?: string | null;
966
+ event?: AppEvents | null;
967
+ status?: HookLogStatus | null;
968
+ responseCode?: number | null;
969
+ responseBody?: string | null;
970
+ errorMessage?: string | null;
971
+ payload?: unknown;
972
+ url?: string | null;
973
+ executionTime?: number | null;
974
+ triggeredAt?: Date | null;
975
+ createdAt?: number | null;
976
+ updatedAt?: number | null;
977
+ }
978
+ export declare enum HookLogStatus {
979
+ PENDING = "pending",
980
+ RUNNING = "running",
981
+ SUCCESS = "success",
982
+ FAILED = "failed"
983
+ }
984
+ export interface HookNotificationDto {
985
+ type?: string;
986
+ payload?: HookNotificationPayloadDto;
987
+ }
988
+ export interface HookNotificationHeaderDto {
989
+ name: string;
990
+ value?: string;
991
+ enabled?: boolean;
992
+ }
993
+ export interface HookNotificationPayloadDto {
994
+ path?: string;
995
+ method?: string;
996
+ headers?: HookNotificationHeaderDto[];
997
+ body?: unknown;
998
+ }
999
+ export declare enum HookOperation {
1000
+ CREATE = "create",
1001
+ UPDATE = "update",
1002
+ DELETE = "delete",
1003
+ READ = "read"
1004
+ }
1005
+ export interface HookResponseDto {
1006
+ id: string;
1007
+ workspaceId?: string | null;
1008
+ baseId?: string | null;
1009
+ sourceId?: string | null;
1010
+ tableId?: string | null;
1011
+ title?: string | null;
1012
+ description?: string | null;
1013
+ env?: HookEnvironment | null;
1014
+ type?: HookType | null;
1015
+ event?: AppEvents | null;
1016
+ operation?: HookOperation | null;
1017
+ async?: boolean | null;
1018
+ payload?: unknown;
1019
+ url?: string | null;
1020
+ headers?: unknown;
1021
+ hasSecret?: boolean | null;
1022
+ notification?: unknown;
1023
+ condition?: boolean | null;
1024
+ retries?: number | null;
1025
+ retryInterval?: number | null;
1026
+ timeout?: number | null;
1027
+ active?: boolean | null;
1028
+ version?: HookVersion | null;
1029
+ triggerFields: string[];
1030
+ createdAt?: number | null;
1031
+ updatedAt?: number | null;
1032
+ }
1033
+ export declare enum HookType {
1034
+ WEBHOOK = "webhook",
1035
+ SCRIPT = "script"
1036
+ }
1037
+ export declare enum HookVersion {
1038
+ V1 = "v1",
1039
+ V2 = "v2",
1040
+ V3 = "v3"
1041
+ }
1042
+ export interface ImportFieldMappingDto {
1043
+ source: string;
1044
+ targetFieldId?: string;
1045
+ targetFieldKey?: string;
1046
+ }
1047
+ export declare enum ImportFileFormat {
1048
+ CSV = "csv",
1049
+ XLSX = "xlsx",
1050
+ JSON = "json"
1051
+ }
1052
+ export interface ImportFromUrlDto {
1053
+ url: string;
1054
+ workspaceId?: string;
1055
+ baseId?: string;
1056
+ }
1057
+ export interface ImportJobResponseDto {
1058
+ id: string;
1059
+ status: JobStatus;
1060
+ progress: number | null;
1061
+ result: string | null;
1062
+ errorMessage: string | null;
1063
+ startedAt: string | null;
1064
+ finishedAt: string | null;
1065
+ }
1066
+ export declare enum ImportMode {
1067
+ APPEND = "append"
1068
+ }
1069
+ export interface ImportPreviewColumnDto {
1070
+ source: string;
1071
+ inferredType: string;
1072
+ }
1073
+ export interface ImportPreviewResponseDto {
1074
+ columns: ImportPreviewColumnDto[];
1075
+ sampleRows: Array<Record<string, unknown>>;
1076
+ }
1077
+ export interface ImportStartResponseDto {
1078
+ jobId: string;
1079
+ }
1080
+ export interface ImportUploadResponseDto {
1081
+ fileId: string;
1082
+ fileName: string;
1083
+ mimeType: string | null;
1084
+ size: number | null;
1085
+ }
1086
+ export interface InternalOperationDto {
1087
+ payload?: Record<string, unknown>;
1088
+ }
1089
+ export interface InvalidateCacheDto {
1090
+ tableIds?: string[];
1091
+ viewIds?: string[];
1092
+ records?: string[];
1093
+ reason?: string;
1094
+ }
1095
+ export interface JobListenDataDto {
1096
+ id: string;
1097
+ }
1098
+ export interface JobListenDto {
1099
+ _mid?: number;
1100
+ data: JobListenDataDto;
1101
+ }
1102
+ export declare enum JobStatus {
1103
+ PENDING = "pending",
1104
+ RUNNING = "running",
1105
+ COMPLETED = "completed",
1106
+ FAILED = "failed",
1107
+ CANCELED = "canceled"
1108
+ }
1109
+ export type JsonArray = JsonValue[];
1110
+ export type JsonObject = {
1111
+ [key: string]: JsonValue;
1112
+ };
1113
+ export type JsonPrimitive = string | number | boolean | null;
1114
+ export type JsonValue = JsonPrimitive | JsonArray | JsonObject;
1115
+ export interface KanbanViewConfigDto {
1116
+ groupFieldId?: string | null;
1117
+ coverImageFieldId?: string | null;
1118
+ meta?: KanbanViewMeta;
1119
+ }
1120
+ export interface KanbanViewDetailResponseDto {
1121
+ config: KanbanViewResponseDto;
1122
+ columns: ViewColumnResponseDto[];
1123
+ }
1124
+ export type KanbanViewMeta = ViewMeta & {
1125
+ laneOrder?: string[];
1126
+ showEmptyLanes?: boolean;
1127
+ cardFields?: string[];
1128
+ };
1129
+ export interface KanbanViewResponseDto {
1130
+ viewId: string;
1131
+ workspaceId: string | null;
1132
+ baseId: string | null;
1133
+ sourceId: string | null;
1134
+ groupFieldId: string | null;
1135
+ coverImageFieldId: string | null;
1136
+ meta: KanbanViewMeta;
1137
+ createdAt: number;
1138
+ updatedAt: number | null;
1139
+ }
1140
+ export interface LimitOffsetQueryDto {
1141
+ limit?: number;
1142
+ offset?: number;
1143
+ }
1144
+ export interface ListApiTokensQueryDto {
1145
+ workspaceId?: string;
1146
+ baseId?: string;
1147
+ revoked?: boolean;
1148
+ }
1149
+ export type ListBaseMembersQueryDto = PaginationQueryDto & {
1150
+ role?: WorkspaceMemberRole;
1151
+ isActive?: boolean;
1152
+ deleted?: boolean;
1153
+ };
1154
+ export type ListBasesQueryDto = PaginationQueryDto & {
1155
+ workspaceId?: string;
1156
+ status?: BaseStatus;
1157
+ isMeta?: boolean;
1158
+ deleted?: boolean;
1159
+ };
1160
+ export interface ListCommentsQueryDto {
1161
+ workspaceId?: string;
1162
+ baseId?: string;
1163
+ fkModelId: string;
1164
+ rowId: string;
1165
+ }
1166
+ export type ListHookLogsQueryDto = PaginationQueryDto & {
1167
+ status?: HookLogStatus;
1168
+ event?: AppEvents;
1169
+ };
1170
+ export type ListHooksQueryDto = PaginationQueryDto & {
1171
+ event?: AppEvents;
1172
+ operation?: HookOperation;
1173
+ active?: boolean;
1174
+ };
1175
+ export type ListJobsQueryDto = LimitOffsetQueryDto & {
1176
+ workspaceId?: string;
1177
+ baseId?: string;
1178
+ job?: string;
1179
+ status?: JobStatus;
1180
+ };
1181
+ export type ListSourcesQueryDto = PaginationQueryDto & {
1182
+ workspaceId?: string;
1183
+ baseId?: string;
1184
+ type?: SourceType;
1185
+ enabled?: boolean;
1186
+ deleted?: boolean;
1187
+ };
1188
+ export type ListTablesQueryDto = PaginationQueryDto & {
1189
+ workspaceId?: string;
1190
+ baseId?: string;
1191
+ includeFields?: boolean;
1192
+ includeViews?: boolean;
1193
+ includeDeleted?: boolean;
1194
+ };
1195
+ export interface ListViewsQueryDto {
1196
+ includeConfig?: boolean;
1197
+ includeColumns?: boolean;
1198
+ }
1199
+ export type ListWorkspaceJoinRequestsQueryDto = PaginationQueryDto;
1200
+ export type ListWorkspaceMembersQueryDto = PaginationQueryDto & {
1201
+ role?: WorkspaceMemberRole;
1202
+ isActive?: boolean;
1203
+ };
1204
+ export type ListWorkspacesQueryDto = PaginationQueryDto & {
1205
+ isActive?: boolean;
1206
+ };
1207
+ export interface LookupConfigDto {
1208
+ relationFieldRef: RelationFieldRefDto;
1209
+ lookupFieldId: string;
1210
+ }
1211
+ export declare enum MapProviderType {
1212
+ OSM = "osm",
1213
+ GOOGLE = "google",
1214
+ MAPBOX = "mapbox"
1215
+ }
1216
+ export interface MapViewConfigDto {
1217
+ geoDataFieldId?: string | null;
1218
+ mapType?: MapProviderType | null;
1219
+ mapApiKey?: string | null;
1220
+ meta?: MapViewMeta;
1221
+ }
1222
+ export interface MapViewDetailResponseDto {
1223
+ config: MapViewResponseDto;
1224
+ columns: ViewColumnResponseDto[];
1225
+ }
1226
+ export type MapViewMeta = ViewMeta & {
1227
+ defaultZoom?: number;
1228
+ center?: {
1229
+ lat: number;
1230
+ lng: number;
1231
+ };
1232
+ markerColor?: string;
1233
+ showCluster?: boolean;
1234
+ };
1235
+ export interface MapViewResponseDto {
1236
+ viewId: string;
1237
+ workspaceId: string | null;
1238
+ baseId: string | null;
1239
+ sourceId: string | null;
1240
+ geoDataFieldId: string | null;
1241
+ meta: MapViewMeta;
1242
+ mapType: MapProviderType | null;
1243
+ mapApiKey: string | null;
1244
+ createdAt: number;
1245
+ updatedAt: number | null;
1246
+ }
1247
+ export declare enum MembershipScope {
1248
+ WORKSPACE = "workspace",
1249
+ BASE = "base",
1250
+ TEAM = "team"
1251
+ }
1252
+ export declare enum ModelType {
1253
+ TABLE = "table",
1254
+ VIEW = "view",
1255
+ DASHBOARD = "dashboard"
1256
+ }
1257
+ export interface PagedResponse<T> {
1258
+ list: T[];
1259
+ pageInfo: PageInfo;
1260
+ }
1261
+ export type PageInfo = {
1262
+ totalRows: number;
1263
+ page: number;
1264
+ pageSize: number;
1265
+ isFirstPage: boolean;
1266
+ isLastPage: boolean;
1267
+ offset: number;
1268
+ };
1269
+ export interface PaginationQueryDto {
1270
+ page?: number;
1271
+ pageSize?: number;
1272
+ sort?: string;
1273
+ s?: string;
1274
+ filter?: string;
1275
+ }
1276
+ export type PermissionAction = 'read' | 'create' | 'update' | 'delete' | 'share' | 'export' | 'admin';
1277
+ export interface PinCommandPaletteDto {
1278
+ type: 'table' | 'view' | 'action';
1279
+ id: string;
1280
+ label: string;
1281
+ }
1282
+ export interface PreviewImportDto {
1283
+ fileId: string;
1284
+ format: ImportFileFormat;
1285
+ sheet?: string;
1286
+ delimiter?: string;
1287
+ hasHeader?: boolean;
1288
+ sampleSize?: number;
1289
+ }
1290
+ export type RecordAggregateQueryDto = RecordListQueryDto & {
1291
+ aggregations?: string;
1292
+ };
1293
+ export type RecordIdPayload = {
1294
+ id: string | number;
1295
+ };
1296
+ export type RecordListQueryDto = LimitOffsetQueryDto & {
1297
+ viewId?: string;
1298
+ fields?: string;
1299
+ filters?: string;
1300
+ sorts?: string;
1301
+ includeSortFilterFields?: string;
1302
+ };
1303
+ export interface RecordMoveDto {
1304
+ fieldId?: string;
1305
+ fieldKey?: string;
1306
+ value?: number;
1307
+ }
1308
+ export declare enum ReferentialAction {
1309
+ NO_ACTION = "NO ACTION",
1310
+ CASCADE = "CASCADE",
1311
+ RESTRICT = "RESTRICT",
1312
+ SET_NULL = "SET NULL",
1313
+ SET_DEFAULT = "SET DEFAULT"
1314
+ }
1315
+ export interface RelationConfigDto {
1316
+ relationType: RelationType;
1317
+ relatedTableId: string;
1318
+ relatedBaseId?: string | null;
1319
+ relatedSourceId?: string | null;
1320
+ onUpdate?: ReferentialAction | null;
1321
+ onDelete?: ReferentialAction | null;
1322
+ isVirtual?: boolean;
1323
+ targetViewId?: string | null;
1324
+ mmTableId?: string | null;
1325
+ mmBaseId?: string | null;
1326
+ mmSourceId?: string | null;
1327
+ mmChildFieldId?: string | null;
1328
+ mmParentFieldId?: string | null;
1329
+ }
1330
+ export interface RelationFieldRefDto {
1331
+ fieldId?: string;
1332
+ fieldKey?: string;
1333
+ }
1334
+ export declare enum RelationType {
1335
+ HAS_MANY = "hm",
1336
+ BELONGS_TO = "bt",
1337
+ MANY_TO_MANY = "mm",
1338
+ ONE_TO_ONE = "oo"
1339
+ }
1340
+ export interface RelationUpdateDto {
1341
+ refRowIds: string[];
1342
+ }
1343
+ export interface ReorderColumnItemDto {
1344
+ columnId: string;
1345
+ orderIndex: number;
1346
+ }
1347
+ export interface ReorderColumnsDto {
1348
+ items: ReorderColumnItemDto[];
1349
+ }
1350
+ export interface ReorderTableItemDto {
1351
+ tableId: string;
1352
+ order: number;
1353
+ }
1354
+ export interface ReorderTablesDto {
1355
+ items: ReorderTableItemDto[];
1356
+ }
1357
+ export interface ReorderViewSortsDto {
1358
+ sortIds: string[];
1359
+ }
1360
+ export interface RequestJoinByInviteLinkDto {
1361
+ token: string;
1362
+ }
1363
+ export interface RollupConfigDto {
1364
+ relationFieldRef: RelationFieldRefDto;
1365
+ rollupFieldId: string;
1366
+ rollupFunction?: RollupFunction | null;
1367
+ }
1368
+ export declare enum RollupFunction {
1369
+ COUNT = "count",
1370
+ SUM = "sum",
1371
+ AVG = "avg",
1372
+ MIN = "min",
1373
+ MAX = "max",
1374
+ COUNT_DISTINCT = "countDistinct",
1375
+ SUM_DISTINCT = "sumDistinct",
1376
+ AVG_DISTINCT = "avgDistinct"
1377
+ }
1378
+ export interface RowColorConditionResponseDto {
1379
+ id: string;
1380
+ viewId: string;
1381
+ fieldId: string | null;
1382
+ operator: string | null;
1383
+ value: JsonValue | null;
1384
+ color: string | null;
1385
+ backgroundColor: string | null;
1386
+ order: number | null;
1387
+ createdAt: number | null;
1388
+ updatedAt: number | null;
1389
+ }
1390
+ export interface RowColorConfigResponseDto {
1391
+ mode: RowColoringMode | null;
1392
+ conditions: RowColorConditionResponseDto[];
1393
+ }
1394
+ export declare enum RowColoringMode {
1395
+ FILTER = "filter",
1396
+ SELECT = "select"
1397
+ }
1398
+ export interface SecureAttachmentTokenDto {
1399
+ ttlSeconds?: number;
1400
+ }
1401
+ export interface SlackIntegrationConfig {
1402
+ webhookUrl?: string;
1403
+ channelId?: string;
1404
+ }
1405
+ export interface SortResponseDto {
1406
+ id: string;
1407
+ viewId: string;
1408
+ fieldId: string | null;
1409
+ direction: string | null;
1410
+ order: number | null;
1411
+ createdAt: number | null;
1412
+ updatedAt: number | null;
1413
+ }
1414
+ export type SourceConfig = {
1415
+ host?: string;
1416
+ port?: number;
1417
+ database?: string;
1418
+ username?: string;
1419
+ password?: string;
1420
+ ssl?: boolean;
1421
+ poolSize?: number;
1422
+ connectionTimeout?: number;
1423
+ idleTimeout?: number;
1424
+ schema?: string;
1425
+ [key: string]: JsonValue | undefined;
1426
+ };
1427
+ export type SourceMeta = {
1428
+ schema?: string;
1429
+ version?: string;
1430
+ driver?: string;
1431
+ lastSyncedAt?: number;
1432
+ note?: string;
1433
+ readOnlySchema?: boolean;
1434
+ readOnlyData?: boolean;
1435
+ };
1436
+ export interface SourceResponseDto {
1437
+ id: string;
1438
+ fkWorkspaceId: string | null;
1439
+ baseId: string | null;
1440
+ alias: string | null;
1441
+ type: SourceType | null;
1442
+ config: SourceConfig | null;
1443
+ enabled: boolean | null;
1444
+ isMeta: boolean | null;
1445
+ order: number | null;
1446
+ inflectionColumn: string | null;
1447
+ inflectionTable: string | null;
1448
+ meta: SourceMeta | null;
1449
+ deleted: boolean | null;
1450
+ fkIntegrationId: string | null;
1451
+ createdAt: number | null;
1452
+ updatedAt: number | null;
1453
+ }
1454
+ export declare enum SourceType {
1455
+ POSTGRESQL = "POSTGRESQL",
1456
+ MYSQL = "MYSQL",
1457
+ MSSQL = "MSSQL",
1458
+ MONGODB = "MONGODB",
1459
+ ORACLE = "ORACLE",
1460
+ MARIADB = "MARIADB",
1461
+ SQLITE = "SQLITE"
1462
+ }
1463
+ export interface StartImportDto {
1464
+ workspaceId: string;
1465
+ baseId: string;
1466
+ tableId: string;
1467
+ fileId: string;
1468
+ format: ImportFileFormat;
1469
+ mode?: ImportMode;
1470
+ mapping?: ImportFieldMappingDto[];
1471
+ options?: StartImportOptionsDto;
1472
+ }
1473
+ export interface StartImportOptionsDto {
1474
+ hasHeader?: boolean;
1475
+ delimiter?: string;
1476
+ sheet?: string;
1477
+ chunkSize?: number;
1478
+ }
1479
+ export declare enum StorageMode {
1480
+ JSONB = "JSONB",
1481
+ EAV = "EAV",
1482
+ PHYSICAL = "PHYSICAL"
1483
+ }
1484
+ export type TableMeta = {
1485
+ icon?: string;
1486
+ color?: string;
1487
+ coverImage?: string;
1488
+ tags?: string[];
1489
+ primaryFieldId?: string;
1490
+ displayFieldId?: string;
1491
+ isTemplate?: boolean;
1492
+ };
1493
+ export type TableRecord = Record<string, JsonValue> & {
1494
+ id?: string | number;
1495
+ };
1496
+ export type TableRecordInput = TableRecord & {
1497
+ recordId?: string | number;
1498
+ };
1499
+ export interface TableResponseDto {
1500
+ id: string;
1501
+ workspaceId: string;
1502
+ name: string;
1503
+ slug: string;
1504
+ description: string | null;
1505
+ baseId: string | null;
1506
+ sourceId: string | null;
1507
+ tableName: string | null;
1508
+ type: ModelType | null;
1509
+ storageMode: StorageMode | null;
1510
+ order: number | null;
1511
+ meta: TableMeta;
1512
+ settings: TableSettings;
1513
+ isManyToMany: boolean | null;
1514
+ isSynced: boolean | null;
1515
+ isDeleted: boolean | null;
1516
+ externalSchemaName: string | null;
1517
+ externalTableName: string | null;
1518
+ createdAt: number;
1519
+ updatedAt: number | null;
1520
+ fields?: ColumnResponseDto[];
1521
+ views?: ViewResponseDto[];
1522
+ }
1523
+ export interface TableSettings {
1524
+ icon?: string;
1525
+ color?: string;
1526
+ coverImage?: string;
1527
+ defaultViewId?: string;
1528
+ allowPublicAccess?: boolean;
1529
+ allowAnonymousSubmit?: boolean;
1530
+ recordPrefix?: string;
1531
+ enableComments?: boolean;
1532
+ enableHistory?: boolean;
1533
+ enableAttachments?: boolean;
1534
+ enableWebhooks?: boolean;
1535
+ enableAutomations?: boolean;
1536
+ externalSyncEnabled?: boolean;
1537
+ externalSyncConfig?: ExternalSyncConfig;
1538
+ maxRecords?: number;
1539
+ maxAttachmentSize?: number;
1540
+ }
1541
+ export interface TestHookDto {
1542
+ hook: CreateHookDto;
1543
+ rowId?: string;
1544
+ payload?: Record<string, unknown>;
1545
+ }
1546
+ export type TokenPermissions = {
1547
+ actions?: PermissionAction[];
1548
+ scopes?: string[];
1549
+ resources?: TokenResourceScope;
1550
+ filters?: AclFilter;
1551
+ readOnly?: boolean;
1552
+ };
1553
+ export type TokenResourceScope = {
1554
+ workspaces?: string[];
1555
+ bases?: string[];
1556
+ tables?: string[];
1557
+ views?: string[];
1558
+ fields?: string[];
1559
+ };
1560
+ export type UpdateApiTokenDto = Partial<CreateApiTokenDto> & {
1561
+ revoked?: boolean | null;
1562
+ };
1563
+ export type UpdateBaseDto = Partial<CreateBaseDto>;
1564
+ export type UpdateBaseMemberDto = Partial<AddBaseMemberDto> & {
1565
+ isActive?: boolean;
1566
+ deleted?: boolean;
1567
+ };
1568
+ export type UpdateCalendarViewDto = Partial<CalendarViewConfigDto>;
1569
+ export type UpdateColumnDto = Partial<CreateColumnDto>;
1570
+ export interface UpdateCommentDto {
1571
+ commentText: string;
1572
+ }
1573
+ export type UpdateFormViewDto = Partial<FormViewConfigDto>;
1574
+ export type UpdateGalleryViewDto = Partial<GalleryViewConfigDto>;
1575
+ export type UpdateGridViewDto = Partial<GridViewConfigDto>;
1576
+ export type UpdateHookDto = Partial<CreateHookDto>;
1577
+ export type UpdateKanbanViewDto = Partial<KanbanViewConfigDto>;
1578
+ export type UpdateMapViewDto = Partial<MapViewConfigDto>;
1579
+ export interface UpdateRecordFieldDto {
1580
+ value: JsonValue;
1581
+ }
1582
+ export type UpdateRowColorConditionDto = Partial<CreateRowColorConditionDto>;
1583
+ export interface UpdateRowColorModeDto {
1584
+ rowColoringMode: RowColoringMode;
1585
+ }
1586
+ export type UpdateSourceDto = Partial<CreateSourceDto>;
1587
+ export interface UpdateTableDto {
1588
+ workspaceId?: string;
1589
+ name?: string;
1590
+ slug?: string;
1591
+ baseId?: string | null;
1592
+ sourceId?: string | null;
1593
+ type?: ModelType | null;
1594
+ storageMode?: StorageMode | null;
1595
+ description?: string | null;
1596
+ order?: number | null;
1597
+ meta?: TableMeta;
1598
+ settings?: TableSettings;
1599
+ }
1600
+ export interface UpdateUserUiPreferencesDto {
1601
+ defaultWorkspaceId?: string | null;
1602
+ defaultBaseId?: string | null;
1603
+ }
1604
+ export type UpdateViewColumnDto = Partial<CreateViewColumnDto>;
1605
+ export type UpdateViewColumnItemDto = UpdateViewColumnDto & {
1606
+ columnId: string;
1607
+ };
1608
+ export type UpdateViewDto = Partial<CreateViewDto>;
1609
+ export type UpdateViewFilterDto = Partial<CreateViewFilterDto>;
1610
+ export type UpdateViewSortDto = Partial<CreateViewSortDto>;
1611
+ export type UpdateWorkspaceDto = Partial<CreateWorkspaceDto>;
1612
+ export interface UpdateWorkspaceInviteLinkSettingsDto {
1613
+ defaultExpiryDays?: number;
1614
+ defaultMaxUses?: number;
1615
+ }
1616
+ export type UpdateWorkspaceMemberDto = Partial<WorkspaceMemberRoleDto> & {
1617
+ starred?: boolean | null;
1618
+ hidden?: boolean | null;
1619
+ order?: number | null;
1620
+ isActive?: boolean | null;
1621
+ deleted?: boolean | null;
1622
+ };
1623
+ export interface UploadAttachmentDto {
1624
+ filename: string;
1625
+ path: string;
1626
+ sourceUrl?: string;
1627
+ fileUrl?: string;
1628
+ mime?: string;
1629
+ size?: number;
1630
+ fkWorkspaceId?: string;
1631
+ baseId?: string;
1632
+ sourceId?: string;
1633
+ fkModelId?: string;
1634
+ fkColumnId?: string;
1635
+ }
1636
+ export interface UploadImportFileDto {
1637
+ workspaceId?: string;
1638
+ baseId?: string;
1639
+ }
1640
+ export interface UserUiPreferencesRawDto {
1641
+ defaultWorkspaceId: string | null;
1642
+ defaultBaseId: string | null;
1643
+ }
1644
+ export interface UserUiPreferencesResolvedDto {
1645
+ defaultWorkspaceId: string | null;
1646
+ defaultBaseId: string | null;
1647
+ isValid: boolean;
1648
+ reason?: string;
1649
+ }
1650
+ export interface ViewColumnResponseDto {
1651
+ id: string;
1652
+ viewId: string;
1653
+ workspaceId: string | null;
1654
+ baseId: string | null;
1655
+ sourceId: string | null;
1656
+ fieldId: string;
1657
+ show: boolean | null;
1658
+ order: number | null;
1659
+ width: string | null;
1660
+ groupBy: boolean | null;
1661
+ groupByOrder: number | null;
1662
+ groupBySort: string | null;
1663
+ aggregation: string | null;
1664
+ label: string | null;
1665
+ helpText: string | null;
1666
+ placeholder: string | null;
1667
+ required: boolean | null;
1668
+ description: string | null;
1669
+ createdAt: number | null;
1670
+ updatedAt: number | null;
1671
+ }
1672
+ export type ViewDetailQueryDto = ListViewsQueryDto;
1673
+ export declare enum ViewLockType {
1674
+ COLLABORATIVE = "collaborative",
1675
+ LOCKED = "locked",
1676
+ PERSONAL = "personal"
1677
+ }
1678
+ export type ViewMeta = {
1679
+ icon?: string;
1680
+ color?: string;
1681
+ coverImage?: string;
1682
+ tags?: string[];
1683
+ isPinned?: boolean;
1684
+ layout?: {
1685
+ width?: number;
1686
+ height?: number;
1687
+ density?: 'compact' | 'normal' | 'comfortable';
1688
+ };
1689
+ };
1690
+ export interface ViewResponseDto {
1691
+ id: string;
1692
+ tableId: string;
1693
+ workspaceId: string | null;
1694
+ baseId: string | null;
1695
+ sourceId: string | null;
1696
+ name: string;
1697
+ description: string | null;
1698
+ type: ViewType;
1699
+ show: boolean;
1700
+ order: number | null;
1701
+ lockType: ViewLockType | null;
1702
+ uuid: string | null;
1703
+ showSystemFields: boolean;
1704
+ meta: ViewMeta;
1705
+ rowColoringMode: RowColoringMode | null;
1706
+ createdBy: number | null;
1707
+ ownedBy: number | null;
1708
+ customUrlId: string | null;
1709
+ isDefault: boolean;
1710
+ createdAt: number;
1711
+ updatedAt: number | null;
1712
+ }
1713
+ export declare enum ViewSortDirection {
1714
+ ASC = "asc",
1715
+ DESC = "desc",
1716
+ COUNT_ASC = "count-asc",
1717
+ COUNT_DESC = "count-desc"
1718
+ }
1719
+ export declare enum ViewType {
1720
+ FORM = "form",
1721
+ GALLERY = "gallery",
1722
+ GRID = "grid",
1723
+ KANBAN = "kanban",
1724
+ CALENDAR = "calendar",
1725
+ MAP = "map"
1726
+ }
1727
+ export interface WarmupCacheDto {
1728
+ tableIds?: string[];
1729
+ ttlSeconds?: number;
1730
+ }
1731
+ export interface WorkspaceInviteLinkResponseDto {
1732
+ id: string;
1733
+ workspaceId: string;
1734
+ role: WorkspaceMemberRole;
1735
+ scope: MembershipScope;
1736
+ baseId: string | null;
1737
+ teamId: string | null;
1738
+ roles: string | null;
1739
+ expiresAt: number;
1740
+ maxUses: number;
1741
+ usedCount: number;
1742
+ createdBy: number;
1743
+ status: WorkspaceInviteLinkStatus;
1744
+ createdAt: number | null;
1745
+ updatedAt: number | null;
1746
+ url?: string;
1747
+ }
1748
+ export interface WorkspaceInviteLinkSettingsResponseDto {
1749
+ id: string;
1750
+ workspaceId: string;
1751
+ defaultExpiryDays: number;
1752
+ defaultMaxUses: number;
1753
+ createdAt: number | null;
1754
+ updatedAt: number | null;
1755
+ }
1756
+ export declare enum WorkspaceInviteLinkStatus {
1757
+ ACTIVE = "ACTIVE",
1758
+ EXPIRED = "EXPIRED",
1759
+ DISABLED = "DISABLED"
1760
+ }
1761
+ export interface WorkspaceInviteResponseDto {
1762
+ id: string;
1763
+ workspaceId: string;
1764
+ email: string;
1765
+ role: WorkspaceMemberRole;
1766
+ scope: MembershipScope;
1767
+ baseId: string | null;
1768
+ teamId: string | null;
1769
+ roles: string | null;
1770
+ invitedBy: number;
1771
+ status: WorkspaceInviteStatus;
1772
+ expiresAt: number;
1773
+ acceptedBy: number | null;
1774
+ acceptedAt: number | null;
1775
+ createdAt: number;
1776
+ updatedAt: number;
1777
+ }
1778
+ export declare enum WorkspaceInviteStatus {
1779
+ PENDING = "PENDING",
1780
+ ACCEPTED = "ACCEPTED",
1781
+ EXPIRED = "EXPIRED",
1782
+ REVOKED = "REVOKED"
1783
+ }
1784
+ export interface WorkspaceJoinRequestResponseDto {
1785
+ id: string;
1786
+ workspaceId: string;
1787
+ userId: number;
1788
+ inviteLinkId: string;
1789
+ status: WorkspaceJoinRequestStatus;
1790
+ requestedAt: number;
1791
+ approvedBy: number | null;
1792
+ approvedAt: number | null;
1793
+ rejectedBy: number | null;
1794
+ rejectedAt: number | null;
1795
+ createdAt: number | null;
1796
+ updatedAt: number | null;
1797
+ }
1798
+ export declare enum WorkspaceJoinRequestStatus {
1799
+ PENDING = "PENDING",
1800
+ APPROVED = "APPROVED",
1801
+ REJECTED = "REJECTED"
1802
+ }
1803
+ export interface WorkspaceMemberListResponseDto {
1804
+ list: WorkspaceMemberResponseDto[];
1805
+ pageInfo: WorkspaceMemberPageInfoDto;
1806
+ }
1807
+ export interface WorkspaceMemberPageInfoDto {
1808
+ totalRows: number;
1809
+ page: number;
1810
+ pageSize: number;
1811
+ isFirstPage: boolean;
1812
+ isLastPage: boolean;
1813
+ offset: number;
1814
+ }
1815
+ export interface WorkspaceMemberResponseDto {
1816
+ id: string;
1817
+ workspaceId: string;
1818
+ userId: number;
1819
+ role: WorkspaceMemberRole;
1820
+ starred?: boolean | null;
1821
+ order?: number | null;
1822
+ hidden?: boolean | null;
1823
+ isMigrated?: boolean | null;
1824
+ deleted: boolean;
1825
+ invitedBy?: number | null;
1826
+ joinedAt: number;
1827
+ createdAt?: number | null;
1828
+ updatedAt?: number | null;
1829
+ isActive: boolean;
1830
+ user?: WorkspaceMemberUserDto | null;
1831
+ }
1832
+ export declare enum WorkspaceMemberRole {
1833
+ OWNER = "owner",
1834
+ ADMIN = "admin",
1835
+ EDITOR = "editor",
1836
+ COMMENTER = "commenter",
1837
+ VIEWER = "viewer"
1838
+ }
1839
+ export interface WorkspaceMemberRoleDto {
1840
+ role?: WorkspaceMemberRole;
1841
+ }
1842
+ export type WorkspaceMemberRoleScopeDto = WorkspaceMemberRoleDto & {
1843
+ scope?: MembershipScope;
1844
+ baseId?: string | null;
1845
+ teamId?: string | null;
1846
+ };
1847
+ export interface WorkspaceMemberUserDto {
1848
+ id: number;
1849
+ fullName?: string | null;
1850
+ avatar?: string | null;
1851
+ }
1852
+ export interface WorkspaceResponseDto {
1853
+ id: string;
1854
+ name: string;
1855
+ slug: string;
1856
+ description: string | null;
1857
+ settings: WorkspaceSettings;
1858
+ isActive: boolean;
1859
+ ownerId: number;
1860
+ createdAt: number;
1861
+ }
1862
+ export interface WorkspaceSettings {
1863
+ logo?: string;
1864
+ favicon?: string;
1865
+ primaryColor?: string;
1866
+ theme?: 'light' | 'dark' | 'system';
1867
+ defaultMemberRole?: WorkspaceMemberRole;
1868
+ allowPublicTables?: boolean;
1869
+ requireApproval?: boolean;
1870
+ emailNotifications?: boolean;
1871
+ slackIntegration?: SlackIntegrationConfig;
1872
+ maxTables?: number;
1873
+ maxMembers?: number;
1874
+ maxStorageBytes?: number;
1875
+ enableAuditLog?: boolean;
1876
+ enableApiAccess?: boolean;
1877
+ enableExport?: boolean;
1878
+ enableImport?: boolean;
1879
+ customDomain?: string;
1880
+ customDomainVerified?: boolean;
1881
+ }
1882
+ export interface AbortImportJobParams {
1883
+ jobId: string;
1884
+ }
1885
+ export interface AcceptInviteParams {
1886
+ body: AcceptWorkspaceInviteDto;
1887
+ }
1888
+ export interface AddBaseMemberParams {
1889
+ baseId: string;
1890
+ body: AddBaseMemberDto;
1891
+ }
1892
+ export interface AddMemberParams {
1893
+ workspaceId: string;
1894
+ body: AddWorkspaceInviteDto;
1895
+ }
1896
+ export interface AddReactionParams {
1897
+ commentId: string;
1898
+ body: CreateCommentReactionDto;
1899
+ }
1900
+ export interface AggregateRecordsParams {
1901
+ tableId: string;
1902
+ query?: RecordAggregateQueryDto;
1903
+ }
1904
+ export interface ApproveRequestParams {
1905
+ workspaceId: string;
1906
+ requestId: string;
1907
+ }
1908
+ export interface BulkColumnsParams {
1909
+ tableId: string;
1910
+ body: BulkColumnsDto;
1911
+ }
1912
+ export interface BulkDataListParams {
1913
+ tableId: string;
1914
+ body: BulkDataListDto;
1915
+ }
1916
+ export interface BulkGroupByParams {
1917
+ tableId: string;
1918
+ body: BulkGroupDto;
1919
+ }
1920
+ export interface BulkUpdateViewColumnsParams {
1921
+ viewId: string;
1922
+ body: BulkUpdateViewColumnsDto;
1923
+ }
1924
+ export interface CancelJobParams {
1925
+ jobId: string;
1926
+ }
1927
+ export interface ClearRowColorParams {
1928
+ viewId: string;
1929
+ }
1930
+ export interface CountByDateParams {
1931
+ tableId: string;
1932
+ viewId: string;
1933
+ query?: CalendarDataQueryDto;
1934
+ }
1935
+ export interface CountCommentsParams {
1936
+ query?: CountCommentsQueryDto;
1937
+ }
1938
+ export interface CountRangeParams {
1939
+ tableId: string;
1940
+ viewId: string;
1941
+ query?: CalendarDataQueryDto;
1942
+ }
1943
+ export interface CountRecordsParams {
1944
+ tableId: string;
1945
+ query?: RecordListQueryDto;
1946
+ }
1947
+ export interface CreateApiTokenParams {
1948
+ body: CreateApiTokenDto;
1949
+ }
1950
+ export interface CreateBaseParams {
1951
+ workspaceId: string;
1952
+ body: CreateBaseDto;
1953
+ }
1954
+ export interface CreateCalendarViewParams {
1955
+ tableId: string;
1956
+ body: CreateCalendarViewDto;
1957
+ }
1958
+ export interface CreateColumnParams {
1959
+ tableId: string;
1960
+ body: CreateColumnDto;
1961
+ }
1962
+ export interface CreateCommentParams {
1963
+ body: CreateCommentDto;
1964
+ }
1965
+ export interface CreateFilterParams {
1966
+ viewId: string;
1967
+ body: CreateViewFilterDto;
1968
+ }
1969
+ export interface CreateFormViewParams {
1970
+ tableId: string;
1971
+ body: CreateFormViewDto;
1972
+ }
1973
+ export interface CreateGalleryViewParams {
1974
+ tableId: string;
1975
+ body: CreateGalleryViewDto;
1976
+ }
1977
+ export interface CreateGridViewParams {
1978
+ tableId: string;
1979
+ body: CreateGridViewDto;
1980
+ }
1981
+ export interface CreateInviteLinkParams {
1982
+ workspaceId: string;
1983
+ body: CreateWorkspaceInviteLinkDto;
1984
+ }
1985
+ export interface CreateKanbanViewParams {
1986
+ tableId: string;
1987
+ body: CreateKanbanViewDto;
1988
+ }
1989
+ export interface CreateMapViewParams {
1990
+ tableId: string;
1991
+ body: CreateMapViewDto;
1992
+ }
1993
+ export interface CreatePresignedUrlParams {
1994
+ body: CreatePresignedUrlDto;
1995
+ }
1996
+ export interface CreateRecordsParams {
1997
+ tableId: string;
1998
+ body: TableRecordInput | TableRecordInput[];
1999
+ }
2000
+ export interface CreateRowColorConditionParams {
2001
+ viewId: string;
2002
+ body: CreateRowColorConditionDto;
2003
+ }
2004
+ export interface CreateSecureTokenParams {
2005
+ attachmentId: string;
2006
+ body: SecureAttachmentTokenDto;
2007
+ }
2008
+ export interface CreateSortParams {
2009
+ viewId: string;
2010
+ body: CreateViewSortDto;
2011
+ }
2012
+ export interface CreateSourceParams {
2013
+ baseId: string;
2014
+ body: CreateSourceDto;
2015
+ }
2016
+ export interface CreateTableParams {
2017
+ body: CreateTableDto;
2018
+ }
2019
+ export interface CreateViewColumnParams {
2020
+ viewId: string;
2021
+ body: CreateViewColumnDto;
2022
+ }
2023
+ export interface CreateViewParams {
2024
+ tableId: string;
2025
+ body: CreateViewDto;
2026
+ }
2027
+ export interface CreateWorkspaceParams {
2028
+ body: CreateWorkspaceDto;
2029
+ }
2030
+ export interface DeleteApiTokenParams {
2031
+ tokenId: string;
2032
+ }
2033
+ export interface DeleteAttachmentParams {
2034
+ attachmentId: string;
2035
+ }
2036
+ export interface DeleteBaseParams {
2037
+ baseId: string;
2038
+ }
2039
+ export interface DeleteColumnParams {
2040
+ columnId: string;
2041
+ }
2042
+ export interface DeleteCommentParams {
2043
+ commentId: string;
2044
+ }
2045
+ export interface DeleteFilterParams {
2046
+ filterId: string;
2047
+ }
2048
+ export interface DeleteRecordsParams {
2049
+ tableId: string;
2050
+ body: string | string[] | RecordIdPayload | RecordIdPayload[];
2051
+ }
2052
+ export interface DeleteRowColorConditionParams {
2053
+ viewId: string;
2054
+ id: string;
2055
+ }
2056
+ export interface DeleteSettingsParams {
2057
+ workspaceId: string;
2058
+ }
2059
+ export interface DeleteSortParams {
2060
+ sortId: string;
2061
+ }
2062
+ export interface DeleteSourceParams {
2063
+ sourceId: string;
2064
+ }
2065
+ export interface DeleteTableParams {
2066
+ tableId: string;
2067
+ }
2068
+ export interface DeleteViewParams {
2069
+ viewId: string;
2070
+ }
2071
+ export interface DeleteWorkspaceParams {
2072
+ workspaceId: string;
2073
+ }
2074
+ export interface DuplicateViewParams {
2075
+ viewId: string;
2076
+ }
2077
+ export interface EnumsParams {
2078
+ _?: never;
2079
+ }
2080
+ export interface ExchangeTokenParams {
2081
+ _?: never;
2082
+ }
2083
+ export interface GetAttachmentParams {
2084
+ attachmentId: string;
2085
+ }
2086
+ export interface GetBaseParams {
2087
+ baseId: string;
2088
+ }
2089
+ export interface GetCalendarViewParams {
2090
+ calendarViewId: string;
2091
+ }
2092
+ export interface GetColumnParams {
2093
+ columnId: string;
2094
+ }
2095
+ export interface GetColumnsHashParams {
2096
+ tableId: string;
2097
+ }
2098
+ export interface GetFilterParams {
2099
+ filterId: string;
2100
+ }
2101
+ export interface GetFormViewParams {
2102
+ formViewId: string;
2103
+ }
2104
+ export interface GetGalleryViewParams {
2105
+ galleryViewId: string;
2106
+ }
2107
+ export interface GetImportJobParams {
2108
+ jobId: string;
2109
+ }
2110
+ export interface GetInviteLinkParams {
2111
+ workspaceId: string;
2112
+ }
2113
+ export interface GetJobParams {
2114
+ jobId: string;
2115
+ }
2116
+ export interface GetKanbanViewParams {
2117
+ kanbanViewId: string;
2118
+ }
2119
+ export interface GetMapViewParams {
2120
+ mapViewId: string;
2121
+ }
2122
+ export interface GetMeUiPreferencesParams {
2123
+ _?: never;
2124
+ }
2125
+ export interface GetOrCreateInviteLinkParams {
2126
+ workspaceId: string;
2127
+ }
2128
+ export interface GetRecordParams {
2129
+ tableId: string;
2130
+ recordId: string;
2131
+ }
2132
+ export interface GetRowColorParams {
2133
+ viewId: string;
2134
+ }
2135
+ export interface GetSecureAttachmentParams {
2136
+ attachmentId: string;
2137
+ }
2138
+ export interface GetSettingsParams {
2139
+ workspaceId: string;
2140
+ }
2141
+ export interface GetSortParams {
2142
+ sortId: string;
2143
+ }
2144
+ export interface GetSourceParams {
2145
+ sourceId: string;
2146
+ }
2147
+ export interface GetTableParams {
2148
+ tableId: string;
2149
+ query?: ListTablesQueryDto;
2150
+ }
2151
+ export interface GetViewParams {
2152
+ viewId: string;
2153
+ query?: ViewDetailQueryDto;
2154
+ }
2155
+ export interface GetWorkspaceBySlugParams {
2156
+ slug: string;
2157
+ }
2158
+ export interface GetWorkspaceParams {
2159
+ workspaceId: string;
2160
+ }
2161
+ export interface GroupByParams {
2162
+ tableId: string;
2163
+ fieldId: string;
2164
+ query?: RecordListQueryDto;
2165
+ }
2166
+ export interface HealthParams {
2167
+ _?: never;
2168
+ }
2169
+ export interface HideViewParams {
2170
+ viewId: string;
2171
+ }
2172
+ export interface HookCreateParams {
2173
+ tableId: string;
2174
+ body: CreateHookDto;
2175
+ }
2176
+ export interface HookDeleteParams {
2177
+ hookId: string;
2178
+ }
2179
+ export interface HookFilterCreateParams {
2180
+ hookId: string;
2181
+ body: CreateViewFilterDto;
2182
+ }
2183
+ export interface HookFilterDeleteParams {
2184
+ hookId: string;
2185
+ filterId: string;
2186
+ }
2187
+ export interface HookFilterListParams {
2188
+ hookId: string;
2189
+ }
2190
+ export interface HookFilterUpdateParams {
2191
+ hookId: string;
2192
+ filterId: string;
2193
+ body: UpdateViewFilterDto;
2194
+ }
2195
+ export interface HookListParams {
2196
+ tableId: string;
2197
+ query?: ListHooksQueryDto;
2198
+ }
2199
+ export interface HookLogListParams {
2200
+ hookId: string;
2201
+ query?: ListHookLogsQueryDto;
2202
+ }
2203
+ export interface HookTestParams {
2204
+ tableId: string;
2205
+ body: TestHookDto;
2206
+ }
2207
+ export interface HookTriggerParams {
2208
+ hookId: string;
2209
+ rowId: string;
2210
+ }
2211
+ export interface HookUpdateParams {
2212
+ hookId: string;
2213
+ body: UpdateHookDto;
2214
+ }
2215
+ export interface ImportFromUrlParams {
2216
+ body: ImportFromUrlDto;
2217
+ }
2218
+ export interface InvalidateParams {
2219
+ body: InvalidateCacheDto;
2220
+ }
2221
+ export interface LinkRecordsBulkParams {
2222
+ tableId: string;
2223
+ fieldId: string;
2224
+ body: BulkLinkDto;
2225
+ }
2226
+ export interface LinkRecordsParams {
2227
+ tableId: string;
2228
+ fieldId: string;
2229
+ recordId: string;
2230
+ body: RelationUpdateDto;
2231
+ }
2232
+ export interface ListApiTokensParams {
2233
+ query?: ListApiTokensQueryDto;
2234
+ }
2235
+ export interface ListBaseMembersParams {
2236
+ baseId: string;
2237
+ query?: ListBaseMembersQueryDto;
2238
+ }
2239
+ export interface ListBasesParams {
2240
+ workspaceId: string;
2241
+ query?: ListBasesQueryDto;
2242
+ }
2243
+ export interface ListCalendarRecordsParams {
2244
+ tableId: string;
2245
+ viewId: string;
2246
+ query?: CalendarDataQueryDto;
2247
+ }
2248
+ export interface ListChildrenParams {
2249
+ filterParentId: string;
2250
+ }
2251
+ export interface ListCommentsParams {
2252
+ query?: ListCommentsQueryDto;
2253
+ }
2254
+ export interface ListenParams {
2255
+ body: JobListenDto;
2256
+ }
2257
+ export interface ListFiltersParams {
2258
+ viewId: string;
2259
+ }
2260
+ export interface ListGridColumnsParams {
2261
+ gridViewId: string;
2262
+ }
2263
+ export interface ListGroupedRecordsParams {
2264
+ tableId: string;
2265
+ viewId: string;
2266
+ query?: RecordListQueryDto;
2267
+ }
2268
+ export interface ListJobsParams {
2269
+ query?: ListJobsQueryDto;
2270
+ }
2271
+ export interface ListLinkedRecordsParams {
2272
+ tableId: string;
2273
+ fieldId: string;
2274
+ recordId: string;
2275
+ }
2276
+ export interface ListMembersParams {
2277
+ workspaceId: string;
2278
+ query?: ListWorkspaceMembersQueryDto;
2279
+ }
2280
+ export interface ListRecordsParams {
2281
+ tableId: string;
2282
+ query?: RecordListQueryDto;
2283
+ }
2284
+ export interface ListRequestsParams {
2285
+ workspaceId: string;
2286
+ query?: ListWorkspaceJoinRequestsQueryDto;
2287
+ }
2288
+ export interface ListSortsParams {
2289
+ viewId: string;
2290
+ }
2291
+ export interface ListSourcesParams {
2292
+ baseId: string;
2293
+ query?: ListSourcesQueryDto;
2294
+ }
2295
+ export interface ListTablesParams {
2296
+ query?: ListTablesQueryDto;
2297
+ }
2298
+ export interface ListViewColumnsParams {
2299
+ viewId: string;
2300
+ }
2301
+ export interface ListViewsParams {
2302
+ tableId: string;
2303
+ query?: ListViewsQueryDto;
2304
+ }
2305
+ export interface ListWorkspacesParams {
2306
+ query?: ListWorkspacesQueryDto;
2307
+ }
2308
+ export interface MoveRecordParams {
2309
+ tableId: string;
2310
+ recordId: string;
2311
+ body: RecordMoveDto;
2312
+ }
2313
+ export interface OpenApiJsonParams {
2314
+ _?: never;
2315
+ }
2316
+ export interface PermissionsParams {
2317
+ _?: never;
2318
+ }
2319
+ export interface PinParams {
2320
+ body: PinCommandPaletteDto;
2321
+ }
2322
+ export interface PreviewImportFileParams {
2323
+ body: PreviewImportDto;
2324
+ }
2325
+ export interface RecentParams {
2326
+ _?: never;
2327
+ }
2328
+ export interface RecordAuditParams {
2329
+ recordId: string;
2330
+ }
2331
+ export interface RedocParams {
2332
+ _?: never;
2333
+ }
2334
+ export interface ReindexTableParams {
2335
+ tableId: string;
2336
+ }
2337
+ export interface RejectRequestParams {
2338
+ workspaceId: string;
2339
+ requestId: string;
2340
+ }
2341
+ export interface RemoveBaseMemberParams {
2342
+ baseId: string;
2343
+ baseMemberId: string;
2344
+ }
2345
+ export interface RemoveMemberParams {
2346
+ workspaceId: string;
2347
+ memberId: string;
2348
+ }
2349
+ export interface RemoveReactionParams {
2350
+ commentId: string;
2351
+ reaction: string;
2352
+ }
2353
+ export interface ReorderColumnsParams {
2354
+ tableId: string;
2355
+ body: ReorderColumnsDto;
2356
+ }
2357
+ export interface ReorderSortsParams {
2358
+ viewId: string;
2359
+ body: ReorderViewSortsDto;
2360
+ }
2361
+ export interface ReorderTablesParams {
2362
+ tableId: string;
2363
+ body: ReorderTablesDto;
2364
+ }
2365
+ export interface RequestJoinParams {
2366
+ linkId: string;
2367
+ body: RequestJoinByInviteLinkDto;
2368
+ }
2369
+ export interface RetryJobParams {
2370
+ jobId: string;
2371
+ }
2372
+ export interface RunOperationParams {
2373
+ name: string;
2374
+ body: InternalOperationDto;
2375
+ }
2376
+ export interface SearchParams {
2377
+ query?: CommandPaletteSearchQueryDto;
2378
+ }
2379
+ export interface SetDefaultViewParams {
2380
+ viewId: string;
2381
+ }
2382
+ export interface SetPrimaryColumnParams {
2383
+ columnId: string;
2384
+ }
2385
+ export interface ShowViewParams {
2386
+ viewId: string;
2387
+ }
2388
+ export interface StartImportParams {
2389
+ body: StartImportDto;
2390
+ }
2391
+ export interface StatsParams {
2392
+ _?: never;
2393
+ }
2394
+ export interface SwaggerParams {
2395
+ _?: never;
2396
+ }
2397
+ export interface TableSampleDataParams {
2398
+ tableId: string;
2399
+ event: AppEvents;
2400
+ operation: HookOperation;
2401
+ version: HookVersion;
2402
+ query?: string;
2403
+ }
2404
+ export interface UnlinkRecordsBulkParams {
2405
+ tableId: string;
2406
+ fieldId: string;
2407
+ body: BulkLinkDto;
2408
+ }
2409
+ export interface UnlinkRecordsParams {
2410
+ tableId: string;
2411
+ fieldId: string;
2412
+ recordId: string;
2413
+ body: RelationUpdateDto;
2414
+ }
2415
+ export interface UpdateApiTokenParams {
2416
+ tokenId: string;
2417
+ body: UpdateApiTokenDto;
2418
+ }
2419
+ export interface UpdateBaseMemberParams {
2420
+ baseId: string;
2421
+ baseMemberId: string;
2422
+ body: UpdateBaseMemberDto;
2423
+ }
2424
+ export interface UpdateBaseParams {
2425
+ baseId: string;
2426
+ body: UpdateBaseDto;
2427
+ }
2428
+ export interface UpdateCalendarViewParams {
2429
+ calendarViewId: string;
2430
+ body: UpdateCalendarViewDto;
2431
+ }
2432
+ export interface UpdateColumnParams {
2433
+ columnId: string;
2434
+ body: UpdateColumnDto;
2435
+ }
2436
+ export interface UpdateCommentParams {
2437
+ commentId: string;
2438
+ body: UpdateCommentDto;
2439
+ }
2440
+ export interface UpdateFilterParams {
2441
+ filterId: string;
2442
+ body: UpdateViewFilterDto;
2443
+ }
2444
+ export interface UpdateFormColumnParams {
2445
+ formViewColumnId: string;
2446
+ body: UpdateViewColumnDto;
2447
+ }
2448
+ export interface UpdateFormViewParams {
2449
+ formViewId: string;
2450
+ body: UpdateFormViewDto;
2451
+ }
2452
+ export interface UpdateGalleryViewParams {
2453
+ galleryViewId: string;
2454
+ body: UpdateGalleryViewDto;
2455
+ }
2456
+ export interface UpdateGridColumnParams {
2457
+ gridViewColumnId: string;
2458
+ body: UpdateViewColumnDto;
2459
+ }
2460
+ export interface UpdateGridViewParams {
2461
+ viewId: string;
2462
+ body: UpdateGridViewDto;
2463
+ }
2464
+ export interface UpdateKanbanViewParams {
2465
+ kanbanViewId: string;
2466
+ body: UpdateKanbanViewDto;
2467
+ }
2468
+ export interface UpdateMapViewParams {
2469
+ mapViewId: string;
2470
+ body: UpdateMapViewDto;
2471
+ }
2472
+ export interface UpdateMemberParams {
2473
+ workspaceId: string;
2474
+ memberId: string;
2475
+ body: UpdateWorkspaceMemberDto;
2476
+ }
2477
+ export interface UpdateMeUiPreferencesParams {
2478
+ body: UpdateUserUiPreferencesDto;
2479
+ }
2480
+ export interface UpdateRecordFieldParams {
2481
+ tableId: string;
2482
+ recordId: string;
2483
+ fieldId: string;
2484
+ body: UpdateRecordFieldDto;
2485
+ }
2486
+ export interface UpdateRecordsParams {
2487
+ tableId: string;
2488
+ body: TableRecordInput | TableRecordInput[];
2489
+ }
2490
+ export interface UpdateRowColorConditionParams {
2491
+ viewId: string;
2492
+ id: string;
2493
+ body: UpdateRowColorConditionDto;
2494
+ }
2495
+ export interface UpdateRowColorModeParams {
2496
+ viewId: string;
2497
+ body: UpdateRowColorModeDto;
2498
+ }
2499
+ export interface UpdateSortParams {
2500
+ sortId: string;
2501
+ body: UpdateViewSortDto;
2502
+ }
2503
+ export interface UpdateSourceParams {
2504
+ sourceId: string;
2505
+ body: UpdateSourceDto;
2506
+ }
2507
+ export interface UpdateTableParams {
2508
+ tableId: string;
2509
+ body: UpdateTableDto;
2510
+ }
2511
+ export interface UpdateViewColumnParams {
2512
+ viewId: string;
2513
+ columnId: string;
2514
+ body: UpdateViewColumnDto;
2515
+ }
2516
+ export interface UpdateViewParams {
2517
+ viewId: string;
2518
+ body: UpdateViewDto;
2519
+ }
2520
+ export interface UpdateWorkspaceParams {
2521
+ workspaceId: string;
2522
+ body: UpdateWorkspaceDto;
2523
+ }
2524
+ export interface UploadImportFileParams {
2525
+ body: UploadImportFileDto;
2526
+ }
2527
+ export interface UploadParams {
2528
+ body: UploadAttachmentDto;
2529
+ }
2530
+ export interface UpsertSettingsParams {
2531
+ workspaceId: string;
2532
+ body: UpdateWorkspaceInviteLinkSettingsDto;
2533
+ }
2534
+ export interface VersionParams {
2535
+ _?: never;
2536
+ }
2537
+ export interface WarmupParams {
2538
+ body: WarmupCacheDto;
2539
+ }