Skip to content

Commit f885bd9

Browse files
committed
final touches
1 parent 071fd55 commit f885bd9

File tree

19 files changed

+750
-365
lines changed

19 files changed

+750
-365
lines changed

bifrost/lib/clients/jawnTypes/private.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16779,9 +16779,11 @@ export interface operations {
1677916779
};
1678016780
MigrateToPro: {
1678116781
responses: {
16782-
/** @description No content */
16783-
204: {
16784-
content: never;
16782+
/** @description Ok */
16783+
200: {
16784+
content: {
16785+
"application/json": unknown;
16786+
};
1678516787
};
1678616788
};
1678716789
};

bifrost/lib/clients/jawnTypes/public.ts

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ export interface paths {
395395
"/v1/trace/log-python": {
396396
post: operations["LogPythonTrace"];
397397
};
398+
"/v1/test/gateway-request": {
399+
post: operations["SendTestRequest"];
400+
};
398401
"/v1/session/has-session": {
399402
get: operations["HasSession"];
400403
};
@@ -2380,6 +2383,15 @@ Json: JsonObject;
23802383
};
23812384
}[];
23822385
};
2386+
SendTestRequestResponse: {
2387+
success: boolean;
2388+
response?: string;
2389+
requestId?: string;
2390+
error?: string;
2391+
};
2392+
SendTestRequestRequest: {
2393+
apiKey: string;
2394+
};
23832395
SessionResult: {
23842396
created_at: string;
23852397
latest_request_created_at: string;
@@ -6248,9 +6260,11 @@ export interface operations {
62486260
};
62496261
MigrateToPro: {
62506262
responses: {
6251-
/** @description No content */
6252-
204: {
6253-
content: never;
6263+
/** @description Ok */
6264+
200: {
6265+
content: {
6266+
"application/json": unknown;
6267+
};
62546268
};
62556269
};
62566270
};
@@ -6482,6 +6496,21 @@ export interface operations {
64826496
};
64836497
};
64846498
};
6499+
SendTestRequest: {
6500+
requestBody: {
6501+
content: {
6502+
"application/json": components["schemas"]["SendTestRequestRequest"];
6503+
};
6504+
};
6505+
responses: {
6506+
/** @description Ok */
6507+
200: {
6508+
content: {
6509+
"application/json": components["schemas"]["SendTestRequestResponse"];
6510+
};
6511+
};
6512+
};
6513+
};
64856514
HasSession: {
64866515
responses: {
64876516
/** @description Ok */

docs/swagger.json

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6492,6 +6492,39 @@
64926492
],
64936493
"type": "object"
64946494
},
6495+
"SendTestRequestResponse": {
6496+
"properties": {
6497+
"success": {
6498+
"type": "boolean"
6499+
},
6500+
"response": {
6501+
"type": "string"
6502+
},
6503+
"requestId": {
6504+
"type": "string"
6505+
},
6506+
"error": {
6507+
"type": "string"
6508+
}
6509+
},
6510+
"required": [
6511+
"success"
6512+
],
6513+
"type": "object",
6514+
"additionalProperties": false
6515+
},
6516+
"SendTestRequestRequest": {
6517+
"properties": {
6518+
"apiKey": {
6519+
"type": "string"
6520+
}
6521+
},
6522+
"required": [
6523+
"apiKey"
6524+
],
6525+
"type": "object",
6526+
"additionalProperties": false
6527+
},
64956528
"SessionResult": {
64966529
"properties": {
64976530
"created_at": {
@@ -18109,8 +18142,13 @@
1810918142
"post": {
1811018143
"operationId": "MigrateToPro",
1811118144
"responses": {
18112-
"204": {
18113-
"description": "No content"
18145+
"200": {
18146+
"description": "Ok",
18147+
"content": {
18148+
"application/json": {
18149+
"schema": {}
18150+
}
18151+
}
1811418152
}
1811518153
},
1811618154
"tags": [
@@ -18693,6 +18731,42 @@
1869318731
}
1869418732
}
1869518733
},
18734+
"/v1/test/gateway-request": {
18735+
"post": {
18736+
"operationId": "SendTestRequest",
18737+
"responses": {
18738+
"200": {
18739+
"description": "Ok",
18740+
"content": {
18741+
"application/json": {
18742+
"schema": {
18743+
"$ref": "#/components/schemas/SendTestRequestResponse"
18744+
}
18745+
}
18746+
}
18747+
}
18748+
},
18749+
"tags": [
18750+
"Test"
18751+
],
18752+
"security": [
18753+
{
18754+
"api_key": []
18755+
}
18756+
],
18757+
"parameters": [],
18758+
"requestBody": {
18759+
"required": true,
18760+
"content": {
18761+
"application/json": {
18762+
"schema": {
18763+
"$ref": "#/components/schemas/SendTestRequestRequest"
18764+
}
18765+
}
18766+
}
18767+
}
18768+
}
18769+
},
1869618770
"/v1/session/has-session": {
1869718771
"get": {
1869818772
"operationId": "HasSession",

valhalla/jawn/src/tsoa-build/private/swagger.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49756,8 +49756,13 @@
4975649756
"post": {
4975749757
"operationId": "MigrateToPro",
4975849758
"responses": {
49759-
"204": {
49760-
"description": "No content"
49759+
"200": {
49760+
"description": "Ok",
49761+
"content": {
49762+
"application/json": {
49763+
"schema": {}
49764+
}
49765+
}
4976149766
}
4976249767
},
4976349768
"tags": [

valhalla/jawn/src/tsoa-build/public/routes.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import { IntegrationController } from './../../controllers/public/integrationCon
3030
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3131
import { TraceController } from './../../controllers/public/traceController';
3232
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
33+
import { TestController } from './../../controllers/public/testController';
34+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3335
import { SessionController } from './../../controllers/public/sessionController';
3436
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
3537
import { StatusController } from './../../controllers/public/providerStatusController';
@@ -2066,6 +2068,25 @@ const models: TsoaRoute.Models = {
20662068
"type": {"dataType":"nestedObjectLiteral","nestedProperties":{"resourceSpans":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"scopeSpans":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"spans":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"droppedLinksCount":{"dataType":"double","required":true},"links":{"dataType":"array","array":{"dataType":"any"},"required":true},"status":{"dataType":"nestedObjectLiteral","nestedProperties":{"code":{"dataType":"double","required":true}},"required":true},"droppedEventsCount":{"dataType":"double","required":true},"events":{"dataType":"array","array":{"dataType":"any"},"required":true},"droppedAttributesCount":{"dataType":"double","required":true},"attributes":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"value":{"dataType":"nestedObjectLiteral","nestedProperties":{"intValue":{"dataType":"double"},"stringValue":{"dataType":"string"}},"required":true},"key":{"dataType":"string","required":true}}},"required":true},"endTimeUnixNano":{"dataType":"string","required":true},"startTimeUnixNano":{"dataType":"string","required":true},"kind":{"dataType":"double","required":true},"name":{"dataType":"string","required":true},"spanId":{"dataType":"string","required":true},"traceId":{"dataType":"string","required":true}}},"required":true},"scope":{"dataType":"nestedObjectLiteral","nestedProperties":{"version":{"dataType":"string","required":true},"name":{"dataType":"string","required":true}},"required":true}}},"required":true},"resource":{"dataType":"nestedObjectLiteral","nestedProperties":{"droppedAttributesCount":{"dataType":"double","required":true},"attributes":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"value":{"dataType":"nestedObjectLiteral","nestedProperties":{"arrayValue":{"dataType":"nestedObjectLiteral","nestedProperties":{"values":{"dataType":"array","array":{"dataType":"nestedObjectLiteral","nestedProperties":{"stringValue":{"dataType":"string","required":true}}},"required":true}}},"intValue":{"dataType":"double"},"stringValue":{"dataType":"string"}},"required":true},"key":{"dataType":"string","required":true}}},"required":true}},"required":true}}},"required":true}},"validators":{}},
20672069
},
20682070
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2071+
"SendTestRequestResponse": {
2072+
"dataType": "refObject",
2073+
"properties": {
2074+
"success": {"dataType":"boolean","required":true},
2075+
"response": {"dataType":"string"},
2076+
"requestId": {"dataType":"string"},
2077+
"error": {"dataType":"string"},
2078+
},
2079+
"additionalProperties": false,
2080+
},
2081+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
2082+
"SendTestRequestRequest": {
2083+
"dataType": "refObject",
2084+
"properties": {
2085+
"apiKey": {"dataType":"string","required":true},
2086+
},
2087+
"additionalProperties": false,
2088+
},
2089+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
20692090
"SessionResult": {
20702091
"dataType": "refObject",
20712092
"properties": {
@@ -8597,6 +8618,37 @@ export function RegisterRoutes(app: Router) {
85978618
}
85988619
});
85998620
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
8621+
const argsTestController_sendTestRequest: Record<string, TsoaRoute.ParameterSchema> = {
8622+
body: {"in":"body","name":"body","required":true,"ref":"SendTestRequestRequest"},
8623+
};
8624+
app.post('/v1/test/gateway-request',
8625+
authenticateMiddleware([{"api_key":[]}]),
8626+
...(fetchMiddlewares<RequestHandler>(TestController)),
8627+
...(fetchMiddlewares<RequestHandler>(TestController.prototype.sendTestRequest)),
8628+
8629+
async function TestController_sendTestRequest(request: ExRequest, response: ExResponse, next: any) {
8630+
8631+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
8632+
8633+
let validatedArgs: any[] = [];
8634+
try {
8635+
validatedArgs = templateService.getValidatedArgs({ args: argsTestController_sendTestRequest, request, response });
8636+
8637+
const controller = new TestController();
8638+
8639+
await templateService.apiHandler({
8640+
methodName: 'sendTestRequest',
8641+
controller,
8642+
response,
8643+
next,
8644+
validatedArgs,
8645+
successStatus: undefined,
8646+
});
8647+
} catch (err) {
8648+
return next(err);
8649+
}
8650+
});
8651+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
86008652
const argsSessionController_hasSession: Record<string, TsoaRoute.ParameterSchema> = {
86018653
request: {"in":"request","name":"request","required":true,"dataType":"object"},
86028654
};

