@evercam/api 1.0.0-e424632fd → 1.0.0-e78536009

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 (67) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +197 -15
  3. package/dist/api/api/adminApi.d.ts +24 -20
  4. package/dist/api/api/aiApi.d.ts +127 -4
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +41 -13
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  8. package/dist/api/api/index.d.ts +1 -0
  9. package/dist/api/api/ingestApi.d.ts +22 -9
  10. package/dist/api/api/workflowsApi.d.ts +15 -0
  11. package/dist/api/types/360.d.ts +171 -83
  12. package/dist/api/types/aiConfigs.d.ts +244 -0
  13. package/dist/api/types/analytics.d.ts +48 -33
  14. package/dist/api/types/anpr.d.ts +31 -2
  15. package/dist/api/types/auditLogs.d.ts +18 -1
  16. package/dist/api/types/authz.d.ts +71 -0
  17. package/dist/api/types/automation.d.ts +32 -4
  18. package/dist/api/types/axios.d.ts +10 -9
  19. package/dist/api/types/bim.d.ts +28 -5
  20. package/dist/api/types/camera.d.ts +37 -46
  21. package/dist/api/types/comments.d.ts +16 -7
  22. package/dist/api/types/connector.d.ts +2 -0
  23. package/dist/api/types/detections.d.ts +3 -10
  24. package/dist/api/types/drone.d.ts +94 -6
  25. package/dist/api/types/errors.d.ts +13 -1
  26. package/dist/api/types/gateReport.d.ts +4 -14
  27. package/dist/api/types/gateReportManagement.d.ts +170 -0
  28. package/dist/api/types/hammertech.d.ts +98 -0
  29. package/dist/api/types/index.d.ts +9 -2
  30. package/dist/api/types/ingest.d.ts +90 -3
  31. package/dist/api/types/kit.d.ts +43 -51
  32. package/dist/api/types/map.d.ts +12 -0
  33. package/dist/api/types/media.d.ts +7 -2
  34. package/dist/api/types/notification.d.ts +52 -2
  35. package/dist/api/types/observationEvents.d.ts +141 -0
  36. package/dist/api/types/observations.d.ts +84 -0
  37. package/dist/api/types/planner.d.ts +56 -10
  38. package/dist/api/types/posthog.d.ts +20 -0
  39. package/dist/api/types/project.d.ts +16 -3
  40. package/dist/api/types/recording.d.ts +7 -13
  41. package/dist/api/types/ring.d.ts +16 -16
  42. package/dist/api/types/roi.d.ts +3 -11
  43. package/dist/api/types/routeParams.d.ts +1 -0
  44. package/dist/api/types/shared.d.ts +17 -24
  45. package/dist/api/types/shares.d.ts +0 -13
  46. package/dist/api/types/siteAnalytics.d.ts +3 -5
  47. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  48. package/dist/api/types/siteView.d.ts +78 -0
  49. package/dist/api/types/snapshots.d.ts +13 -0
  50. package/dist/api/types/socket.d.ts +4 -0
  51. package/dist/api/types/storyblok.d.ts +0 -13
  52. package/dist/api/types/timelapse.d.ts +2 -13
  53. package/dist/api/types/user.d.ts +16 -4
  54. package/dist/api/types/workflows.d.ts +108 -0
  55. package/dist/api/utils.d.ts +1 -1
  56. package/dist/index.js +1908 -748
  57. package/dist/index.js.map +1 -1
  58. package/dist/index.umd.cjs +1 -1
  59. package/dist/index.umd.cjs.map +1 -1
  60. package/dist/shared/types/components.d.ts +246 -35
  61. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  62. package/dist/shared/types/imagePlayer.d.ts +8 -1
  63. package/dist/shared/types/index.d.ts +2 -0
  64. package/dist/shared/types/observations.d.ts +25 -0
  65. package/package.json +4 -2
  66. package/dist/api/types/copilot.d.ts +0 -162
  67. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -151,6 +151,21 @@ export type SessionsListRequestPayload = {
151
151
  limit: number;
152
152
  page: number;
153
153
  };
