Skip to content

Commit d34d64c

Browse files
dsinghvisahil485
andauthored
Update fern definition (#1511)
Co-authored-by: sahil485 <[email protected]>
1 parent e7ebde1 commit d34d64c

File tree

1 file changed

+84
-33
lines changed

1 file changed

+84
-33
lines changed

fern/apis/fai/openapi.json

Lines changed: 84 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,31 +2254,59 @@
22542254
]
22552255
}
22562256
},
2257-
"/scribe/test/domain-to-repo": {
2258-
"get": {
2257+
"/scribe/callback/slack/edit/{team_id}/{channel_id}/{thread_ts}": {
2258+
"post": {
22592259
"tags": [
22602260
"Scribe"
22612261
],
2262-
"summary": "Test Domain To Repo",
2263-
"operationId": "test_domain_to_repo",
2262+
"summary": "Scribe Edit Callback",
2263+
"operationId": "scribe_edit_callback",
22642264
"parameters": [
22652265
{
2266-
"name": "domain",
2267-
"in": "query",
2266+
"name": "team_id",
2267+
"in": "path",
22682268
"required": true,
22692269
"schema": {
22702270
"type": "string",
2271-
"title": "Domain"
2271+
"title": "Team Id"
2272+
}
2273+
},
2274+
{
2275+
"name": "channel_id",
2276+
"in": "path",
2277+
"required": true,
2278+
"schema": {
2279+
"type": "string",
2280+
"title": "Channel Id"
2281+
}
2282+
},
2283+
{
2284+
"name": "thread_ts",
2285+
"in": "path",
2286+
"required": true,
2287+
"schema": {
2288+
"type": "string",
2289+
"title": "Thread Ts"
22722290
}
22732291
}
22742292
],
2293+
"requestBody": {
2294+
"required": true,
2295+
"content": {
2296+
"application/json": {
2297+
"schema": {
2298+
"$ref": "#/components/schemas/ScribeEditCallbackRequest"
2299+
}
2300+
}
2301+
}
2302+
},
22752303
"responses": {
22762304
"200": {
22772305
"description": "Successful Response",
22782306
"content": {
22792307
"application/json": {
22802308
"schema": {
2281-
"$ref": "#/components/schemas/DomainRepoResponse"
2309+
"$ref": "#/components/schemas/ScribeEditCallbackResponse"
22822310
}
22832311
}
22842312
}
@@ -3586,31 +3614,6 @@
35863614
],
35873615
"title": "Document"
35883616
},
3589-
"DomainRepoResponse": {
3590-
"properties": {
3591-
"domain": {
3592-
"type": "string",
3593-
"title": "Domain"
3594-
},
3595-
"repo": {
3596-
"anyOf": [
3597-
{
3598-
"type": "string"
3599-
},
3600-
{
3601-
"type": "null"
3602-
}
3603-
],
3604-
"title": "Repo"
3605-
}
3606-
},
3607-
"type": "object",
3608-
"required": [
3609-
"domain",
3610-
"repo"
3611-
],
3612-
"title": "DomainRepoResponse"
3613-
},
36143617
"EditingSession": {
36153618
"properties": {
36163619
"id": {
@@ -3697,6 +3700,12 @@
36973700
"type": "array",
36983701
"title": "Locations",
36993702
"description": "List of locations to enable (docs, slack, discord)"
3703+
},
3704+
"preview": {
3705+
"type": "boolean",
3706+
"title": "Preview",
3707+
"description": "Whether this is a preview domain",
3708+
"default": false
37003709
}
37013710
},
37023711
"type": "object",
@@ -4447,6 +4456,48 @@
44474456
],
44484457
"title": "ReconstructIndexResponse"
44494458
},
4459+
"ScribeEditCallbackRequest": {
4460+
"properties": {
4461+
"editing_id": {
4462+
"type": "string",
4463+
"title": "Editing Id"
4464+
},
4465+
"pr_url": {
4466+
"anyOf": [
4467+
{
4468+
"type": "string"
4469+
},
4470+
{
4471+
"type": "null"
4472+
}
4473+
],
4474+
"title": "Pr Url"
4475+
}
4476+
},
4477+
"type": "object",
4478+
"required": [
4479+
"editing_id"
4480+
],
4481+
"title": "ScribeEditCallbackRequest"
4482+
},
4483+
"ScribeEditCallbackResponse": {
4484+
"properties": {
4485+
"status": {
4486+
"type": "string",
4487+
"title": "Status"
4488+
},
4489+
"status_code": {
4490+
"type": "integer",
4491+
"title": "Status Code"
4492+
}
4493+
},
4494+
"type": "object",
4495+
"required": [
4496+
"status",
4497+
"status_code"
4498+
],
4499+
"title": "ScribeEditCallbackResponse"
4500+
},
44504501
"ScribeSlackCallbackRequest": {
44514502
"properties": {
44524503
"pr_url": {

0 commit comments

Comments
 (0)