Skip to content

Commit bc7dd09

Browse files
Regenerate OpenAPI document and TypeScript SDK
1 parent 07770c3 commit bc7dd09

9 files changed

Lines changed: 0 additions & 568 deletions

File tree

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

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -6035,91 +6035,6 @@
60356035
"x-fern-sdk-method-name": "create"
60366036
}
60376037
},
6038-
"/api/v1/sessions/get-or-create-by-external-id": {
6039-
"post": {
6040-
"description": "Idempotent get-or-create: returns the existing session for this tenant-scoped `external_id`, or creates one",
6041-
"requestBody": {
6042-
"content": {
6043-
"application/json": {
6044-
"schema": {
6045-
"$ref": "#/components/schemas/GetOrCreateSessionByExternalIdRequest"
6046-
}
6047-
}
6048-
},
6049-
"required": true
6050-
},
6051-
"responses": {
6052-
"200": {
6053-
"content": {
6054-
"application/json": {
6055-
"schema": {
6056-
"$ref": "#/components/schemas/GetSessionResponse"
6057-
}
6058-
}
6059-
},
6060-
"description": "Session already existed for this external id."
6061-
},
6062-
"201": {
6063-
"content": {
6064-
"application/json": {
6065-
"schema": {
6066-
"$ref": "#/components/schemas/GetSessionResponse"
6067-
}
6068-
}
6069-
},
6070-
"description": "Session created."
6071-
},
6072-
"400": {
6073-
"content": {
6074-
"application/json": {
6075-
"schema": {
6076-
"$ref": "#/components/schemas/RequestErrorResponse"
6077-
}
6078-
}
6079-
},
6080-
"description": "Invalid request body."
6081-
},
6082-
"403": {
6083-
"content": {
6084-
"application/json": {
6085-
"schema": {
6086-
"$ref": "#/components/schemas/RequestErrorResponse"
6087-
}
6088-
}
6089-
},
6090-
"description": "Caller is not the session creator."
6091-
},
6092-
"404": {
6093-
"content": {
6094-
"application/json": {
6095-
"schema": {
6096-
"$ref": "#/components/schemas/RequestErrorResponse"
6097-
}
6098-
}
6099-
},
6100-
"description": "Named agent not found."
6101-
},
6102-
"422": {
6103-
"content": {
6104-
"application/json": {
6105-
"schema": {
6106-
"$ref": "#/components/schemas/RequestErrorResponse"
6107-
}
6108-
}
6109-
},
6110-
"description": "The agent spec is valid but references a resource this server does not provide (e.g. model, MCP server, skill, or sandbox)."
6111-
}
6112-
},
6113-
"summary": "Get or create a session by external id",
6114-
"tags": [
6115-
"Agent Sessions"
6116-
],
6117-
"x-fern-sdk-group-name": [
6118-
"sessions"
6119-
],
6120-
"x-fern-sdk-method-name": "get_or_create_by_external_id"
6121-
}
6122-
},
61236038
"/api/v1/sessions/{session_id}": {
61246039
"delete": {
61256040
"description": "Delete a session and all related turns, events, and internal state. Only the session creator (`created_by`) may delete it. Idempotent if already gone.",

‎docs/openapi.json‎

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -6035,91 +6035,6 @@
60356035
"x-fern-sdk-method-name": "create"
60366036
}
60376037
},
6038-
"/api/v1/sessions/get-or-create-by-external-id": {
6039-
"post": {
6040-
"description": "Idempotent get-or-create: returns the existing session for this tenant-scoped `external_id`, or creates one",
6041-
"requestBody": {
6042-
"content": {
6043-
"application/json": {
6044-
"schema": {
6045-
"$ref": "#/components/schemas/GetOrCreateSessionByExternalIdRequest"
6046-
}
6047-
}
6048-
},
6049-
"required": true
6050-
},
6051-
"responses": {
6052-
"200": {
6053-
"content": {
6054-
"application/json": {
6055-
"schema": {
6056-
"$ref": "#/components/schemas/GetSessionResponse"
6057-
}
6058-
}
6059-
},
6060-
"description": "Session already existed for this external id."
6061-
},
6062-
"201": {
6063-
"content": {
6064-
"application/json": {
6065-
"schema": {
6066-
"$ref": "#/components/schemas/GetSessionResponse"
6067-
}
6068-
}
6069-
},
6070-
"description": "Session created."
6071-
},
6072-
"400": {
6073-
"content": {
6074-
"application/json": {
6075-
"schema": {
6076-
"$ref": "#/components/schemas/RequestErrorResponse"
6077-
}
6078-
}
6079-
},
6080-
"description": "Invalid request body."
6081-
},
6082-
"403": {
6083-
"content": {
6084-
"application/json": {
6085-
"schema": {
6086-
"$ref": "#/components/schemas/RequestErrorResponse"
6087-
}
6088-
}
6089-
},
6090-
"description": "Caller is not the session creator."
6091-
},
6092-
"404": {
6093-
"content": {
6094-
"application/json": {
6095-
"schema": {
6096-
"$ref": "#/components/schemas/RequestErrorResponse"
6097-
}
6098-
}
6099-
},
6100-
"description": "Named agent not found."
6101-
},
6102-
"422": {
6103-
"content": {
6104-
"application/json": {
6105-
"schema": {
6106-
"$ref": "#/components/schemas/RequestErrorResponse"
6107-
}
6108-
}
6109-
},
6110-
"description": "The agent spec is valid but references a resource this server does not provide (e.g. model, MCP server, skill, or sandbox)."
6111-
}
6112-
},
6113-
"summary": "Get or create a session by external id",
6114-
"tags": [
6115-
"Agent Sessions"
6116-
],
6117-
"x-fern-sdk-group-name": [
6118-
"sessions"
6119-
],
6120-
"x-fern-sdk-method-name": "get_or_create_by_external_id"
6121-
}
6122-
},
61236038
"/api/v1/sessions/{session_id}": {
61246039
"delete": {
61256040
"description": "Delete a session and all related turns, events, and internal state. Only the session creator (`created_by`) may delete it. Idempotent if already gone.",

‎packages/trueforge-sdk/reference.md‎

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,74 +1276,6 @@ await client.sessions.create({
12761276
</dl>
12771277

12781278

1279-
</dd>
1280-
</dl>
1281-
</details>
1282-
1283-
<details><summary><code>client.sessions.<a href="/src/api/resources/sessions/client/Client.ts">getOrCreateByExternalId</a>({ ...params }) -> TrueForge.GetSessionResponse</code></summary>
1284-
<dl>
1285-
<dd>
1286-
1287-
#### 📝 Description
1288-
1289-
<dl>
1290-
<dd>
1291-
1292-
<dl>
1293-
<dd>
1294-
1295-
Idempotent get-or-create: returns the existing session for this tenant-scoped `external_id`, or creates one
1296-
</dd>
1297-
</dl>
1298-
</dd>
1299-
</dl>
1300-
1301-
#### 🔌 Usage
1302-
1303-
<dl>
1304-
<dd>
1305-
1306-
<dl>
1307-
<dd>
1308-
1309-
```typescript
1310-
await client.sessions.getOrCreateByExternalId({
1311-
agent: {
1312-
name: "name"
1313-
},
1314-
externalId: "external_id"
1315-
});
1316-
1317-
```
1318-
</dd>
1319-
</dl>
1320-
</dd>
1321-
</dl>
1322-
1323-
#### ⚙️ Parameters
1324-
1325-
<dl>
1326-
<dd>
1327-
1328-
<dl>
1329-
<dd>
1330-
1331-
**request:** `TrueForge.GetOrCreateSessionByExternalIdRequest`
1332-
1333-
</dd>
1334-
</dl>
1335-
1336-
<dl>
1337-
<dd>
1338-
1339-
**requestOptions:** `SessionsClient.RequestOptions`
1340-
1341-
</dd>
1342-
</dl>
1343-
</dd>
1344-
</dl>
1345-
1346-
13471279
</dd>
13481280
</dl>
13491281
</details>

0 commit comments

Comments
 (0)