Skip to content

Commit 8dd4706

Browse files
Regenerate OpenAPI document and TypeScript SDK
1 parent 8e8dcba commit 8dd4706

2 files changed

Lines changed: 248 additions & 0 deletions

File tree

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

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,72 @@
4545
],
4646
"type": "object"
4747
},
48+
"AgentCodeSnippet": {
49+
"additionalProperties": false,
50+
"properties": {
51+
"icon": {
52+
"format": "uri",
53+
"type": "string"
54+
},
55+
"label_name": {
56+
"minLength": 1,
57+
"type": "string"
58+
},
59+
"language": {
60+
"minLength": 1,
61+
"type": "string"
62+
},
63+
"sample_code": {
64+
"$ref": "#/components/schemas/AgentCodeSnippetSampleCode"
65+
}
66+
},
67+
"required": [
68+
"label_name",
69+
"language",
70+
"icon",
71+
"sample_code"
72+
],
73+
"type": "object"
74+
},
75+
"AgentCodeSnippetSampleCode": {
76+
"additionalProperties": false,
77+
"properties": {
78+
"non_stream": {
79+
"description": "SDK sample that creates a turn without streaming.",
80+
"type": "string"
81+
},
82+
"stream": {
83+
"description": "SDK sample that streams turn events.",
84+
"type": "string"
85+
}
86+
},
87+
"required": [
88+
"stream",
89+
"non_stream"
90+
],
91+
"type": "object"
92+
},
93+
"AgentCodeSnippets": {
94+
"additionalProperties": false,
95+
"properties": {
96+
"base_url": {
97+
"description": "Origin to pass as the TrueForge SDK `baseUrl`.",
98+
"format": "uri",
99+
"type": "string"
100+
},
101+
"snippets": {
102+
"items": {
103+
"$ref": "#/components/schemas/AgentCodeSnippet"
104+
},
105+
"type": "array"
106+
}
107+
},
108+
"required": [
109+
"base_url",
110+
"snippets"
111+
],
112+
"type": "object"
113+
},
48114
"AgentInfo": {
49115
"properties": {
50116
"input": {
@@ -1151,6 +1217,17 @@
11511217
},
11521218
"type": "object"
11531219
},
1220+
"GetAgentCodeSnippetsResponse": {
1221+
"properties": {
1222+
"data": {
1223+
"$ref": "#/components/schemas/AgentCodeSnippets"
1224+
}
1225+
},
1226+
"required": [
1227+
"data"
1228+
],
1229+
"type": "object"
1230+
},
11541231
"GetAgentResponse": {
11551232
"properties": {
11561233
"data": {
@@ -4426,6 +4503,53 @@
44264503
"x-fern-sdk-method-name": "update"
44274504
}
44284505
},
4506+
"/api/v1/agents/{agent_id}/code-snippets": {
4507+
"get": {
4508+
"description": "TypeScript TrueForge SDK samples (stream and non-stream) for creating a session and turn against this agent.",
4509+
"parameters": [
4510+
{
4511+
"description": "Immutable agent identifier.",
4512+
"in": "path",
4513+
"name": "agent_id",
4514+
"required": true,
4515+
"schema": {
4516+
"description": "Immutable agent identifier.",
4517+
"maxLength": 64,
4518+
"minLength": 1,
4519+
"type": "string"
4520+
}
4521+
}
4522+
],
4523+
"responses": {
4524+
"200": {
4525+
"content": {
4526+
"application/json": {
4527+
"schema": {
4528+
"$ref": "#/components/schemas/GetAgentCodeSnippetsResponse"
4529+
}
4530+
}
4531+
},
4532+
"description": "TypeScript SDK samples and the origin to use as `baseUrl`."
4533+
},
4534+
"404": {
4535+
"content": {
4536+
"application/json": {
4537+
"schema": {
4538+
"$ref": "#/components/schemas/RequestErrorResponse"
4539+
}
4540+
}
4541+
},
4542+
"description": "Agent not found."
4543+
}
4544+
},
4545+
"summary": "Get agent SDK code snippets",
4546+
"tags": [
4547+
"Agents"
4548+
],
4549+
"x-excluded": true,
4550+
"x-fern-ignore": true
4551+
}
4552+
},
44294553
"/api/v1/auth/callback": {
44304554
"get": {
44314555
"description": "Browser-redirect target hit by the identity provider after login, never called directly by SDK consumers. In local/single-binary mode, redirects straight back into the app.",

‎docs/openapi.json‎

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,72 @@
4545
],
4646
"type": "object"
4747
},
48+
"AgentCodeSnippet": {
49+
"additionalProperties": false,
50+
"properties": {
51+
"icon": {
52+
"format": "uri",
53+
"type": "string"
54+
},
55+
"label_name": {
56+
"minLength": 1,
57+
"type": "string"
58+
},
59+
"language": {
60+
"minLength": 1,
61+
"type": "string"
62+
},
63+
"sample_code": {
64+
"$ref": "#/components/schemas/AgentCodeSnippetSampleCode"
65+
}
66+
},
67+
"required": [
68+
"label_name",
69+
"language",
70+
"icon",
71+
"sample_code"
72+
],
73+
"type": "object"
74+
},
75+
"AgentCodeSnippetSampleCode": {
76+
"additionalProperties": false,
77+
"properties": {
78+
"non_stream": {
79+
"description": "SDK sample that creates a turn without streaming.",
80+
"type": "string"
81+
},
82+
"stream": {
83+
"description": "SDK sample that streams turn events.",
84+
"type": "string"
85+
}
86+
},
87+
"required": [
88+
"stream",
89+
"non_stream"
90+
],
91+
"type": "object"
92+
},
93+
"AgentCodeSnippets": {
94+
"additionalProperties": false,
95+
"properties": {
96+
"base_url": {
97+
"description": "Origin to pass as the TrueForge SDK `baseUrl`.",
98+
"format": "uri",
99+
"type": "string"
100+
},
101+
"snippets": {
102+
"items": {
103+
"$ref": "#/components/schemas/AgentCodeSnippet"
104+
},
105+
"type": "array"
106+
}
107+
},
108+
"required": [
109+
"base_url",
110+
"snippets"
111+
],
112+
"type": "object"
113+
},
48114
"AgentInfo": {
49115
"properties": {
50116
"input": {
@@ -1151,6 +1217,17 @@
11511217
},
11521218
"type": "object"
11531219
},
1220+
"GetAgentCodeSnippetsResponse": {
1221+
"properties": {
1222+
"data": {
1223+
"$ref": "#/components/schemas/AgentCodeSnippets"
1224+
}
1225+
},
1226+
"required": [
1227+
"data"
1228+
],
1229+
"type": "object"
1230+
},
11541231
"GetAgentResponse": {
11551232
"properties": {
11561233
"data": {
@@ -4426,6 +4503,53 @@
44264503
"x-fern-sdk-method-name": "update"
44274504
}
44284505
},
4506+
"/api/v1/agents/{agent_id}/code-snippets": {
4507+
"get": {
4508+
"description": "TypeScript TrueForge SDK samples (stream and non-stream) for creating a session and turn against this agent.",
4509+
"parameters": [
4510+
{
4511+
"description": "Immutable agent identifier.",
4512+
"in": "path",
4513+
"name": "agent_id",
4514+
"required": true,
4515+
"schema": {
4516+
"description": "Immutable agent identifier.",
4517+
"maxLength": 64,
4518+
"minLength": 1,
4519+
"type": "string"
4520+
}
4521+
}
4522+
],
4523+
"responses": {
4524+
"200": {
4525+
"content": {
4526+
"application/json": {
4527+
"schema": {
4528+
"$ref": "#/components/schemas/GetAgentCodeSnippetsResponse"
4529+
}
4530+
}
4531+
},
4532+
"description": "TypeScript SDK samples and the origin to use as `baseUrl`."
4533+
},
4534+
"404": {
4535+
"content": {
4536+
"application/json": {
4537+
"schema": {
4538+
"$ref": "#/components/schemas/RequestErrorResponse"
4539+
}
4540+
}
4541+
},
4542+
"description": "Agent not found."
4543+
}
4544+
},
4545+
"summary": "Get agent SDK code snippets",
4546+
"tags": [
4547+
"Agents"
4548+
],
4549+
"x-excluded": true,
4550+
"x-fern-ignore": true
4551+
}
4552+
},
44294553
"/api/v1/auth/callback": {
44304554
"get": {
44314555
"description": "Browser-redirect target hit by the identity provider after login, never called directly by SDK consumers. In local/single-binary mode, redirects straight back into the app.",

0 commit comments

Comments
 (0)