valhalla/jawn/src/tsoa-build/public/swagger.json

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6492,6 +6492,39 @@
64926492
],
64936493
"type": "object"
64946494
},
6495+
"SendTestRequestResponse": {
6496+
"properties": {
6497+
"success": {
6498+
"type": "boolean"
6499+
},
6500+
"response": {
6501+
"type": "string"
6502+
},
6503+
"requestId": {
6504+
"type": "string"
6505+
},
6506+
"error": {
6507+
"type": "string"
6508+
}
6509+
},
6510+
"required": [
6511+
"success"
6512+
],
6513+
"type": "object",
6514+
"additionalProperties": false
6515+
},
6516+
"SendTestRequestRequest": {
6517+
"properties": {
6518+
"apiKey": {
6519+
"type": "string"
6520+
}
6521+
},
6522+
"required": [
6523+
"apiKey"
6524+
],
6525+
"type": "object",
6526+
"additionalProperties": false
6527+
},
64956528
"SessionResult": {
64966529
"properties": {
64976530
"created_at": {
@@ -18109,8 +18142,13 @@
1810918142
"post": {
1811018143
"operationId": "MigrateToPro",
1811118144
"responses": {
18112-
"204": {
18113-
"description": "No content"
18145+
"200": {
18146+
"description": "Ok",
18147+
"content": {
18148+
"application/json": {
18149+
"schema": {}
18150+
}
18151+
}
1811418152
}
1811518153
},
1811618154
"tags": [
@@ -18693,6 +18731,42 @@
1869318731
}
1869418732
}
1869518733
},
18734+
"/v1/test/gateway-request": {
18735+
"post": {
18736+
"operationId": "SendTestRequest",
18737+
"responses": {
18738+
"200": {
18739+
"description": "Ok",
18740+
"content": {
18741+
"application/json": {
18742+
"schema": {
18743+
"$ref": "#/components/schemas/SendTestRequestResponse"
18744+
}
18745+
}
18746+
}
18747+
}
18748+
},
18749+
"tags": [
18750+
"Test"
18751+
],
18752+
"security": [
18753+
{
18754+
"api_key": []
18755+
}
18756+
],
18757+
"parameters": [],
18758+
"requestBody": {
18759+
"required": true,
18760+
"content": {
18761+
"application/json": {
18762+
"schema": {
18763+
"$ref": "#/components/schemas/SendTestRequestRequest"
18764+
}
18765+
}
18766+
}
18767+
}
18768+
}
18769+
},
1869618770
"/v1/session/has-session": {
1869718771
"get": {
1869818772
"operationId": "HasSession",

web/components/layout/auth/DesktopSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ const DesktopSidebar = ({
431431
: "text-muted-foreground",
432432
)}
433433
>
434-
${((creditData?.balance ?? 0) / 100).toFixed(0)}
434+
${(creditData?.balance ?? 0).toFixed(2)}
435435
</span>
436436
</span>
437437
)}

web/components/layout/auth/authLayout.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,13 @@ const AuthLayout = (props: AuthLayoutProps) => {
9595
useEffect(() => {
9696
// Allow access to certain pages during onboarding (like quickstart and settings for setup)
9797
const allowedPagesDuringOnboarding = [
98-
'/quickstart',
99-
'/settings/providers',
100-
'/settings/billing',
101-
'/credits',
98+
"/quickstart",
99+
"/settings/providers",
100+
"/settings/billing",
101+
"/credits",
102102
];
103103

104-
const isOnAllowedPage = allowedPagesDuringOnboarding.some(path =>
105-
pathname.startsWith(path)
106-
);
104+
const isOnAllowedPage = true;
107105

108106
if (orgContext?.currentOrg?.has_onboarded === false && !isOnAllowedPage) {
109107
router.push("/onboarding");

0 commit comments

Comments
 (0)