mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 09:44:15 +00:00
update api types
This commit is contained in:
@@ -1369,7 +1369,7 @@ Determine SimpleX link type and if the bot is already connected via this link or
|
||||
|
||||
**Parameters**:
|
||||
- userId: int64
|
||||
- connectTarget: [ConnectTarget](./TYPES.md#connecttarget)?
|
||||
- connectTarget: [AConnectTarget](./TYPES.md#aconnecttarget)?
|
||||
- resolveKnown: bool
|
||||
- linkOwnerSig: [LinkOwnerSig](./TYPES.md#linkownersig)?
|
||||
|
||||
@@ -1461,7 +1461,7 @@ Connect via SimpleX link or name as string in the active user profile.
|
||||
|
||||
**Parameters**:
|
||||
- incognito: bool
|
||||
- connTarget_: [ConnectTarget](./TYPES.md#connecttarget)?
|
||||
- connTarget_: [AConnectTarget](./TYPES.md#aconnecttarget)?
|
||||
|
||||
**Syntax**:
|
||||
|
||||
|
||||
+18
-18
@@ -5,6 +5,7 @@ This file is generated automatically.
|
||||
- [ACIReaction](#acireaction)
|
||||
- [AChat](#achat)
|
||||
- [AChatItem](#achatitem)
|
||||
- [AConnectTarget](#aconnecttarget)
|
||||
- [AddRelayResult](#addrelayresult)
|
||||
- [AddressSettings](#addresssettings)
|
||||
- [AgentCryptoError](#agentcryptoerror)
|
||||
@@ -61,7 +62,6 @@ This file is generated automatically.
|
||||
- [ComposedMessage](#composedmessage)
|
||||
- [ConnStatus](#connstatus)
|
||||
- [ConnType](#conntype)
|
||||
- [ConnectTarget](#connecttarget)
|
||||
- [Connection](#connection)
|
||||
- [ConnectionEntity](#connectionentity)
|
||||
- [ConnectionErrorType](#connectionerrortype)
|
||||
@@ -241,6 +241,23 @@ This file is generated automatically.
|
||||
- chatItem: [ChatItem](#chatitem)
|
||||
|
||||
|
||||
---
|
||||
|
||||
## AConnectTarget
|
||||
|
||||
Connect target: SimpleX link (`CTLink`) or SimpleX name (`CTName`). Wire form is the bare string returned by `strEncode` — `simplex:/...` for links, `#name.simplex` / `@name.simplex` for names.
|
||||
|
||||
**Discriminated union type**:
|
||||
|
||||
Name:
|
||||
- type: "name"
|
||||
- : [SimplexNameInfo](#simplexnameinfo)
|
||||
|
||||
Link:
|
||||
- type: "link"
|
||||
- : string
|
||||
|
||||
|
||||
---
|
||||
|
||||
## AddRelayResult
|
||||
@@ -1649,23 +1666,6 @@ Failed:
|
||||
- "user_contact"
|
||||
|
||||
|
||||
---
|
||||
|
||||
## ConnectTarget
|
||||
|
||||
Connect target: SimpleX link (`CTLink`) or SimpleX name (`CTName`). Wire form is the bare string returned by `strEncode` — `simplex:/...` for links, `#name.simplex` / `@name.simplex` for names.
|
||||
|
||||
**Discriminated union type**:
|
||||
|
||||
Link:
|
||||
- type: "link"
|
||||
- : string
|
||||
|
||||
Name:
|
||||
- type: "name"
|
||||
- : [SimplexNameInfo](#simplexnameinfo)
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Connection
|
||||
|
||||
Reference in New Issue
Block a user