Skip to content

Commit e90b907

Browse files
authored
Merge pull request #103 from tonkeeper/rename_tonconnect_auth_proof
rename tonconnect auth proof
2 parents 8a82960 + 394bf6d commit e90b907

7 files changed

+133
-157
lines changed

api/openapi.json

+42-42
Original file line numberDiff line numberDiff line change
@@ -4731,48 +4731,6 @@
47314731
]
47324732
}
47334733
},
4734-
"/v2/tonconnect/proof": {
4735-
"post": {
4736-
"description": "Account verification and token issuance",
4737-
"operationId": "tonConnectProof",
4738-
"requestBody": {
4739-
"$ref": "#/components/requestBodies/TonConnectProof"
4740-
},
4741-
"responses": {
4742-
"200": {
4743-
"content": {
4744-
"application/json": {
4745-
"schema": {
4746-
"properties": {
4747-
"token": {
4748-
"example": "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3...",
4749-
"type": "string"
4750-
}
4751-
},
4752-
"required": [
4753-
"token"
4754-
],
4755-
"type": "object"
4756-
}
4757-
}
4758-
},
4759-
"description": "token"
4760-
},
4761-
"400": {
4762-
"$ref": "#/components/responses/BadRequest"
4763-
},
4764-
"401": {
4765-
"$ref": "#/components/responses/UnauthorizedError"
4766-
},
4767-
"500": {
4768-
"$ref": "#/components/responses/InternalError"
4769-
}
4770-
},
4771-
"tags": [
4772-
"Connect"
4773-
]
4774-
}
4775-
},
47764734
"/v2/tonconnect/stateinit": {
47774735
"post": {
47784736
"description": "Get account info by state init",
@@ -4877,6 +4835,48 @@
48774835
]
48784836
}
48794837
},
4838+
"/v2/wallet/auth/proof": {
4839+
"post": {
4840+
"description": "Account verification and token issuance",
4841+
"operationId": "tonConnectProof",
4842+
"requestBody": {
4843+
"$ref": "#/components/requestBodies/TonConnectProof"
4844+
},
4845+
"responses": {
4846+
"200": {
4847+
"content": {
4848+
"application/json": {
4849+
"schema": {
4850+
"properties": {
4851+
"token": {
4852+
"example": "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3...",
4853+
"type": "string"
4854+
}
4855+
},
4856+
"required": [
4857+
"token"
4858+
],
4859+
"type": "object"
4860+
}
4861+
}
4862+
},
4863+
"description": "token"
4864+
},
4865+
"400": {
4866+
"$ref": "#/components/responses/BadRequest"
4867+
},
4868+
"401": {
4869+
"$ref": "#/components/responses/UnauthorizedError"
4870+
},
4871+
"500": {
4872+
"$ref": "#/components/responses/InternalError"
4873+
}
4874+
},
4875+
"tags": [
4876+
"Wallet"
4877+
]
4878+
}
4879+
},
48804880
"/v2/wallet/backup": {
48814881
"get": {
48824882
"description": "Get backup info",

api/openapi.yml

+27-27
Original file line numberDiff line numberDiff line change
@@ -1268,33 +1268,6 @@ paths:
12681268
$ref: '#/components/responses/UnauthorizedError'
12691269
'500':
12701270
$ref: '#/components/responses/InternalError'
1271-
/v2/tonconnect/proof:
1272-
post:
1273-
description: Account verification and token issuance
1274-
operationId: tonConnectProof
1275-
tags:
1276-
- Connect
1277-
requestBody:
1278-
$ref: "#/components/requestBodies/TonConnectProof"
1279-
responses:
1280-
'200':
1281-
description: "token"
1282-
content:
1283-
application/json:
1284-
schema:
1285-
type: object
1286-
required:
1287-
- token
1288-
properties:
1289-
token:
1290-
type: string
1291-
example: "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..."
1292-
'400':
1293-
$ref: '#/components/responses/BadRequest'
1294-
'401':
1295-
$ref: '#/components/responses/UnauthorizedError'
1296-
'500':
1297-
$ref: '#/components/responses/InternalError'
12981271
/v2/tonconnect/stateinit:
12991272
post:
13001273
description: "Get account info by state init"
@@ -1369,6 +1342,33 @@ paths:
13691342
$ref: '#/components/responses/UnauthorizedError'
13701343
'500':
13711344
$ref: '#/components/responses/InternalError'
1345+
/v2/wallet/auth/proof:
1346+
post:
1347+
description: Account verification and token issuance
1348+
operationId: tonConnectProof
1349+
tags:
1350+
- Wallet
1351+
requestBody:
1352+
$ref: "#/components/requestBodies/TonConnectProof"
1353+
responses:
1354+
'200':
1355+
description: "token"
1356+
content:
1357+
application/json:
1358+
schema:
1359+
type: object
1360+
required:
1361+
- token
1362+
properties:
1363+
token:
1364+
type: string
1365+
example: "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..."
1366+
'400':
1367+
$ref: '#/components/responses/BadRequest'
1368+
'401':
1369+
$ref: '#/components/responses/UnauthorizedError'
1370+
'500':
1371+
$ref: '#/components/responses/InternalError'
13721372

13731373
components:
13741374
parameters:

pkg/oas/oas_client_gen.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_handlers_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_router_gen.go

+59-83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_server_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_unimplemented_gen.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)