Skip to content

Commit c60aba4

Browse files
authored
[bindgen] Expose sync proxy configuration (#6736)
* Expose sync proxy configuration
1 parent f96a8c1 commit c60aba4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bindgen/spec.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ typeAliases:
6565
AppCredentialsToken: std::string
6666
Email: std::string
6767
SchemaVersion: int64_t # is uint64_t in C++ but -1 is used as a sentinel.
68+
PortType: int32_t # is uint_fast16_t in C++ but we don't want to add more primitive types and expect SDKs to reject port number > 65535
6869

6970
templates: # value tells you how many arguments it takes ('*' means any number)
7071
util::Optional: 1
@@ -292,6 +293,11 @@ enums:
292293
- NEED_DATA
293294
- HAVE_EVENT
294295
- HAVE_ERROR
296+
ProxyType:
297+
cppName: SyncConfig::ProxyConfig::Type
298+
values:
299+
- HTTP
300+
- HTTPS
295301

296302
# These types are handled specially. They must be structs with a single fields named "value".
297303
keyTypes:
@@ -413,6 +419,13 @@ records:
413419
disabled:
414420
type: bool
415421

422+
SyncProxyConfig:
423+
cppName: SyncConfig::ProxyConfig
424+
fields:
425+
address: std::string
426+
port: PortType
427+
type: ProxyType
428+
416429
SyncConfig:
417430
fields:
418431
user: SharedSyncUser
@@ -442,6 +455,7 @@ records:
442455
cancel_waits_on_nonfatal_error:
443456
type: bool
444457
default: false
458+
proxy_config: util::Optional<SyncProxyConfig>
445459

446460
SyncSubscription:
447461
cppName: sync::Subscription

0 commit comments

Comments
 (0)