@evercam/api 1.0.0-fbf4f4d51 → 1.0.0-fe3b7bf1c
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.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +204 -15
- package/dist/api/api/adminApi.d.ts +48 -16
- package/dist/api/api/aiApi.d.ts +113 -51
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +70 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -6
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +56 -43
- package/dist/api/types/360.d.ts +197 -54
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +95 -54
- package/dist/api/types/anpr.d.ts +40 -0
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/authz.d.ts +47 -0
- package/dist/api/types/automation.d.ts +11 -2
- package/dist/api/types/axios.d.ts +11 -7
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +20 -27
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +3 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +10 -5
- package/dist/api/types/detections.d.ts +7 -11
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +20 -32
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +10 -1
- package/dist/api/types/ingest.d.ts +31 -4
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +9 -2
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +97 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/progressPhoto.d.ts +2 -1
- package/dist/api/types/project.d.ts +31 -3
- package/dist/api/types/recording.d.ts +7 -11
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +7 -17
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +48 -3
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/timelapse.d.ts +6 -2
- package/dist/api/types/user.d.ts +1 -5
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +2093 -982
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +113 -9
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +9 -2
- package/dist/shared/types/index.d.ts +3 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types/time";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { GeoPoint, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
export type _360OverlayPosition = {
|
|
4
|
+
northEast: GeoPoint;
|
|
5
|
+
northWest: GeoPoint;
|
|
6
|
+
southEast: GeoPoint;
|
|
7
|
+
southWest: GeoPoint;
|
|
5
8
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export type ForgeViewport = {
|
|
10
|
+
name: string;
|
|
11
|
+
eye: number[];
|
|
12
|
+
target: number[];
|
|
13
|
+
worldUpVector?: number[];
|
|
10
14
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
export type ForgeView = {
|
|
16
|
+
name: string;
|
|
17
|
+
viewport: ForgeViewport;
|
|
18
|
+
timestamp: string;
|
|
14
19
|
};
|
|
15
20
|
export type _360CameraRotation = {
|
|
16
21
|
azimuthAngle: number;
|
|
17
22
|
polarAngle: number;
|
|
18
23
|
};
|
|
24
|
+
export type _360Geolocation = {
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
};
|
|
19
28
|
export type _360Marker3D = {
|
|
20
|
-
cameraPosition:
|
|
29
|
+
cameraPosition: Point3D;
|
|
21
30
|
geolocation: _360Geolocation;
|
|
22
31
|
nextRoomId: _360MakerId;
|
|
23
|
-
position:
|
|
32
|
+
position: Point3D;
|
|
24
33
|
rotation: {
|
|
25
34
|
_order: "XYZ" | string;
|
|
26
35
|
_x: number;
|
|
@@ -35,7 +44,7 @@ export type _360Tag = {
|
|
|
35
44
|
comment: string;
|
|
36
45
|
creationDate: number;
|
|
37
46
|
currentRoom: _360MakerId;
|
|
38
|
-
position:
|
|
47
|
+
position: Point3D;
|
|
39
48
|
cameraRotation: _360CameraRotation;
|
|
40
49
|
};
|
|
41
50
|
export type _360FloorId = string | number;
|
|
@@ -45,8 +54,16 @@ export type _360Floor = {
|
|
|
45
54
|
_3DMarkers: _360Marker3D[];
|
|
46
55
|
cameraRotation: _360CameraRotation;
|
|
47
56
|
fbxModel: string;
|
|
57
|
+
fbxModelHQ?: string;
|
|
58
|
+
pointCloudModelHQ?: string;
|
|
48
59
|
initialMarker: _360MakerId;
|
|
49
60
|
modelViewerFeatureFlag: boolean;
|
|
61
|
+
imagesOnlyFeatureFlag?: boolean;
|
|
62
|
+
forgeBIMFeatureFlag?: boolean;
|
|
63
|
+
isForgeGravityEnabled?: boolean;
|
|
64
|
+
initialForgeView?: ForgeView | null;
|
|
65
|
+
enhancedLightFeatureFlag?: boolean;
|
|
66
|
+
calibrationDetails?: Record<string, unknown>;
|
|
50
67
|
route: {
|
|
51
68
|
cameraHeadingOffset: string;
|
|
52
69
|
overlayID: number;
|
|
@@ -54,7 +71,7 @@ export type _360Floor = {
|
|
|
54
71
|
};
|
|
55
72
|
sceneScale: number;
|
|
56
73
|
steps: number;
|
|
57
|
-
tags
|
|
74
|
+
tags?: Record<string, _360Tag>;
|
|
58
75
|
};
|
|
59
76
|
export type _360WalkV2 = {
|
|
60
77
|
archive: string;
|
|
@@ -75,6 +92,8 @@ export type _360WalkV2 = {
|
|
|
75
92
|
processingStatus: string;
|
|
76
93
|
projectId: string;
|
|
77
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
96
|
+
hasSteps?: boolean;
|
|
78
97
|
route: unknown | null;
|
|
79
98
|
startPosition: unknown | null;
|
|
80
99
|
tusLinks: unknown | null;
|
|
@@ -83,6 +102,29 @@ export type _360WalkV2 = {
|
|
|
83
102
|
videoArchive: string;
|
|
84
103
|
videos: string[];
|
|
85
104
|
};
|
|
105
|
+
export type _360ProcessingStep = {
|
|
106
|
+
name: string;
|
|
107
|
+
tool: string | null;
|
|
108
|
+
status: string;
|
|
109
|
+
startedAt: string | null;
|
|
110
|
+
endedAt: string | null;
|
|
111
|
+
durationSec: number | null;
|
|
112
|
+
durationPct: number | null;
|
|
113
|
+
detail: Record<string, unknown>;
|
|
114
|
+
};
|
|
115
|
+
export type _360ProgressResponse = {
|
|
116
|
+
available: boolean;
|
|
117
|
+
processingStatus: string;
|
|
118
|
+
status: string | null;
|
|
119
|
+
currentStep: string | null;
|
|
120
|
+
startedAt: string | null;
|
|
121
|
+
steps: _360ProcessingStep[];
|
|
122
|
+
footprint?: _360Footprint | null;
|
|
123
|
+
};
|
|
124
|
+
export type _360Footprint = {
|
|
125
|
+
disk: Record<string, number>;
|
|
126
|
+
peak: Record<string, number>;
|
|
127
|
+
};
|
|
86
128
|
export type _360FloorV2 = {
|
|
87
129
|
id: _360FloorId;
|
|
88
130
|
assets: _360WalkV2[];
|
|
@@ -92,30 +134,14 @@ export type _360FloorV2 = {
|
|
|
92
134
|
hasOverlay: boolean;
|
|
93
135
|
isCalibrated: boolean;
|
|
94
136
|
createdBy: string | null;
|
|
95
|
-
overlayPosition:
|
|
96
|
-
northEast: {
|
|
97
|
-
lat: number;
|
|
98
|
-
lng: number;
|
|
99
|
-
};
|
|
100
|
-
northWest: {
|
|
101
|
-
lat: number;
|
|
102
|
-
lng: number;
|
|
103
|
-
};
|
|
104
|
-
southEast: {
|
|
105
|
-
lat: number;
|
|
106
|
-
lng: number;
|
|
107
|
-
};
|
|
108
|
-
southWest: {
|
|
109
|
-
lat: number;
|
|
110
|
-
lng: number;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
137
|
+
overlayPosition: _360OverlayPosition;
|
|
113
138
|
insertedAt: string;
|
|
114
139
|
updatedAt: string;
|
|
140
|
+
deletedAt: string | null;
|
|
115
141
|
};
|
|
116
142
|
export type _360Scene = {
|
|
117
143
|
date: string;
|
|
118
|
-
dateID: number;
|
|
144
|
+
dateID: string | number;
|
|
119
145
|
floors: {
|
|
120
146
|
floorID: _360FloorId;
|
|
121
147
|
name: string;
|
|
@@ -123,11 +149,33 @@ export type _360Scene = {
|
|
|
123
149
|
polarAngle: number;
|
|
124
150
|
azimuthAngle: number;
|
|
125
151
|
};
|
|
152
|
+
export declare enum _360PinType {
|
|
153
|
+
Default = "Default"
|
|
154
|
+
}
|
|
155
|
+
export type _360Pin = {
|
|
156
|
+
position: Point3D;
|
|
157
|
+
pinType: _360PinType;
|
|
158
|
+
pinId?: string;
|
|
159
|
+
cameraExid?: string;
|
|
160
|
+
name: string;
|
|
161
|
+
currentRoom?: _360MakerId;
|
|
162
|
+
cameraRotation?: _360CameraRotation;
|
|
163
|
+
};
|
|
126
164
|
export type _360SceneRoute = {
|
|
127
165
|
cameraHeadingOffset?: number;
|
|
128
166
|
overlayID?: number;
|
|
129
167
|
track?: string;
|
|
130
168
|
};
|
|
169
|
+
export type _360ProjectListItem = {
|
|
170
|
+
integrationType: string;
|
|
171
|
+
projectId: string;
|
|
172
|
+
projectName: string;
|
|
173
|
+
providerID: string;
|
|
174
|
+
providerPrefix: string;
|
|
175
|
+
providerSuffix: string;
|
|
176
|
+
timeline: string;
|
|
177
|
+
uniqueId: string;
|
|
178
|
+
};
|
|
131
179
|
export type _360FullProject = {
|
|
132
180
|
dates: _360SceneWithFloors[];
|
|
133
181
|
integrationType: string;
|
|
@@ -159,12 +207,23 @@ export type MobileCaptureSnapshot = {
|
|
|
159
207
|
thumbnailUrl: string;
|
|
160
208
|
};
|
|
161
209
|
export declare enum _360UrlParams {
|
|
162
|
-
DateId = "
|
|
210
|
+
DateId = "dateId",
|
|
163
211
|
Date = "date",
|
|
164
212
|
Floor = "floor",
|
|
165
213
|
Marker = "marker",
|
|
166
214
|
PolarAngle = "polarAngle",
|
|
167
|
-
AzimuthAngle = "azimuthAngle"
|
|
215
|
+
AzimuthAngle = "azimuthAngle",
|
|
216
|
+
Zoom = "zoom",
|
|
217
|
+
User = "user",
|
|
218
|
+
ViewerMode = "viewer_mode",
|
|
219
|
+
ProjectId = "projectId",
|
|
220
|
+
Unit = "unit",
|
|
221
|
+
LockDate = "lockDate",
|
|
222
|
+
LockFloor = "lockFloor",
|
|
223
|
+
LockMarker = "lockMarker",
|
|
224
|
+
IsWidget = "isWidget",
|
|
225
|
+
MediaLocked = "mediaLocked",
|
|
226
|
+
Debug = "debug"
|
|
168
227
|
}
|
|
169
228
|
export declare enum _360AssetType {
|
|
170
229
|
Video = "video",
|
|
@@ -198,7 +257,7 @@ export declare enum PathMarkerColor {
|
|
|
198
257
|
export type _360AssetsQueryParams = {
|
|
199
258
|
page: number;
|
|
200
259
|
limit: number;
|
|
201
|
-
|
|
260
|
+
projectId: string;
|
|
202
261
|
date: DateType;
|
|
203
262
|
floor: string;
|
|
204
263
|
id: string;
|
|
@@ -221,6 +280,7 @@ export type DrawingsRequestPayload = {
|
|
|
221
280
|
limit?: number;
|
|
222
281
|
paginate?: boolean;
|
|
223
282
|
withAsset?: boolean;
|
|
283
|
+
includeDeleted?: boolean;
|
|
224
284
|
};
|
|
225
285
|
export type GenerateFloorPayload = {
|
|
226
286
|
overlay?: {
|
|
@@ -231,24 +291,7 @@ export type GenerateFloorPayload = {
|
|
|
231
291
|
changedBy: string;
|
|
232
292
|
name?: string;
|
|
233
293
|
mapStyle?: string;
|
|
234
|
-
overlayPositionCorners:
|
|
235
|
-
northEast: {
|
|
236
|
-
lat: number;
|
|
237
|
-
lng: number;
|
|
238
|
-
};
|
|
239
|
-
northWest: {
|
|
240
|
-
lat: number;
|
|
241
|
-
lng: number;
|
|
242
|
-
};
|
|
243
|
-
southWest: {
|
|
244
|
-
lat: number;
|
|
245
|
-
lng: number;
|
|
246
|
-
};
|
|
247
|
-
southEast: {
|
|
248
|
-
lat: number;
|
|
249
|
-
lng: number;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
294
|
+
overlayPositionCorners: _360OverlayPosition;
|
|
252
295
|
};
|
|
253
296
|
export type _360QueueQueryParams = {
|
|
254
297
|
projectId?: string;
|
|
@@ -273,4 +316,104 @@ export type Generate360MapRequestPayload = {
|
|
|
273
316
|
cameraOffset: string;
|
|
274
317
|
startPoint: string;
|
|
275
318
|
endPoint: string;
|
|
319
|
+
drawingId?: number;
|
|
320
|
+
markers?: Array<{
|
|
321
|
+
position: {
|
|
322
|
+
x: number;
|
|
323
|
+
y: number;
|
|
324
|
+
z: number;
|
|
325
|
+
};
|
|
326
|
+
}>;
|
|
327
|
+
startPointIndex?: number;
|
|
328
|
+
endPointIndex?: number;
|
|
329
|
+
};
|
|
330
|
+
export declare enum EModelsType {
|
|
331
|
+
FBX = "FBX",
|
|
332
|
+
PointCloud = "PLY"
|
|
333
|
+
}
|
|
334
|
+
export type _360FloorRef = {
|
|
335
|
+
projectID: string;
|
|
336
|
+
dateID: string;
|
|
337
|
+
floorID: string;
|
|
338
|
+
};
|
|
339
|
+
export type _360Vector3 = {
|
|
340
|
+
x: number;
|
|
341
|
+
y: number;
|
|
342
|
+
z: number;
|
|
343
|
+
};
|
|
344
|
+
export type _360MarkerData = {
|
|
345
|
+
cameraPosition: _360Vector3;
|
|
346
|
+
nextRoomId: string;
|
|
347
|
+
position: _360Vector3;
|
|
348
|
+
geolocation?: {
|
|
349
|
+
latitude: number;
|
|
350
|
+
longitude: number;
|
|
351
|
+
};
|
|
352
|
+
rotation: {
|
|
353
|
+
_order: string;
|
|
354
|
+
_x: number;
|
|
355
|
+
_y: number;
|
|
356
|
+
_z: number;
|
|
357
|
+
isEuler: boolean;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
export type _360Route = {
|
|
361
|
+
overlayID?: number;
|
|
362
|
+
track?: string;
|
|
363
|
+
cameraHeadingOffset?: number;
|
|
364
|
+
};
|
|
365
|
+
export type _360CalibrationDetails = {
|
|
366
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
367
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
368
|
+
rotationMatrix?: {
|
|
369
|
+
elements: number[];
|
|
370
|
+
};
|
|
371
|
+
scaleMatrix?: {
|
|
372
|
+
elements: number[];
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
export type _360FloorData = {
|
|
376
|
+
_3DMarkers: _360MarkerData[];
|
|
377
|
+
fbxModel: string | null;
|
|
378
|
+
fbxModelHQ: string | null;
|
|
379
|
+
pointCloudModelHQ: string | null;
|
|
380
|
+
initialMarker: string;
|
|
381
|
+
cameraRotation: _360CameraRotation;
|
|
382
|
+
steps: number;
|
|
383
|
+
route: _360Route | null;
|
|
384
|
+
sceneScale: number;
|
|
385
|
+
modelViewerFeatureFlag: boolean;
|
|
386
|
+
imagesOnlyFeatureFlag: boolean;
|
|
387
|
+
forgeBIMFeatureFlag: boolean;
|
|
388
|
+
isForgeGravityEnabled: boolean;
|
|
389
|
+
initialForgeView: Record<string, unknown> | null;
|
|
390
|
+
calibrationDetails: _360CalibrationDetails;
|
|
391
|
+
enhancedLightFeatureFlag: boolean;
|
|
392
|
+
};
|
|
393
|
+
export type _360PinData = {
|
|
394
|
+
position: _360Vector3;
|
|
395
|
+
pinType: string;
|
|
396
|
+
name: string;
|
|
397
|
+
pinId?: string;
|
|
398
|
+
cameraExid?: string;
|
|
399
|
+
currentRoom?: string;
|
|
400
|
+
cameraRotation?: {
|
|
401
|
+
polarAngle: number;
|
|
402
|
+
azimuthAngle: number;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
export type _360ForgeTimelineItem = {
|
|
406
|
+
taskNumber: number;
|
|
407
|
+
taskID: string;
|
|
408
|
+
actualStartDate: string;
|
|
409
|
+
actualEndDate: string;
|
|
410
|
+
plannedStartDate: string;
|
|
411
|
+
plannedEndDate: string;
|
|
412
|
+
objectIDs: number[];
|
|
413
|
+
};
|
|
414
|
+
export type _360ForgeProject = {
|
|
415
|
+
urns?: Array<{
|
|
416
|
+
urn: string;
|
|
417
|
+
}>;
|
|
418
|
+
timeline?: _360ForgeTimelineItem[];
|
|
276
419
|
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare enum AiApp {
|
|
2
|
+
GateReport = "gate_report",
|
|
3
|
+
Ppe = "ppe",
|
|
4
|
+
SiteAnalytics = "site_analytics"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AiProvider {
|
|
7
|
+
Gemini = "gemini",
|
|
8
|
+
OpenAi = "openai",
|
|
9
|
+
Anthropic = "anthropic"
|
|
10
|
+
}
|
|
11
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
12
|
+
Create = "create",
|
|
13
|
+
Edit = "edit",
|
|
14
|
+
View = "view"
|
|
15
|
+
}
|
|
16
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
17
|
+
Create = "create",
|
|
18
|
+
Rotate = "rotate",
|
|
19
|
+
Rename = "rename"
|
|
20
|
+
}
|
|
21
|
+
export interface AiAppConfig {
|
|
22
|
+
bg: string;
|
|
23
|
+
fg: string;
|
|
24
|
+
border: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
28
|
+
export interface AiProviderConfig {
|
|
29
|
+
bg: string;
|
|
30
|
+
fg: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
34
|
+
export declare enum AiPromptModel {
|
|
35
|
+
Gemini3Pro = "gemini-3-pro",
|
|
36
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
37
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
38
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
39
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
40
|
+
Gpt5 = "gpt-5",
|
|
41
|
+
Gpt5Mini = "gpt-5-mini",
|
|
42
|
+
Gpt4o = "gpt-4o",
|
|
43
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
44
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
45
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
|
+
}
|
|
48
|
+
export interface AiPrompt {
|
|
49
|
+
id: number;
|
|
50
|
+
title: string | null;
|
|
51
|
+
purpose: string | null;
|
|
52
|
+
app: string | null;
|
|
53
|
+
model: string | null;
|
|
54
|
+
prompt: string;
|
|
55
|
+
outputSchema: Record<string, unknown> | null;
|
|
56
|
+
createdBy: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AiPromptCreatePayload {
|
|
61
|
+
title?: string | null;
|
|
62
|
+
purpose: string;
|
|
63
|
+
app: string;
|
|
64
|
+
model?: string | null;
|
|
65
|
+
prompt: string;
|
|
66
|
+
outputSchema?: Record<string, unknown> | null;
|
|
67
|
+
}
|
|
68
|
+
export interface AiPromptUpdatePayload {
|
|
69
|
+
title?: string | null;
|
|
70
|
+
purpose?: string;
|
|
71
|
+
app?: string;
|
|
72
|
+
model?: string | null;
|
|
73
|
+
prompt?: string;
|
|
74
|
+
outputSchema?: Record<string, unknown> | null;
|
|
75
|
+
}
|
|
76
|
+
export type AiPromptQueryParams = {
|
|
77
|
+
app?: string;
|
|
78
|
+
purpose?: string;
|
|
79
|
+
model?: string;
|
|
80
|
+
search?: string;
|
|
81
|
+
createdBy?: string;
|
|
82
|
+
page?: number;
|
|
83
|
+
limit?: number;
|
|
84
|
+
};
|
|
85
|
+
export interface AiPromptListResponse {
|
|
86
|
+
items: AiPrompt[];
|
|
87
|
+
total: number;
|
|
88
|
+
page: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
from: number;
|
|
91
|
+
to: number;
|
|
92
|
+
}
|
|
93
|
+
export interface AiPromptCreateResponse {
|
|
94
|
+
created: boolean;
|
|
95
|
+
data: AiPrompt;
|
|
96
|
+
message: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AiPromptUpdateResponse {
|
|
99
|
+
updated: boolean;
|
|
100
|
+
id: number | string;
|
|
101
|
+
message: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AiPromptDeleteResponse {
|
|
104
|
+
deleted: boolean;
|
|
105
|
+
count: number;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export interface AiApiKey {
|
|
109
|
+
id: number;
|
|
110
|
+
projectExid: string;
|
|
111
|
+
provider: string;
|
|
112
|
+
name: string;
|
|
113
|
+
purpose: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
autoGenerated: boolean;
|
|
116
|
+
firstUsedAt: string | null;
|
|
117
|
+
lastUsedAt: string | null;
|
|
118
|
+
insertedAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AiApiKeyCreatePayload {
|
|
122
|
+
projectExid: string;
|
|
123
|
+
provider: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
purpose?: string;
|
|
126
|
+
apiKey?: string;
|
|
127
|
+
enabled?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface AiApiKeyUpdatePayload {
|
|
130
|
+
name?: string;
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
apiKey?: string;
|
|
133
|
+
}
|
|
134
|
+
export type AiApiKeyQueryParams = {
|
|
135
|
+
projectExid?: string;
|
|
136
|
+
provider?: string;
|
|
137
|
+
purpose?: string;
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
};
|
|
140
|
+
export interface AiApiKeyCreateResponse {
|
|
141
|
+
created: boolean;
|
|
142
|
+
data: AiApiKey;
|
|
143
|
+
message: string;
|
|
144
|
+
}
|
|
145
|
+
export interface AiApiKeyUpdateResponse {
|
|
146
|
+
updated: boolean;
|
|
147
|
+
id: number | string;
|
|
148
|
+
message: string;
|
|
149
|
+
}
|
|
150
|
+
export interface AiApiKeyDeleteResponse {
|
|
151
|
+
deleted: boolean;
|
|
152
|
+
count: number;
|
|
153
|
+
message: string;
|
|
154
|
+
}
|