Skip to content

Commit 7ac3919

Browse files
trueforge-dev-bot[bot]thesujai
authored andcommitted
Regenerate OpenAPI document and TypeScript SDK
1 parent 30ee32b commit 7ac3919

11 files changed

Lines changed: 56 additions & 4 deletions

File tree

‎.github/fern/openapi/openapi.json‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,15 +2265,27 @@
22652265
"tenant_id": {
22662266
"description": "Tenant scope for the authenticated caller.",
22672267
"type": "string"
2268+
},
2269+
"type": {
2270+
"$ref": "#/components/schemas/MeSessionType"
22682271
}
22692272
},
22702273
"required": [
2274+
"type",
22712275
"tenant_id",
22722276
"subject",
22732277
"roles"
22742278
],
22752279
"type": "object"
22762280
},
2281+
"MeSessionType": {
2282+
"description": "`oidc-connected` when the process is running with browser OIDC login; `default` for standalone or TrueFoundry token auth.",
2283+
"enum": [
2284+
"default",
2285+
"oidc-connected"
2286+
],
2287+
"type": "string"
2288+
},
22772289
"MetricsUnit": {
22782290
"enum": [
22792291
"count",
@@ -5560,7 +5572,7 @@
55605572
},
55615573
"/api/v1/auth/me": {
55625574
"get": {
5563-
"description": "Returns the authenticated caller identity (`tenant_id`, `subject`, `roles`) wrapped as `{ data }`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.",
5575+
"description": "Returns the authenticated caller identity (`type`, `tenant_id`, `subject`, `roles`) wrapped as `{ data }`. `type` is `oidc-connected` when browser OIDC is enabled, otherwise `default`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.",
55645576
"responses": {
55655577
"200": {
55665578
"content": {

‎docs/openapi.json‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,15 +2265,27 @@
22652265
"tenant_id": {
22662266
"description": "Tenant scope for the authenticated caller.",
22672267
"type": "string"
2268+
},
2269+
"type": {
2270+
"$ref": "#/components/schemas/MeSessionType"
22682271
}
22692272
},
22702273
"required": [
2274+
"type",
22712275
"tenant_id",
22722276
"subject",
22732277
"roles"
22742278
],
22752279
"type": "object"
22762280
},
2281+
"MeSessionType": {
2282+
"description": "`oidc-connected` when the process is running with browser OIDC login; `default` for standalone or TrueFoundry token auth.",
2283+
"enum": [
2284+
"default",
2285+
"oidc-connected"
2286+
],
2287+
"type": "string"
2288+
},
22772289
"MetricsUnit": {
22782290
"enum": [
22792291
"count",
@@ -5560,7 +5572,7 @@
55605572
},
55615573
"/api/v1/auth/me": {
55625574
"get": {
5563-
"description": "Returns the authenticated caller identity (`tenant_id`, `subject`, `roles`) wrapped as `{ data }`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.",
5575+
"description": "Returns the authenticated caller identity (`type`, `tenant_id`, `subject`, `roles`) wrapped as `{ data }`. `type` is `oidc-connected` when browser OIDC is enabled, otherwise `default`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.",
55645576
"responses": {
55655577
"200": {
55665578
"content": {

‎packages/trueforge-sdk/reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ await client.agents.delete("agent_id");
341341
<dl>
342342
<dd>
343343

344-
Returns the authenticated caller identity (`tenant_id`, `subject`, `roles`) wrapped as `{ data }`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.
344+
Returns the authenticated caller identity (`type`, `tenant_id`, `subject`, `roles`) wrapped as `{ data }`. `type` is `oidc-connected` when browser OIDC is enabled, otherwise `default`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.
345345
</dd>
346346
</dl>
347347
</dd>

‎packages/trueforge-sdk/src/api/resources/auth/client/Client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class AuthClient {
2323
}
2424

2525
/**
26-
* Returns the authenticated caller identity (`tenant_id`, `subject`, `roles`) wrapped as `{ data }`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.
26+
* Returns the authenticated caller identity (`type`, `tenant_id`, `subject`, `roles`) wrapped as `{ data }`. `type` is `oidc-connected` when browser OIDC is enabled, otherwise `default`. When auth is enabled this requires a valid `id_token` cookie or `Authorization: Bearer` token (401 otherwise). When auth is disabled, returns the standalone default identity.
2727
*
2828
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
2929
*

‎packages/trueforge-sdk/src/api/types/Me.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export interface Me {
88
subject: TrueForge.GetMeSubject;
99
/** Tenant scope for the authenticated caller. */
1010
tenantId: string;
11+
type: TrueForge.MeSessionType;
1112
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
/** `oidc-connected` when the process is running with browser OIDC login; `default` for standalone or TrueFoundry token auth. */
4+
export const MeSessionType = {
5+
Default: "default",
6+
OidcConnected: "oidc-connected",
7+
} as const;
8+
export type MeSessionType = (typeof MeSessionType)[keyof typeof MeSessionType];

‎packages/trueforge-sdk/src/api/types/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export * from "./McpServerToolSelector.js";
114114
export * from "./McpServerType.js";
115115
export * from "./McpToolInfo.js";
116116
export * from "./Me.js";
117+
export * from "./MeSessionType.js";
117118
export * from "./MetricsUnit.js";
118119
export * from "./Model.js";
119120
export * from "./ModelMessageDeltaEvent.js";

‎packages/trueforge-sdk/src/serialization/types/Me.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ import type * as TrueForge from "../../api/index.js";
44
import * as core from "../../core/index.js";
55
import type * as serializers from "../index.js";
66
import { GetMeSubject } from "./GetMeSubject.js";
7+
import { MeSessionType } from "./MeSessionType.js";
78

89
export const Me: core.serialization.ObjectSchema<serializers.Me.Raw, TrueForge.Me> = core.serialization.object({
910
roles: core.serialization.list(core.serialization.string()),
1011
subject: GetMeSubject,
1112
tenantId: core.serialization.property("tenant_id", core.serialization.string()),
13+
type: MeSessionType,
1214
});
1315

1416
export declare namespace Me {
1517
export interface Raw {
1618
roles: string[];
1719
subject: GetMeSubject.Raw;
1820
tenant_id: string;
21+
type: MeSessionType.Raw;
1922
}
2023
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file was auto-generated by Fern from our API Definition.
2+
3+
import type * as TrueForge from "../../api/index.js";
4+
import * as core from "../../core/index.js";
5+
import type * as serializers from "../index.js";
6+
7+
export const MeSessionType: core.serialization.Schema<serializers.MeSessionType.Raw, TrueForge.MeSessionType> =
8+
core.serialization.enum_(["default", "oidc-connected"]);
9+
10+
export declare namespace MeSessionType {
11+
export type Raw = "default" | "oidc-connected";
12+
}

‎packages/trueforge-sdk/src/serialization/types/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export * from "./McpServerToolSelector.js";
114114
export * from "./McpServerType.js";
115115
export * from "./McpToolInfo.js";
116116
export * from "./Me.js";
117+
export * from "./MeSessionType.js";
117118
export * from "./MetricsUnit.js";
118119
export * from "./Model.js";
119120
export * from "./ModelMessageDeltaEvent.js";

0 commit comments

Comments
 (0)