@evercam/api 1.0.0-b42ce3404 → 1.0.0-b908926bb
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 +164 -15
- package/dist/api/api/adminApi.d.ts +81 -48
- package/dist/api/api/aiApi.d.ts +89 -54
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +121 -73
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +102 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +69 -53
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +107 -58
- package/dist/api/types/anpr.d.ts +48 -2
- package/dist/api/types/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +44 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +17 -11
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +93 -93
- package/dist/api/types/comments.d.ts +8 -10
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +22 -18
- 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 +47 -58
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +9 -1
- package/dist/api/types/ingest.d.ts +100 -3
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +97 -0
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +96 -22
- package/dist/api/types/recording.d.ts +6 -11
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +30 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +81 -41
- 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 +49 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +8 -5
- package/dist/api/types/user.d.ts +102 -32
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1590 -786
- 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 +141 -16
- 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 +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams,
|
|
1
|
+
import { AnprQueryParams, AnprEvent, EventCountRequestPayload, EventCountResponsePayload, EventsExportRequestParameters, GateReportROI, PaginatedItems, GateReportVerifiedDay, ProjectExid, CameraExid, AnprCountsQueryParams, AnprCount, AnprBasedGateReportExportRequestParams, GateReportResponsePayload, GatReportRequestPayload, VerifiedDaysQueryParams, VerifyDayUpdateRequestPayload, ProcessedDaysQueryParams, RoisQueryParams, GateReportRoiRequestPayload, SegmentsSimilaritySearchParams, DetectionsFilters, TrackingsByLabel, SegmentsByLabel, DetectionsCountsParams, DetectionsPresenceByLabel, SmartSearchBackendQueryPayload, SavedQuery, DateType, DetectionsRequestParams, DetectionsGroup, DetectionsCountsByPeriod, DetectionsExportRequestParams, SegmentsFilters, DownloadFileType, SmartSearchBackendQuery, SmartSearchHeatmapData, SmartSearchOperatorType, DetectionLabel, SmartSearchResponse, SmartSearchRequestPayload, LegacyAnprExportParams, AnprBulkUpdateRequestPayload, AnprUpdateRequestPayload, SmartSearchQueriesRequestPayload, _360FloorId, CreateCoolifyAppRequestPayload, RegisterCoolifyAppResponsePayload, SaveCoolifyAppRequestPayload, SegmentsCountsParams, SegmentsPresenceResponse, AiPrompt, AiPromptCreatePayload, AiPromptCreateResponse, AiPromptDeleteResponse, AiPromptListResponse, AiPromptQueryParams, AiPromptUpdatePayload, AiPromptUpdateResponse, AiApiKey, AiApiKeyCreatePayload, AiApiKeyCreateResponse, AiApiKeyDeleteResponse, AiApiKeyQueryParams, AiApiKeyUpdatePayload, AiApiKeyUpdateResponse, APIEnvelope, AppActionResponse, AppRuntimeState, CoolifyProjectOption, CoolifyServerOption, CreateGateReportAppPayload, CreateGateReportAppResponse, GateReportAppEvents, GateReportManagedApp, GateReportManagementListParams, UpdateGateReportAppPayload } from "@evercam/api/types";
|
|
2
2
|
import type { AxiosPromise, AxiosRequestConfig } from "axios";
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const getAiApiUrl: () => string;
|
|
4
|
+
export declare const getAiApiUrlV2: () => string;
|
|
5
5
|
export declare const AiApi: {
|
|
6
6
|
anpr: {
|
|
7
|
-
exportAnprLegacyEvents(projectExid: ProjectExid, params:
|
|
7
|
+
exportAnprLegacyEvents(projectExid: ProjectExid, params: LegacyAnprExportParams): AxiosPromise<any>;
|
|
8
8
|
getAnprEvents(projectExid: ProjectExid, params: AnprQueryParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<AnprEvent>>;
|
|
9
9
|
getAnprCounts(projectExid: ProjectExid, payload: AnprCountsQueryParams, extraParams?: AxiosRequestConfig): Promise<AnprCount[]>;
|
|
10
|
-
updateAnprEvent(anprEventId: string,
|
|
11
|
-
bulkUpdateAnprRecords(
|
|
10
|
+
updateAnprEvent(anprEventId: string, payload: AnprUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
bulkUpdateAnprRecords(payload: AnprBulkUpdateRequestPayload): Promise<void>;
|
|
12
12
|
exportAnprEvents(projectExid: string, params: AnprBasedGateReportExportRequestParams): AxiosPromise<string>;
|
|
13
13
|
};
|
|
14
14
|
gateReport: {
|
|
@@ -16,30 +16,24 @@ export declare const AiApi: {
|
|
|
16
16
|
exportEventsProgress(projectExid: string, params: {
|
|
17
17
|
exportDate: string;
|
|
18
18
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
-
generateAnprThumbnail(cameraExid: CameraExid, captureTime:
|
|
19
|
+
generateAnprThumbnail(cameraExid: CameraExid, captureTime: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
20
|
getVerifiedDays(projectExid: ProjectExid, params: Partial<VerifiedDaysQueryParams>, extraParams?: {}): Promise<PaginatedItems<GateReportVerifiedDay>>;
|
|
21
21
|
verifyDay(params: VerifyDayUpdateRequestPayload): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<
|
|
23
|
-
getEventThumbnail({ cameraExid, eventType, eventTime, token, }: {
|
|
24
|
-
cameraExid: string;
|
|
25
|
-
eventType: GateReportEventType;
|
|
26
|
-
eventTime: DateTime;
|
|
27
|
-
token: string;
|
|
28
|
-
}): string;
|
|
22
|
+
getDailyStatus(projectExid: string, params?: Partial<ProcessedDaysQueryParams>): Promise<string[]>;
|
|
29
23
|
getEvents(projectExid: ProjectExid, params: GatReportRequestPayload, extraParams?: AxiosRequestConfig): Promise<GateReportResponsePayload>;
|
|
30
24
|
getCounts(projectExid: string, payload?: EventCountRequestPayload, extraParams?: AxiosRequestConfig): Promise<EventCountResponsePayload>;
|
|
31
25
|
getGateReportProjectsInfos(params: Record<string, unknown>): Promise<import("axios").AxiosResponse<any, any>>;
|
|
32
26
|
};
|
|
33
27
|
brainTool: {
|
|
34
28
|
getObjectDetectionsResults(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
-
getSegments(payload?: {}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
36
29
|
};
|
|
37
30
|
roi: {
|
|
38
31
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
39
|
-
createROI(params:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
+
createdBy?: string;
|
|
34
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
|
+
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
36
|
+
updatedBy?: string;
|
|
43
37
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
44
38
|
deleteROI({ id, updatedBy }: {
|
|
45
39
|
id: number;
|
|
@@ -47,60 +41,70 @@ export declare const AiApi: {
|
|
|
47
41
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
48
42
|
};
|
|
49
43
|
detections: {
|
|
50
|
-
|
|
51
|
-
getDetectionsCounts({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
44
|
+
getDetectionsCounts({ projectExid, ...params }: Partial<DetectionsRequestParams>, extraParams?: AxiosRequestConfig): Promise<DetectionsCountsByPeriod>;
|
|
52
45
|
getDetectionsByTimestamp({ projectExid, ...params }: DetectionsRequestParams, extraParams?: AxiosRequestConfig): Promise<PaginatedItems<DetectionsGroup>>;
|
|
53
46
|
getSimilarSegmentsInTimeIntervals({ cameraExid, iouThreshold, ...params }: SegmentsSimilaritySearchParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
-
|
|
55
|
-
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<
|
|
47
|
+
getGroupedTrackings(projectExid: ProjectExid, params: DetectionsFilters): Promise<TrackingsByLabel>;
|
|
48
|
+
getSegmentsMasks(cameraExid: CameraExid, params: SegmentsFilters): Promise<{
|
|
49
|
+
segments: SegmentsByLabel;
|
|
50
|
+
}>;
|
|
51
|
+
getSegmentsPresenceDateIntervals({ cameraExid, ...params }: SegmentsCountsParams): Promise<SegmentsPresenceResponse>;
|
|
56
52
|
getDetectionsPresenceDateIntervals({ projectExid, ...params }: DetectionsCountsParams): Promise<DetectionsPresenceByLabel>;
|
|
57
53
|
requestExport({ projectExid, ...params }: DetectionsExportRequestParams): Promise<import("axios").AxiosResponse<any, any>>;
|
|
58
54
|
};
|
|
59
55
|
siteAnalytics: {
|
|
60
|
-
smartSearch({ cameraExid, payload, fromDate, toDate, page, pageSize, }: {
|
|
61
|
-
cameraExid: CameraExid;
|
|
62
|
-
payload: SmartSearchBackendQuery;
|
|
63
|
-
fromDate: string;
|
|
64
|
-
toDate: string;
|
|
65
|
-
page?: number;
|
|
66
|
-
pageSize?: number;
|
|
67
|
-
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
68
56
|
smartSearchAll(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
69
57
|
smartSearchFirstLastSeen(projectExid: ProjectExid, params: SmartSearchRequestPayload): Promise<SmartSearchResponse>;
|
|
70
|
-
saveQuery(payload
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
saveQuery({ projectExid, cameraExid, payload, }: {
|
|
59
|
+
projectExid: ProjectExid;
|
|
60
|
+
cameraExid: CameraExid | _360FloorId;
|
|
61
|
+
payload: SmartSearchBackendQueryPayload;
|
|
62
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
63
|
+
getQueries(projectExid: ProjectExid, params: SmartSearchQueriesRequestPayload): Promise<SavedQuery[]>;
|
|
64
|
+
getQueryById(projectExid: ProjectExid, cameraExid: CameraExid, queryId: number): Promise<SmartSearchBackendQueryPayload>;
|
|
65
|
+
updateQuery({ projectExid, cameraExid, queryId, payload, }: {
|
|
66
|
+
projectExid: ProjectExid;
|
|
78
67
|
cameraExid: CameraExid;
|
|
68
|
+
queryId: number;
|
|
69
|
+
payload: Partial<SavedQuery>;
|
|
70
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
71
|
+
deleteQuery({ projectExid, cameraExid, queryId, }: {
|
|
72
|
+
projectExid: ProjectExid;
|
|
73
|
+
cameraExid: CameraExid;
|
|
74
|
+
queryId: number;
|
|
75
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
76
|
+
exportResultsData({ projectExid, cameraExids, fromDate, toDate, query, fileType, directDownload, payload, limit, page, }: {
|
|
77
|
+
projectExid: ProjectExid;
|
|
78
|
+
cameraExids: CameraExid[];
|
|
79
79
|
fromDate?: DateType;
|
|
80
80
|
toDate?: DateType;
|
|
81
81
|
query: string;
|
|
82
82
|
fileType: DownloadFileType;
|
|
83
83
|
directDownload?: boolean;
|
|
84
|
-
payload:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
toDate: DateType | string;
|
|
84
|
+
payload: SmartSearchBackendQuery;
|
|
85
|
+
limit: number;
|
|
86
|
+
page: number;
|
|
87
|
+
}): Promise<any>;
|
|
88
|
+
getDetectionsHeatmapData(projectExid: ProjectExid, params: {
|
|
89
|
+
cameraExid: CameraExid;
|
|
90
|
+
fromDate: DateType | string | null;
|
|
91
|
+
toDate: DateType | string | null;
|
|
93
92
|
labels: DetectionLabel[];
|
|
94
93
|
operator?: SmartSearchOperatorType;
|
|
95
|
-
}): Promise<
|
|
96
|
-
results: SmartSearchHeatmapData[];
|
|
97
|
-
sqlQuery: string;
|
|
98
|
-
}>;
|
|
94
|
+
}): Promise<SmartSearchHeatmapData[]>;
|
|
99
95
|
};
|
|
100
96
|
coolify: {
|
|
101
97
|
getCoolifyServers(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
102
|
-
createAppOnCoolify(payload
|
|
103
|
-
|
|
98
|
+
createAppOnCoolify({ projectExid, cameraExid, payload, }: {
|
|
99
|
+
projectExid: ProjectExid;
|
|
100
|
+
cameraExid: CameraExid;
|
|
101
|
+
payload: CreateCoolifyAppRequestPayload;
|
|
102
|
+
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
103
|
+
registerCoolifyApp({ projectExid, cameraExid, payload, }: {
|
|
104
|
+
projectExid: ProjectExid;
|
|
105
|
+
cameraExid: CameraExid;
|
|
106
|
+
payload: SaveCoolifyAppRequestPayload;
|
|
107
|
+
}): Promise<RegisterCoolifyAppResponsePayload>;
|
|
104
108
|
updateApp({ appUuid, appId, payload, cameraExid, projectExid, }: {
|
|
105
109
|
projectExid: string;
|
|
106
110
|
cameraExid: string;
|
|
@@ -121,4 +125,35 @@ export declare const AiApi: {
|
|
|
121
125
|
fovChanges: {
|
|
122
126
|
getCameraFovChanges(cameraExid: string, extraConfig?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
123
127
|
};
|
|
128
|
+
prompts: {
|
|
129
|
+
list(params?: AiPromptQueryParams): Promise<AiPromptListResponse>;
|
|
130
|
+
get(promptId: number): Promise<AiPrompt>;
|
|
131
|
+
create(payload: AiPromptCreatePayload): Promise<AiPromptCreateResponse>;
|
|
132
|
+
update(promptId: number, payload: AiPromptUpdatePayload): Promise<AiPromptUpdateResponse>;
|
|
133
|
+
delete(promptId: number): Promise<AiPromptDeleteResponse>;
|
|
134
|
+
};
|
|
135
|
+
apiKeys: {
|
|
136
|
+
list(params?: AiApiKeyQueryParams): Promise<AiApiKey[]>;
|
|
137
|
+
purposes(): Promise<string[]>;
|
|
138
|
+
get(keyId: number): Promise<AiApiKey>;
|
|
139
|
+
create(payload: AiApiKeyCreatePayload): Promise<AiApiKeyCreateResponse>;
|
|
140
|
+
update(keyId: number, payload: AiApiKeyUpdatePayload): Promise<AiApiKeyUpdateResponse>;
|
|
141
|
+
delete(keyId: number, revoke?: boolean): Promise<AiApiKeyDeleteResponse>;
|
|
142
|
+
};
|
|
143
|
+
gateReportManagement: {
|
|
144
|
+
listApps(params?: GateReportManagementListParams): Promise<PaginatedItems<GateReportManagedApp>>;
|
|
145
|
+
getApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
146
|
+
listAppEvents(projectExid?: ProjectExid): Promise<APIEnvelope<GateReportAppEvents[]>>;
|
|
147
|
+
createApp(payload: CreateGateReportAppPayload): Promise<CreateGateReportAppResponse>;
|
|
148
|
+
updateApp(projectExid: ProjectExid, cameraExid: CameraExid, payload: UpdateGateReportAppPayload): Promise<APIEnvelope<GateReportManagedApp>>;
|
|
149
|
+
deleteApp(projectExid: ProjectExid, cameraExid: CameraExid): Promise<{
|
|
150
|
+
deleted: boolean;
|
|
151
|
+
count: number;
|
|
152
|
+
message: string;
|
|
153
|
+
}>;
|
|
154
|
+
setAppState(projectExid: ProjectExid, cameraExid: CameraExid, state: AppRuntimeState): Promise<APIEnvelope<AppActionResponse>>;
|
|
155
|
+
listCoolifyProjects(): Promise<APIEnvelope<CoolifyProjectOption[]>>;
|
|
156
|
+
listCoolifyServers(): Promise<APIEnvelope<CoolifyServerOption[]>>;
|
|
157
|
+
listImageTags(): Promise<APIEnvelope<string[]>>;
|
|
158
|
+
};
|
|
124
159
|
};
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "
|
|
1
|
+
import { AuthzRoleUser, AuthzScope, AuthzScopeCreatePayload, AuthzScopeUpdatePayload, AuthzUserRolesResponse, ProjectExid, ProjectResourceRole, ProjectRoleRequestPayload, Role, RoleResourceType } from "@evercam/api/types";
|
|
2
|
+
import type { AxiosRequestConfig } from "axios";
|
|
2
3
|
export declare const AuthzApi: {
|
|
3
4
|
roles: {
|
|
4
|
-
get(params
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
get(params?: AxiosRequestConfig & {
|
|
6
|
+
params?: {
|
|
7
|
+
scope?: string;
|
|
8
|
+
};
|
|
9
|
+
}): Promise<{
|
|
10
|
+
total: number;
|
|
11
|
+
items: Role[];
|
|
12
|
+
}>;
|
|
13
|
+
getRoleDetails(id: number): Promise<Role>;
|
|
14
|
+
createRole(params: Partial<Role> & Pick<Role, "name">): Promise<Role>;
|
|
15
|
+
updateRole(id: number, params: Partial<Role>): Promise<Role>;
|
|
16
|
+
deleteRole(id: number): Promise<void>;
|
|
17
|
+
addPermission(id: number, action: string): Promise<void>;
|
|
18
|
+
deletePermission(id: number, action: string): Promise<void>;
|
|
19
|
+
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
|
+
assignUsers(roleId: number, emails: Array<string>, resourceId?: string): Promise<void>;
|
|
21
|
+
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
15
22
|
};
|
|
16
23
|
projectRoles: {
|
|
17
24
|
get(projectExid: ProjectExid): Promise<{
|
|
@@ -22,9 +29,9 @@ export declare const AuthzApi: {
|
|
|
22
29
|
delete(projectExid: ProjectExid, roleId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
30
|
};
|
|
24
31
|
scopes: {
|
|
25
|
-
get(): Promise<
|
|
26
|
-
create(params:
|
|
27
|
-
delete(id: number): Promise<
|
|
28
|
-
update(id: number, params:
|
|
32
|
+
get(): Promise<AuthzScope[]>;
|
|
33
|
+
create(params: AuthzScopeCreatePayload): Promise<AuthzScope>;
|
|
34
|
+
delete(id: number): Promise<void>;
|
|
35
|
+
update(id: number, params: AuthzScopeUpdatePayload): Promise<AuthzScope>;
|
|
29
36
|
};
|
|
30
37
|
};
|