154
+ export type AuthorizedApp = {
155
+ id: number;
156
+ clientId: string;
157
+ clientName: string;
158
+ clientDescription: string | null;
159
+ logoUrl: string | null;
160
+ scopes: string[];
161
+ grantedAt: string;
162
+ };
163
+ export type AuthorizedAppsListRequestPayload = {
164
+ search?: string;
165
+ sort?: string;
166
+ limit?: number;
167
+ page?: number;
168
+ };
154
169
  export type SessionActivityCamSettingsDetail = {
155
170
  new: any;
156
171
  old: any;
@@ -176,7 +191,6 @@ export type SessionActivitiesListRequestPayload = {
176
191
  };
177
192
  export type SignupUserRequestPayload = {
178
193
  telephone: string;
179
- token: string;
180
194
  firstname: string;
181
195
  lastname: string;
182
196
  email: string;
@@ -194,9 +208,6 @@ export type UserUpdateRequestPayload = {
194
208
  country: string;
195
209
  persona: string;
196
210
  };
197
- export type UserDeleteRequestPayload = {
198
- verifEmail: string;
199
- };
200
211
  export type GoogleAuthRequestPayload = {
201
212
  code: string;
202
213
  redirectUri: string;
@@ -338,6 +349,7 @@ export type ProjectUserWithRole = {
338
349
  name: string;
339
350
  exid: string;
340
351
  };
352
+ persona: Persona;
341
353
  permissions: string[];
342
354
  role: Role;
343
355
  subRoles: RoleSubRole[];
@@ -0,0 +1,108 @@
1
+ /**
2
+ * The Evercam Workflows engine (evercam-agent-kit), as the admin app sees it.
3
+ *
4
+ * These mirror `evercam_workflows/api/schemas.py`. The engine speaks camelCase over
5
+ * the wire, so the admin client reads it with `preserveCasing: true` and these are
6
+ * the shapes as received. Named `Chat*`, after the product; the Vue 3 agent app's
7
+ * own workflow types live in `packages/agent`, unreachable here.
8
+ */
9
+ /** What kind of conversation this is. Chat only ever opens `chat`. */
10
+ export declare enum ChatMode {
11
+ Workflow = "workflow",
12
+ Chat = "chat"
13
+ }
14
+ /** Whose conversations a list covers. Only an admin is ever given `all`. */
15
+ export declare enum ChatScope {
16
+ Mine = "mine",
17
+ Account = "account",
18
+ All = "all"
19
+ }
20
+ /** A flat token tally, as the engine reports it. */
21
+ export type ChatUsage = {
22
+ inputTokens?: number;
23
+ outputTokens?: number;
24
+ cacheCreationInputTokens?: number;
25
+ cacheReadInputTokens?: number;
26
+ };
27
+ /** One recorded tool step in a turn's trace, compacted by the engine. */
28
+ export type ChatTraceStep = {
29
+ step?: number | null;
30
+ tool?: string | null;
31
+ result?: string | null;
32
+ durationMs?: number | null;
33
+ usage?: ChatUsage | null;
34
+ args?: unknown;
35
+ };
36
+ /** One stored turn, as the engine returns it inside a conversation. */
37
+ export type ChatTurn = {
38
+ id: string;
39
+ userText?: string | null;
40
+ assistantText?: string | null;
41
+ thinkingSummary?: string | null;
42
+ artifact?: unknown;
43
+ /** The agent's tool steps for this answer. Absent on turns stored before traces. */
44
+ trace?: ChatTraceStep[] | null;
45
+ /** This turn's own token usage. */
46
+ usage?: ChatUsage | null;
47
+ runId?: string | null;
48
+ at?: string | null;
49
+ };
50
+ /** A conversation in full, with its transcript, cost ledger and per-turn traces. */
51
+ export type ChatSession = {
52
+ id: string;
53
+ environment: string;
54
+ mode: string;
55
+ title: string | null;
56
+ projectExid: string | null;
57
+ projectName: string | null;
58
+ cameraExids: string[] | null;
59
+ turns: ChatTurn[];
60
+ savedWorkflowId: string | null;
61
+ createdBy: string | null;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ usage?: ChatUsage | null;
65
+ usageByModel?: Record<string, ChatUsage> | null;
66
+ model?: string | null;
67
+ /** Money as a string, or `null` (never `0`) when the conversation is unpriced. */
68
+ costUsd?: string | null;
69
+ priceBasis?: Record<string, unknown> | null;
70
+ };
71
+ /** One conversation as a list row — metadata and cost, without the transcript. */
72
+ export type ChatSummary = {
73
+ id: string;
74
+ environment: string;
75
+ mode: string;
76
+ title: string | null;
77
+ projectExid: string | null;
78
+ projectName: string | null;
79
+ cameraExids: string[] | null;
80
+ createdBy: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ turnCount: number;
84
+ usage?: ChatUsage | null;
85
+ model?: string | null;
86
+ costUsd?: string | null;
87
+ };
88
+ /** A page of conversations for the admin viewer. */
89
+ export type ChatListPage = {
90
+ chats: ChatSummary[];
91
+ total: number;
92
+ /** The scope the engine actually applied. */
93
+ scope: ChatScope;
94
+ };
95
+ /** Query params the admin conversations list accepts. */
96
+ export type ChatListParams = {
97
+ scope?: ChatScope;
98
+ mode?: ChatMode;
99
+ projectExid?: string;
100
+ createdBy?: string;
101
+ q?: string;
102
+ from?: string;
103
+ to?: string;
104
+ sort?: string;
105
+ direction?: "asc" | "desc";
106
+ offset?: number;
107
+ limit?: number;
108
+ };
@@ -7,4 +7,4 @@ export declare const toQueryString: <T extends Record<string, unknown>>(paramsOb
7
7
  forceArrayBrackets?: boolean | undefined;
8
8
  }) => string | undefined;
9
9
  export declare function queryStringToObject(queryString?: string): QueryParams;
10
- export declare function capitalizeFirstLetter(inputString: string): string;
10
+ export declare function getMediaApiPreviewName(url?: string | null): string | null;