Skip to content

Commit dde4292

Browse files
authored
Update Admin HQL + Org Search (#5047)
1 parent d1e188c commit dde4292

File tree

26 files changed

+3815
-2026
lines changed

26 files changed

+3815
-2026
lines changed

bifrost/lib/clients/jawnTypes/private.ts

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,25 @@ export interface paths {
538538
"/v1/admin/whodis": {
539539
post: operations["Whodis"];
540540
};
541+
"/v1/admin/org-search": {
542+
post: operations["OrgSearch"];
543+
};
544+
"/v1/admin/org-search-fast": {
545+
post: operations["OrgSearchFast"];
546+
};
547+
"/v1/admin/org/{orgId}/member/{memberId}": {
548+
delete: operations["RemoveOrgMember"];
549+
patch: operations["UpdateOrgMemberRole"];
550+
};
551+
"/v1/admin/org/{orgId}/delete": {
552+
post: operations["DeleteOrg"];
553+
};
554+
"/v1/admin/org-usage-light/{orgId}": {
555+
get: operations["GetOrgUsageLight"];
556+
};
557+
"/v1/admin/org-usage/{orgId}": {
558+
get: operations["GetOrgUsage"];
559+
};
541560
"/v1/admin/settings/{name}": {
542561
get: operations["GetSetting"];
543562
};
@@ -19311,6 +19330,198 @@ export interface operations {
1931119330
};
1931219331
};
1931319332
};
19333+
OrgSearch: {
19334+
requestBody: {
19335+
content: {
19336+
"application/json": {
19337+
query: string;
19338+
};
19339+
};
19340+
};
19341+
responses: {
19342+
/** @description Ok */
19343+
200: {
19344+
content: {
19345+
"application/json": {
19346+
organizations: ({
19347+
usage: {
19348+
/** Format: double */
19349+
all_time_count: number;
19350+
monthly_usage: {
19351+
/** Format: double */
19352+
requestCount: number;
19353+
month: string;
19354+
}[];
19355+
/** Format: double */
19356+
requests_last_30_days: number;
19357+
/** Format: double */
19358+
total_requests: number;
19359+
};
19360+
organization: {
19361+
members: ({
19362+
last_sign_in_at: string | null;
19363+
role: string;
19364+
name: string;
19365+
email: string;
19366+
id: string;
19367+
})[];
19368+
subscription_status: string | null;
19369+
stripe_subscription_id: string | null;
19370+
stripe_customer_id: string | null;
19371+
tier: string;
19372+
owner: string;
19373+
created_at: string;
19374+
name: string;
19375+
id: string;
19376+
};
19377+
})[];
19378+
};
19379+
};
19380+
};
19381+
};
19382+
};
19383+
OrgSearchFast: {
19384+
requestBody: {
19385+
content: {
19386+
"application/json": {
19387+
/** Format: double */
19388+
offset?: number;
19389+
/** Format: double */
19390+
limit?: number;
19391+
query: string;
19392+
};
19393+
};
19394+
};
19395+
responses: {
19396+
/** @description Ok */
19397+
200: {
19398+
content: {
19399+
"application/json": {
19400+
hasMore: boolean;
19401+
/** Format: double */
19402+
total: number;
19403+
organizations: ({
19404+
members: ({
19405+
last_sign_in_at: string | null;
19406+
role: string;
19407+
name: string;
19408+
email: string;
19409+
id: string;
19410+
})[];
19411+
subscription_status: string | null;
19412+
stripe_subscription_id: string | null;
19413+
stripe_customer_id: string | null;
19414+
tier: string;
19415+
owner: string;
19416+
created_at: string;
19417+
name: string;
19418+
id: string;
19419+
})[];
19420+
};
19421+
};
19422+
};
19423+
};
19424+
};
19425+
RemoveOrgMember: {
19426+
parameters: {
19427+
path: {
19428+
orgId: string;
19429+
memberId: string;
19430+
};
19431+
};
19432+
responses: {
19433+
/** @description Ok */
19434+
200: {
19435+
content: {
19436+
"application/json": components["schemas"]["Result_null.string_"];
19437+
};
19438+
};
19439+
};
19440+
};
19441+
UpdateOrgMemberRole: {
19442+
parameters: {
19443+
path: {
19444+
orgId: string;
19445+
memberId: string;
19446+
};
19447+
};
19448+
requestBody: {
19449+
content: {
19450+
"application/json": {
19451+
role: string;
19452+
};
19453+
};
19454+
};
19455+
responses: {
19456+
/** @description Ok */
19457+
200: {
19458+
content: {
19459+
"application/json": components["schemas"]["Result_null.string_"];
19460+
};
19461+
};
19462+
};
19463+
};
19464+
DeleteOrg: {
19465+
parameters: {
19466+
path: {
19467+
orgId: string;
19468+
};
19469+
};
19470+
responses: {
19471+
/** @description Ok */
19472+
200: {
19473+
content: {
19474+
"application/json": components["schemas"]["Result_null.string_"];
19475+
};
19476+
};
19477+
};
19478+
};
19479+
GetOrgUsageLight: {
19480+
parameters: {
19481+
path: {
19482+
orgId: string;
19483+
};
19484+
};
19485+
responses: {
19486+
/** @description Ok */
19487+
200: {
19488+
content: {
19489+
"application/json": {
19490+
/** Format: double */
19491+
requests_last_30_days: number;
19492+
last_request_at: string | null;
19493+
};
19494+
};
19495+
};
19496+
};
19497+
};
19498+
GetOrgUsage: {
19499+
parameters: {
19500+
path: {
19501+
orgId: string;
19502+
};
19503+
};
19504+
responses: {
19505+
/** @description Ok */
19506+
200: {
19507+
content: {
19508+
"application/json": {
19509+
/** Format: double */
19510+
all_time_count: number;
19511+
monthly_usage: {
19512+
/** Format: double */
19513+
requestCount: number;
19514+
month: string;
19515+
}[];
19516+
/** Format: double */
19517+
requests_last_30_days: number;
19518+
/** Format: double */
19519+
total_requests: number;
19520+
};
19521+
};
19522+
};
19523+
};
19524+
};
1931419525
GetSetting: {
1931519526
parameters: {
1931619527
path: {

0 commit comments

Comments
 (0)