4246 lines
218 KiB
Ziran
4246 lines
218 KiB
Ziran
alias_paths :: #import "alias_paths";
|
|
storage_plans :: #import "storage_plan_paths";
|
|
unlock_paths :: #import "unlock_paths";
|
|
reward_paths :: #import "reward_paths";
|
|
reward_migration_paths :: #import "reward_migration_paths";
|
|
game_evidence_paths :: #import "game_evidence_paths";
|
|
gift_paths :: #import "token_gift_paths";
|
|
referral_paths :: #import "referral_paths";
|
|
publication_paths :: #import "publications_paths";
|
|
exchange_rate_paths :: #import "exchange_rate_paths";
|
|
#import "std/go_types"
|
|
#import "std/map_go"
|
|
#import "protocol"
|
|
#import "types"
|
|
http :: #import "std/http_go";
|
|
io :: #import "std/io_go";
|
|
ctx :: #import "std/context_go";
|
|
json :: #import "std/json_go";
|
|
url :: #import "std/url_go";
|
|
response :: #import "response";
|
|
chat_paths :: #import "chat_paths";
|
|
telegram_paths :: #import "telegram_paths";
|
|
authorization_paths :: #import "authorization_paths";
|
|
package_paths :: #import "package_paths";
|
|
shared_list_paths :: #import "shared_list_paths";
|
|
device_link_paths :: #import "device_link_paths";
|
|
account_backup_paths :: #import "account_backup_paths";
|
|
account_sign_in_paths :: #import "account_sign_in_paths";
|
|
blob_paths :: #import "blob_paths";
|
|
go_sync :: #system_library "go:sync";
|
|
go_format :: #system_library "go:fmt";
|
|
go_slog :: #system_library "go:log/slog";
|
|
go_io :: #system_library "go:io";
|
|
builtin :: #system_library "go:builtin";
|
|
go_strings :: #system_library "go:strings";
|
|
|
|
ReadPublicStats :: #type (context: ctx.Context, databasePath: string) -> PublicStatsResult;
|
|
|
|
#scope_file
|
|
CachedBytes :: #type () -> []u8;
|
|
WriteResult :: struct {
|
|
count: isize
|
|
error: Error
|
|
}
|
|
OnceBytes :: (build: CachedBytes) -> CachedBytes #foreign go_sync "OnceValue";
|
|
AppendByte :: (values: []u8, value: u8) -> []u8 #foreign builtin "append";
|
|
AppendObject :: (values: []Map(string, Any), value: Map(string, Any)) -> []Map(string, Any) #foreign builtin "append";
|
|
AllocateStrings :: (count: isize) -> []string #foreign builtin "make";
|
|
AllocateObjects :: (count: isize) -> []Map(string, Any) #foreign builtin "make";
|
|
AllocateIntegers :: (count: isize) -> []isize #foreign builtin "make";
|
|
Write :: (writer: io.Writer, value: []u8) -> WriteResult #go_results #foreign go_io "Writer.Write";
|
|
WritePage :: (writer: io.Writer, format: string, status: string) -> WriteResult #go_results #foreign go_format "Fprintf";
|
|
FormatStatus :: (format: string, users: s64, used: s64, total: s64, repeatedUsers: s64, repeatedUsed: s64, repeatedTotal: s64) -> string #foreign go_format "Sprintf";
|
|
FormatFailure :: (format: string, error: Error) -> string #foreign go_format "Sprintf";
|
|
Panic :: (value: Any) #foreign builtin "panic";
|
|
LogError :: (message: string, key: string, error: Error) #foreign go_slog "Error";
|
|
Join :: (parts: []string, separator: string) -> string #foreign go_strings;
|
|
|
|
cachedSpec: CachedBytes = OnceBytes(BuildSpecJSON);
|
|
pageTemplate: string = BuildPage();
|
|
|
|
BuildSpecJSON :: () -> []u8 {
|
|
encoded := json.Marshal(Spec())
|
|
if encoded.error != null {
|
|
Panic(FormatFailure("marshal openapi spec: %v", encoded.error))
|
|
}
|
|
return AppendByte(encoded.value, cast(u8)10)
|
|
}
|
|
|
|
#scope_export
|
|
OpenAPI :: (writer: http.ResponseWriter, request: *http.Request) {
|
|
http.SetHeader(http.ResponseHeaders(writer), "Content-Type", "application/vnd.oai.openapi+json")
|
|
http.WriteHeader(writer, cast(isize)200)
|
|
Write(cast(io.Writer)writer, cachedSpec())
|
|
}
|
|
|
|
Handle :: (writer: http.ResponseWriter, request: *http.Request, databasePath: string, read: ReadPublicStats) {
|
|
if url.Path(http.RequestURL(request)) != "/" {
|
|
response.Error(writer, cast(isize)404, "not found")
|
|
return
|
|
}
|
|
loaded := read(http.Context(request), databasePath)
|
|
statusHTML: string = "<p class=\"status-error\">Stats are temporarily unavailable.</p>"
|
|
if loaded.error != null {
|
|
LogError("load public stats", "error", loaded.error)
|
|
} else {
|
|
stats := loaded.value
|
|
usedGB := stats.StorageUsedGB
|
|
if stats.StorageUsedBytes > 0 && usedGB == 0 {
|
|
usedGB = 1
|
|
}
|
|
totalGB := usedGB + stats.AvailableGB
|
|
statusHTML = FormatStatus(StatusTemplate, stats.UserCount, usedGB, totalGB,
|
|
stats.UserCount, usedGB, totalGB)
|
|
}
|
|
http.SetHeader(http.ResponseHeaders(writer), "Content-Type", "text/html; charset=utf-8")
|
|
http.WriteHeader(writer, cast(isize)200)
|
|
WritePage(cast(io.Writer)writer, pageTemplate, statusHTML)
|
|
}
|
|
|
|
#scope_file
|
|
StatusTemplate :: "<footer class=\"status\" aria-label=\"Users: %d; Storage: %d/%d GB\">\n<span><strong>Users</strong> %d</span>\n<span><strong>Storage</strong> %d/%d GB</span>\n</footer>";
|
|
|
|
BuildPage :: () -> string {
|
|
parts: [5]string
|
|
parts[0] = #string PAGE_SECTION_0
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Mesh</title>
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:ital,wght@0,300;0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');
|
|
body{font-family:"Noto Sans Mono",ui-monospace,Menlo,monospace;margin:0;line-height:1.85;color:#4a4038;background:linear-gradient(180deg,#f7ede2 0%%,#f2e2d0 60%%,#f7ede2 100%%);font-size:13.5px}
|
|
main{max-width:1040px;margin:0 auto;padding:44px 20px 28px}
|
|
.hero{padding:54px 0 42px;border-bottom:1px solid #d8cdbd}
|
|
.eyebrow{margin:0 0 10px;color:#7b5b2a;font-size:.78rem;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
|
|
h1{margin:0;color:#14262b;font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(3.4rem,9vw,6.6rem);font-weight:600;line-height:.92;letter-spacing:0}
|
|
h2{font-family:"Cormorant Garamond",Georgia,serif}
|
|
.lead{max-width:760px;margin:22px 0 0;color:#4f5d62;font-size:1.22rem}
|
|
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
|
|
.button{display:inline-flex;align-items:center;min-height:40px;padding:0 15px;border:1px solid #19353b;border-radius:6px;background:#19353b;color:white;text-decoration:none;font-weight:750}
|
|
.button.secondary{background:white;color:#19353b;border-color:#c9baa8}
|
|
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:28px 0}
|
|
.card,.endpoint{background:white;border:1px solid #d8cdbd;border-radius:8px;padding:18px}
|
|
.card h2,.endpoint h2{margin:0 0 8px;font-size:1.05rem}
|
|
.card p{margin:0;color:#59676c}
|
|
.section-title{margin:38px 0 14px}
|
|
code,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
|
|
pre{overflow:auto;background:#14262b;color:#f9fafb;padding:16px;border-radius:8px}
|
|
.endpoint{margin:10px 0}
|
|
.method{display:inline-block;min-width:56px;font-weight:700}
|
|
.security{display:grid;gap:12px;margin:20px 0}
|
|
.security p{margin:0;color:#59676c}
|
|
.security strong{display:block;color:#18202a}
|
|
.status{border-top:1px solid #d8cdbd;margin-top:22px;padding-top:14px;display:flex;gap:18px;align-items:center;color:#5c6675;font-size:.9rem;flex-wrap:wrap}
|
|
.status strong{color:#18202a;font-weight:650}
|
|
.status-error{border-top:1px solid #d8cdbd;margin-top:22px;padding-top:14px;color:#5c6675}
|
|
.footer{border-top:1px solid #d8cdbd;margin-top:28px;padding-top:18px;color:#667075;font-size:.9rem}
|
|
a{color:#0b625d}
|
|
@media (max-width:640px){.status{gap:10px}}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<section class="hero">
|
|
<p class="eyebrow">Offline-first keys for mesh-native sync</p>
|
|
<h1>Mesh</h1>
|
|
<p class="lead">Device-created account keys, post-quantum proof of account authority, encrypted records, and remote events for native and web apps. Server-assisted today, built toward a mesh-native network.</p>
|
|
<div class="actions"><a class="button" href="/openapi.json">OpenAPI JSON</a><a class="button secondary" href="/healthz">Health check</a><a class="button secondary" href="/readyz">Readiness</a></div>
|
|
</section>
|
|
PAGE_SECTION_0;
|
|
parts[1] = #string PAGE_SECTION_1
|
|
<section class="grid" aria-label="Mesh capabilities">
|
|
<article class="card"><h2>Offline-first keys</h2><p>Clients create the durable ML-DSA-44 account key locally. The relay sees the public key, account hash, and signatures, not the private key.</p></article>
|
|
<article class="card"><h2>Post-quantum account authority</h2><p>The durable account key is ML-DSA-44. Clients prove control with short-lived challenges before receiving operational bearer tokens.</p></article>
|
|
<article class="card"><h2>App-owned records</h2><p>Applications keep ownership of their data while the relay stores versions, opaque encrypted payloads, and shared projections.</p></article>
|
|
<article class="card"><h2>Remote events</h2><p>WebSocket events wake clients when fresh sync data is available without exposing bearer tokens through URLs.</p></article>
|
|
<article class="card"><h2>Trusted mesh</h2><p>Signed pairing, local discovery, scoped replication, and trust-space names keep approved app data available through home and neighbor nodes.</p></article>
|
|
</section>
|
|
<section class="security" aria-label="Security posture">
|
|
<p><strong>Key creation starts offline.</strong> A device can create its account key before the first network request; first login registers the public key, and later logins prove control with fresh signatures.</p>
|
|
<p><strong>Private records stay client encrypted.</strong> Mesh validates metadata and versions ciphertext, but plaintext and record encryption choices remain with clients and apps.</p>
|
|
<p><strong>The post-quantum proof is account authority.</strong> Mesh uses ML-DSA-44 signatures for identity and account authorization; app manifest keys and token issuer keys are separate Ed25519 authorities.</p>
|
|
</section>
|
|
<h2 class="section-title">Implementation guides</h2>
|
|
<section class="grid" aria-label="Mesh implementation guides">
|
|
<article class="card"><h2>Encrypted record profile</h2><p>Recommended private-record envelope, nonce rules, AAD, key rotation, and test-vector shape.</p></article>
|
|
<article class="card"><h2>Developer quickstart</h2><p>Shortest path from account key to login, signed app manifest, encrypted sync, and diagnostics.</p></article>
|
|
<article class="card"><h2>Small node operations</h2><p>Low-resource deployment targets, trust inspection checklist, and rollout checks for home or modest nodes.</p></article>
|
|
</section>
|
|
<h2 class="section-title">API surface</h2>
|
|
<p>Protocol v5 makes encrypted records the primary private-data surface while legacy typed rows remain available for compatibility. Protocol v1 through v5 remain valid through 2027-09-01.</p>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/apps</code><p>Lists registered apps, collection prefixes, visibility classes, and capabilities.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/apps</code><p>Registers or updates an app when the admin token is set and <code>X-Mesh-Admin</code> matches it. <code>X-Ksync-Admin</code> remains accepted for compatibility.</p></section>
|
|
PAGE_SECTION_1;
|
|
parts[2] = #string PAGE_SECTION_2
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/sync/challenge?user_id=<sha256-public-key-hex></code><p>Issues a single-use 32-byte challenge nonce encoded as lowercase hex.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/sync/login</code><p>Verifies the challenge signature and returns a cacheable bearer token plus server clock time.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/sync/ws</code><p>Upgrades to a WebSocket event stream authenticated with <code>Authorization: Bearer <token></code>, or browser subprotocols <code>mesh-sync-v1, bearer.<token></code>.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/sync</code><p>Applies typed local changes or stores an encrypted envelope, then returns remote changes newer than the requested server version.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/sync/diagnostics</code><p>Returns bearer-authenticated sync state, table counts, compaction position, legacy client hints, and recent sync audit metadata.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/node/pairing/invites</code><p>Creates a short-lived signed pairing payload with explicit replication scope.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/node/pairing/accept</code><p>Verifies and consumes a pairing invite, then pins the peer identity and approved scope.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/node/pairing/complete</code><p>Authenticates the accepting node back to the inviter and completes reciprocal trust.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/node/peers</code><p>Lists paired nodes and their approved addresses and replication policies.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/namespaces</code><p>Creates a local trust-space authority for signed mesh-native names.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/namespaces/claims</code><p>Signs or updates a name claim in a locally controlled trust space.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/namespaces/resolve</code><p>Resolves a trust-space name to signed service endpoints.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/node/mesh/export</code><p>Exports policy-filtered signed app manifests, encrypted records, deletion tombstones, and names to an authenticated peer node.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/node/mesh/import</code><p>Verifies and imports policy-filtered app manifests, encrypted records, deletion tombstones, and names from an authenticated peer node.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/issuer</code><p>Returns the configured token issuer key.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/products</code><p>Lists configured token products and direct payment prices when direct purchases are enabled.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/balance</code><p>Returns the bearer-authenticated account's token balance computed from signed ledger events.</p></section>
|
|
PAGE_SECTION_2;
|
|
parts[3] = #string PAGE_SECTION_3
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/activity</code><p>Returns the account's Dew balance and full newest-first activity history across every app for the profile's Dew screen.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/tokens/spend</code><p>Debits tokens with app policy and idempotency enforcement.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/tokens/gifts</code><p>Sends Dew to a friend; the debit and the friend's credit commit together.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/rewards</code><p>Lists the game rewards the node gives and their Dew.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/rewards</code><p>Claims a game reward for the account; each reward credits an account once.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/tokens/purchases/monero/invoices</code><p>Creates a bearer-authenticated invoice for a configured token product.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/purchases/monero/invoices/{id}</code><p>Returns invoice status and settles a confirmed payment against the authenticated account.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/purchases/monero/address</code><p>Returns the authenticated account's permanent Monero purchase address.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/purchases/monero/address/{recipient}</code><p>Resolves an alias or public ID and returns the recipient's permanent Monero gift address.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/tokens/purchases/monero/deposits</code><p>Returns the authenticated account's detected and credited Monero deposits.</p></section>
|
|
<section class="endpoint"><span class="method">GET/POST</span><code>/api/v1/account/app-grants</code><p>Lists or creates bearer-authenticated grants for sharing registered app collection prefixes across apps.</p></section>
|
|
<section class="endpoint"><span class="method">GET</span><code>/api/v1/account/app-records</code><p>Returns encrypted records from a granted collection prefix for cross-app use.</p></section>
|
|
<section class="endpoint"><span class="method">GET/POST</span><code>/api/v1/friends</code><p>Bearer-authenticated friend requests, accepted friends, and app-neutral shared profile stats.</p></section>
|
|
<section class="endpoint"><span class="method">GET/POST</span><code>/api/v1/publications</code><p>Publishes level collections and finds the newest public ones or the ones an author lets the caller see.</p></section>
|
|
<section class="endpoint"><span class="method">GET/DELETE</span><code>/api/v1/publications/{id}</code><p>Fetches a visible publication with its document, or lets its author unpublish it.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/account/delete</code><p>Deletes all remote data for the signed sync account without uploading the private key. It is kept on hold for 30 days, restorable with the same key, then deleted permanently.</p></section>
|
|
<section class="endpoint"><span class="method">DELETE</span><code>/api/v1/account</code><p>Legacy signed deletion endpoint kept for older clients.</p></section>
|
|
<section class="endpoint"><span class="method">POST</span><code>/api/v1/account/delete-with-key</code><p>Deletes all remote data for the sync account after verifying exported account key text, with the same 30-day hold.</p></section>
|
|
<h2>Signed Message</h2>
|
|
<pre>daochi-sync-v1
|
|
<HTTP_METHOD>
|
|
<HTTP_PATH>
|
|
<sha256 hex of exact raw request body bytes>
|
|
<challenge nonce hex></pre>
|
|
PAGE_SECTION_3;
|
|
parts[4] = "<p>Signed requests use <code>X-Mesh-User</code>, <code>X-Mesh-Signature</code>, and <code>Content-Type: application/json</code>. The older Ksync and Inbe signature headers remain accepted for shipped clients.</p>\n%s\n<footer class=\"footer\">© 2026 <a href=\"https://ziran-lang.org\">Ziran</a></footer>\n</main>\n</body>\n</html>"
|
|
return Join(parts[:], "")
|
|
}
|
|
|
|
Info :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "title", "Mesh API")
|
|
MapSet(result, "version", "1.0.0")
|
|
MapSet(result, "description", "Mesh-native sync API for app-owned data. Protocol v1 through v5 remain valid through 2027-09-01; after any future deprecation, the immediately previous version stays valid for at least one additional year.")
|
|
resultXMeshProtocolPolicy: Map(string, Any)
|
|
MapInit(resultXMeshProtocolPolicy)
|
|
MapSet(resultXMeshProtocolPolicy, "min_supported_protocol", cast(isize)MinSupportedProtocol)
|
|
MapSet(resultXMeshProtocolPolicy, "latest_protocol", cast(isize)LatestProtocol)
|
|
MapSet(resultXMeshProtocolPolicy, "v1_v5_valid_through", CompatibilityDeadline)
|
|
MapSet(resultXMeshProtocolPolicy, "previous_version_grace_days_min", cast(isize)PreviousVersionGraceDays)
|
|
MapSet(result, "x-mesh-protocol-policy", resultXMeshProtocolPolicy)
|
|
resultXKsyncProtocolPolicy: Map(string, Any)
|
|
MapInit(resultXKsyncProtocolPolicy)
|
|
MapSet(resultXKsyncProtocolPolicy, "min_supported_protocol", cast(isize)MinSupportedProtocol)
|
|
MapSet(resultXKsyncProtocolPolicy, "latest_protocol", cast(isize)LatestProtocol)
|
|
MapSet(resultXKsyncProtocolPolicy, "v1_v5_valid_through", CompatibilityDeadline)
|
|
MapSet(resultXKsyncProtocolPolicy, "previous_version_grace_days_min", cast(isize)PreviousVersionGraceDays)
|
|
MapSet(result, "x-ksync-protocol-policy", resultXKsyncProtocolPolicy)
|
|
return result
|
|
}
|
|
|
|
PathHealthz :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Health check")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Server is healthy")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathReadyz :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Readiness check")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Server is ready for production traffic")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses503: Map(string, Any)
|
|
MapInit(resultGetResponses503)
|
|
MapSet(resultGetResponses503, "description", "Server is not ready")
|
|
MapSet(resultGetResponses, "503", resultGetResponses503)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Node :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Node metadata")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Node protocol bounds, capabilities, known peer nodes, and aggregate usage counts")
|
|
resultGetResponses200Content: Map(string, Any)
|
|
MapInit(resultGetResponses200Content)
|
|
resultGetResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJson)
|
|
resultGetResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/NodeInfoResponse")
|
|
MapSet(resultGetResponses200ContentApplicationJson, "schema", resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200Content, "application/json", resultGetResponses200ContentApplicationJson)
|
|
MapSet(resultGetResponses200, "content", resultGetResponses200Content)
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodePairingInvites :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create a signed node-pairing invite")
|
|
MapSet(resultPost, "description", "Operator-only. The invite contains the node identity, addresses, expiry, and explicit replication policy.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Signed pairing invite")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Operator authorization required")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodePairingAccept :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Accept a signed node-pairing invite")
|
|
MapSet(resultPost, "description", "Operator-only. Verifies the invite, pins the peer key and policy, and rejects expired or reused invites.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Trusted peer")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid or expired invite")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Invite already consumed")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodePairingComplete :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Complete reciprocal node pairing")
|
|
MapSet(resultPost, "description", "Verifies a signed acceptance against a locally issued, single-use invite and stores the accepting peer with the inverse directional policy.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Reciprocal peer trust established")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid invite or acceptance signature")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Invite missing, expired, or already claimed")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodePeers :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List paired peer nodes")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Trusted peers and their approved scopes")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses403: Map(string, Any)
|
|
MapInit(resultGetResponses403)
|
|
MapSet(resultGetResponses403, "description", "Operator authorization required")
|
|
MapSet(resultGetResponses, "403", resultGetResponses403)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Namespaces :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create a local trust-space naming authority")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "New trust space")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Operator authorization required")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NamespacesClaims :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Sign or update a trust-space name claim")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Signed name claim")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Operator authorization required")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NamespacesResolve :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Resolve a signed trust-space name")
|
|
MapSet(resultGet, "description", "Accepts space_id and name query parameters. Trust spaces are local views and do not replace public DNS.")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Signed service claim")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "Name not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodeMeshExport :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Export approved mesh data to a trusted peer node")
|
|
MapSet(resultPost, "description", "Requires a signed paired-node request or the migration node token. The response is filtered by the requested and paired sync policies.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Policy-filtered app manifests, encrypted records, tombstones, and names")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Invalid node token")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses503: Map(string, Any)
|
|
MapInit(resultPostResponses503)
|
|
MapSet(resultPostResponses503, "description", "Node sync is not configured")
|
|
MapSet(resultPostResponses, "503", resultPostResponses503)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1NodeMeshImport :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Import approved mesh data from a trusted peer node")
|
|
MapSet(resultPost, "description", "Requires a signed paired-node request or the migration node token. Incoming objects are signature-checked, scope-checked, and applied idempotently.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Import result")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid record payload")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Invalid node token")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses503: Map(string, Any)
|
|
MapInit(resultPostResponses503)
|
|
MapSet(resultPostResponses503, "description", "Node sync is not configured")
|
|
MapSet(resultPostResponses, "503", resultPostResponses503)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathMetrics :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Prometheus metrics")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Prometheus text metrics")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensAssets :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List token assets")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token assets")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensIssuer :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get token issuer key")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token issuer")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensProducts :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List configured token products")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token products")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensBalance :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get authenticated token balance")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "app_id")
|
|
MapSet(resultGetParametersItem0, "in", "query")
|
|
MapSet(resultGetParametersItem0, "required", false)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token balance")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Invalid bearer token")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensLedger :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List authenticated token receipts")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetParameters := AllocateObjects(cast(isize)2)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "since")
|
|
MapSet(resultGetParametersItem0, "in", "query")
|
|
MapSet(resultGetParametersItem0, "required", false)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "integer")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
resultGetParametersItem1: Map(string, Any)
|
|
MapInit(resultGetParametersItem1)
|
|
MapSet(resultGetParametersItem1, "name", "app_id")
|
|
MapSet(resultGetParametersItem1, "in", "query")
|
|
MapSet(resultGetParametersItem1, "required", false)
|
|
resultGetParametersItem1Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem1Schema)
|
|
MapSet(resultGetParametersItem1Schema, "type", "string")
|
|
MapSet(resultGetParametersItem1, "schema", resultGetParametersItem1Schema)
|
|
resultGetParameters[1] = resultGetParametersItem1
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token ledger events")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensActivity :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List the account's full Dew activity for the profile screen")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetParameters := AllocateObjects(cast(isize)2)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "before_seq")
|
|
MapSet(resultGetParametersItem0, "in", "query")
|
|
MapSet(resultGetParametersItem0, "required", false)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "integer")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
resultGetParametersItem1: Map(string, Any)
|
|
MapInit(resultGetParametersItem1)
|
|
MapSet(resultGetParametersItem1, "name", "limit")
|
|
MapSet(resultGetParametersItem1, "in", "query")
|
|
MapSet(resultGetParametersItem1, "required", false)
|
|
resultGetParametersItem1Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem1Schema)
|
|
MapSet(resultGetParametersItem1Schema, "type", "integer")
|
|
MapSet(resultGetParametersItem1, "schema", resultGetParametersItem1Schema)
|
|
resultGetParameters[1] = resultGetParametersItem1
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Dew balance and newest-first activity events across every app")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensSpend :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Spend tokens")
|
|
MapSet(resultPost, "description", "If the app has token policies, this endpoint requires the matching app asset permission. X-Mesh-Tx is validated when present.")
|
|
resultPostSecurity := AllocateObjects(cast(isize)1)
|
|
resultPostSecurityItem0: Map(string, Any)
|
|
MapInit(resultPostSecurityItem0)
|
|
resultPostSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultPostSecurityItem0, "bearerAuth", resultPostSecurityItem0BearerAuth)
|
|
resultPostSecurity[0] = resultPostSecurityItem0
|
|
MapSet(resultPost, "security", resultPostSecurity)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Signed debit receipt")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Signed transaction required or rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Insufficient balance")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesGoogleVerify :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Verify app-store purchase and credit tokens")
|
|
MapSet(resultPost, "description", "If the app has token policies, this endpoint requires a purchase permission. X-Mesh-Tx is validated when present.")
|
|
resultPostSecurity := AllocateObjects(cast(isize)1)
|
|
resultPostSecurityItem0: Map(string, Any)
|
|
MapInit(resultPostSecurityItem0)
|
|
resultPostSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultPostSecurityItem0, "bearerAuth", resultPostSecurityItem0BearerAuth)
|
|
resultPostSecurity[0] = resultPostSecurityItem0
|
|
MapSet(resultPost, "security", resultPostSecurity)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Signed credit receipt")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesMoneroInvoices :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create direct token invoice")
|
|
MapSet(resultPost, "description", "If the app has token policies, this endpoint requires a purchase permission. X-Mesh-Tx is validated when present.")
|
|
resultPostSecurity := AllocateObjects(cast(isize)1)
|
|
resultPostSecurityItem0: Map(string, Any)
|
|
MapInit(resultPostSecurityItem0)
|
|
resultPostSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultPostSecurityItem0, "bearerAuth", resultPostSecurityItem0BearerAuth)
|
|
resultPostSecurity[0] = resultPostSecurityItem0
|
|
MapSet(resultPost, "security", resultPostSecurity)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses201: Map(string, Any)
|
|
MapInit(resultPostResponses201)
|
|
MapSet(resultPostResponses201, "description", "Direct payment invoice")
|
|
MapSet(resultPostResponses, "201", resultPostResponses201)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesMoneroInvoicesId :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get or settle direct token invoice")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "id")
|
|
MapSet(resultGetParametersItem0, "in", "path")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Direct payment invoice status")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "Invoice not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesMoneroAddress :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get permanent Monero purchase address")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Permanent account payment address and conversion rate")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesMoneroAddressRecipient :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get permanent Monero gift address")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "recipient")
|
|
MapSet(resultGetParametersItem0, "in", "path")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Resolved recipient and permanent payment address")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "Recipient not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensPurchasesMoneroDeposits :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List Monero deposits")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Detected and credited account deposits")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensCheckpointsLatest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get latest signed token checkpoint")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Token checkpoint")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "No checkpoint exists")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1TokensReceiptsReceiptId :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get token receipt")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "receipt_id")
|
|
MapSet(resultGetParametersItem0, "in", "path")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Signed token receipt")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "Receipt not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AdminTokensManualCredit :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Admin credit tokens")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Signed credit receipt")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Invalid admin token")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Admin disabled")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AdminTokensCheckpoint :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create signed token checkpoint")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Token checkpoint")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Invalid admin token")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Admin disabled")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Apps :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List registered apps")
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "App registry")
|
|
resultGetResponses200Content: Map(string, Any)
|
|
MapInit(resultGetResponses200Content)
|
|
resultGetResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJson)
|
|
resultGetResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/AppRegistryResponse")
|
|
MapSet(resultGetResponses200ContentApplicationJson, "schema", resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200Content, "application/json", resultGetResponses200ContentApplicationJson)
|
|
MapSet(resultGetResponses200, "content", resultGetResponses200Content)
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Register or update an app")
|
|
MapSet(resultPost, "description", "Requires the server admin token and matching X-Mesh-Admin header. X-Ksync-Admin remains accepted for compatibility.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Registered app")
|
|
resultPostResponses200Content: Map(string, Any)
|
|
MapInit(resultPostResponses200Content)
|
|
resultPostResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJson)
|
|
resultPostResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/AppRegistration")
|
|
MapSet(resultPostResponses200ContentApplicationJson, "schema", resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200Content, "application/json", resultPostResponses200ContentApplicationJson)
|
|
MapSet(resultPostResponses200, "content", resultPostResponses200Content)
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Invalid admin token")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Admin registration disabled")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AppsRegisterSigned :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Register or update an app with a signed manifest")
|
|
MapSet(resultPost, "description", "The manifest is signed by an active Ed25519 app key and approved by the node registry key configured on this node.")
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Registered app")
|
|
resultPostResponses200Content: Map(string, Any)
|
|
MapInit(resultPostResponses200Content)
|
|
resultPostResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJson)
|
|
resultPostResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/AppRegistration")
|
|
MapSet(resultPostResponses200ContentApplicationJson, "schema", resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200Content, "application/json", resultPostResponses200ContentApplicationJson)
|
|
MapSet(resultPostResponses200, "content", resultPostResponses200Content)
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Manifest or node approval signature rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses403: Map(string, Any)
|
|
MapInit(resultPostResponses403)
|
|
MapSet(resultPostResponses403, "description", "Node registry approval key unavailable")
|
|
MapSet(resultPostResponses, "403", resultPostResponses403)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AppsAppId :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Get registered app")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "app_id")
|
|
MapSet(resultGetParametersItem0, "in", "path")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "App registration")
|
|
resultGetResponses200Content: Map(string, Any)
|
|
MapInit(resultGetResponses200Content)
|
|
resultGetResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJson)
|
|
resultGetResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/AppRegistration")
|
|
MapSet(resultGetResponses200ContentApplicationJson, "schema", resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200Content, "application/json", resultGetResponses200ContentApplicationJson)
|
|
MapSet(resultGetResponses200, "content", resultGetResponses200Content)
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "App not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
resultPut: Map(string, Any)
|
|
MapInit(resultPut)
|
|
MapSet(resultPut, "summary", "Register or update an app")
|
|
MapSet(resultPut, "description", "Requires the server admin token and matching X-Mesh-Admin header. X-Ksync-Admin remains accepted for compatibility.")
|
|
resultPutParameters := AllocateObjects(cast(isize)1)
|
|
resultPutParametersItem0: Map(string, Any)
|
|
MapInit(resultPutParametersItem0)
|
|
MapSet(resultPutParametersItem0, "name", "app_id")
|
|
MapSet(resultPutParametersItem0, "in", "path")
|
|
MapSet(resultPutParametersItem0, "required", true)
|
|
resultPutParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultPutParametersItem0Schema)
|
|
MapSet(resultPutParametersItem0Schema, "type", "string")
|
|
MapSet(resultPutParametersItem0, "schema", resultPutParametersItem0Schema)
|
|
resultPutParameters[0] = resultPutParametersItem0
|
|
MapSet(resultPut, "parameters", resultPutParameters)
|
|
resultPutResponses: Map(string, Any)
|
|
MapInit(resultPutResponses)
|
|
resultPutResponses200: Map(string, Any)
|
|
MapInit(resultPutResponses200)
|
|
MapSet(resultPutResponses200, "description", "Registered app")
|
|
resultPutResponses200Content: Map(string, Any)
|
|
MapInit(resultPutResponses200Content)
|
|
resultPutResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPutResponses200ContentApplicationJson)
|
|
resultPutResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPutResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPutResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/AppRegistration")
|
|
MapSet(resultPutResponses200ContentApplicationJson, "schema", resultPutResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPutResponses200Content, "application/json", resultPutResponses200ContentApplicationJson)
|
|
MapSet(resultPutResponses200, "content", resultPutResponses200Content)
|
|
MapSet(resultPutResponses, "200", resultPutResponses200)
|
|
MapSet(resultPut, "responses", resultPutResponses)
|
|
MapSet(result, "put", resultPut)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AppsAppIdCollections :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List app collection prefixes")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "app_id")
|
|
MapSet(resultGetParametersItem0, "in", "path")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Collection prefixes")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "App not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountAppGrants :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List cross-app grants")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "App grants")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create cross-app grant")
|
|
resultPostSecurity := AllocateObjects(cast(isize)1)
|
|
resultPostSecurityItem0: Map(string, Any)
|
|
MapInit(resultPostSecurityItem0)
|
|
resultPostSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultPostSecurityItem0, "bearerAuth", resultPostSecurityItem0BearerAuth)
|
|
resultPostSecurity[0] = resultPostSecurityItem0
|
|
MapSet(resultPost, "security", resultPostSecurity)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses201: Map(string, Any)
|
|
MapInit(resultPostResponses201)
|
|
MapSet(resultPostResponses201, "description", "Created app grant")
|
|
MapSet(resultPostResponses, "201", resultPostResponses201)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid or private collection")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountAppGrantsSigned :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create cross-app grant with a signed transaction")
|
|
MapSet(resultPost, "description", "The grant payload is bound to an X-Mesh-Tx-equivalent transaction signed by the account key and target app key.")
|
|
resultPostSecurity := AllocateObjects(cast(isize)1)
|
|
resultPostSecurityItem0: Map(string, Any)
|
|
MapInit(resultPostSecurityItem0)
|
|
resultPostSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultPostSecurityItem0, "bearerAuth", resultPostSecurityItem0BearerAuth)
|
|
resultPostSecurity[0] = resultPostSecurityItem0
|
|
MapSet(resultPost, "security", resultPostSecurity)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses201: Map(string, Any)
|
|
MapInit(resultPostResponses201)
|
|
MapSet(resultPostResponses201, "description", "Created app grant")
|
|
MapSet(resultPostResponses, "201", resultPostResponses201)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Signed transaction rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Signed transaction replay")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountAppRecords :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Read encrypted records from a granted app collection prefix")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetParameters := AllocateObjects(cast(isize)3)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "source_app_id")
|
|
MapSet(resultGetParametersItem0, "in", "query")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
resultGetParametersItem1: Map(string, Any)
|
|
MapInit(resultGetParametersItem1)
|
|
MapSet(resultGetParametersItem1, "name", "target_app_id")
|
|
MapSet(resultGetParametersItem1, "in", "query")
|
|
MapSet(resultGetParametersItem1, "required", true)
|
|
resultGetParametersItem1Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem1Schema)
|
|
MapSet(resultGetParametersItem1Schema, "type", "string")
|
|
MapSet(resultGetParametersItem1, "schema", resultGetParametersItem1Schema)
|
|
resultGetParameters[1] = resultGetParametersItem1
|
|
resultGetParametersItem2: Map(string, Any)
|
|
MapInit(resultGetParametersItem2)
|
|
MapSet(resultGetParametersItem2, "name", "collection_prefix")
|
|
MapSet(resultGetParametersItem2, "in", "query")
|
|
MapSet(resultGetParametersItem2, "required", true)
|
|
resultGetParametersItem2Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem2Schema)
|
|
MapSet(resultGetParametersItem2Schema, "type", "string")
|
|
MapSet(resultGetParametersItem2, "schema", resultGetParametersItem2Schema)
|
|
resultGetParameters[2] = resultGetParametersItem2
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Encrypted records")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses403: Map(string, Any)
|
|
MapInit(resultGetResponses403)
|
|
MapSet(resultGetResponses403, "description", "Grant required")
|
|
MapSet(resultGetResponses, "403", resultGetResponses403)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1SyncDiagnostics :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Inspect sync state for the authenticated account")
|
|
resultGetSecurity := AllocateObjects(cast(isize)1)
|
|
resultGetSecurityItem0: Map(string, Any)
|
|
MapInit(resultGetSecurityItem0)
|
|
resultGetSecurityItem0BearerAuth := AllocateStrings(cast(isize)0)
|
|
MapSet(resultGetSecurityItem0, "bearerAuth", resultGetSecurityItem0BearerAuth)
|
|
resultGetSecurity[0] = resultGetSecurityItem0
|
|
MapSet(resultGet, "security", resultGetSecurity)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Sync diagnostic report")
|
|
resultGetResponses200Content: Map(string, Any)
|
|
MapInit(resultGetResponses200Content)
|
|
resultGetResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJson)
|
|
resultGetResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/SyncDiagnosticReport")
|
|
MapSet(resultGetResponses200ContentApplicationJson, "schema", resultGetResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultGetResponses200Content, "application/json", resultGetResponses200ContentApplicationJson)
|
|
MapSet(resultGetResponses200, "content", resultGetResponses200Content)
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Invalid bearer token")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1SyncChallenge :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Issue sync challenge")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "user_id")
|
|
MapSet(resultGetParametersItem0, "in", "query")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0Schema, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Challenge nonce")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses400: Map(string, Any)
|
|
MapInit(resultGetResponses400)
|
|
MapSet(resultGetResponses400, "description", "Invalid user id")
|
|
MapSet(resultGetResponses, "400", resultGetResponses400)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1SyncLogin :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create bearer token")
|
|
MapSet(resultPost, "description", "Body is signed through X-Mesh-Signature over the exact raw request body bytes. Legacy X-Ksync-Signature and X-Inbe-Signature headers remain accepted. The response includes server_time for client token-expiry clock skew compensation.")
|
|
MapSet(resultPost, "parameters", SignedHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/LoginRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Bearer token issued")
|
|
resultPostResponses200Content: Map(string, Any)
|
|
MapInit(resultPostResponses200Content)
|
|
resultPostResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJson)
|
|
resultPostResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/LoginResponse")
|
|
MapSet(resultPostResponses200ContentApplicationJson, "schema", resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200Content, "application/json", resultPostResponses200ContentApplicationJson)
|
|
MapSet(resultPostResponses200, "content", resultPostResponses200Content)
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid request or missing challenge")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Signature rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1SyncLogout :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
operation: Map(string, Any)
|
|
MapInit(operation)
|
|
MapSet(operation, "summary", "Revoke current bearer session")
|
|
MapSet(operation, "description", "Revokes the authenticated bearer session and disconnects its active sync sockets. Future requests require a fresh login.")
|
|
MapSet(operation, "parameters", BearerHeaderParameters())
|
|
responses: Map(string, Any)
|
|
MapInit(responses)
|
|
success: Map(string, Any)
|
|
MapInit(success)
|
|
MapSet(success, "description", "Bearer session revoked")
|
|
MapSet(responses, "200", success)
|
|
unauthorized: Map(string, Any)
|
|
MapInit(unauthorized)
|
|
MapSet(unauthorized, "description", "Bearer session is missing, expired or revoked")
|
|
MapSet(responses, "401", unauthorized)
|
|
MapSet(operation, "responses", responses)
|
|
MapSet(result, "post", operation)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Sync :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Apply sync changes")
|
|
MapSet(resultPost, "description", "Applies typed sync changes for existing clients. Protocol v6 requires app_id plus X-Mesh-Tx. If the JSON body has v, nonce, and ciphertext fields, Mesh stores and relays it as an opaque encrypted envelope authenticated by bearer token.")
|
|
MapSet(resultPost, "parameters", SyncHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
resultPostRequestBodyContentApplicationJsonSchemaOneOf := AllocateObjects(cast(isize)2)
|
|
resultPostRequestBodyContentApplicationJsonSchemaOneOfItem0: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchemaOneOfItem0)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchemaOneOfItem0, "$ref", "#/components/schemas/SyncRequest")
|
|
resultPostRequestBodyContentApplicationJsonSchemaOneOf[0] = resultPostRequestBodyContentApplicationJsonSchemaOneOfItem0
|
|
resultPostRequestBodyContentApplicationJsonSchemaOneOfItem1: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchemaOneOfItem1)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchemaOneOfItem1, "$ref", "#/components/schemas/EncryptedSyncEnvelope")
|
|
resultPostRequestBodyContentApplicationJsonSchemaOneOf[1] = resultPostRequestBodyContentApplicationJsonSchemaOneOfItem1
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "oneOf", resultPostRequestBodyContentApplicationJsonSchemaOneOf)
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Changes applied")
|
|
resultPostResponses200Content: Map(string, Any)
|
|
MapInit(resultPostResponses200Content)
|
|
resultPostResponses200ContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJson)
|
|
resultPostResponses200ContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200ContentApplicationJsonSchema, "$ref", "#/components/schemas/SyncResponse")
|
|
MapSet(resultPostResponses200ContentApplicationJson, "schema", resultPostResponses200ContentApplicationJsonSchema)
|
|
MapSet(resultPostResponses200Content, "application/json", resultPostResponses200ContentApplicationJson)
|
|
MapSet(resultPostResponses200, "content", resultPostResponses200Content)
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid request or missing challenge")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1SyncWs :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Subscribe to sync change events")
|
|
MapSet(resultGet, "description", "WebSocket endpoint. Send Authorization: Bearer <auth_token>. Browser clients may use Sec-WebSocket-Protocol: mesh-sync-v1, bearer.<auth_token>. Legacy daochi-sync-v1, ksync-sync-v1 and inbe-sync-v1 remain accepted. The server emits sync_ready after connect and sync_changed whenever another client applies changes.")
|
|
resultGetParameters := AllocateObjects(cast(isize)1)
|
|
resultGetParametersItem0: Map(string, Any)
|
|
MapInit(resultGetParametersItem0)
|
|
MapSet(resultGetParametersItem0, "name", "Authorization")
|
|
MapSet(resultGetParametersItem0, "in", "header")
|
|
MapSet(resultGetParametersItem0, "required", true)
|
|
MapSet(resultGetParametersItem0, "description", "Bearer auth token returned by POST /api/v1/sync/login.")
|
|
resultGetParametersItem0Schema: Map(string, Any)
|
|
MapInit(resultGetParametersItem0Schema)
|
|
MapSet(resultGetParametersItem0Schema, "type", "string")
|
|
MapSet(resultGetParametersItem0, "schema", resultGetParametersItem0Schema)
|
|
resultGetParameters[0] = resultGetParametersItem0
|
|
MapSet(resultGet, "parameters", resultGetParameters)
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses101: Map(string, Any)
|
|
MapInit(resultGetResponses101)
|
|
MapSet(resultGetResponses101, "description", "WebSocket upgrade accepted")
|
|
MapSet(resultGetResponses, "101", resultGetResponses101)
|
|
resultGetResponses400: Map(string, Any)
|
|
MapInit(resultGetResponses400)
|
|
MapSet(resultGetResponses400, "description", "Invalid websocket handshake")
|
|
MapSet(resultGetResponses, "400", resultGetResponses400)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Account :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultDelete: Map(string, Any)
|
|
MapInit(resultDelete)
|
|
MapSet(resultDelete, "summary", "Delete remote account data")
|
|
MapSet(resultDelete, "description", "Legacy signed deletion endpoint kept for older clients. New clients should use POST /api/v1/account/delete.")
|
|
MapSet(resultDelete, "parameters", SignedHeaderParameters())
|
|
resultDeleteRequestBody: Map(string, Any)
|
|
MapInit(resultDeleteRequestBody)
|
|
MapSet(resultDeleteRequestBody, "required", true)
|
|
resultDeleteRequestBodyContent: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContent)
|
|
resultDeleteRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContentApplicationJson)
|
|
resultDeleteRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultDeleteRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/DeleteRequest")
|
|
MapSet(resultDeleteRequestBodyContentApplicationJson, "schema", resultDeleteRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultDeleteRequestBodyContent, "application/json", resultDeleteRequestBodyContentApplicationJson)
|
|
MapSet(resultDeleteRequestBody, "content", resultDeleteRequestBodyContent)
|
|
MapSet(resultDelete, "requestBody", resultDeleteRequestBody)
|
|
resultDeleteResponses: Map(string, Any)
|
|
MapInit(resultDeleteResponses)
|
|
resultDeleteResponses200: Map(string, Any)
|
|
MapInit(resultDeleteResponses200)
|
|
MapSet(resultDeleteResponses200, "description", "Remote data deleted")
|
|
MapSet(resultDeleteResponses, "200", resultDeleteResponses200)
|
|
resultDeleteResponses400: Map(string, Any)
|
|
MapInit(resultDeleteResponses400)
|
|
MapSet(resultDeleteResponses400, "description", "Invalid request or missing challenge")
|
|
MapSet(resultDeleteResponses, "400", resultDeleteResponses400)
|
|
resultDeleteResponses401: Map(string, Any)
|
|
MapInit(resultDeleteResponses401)
|
|
MapSet(resultDeleteResponses401, "description", "Signature rejected")
|
|
MapSet(resultDeleteResponses, "401", resultDeleteResponses401)
|
|
MapSet(resultDelete, "responses", resultDeleteResponses)
|
|
MapSet(result, "delete", resultDelete)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountDelete :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Delete remote account data")
|
|
MapSet(resultPost, "description", "Deletes server-side mirrored data for the signed account without uploading the private key. The account stops syncing, counting toward storage and appearing to others at once; its data is kept on hold for 30 days and then deleted permanently. Logging in again with restore set brings it back while it is on hold.")
|
|
MapSet(resultPost, "parameters", SignedHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/DeleteRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Remote data deleted")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid request or missing challenge")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Signature rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountExport :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "Export authenticated account data")
|
|
MapSet(resultGet, "description", "Bearer-authenticated read-only dump of all Mesh rows owned by or directly attached to the authenticated account.")
|
|
MapSet(resultGet, "parameters", BearerHeaderParameters())
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Account data export")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
resultGetResponses404: Map(string, Any)
|
|
MapInit(resultGetResponses404)
|
|
MapSet(resultGetResponses404, "description", "Sync account not found")
|
|
MapSet(resultGetResponses, "404", resultGetResponses404)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountDevices :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List account device keys")
|
|
MapSet(resultGet, "description", "Lists per-installation Ed25519 keys registered by the authenticated account.")
|
|
MapSet(resultGet, "parameters", BearerHeaderParameters())
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Registered device keys")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Register an account device key")
|
|
MapSet(resultPost, "description", "Registers a revocable Ed25519 installation key authorized by an ML-DSA account signature.")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "type", "object")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Device key registered")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid registration")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Account signature rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Registration replay")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
resultDelete: Map(string, Any)
|
|
MapInit(resultDelete)
|
|
MapSet(resultDelete, "summary", "Revoke an account device key")
|
|
MapSet(resultDelete, "description", "Revokes an Ed25519 installation key using a fresh ML-DSA account-signed request.")
|
|
MapSet(resultDelete, "parameters", BearerHeaderParameters())
|
|
resultDeleteRequestBody: Map(string, Any)
|
|
MapInit(resultDeleteRequestBody)
|
|
MapSet(resultDeleteRequestBody, "required", true)
|
|
resultDeleteRequestBodyContent: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContent)
|
|
resultDeleteRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContentApplicationJson)
|
|
resultDeleteRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultDeleteRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultDeleteRequestBodyContentApplicationJsonSchema, "type", "object")
|
|
MapSet(resultDeleteRequestBodyContentApplicationJson, "schema", resultDeleteRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultDeleteRequestBodyContent, "application/json", resultDeleteRequestBodyContentApplicationJson)
|
|
MapSet(resultDeleteRequestBody, "content", resultDeleteRequestBodyContent)
|
|
MapSet(resultDelete, "requestBody", resultDeleteRequestBody)
|
|
resultDeleteResponses: Map(string, Any)
|
|
MapInit(resultDeleteResponses)
|
|
resultDeleteResponses200: Map(string, Any)
|
|
MapInit(resultDeleteResponses200)
|
|
MapSet(resultDeleteResponses200, "description", "Device key revoked")
|
|
MapSet(resultDeleteResponses, "200", resultDeleteResponses200)
|
|
resultDeleteResponses400: Map(string, Any)
|
|
MapInit(resultDeleteResponses400)
|
|
MapSet(resultDeleteResponses400, "description", "Invalid revocation")
|
|
MapSet(resultDeleteResponses, "400", resultDeleteResponses400)
|
|
resultDeleteResponses401: Map(string, Any)
|
|
MapInit(resultDeleteResponses401)
|
|
MapSet(resultDeleteResponses401, "description", "Account signature rejected")
|
|
MapSet(resultDeleteResponses, "401", resultDeleteResponses401)
|
|
resultDeleteResponses409: Map(string, Any)
|
|
MapInit(resultDeleteResponses409)
|
|
MapSet(resultDeleteResponses409, "description", "Revocation replay")
|
|
MapSet(resultDeleteResponses, "409", resultDeleteResponses409)
|
|
MapSet(resultDelete, "responses", resultDeleteResponses)
|
|
MapSet(result, "delete", resultDelete)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountDeleteWithKey :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Delete remote account using exported key")
|
|
MapSet(resultPost, "description", "Accepts exported account key text. Current ksync-account-key-v1 keys and legacy account key export formats are supported. The account stops syncing, counting toward storage and appearing to others at once; its data is kept on hold for 30 days and then deleted permanently. Logging in again with restore set brings it back while it is on hold.")
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/DeleteWithKeyRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Remote data deleted")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid request or exported key")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Exported key does not match sync account")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses404: Map(string, Any)
|
|
MapInit(resultPostResponses404)
|
|
MapSet(resultPostResponses404, "description", "Sync account not found")
|
|
MapSet(resultPostResponses, "404", resultPostResponses404)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountAlias :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Set account alias")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/AliasRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Alias stored")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid alias")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Alias taken")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1AccountProfileIcon :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Set account profile icon")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/ProfileIconRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Profile icon stored")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses400: Map(string, Any)
|
|
MapInit(resultPostResponses400)
|
|
MapSet(resultPostResponses400, "description", "Invalid icon")
|
|
MapSet(resultPostResponses, "400", resultPostResponses400)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1Friends :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List accepted friends")
|
|
MapSet(resultGet, "description", "Bearer-authenticated. Returns account-level Mesh friends.")
|
|
MapSet(resultGet, "parameters", BearerHeaderParameters())
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Friends list")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
PathApiV1FriendsRequests :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List pending friend requests")
|
|
MapSet(resultGet, "parameters", BearerHeaderParameters())
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Incoming and outgoing requests")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses401: Map(string, Any)
|
|
MapInit(resultGetResponses401)
|
|
MapSet(resultGetResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultGetResponses, "401", resultGetResponses401)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Create friend request")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostRequestBody: Map(string, Any)
|
|
MapInit(resultPostRequestBody)
|
|
MapSet(resultPostRequestBody, "required", true)
|
|
resultPostRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContent)
|
|
resultPostRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJson)
|
|
resultPostRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/FriendRequestCreateRequest")
|
|
MapSet(resultPostRequestBodyContentApplicationJson, "schema", resultPostRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPostRequestBodyContent, "application/json", resultPostRequestBodyContentApplicationJson)
|
|
MapSet(resultPostRequestBody, "content", resultPostRequestBodyContent)
|
|
MapSet(resultPost, "requestBody", resultPostRequestBody)
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses201: Map(string, Any)
|
|
MapInit(resultPostResponses201)
|
|
MapSet(resultPostResponses201, "description", "Friend request created")
|
|
MapSet(resultPostResponses, "201", resultPostResponses201)
|
|
resultPostResponses404: Map(string, Any)
|
|
MapInit(resultPostResponses404)
|
|
MapSet(resultPostResponses404, "description", "Target account not found")
|
|
MapSet(resultPostResponses, "404", resultPostResponses404)
|
|
resultPostResponses409: Map(string, Any)
|
|
MapInit(resultPostResponses409)
|
|
MapSet(resultPostResponses409, "description", "Already friends or self-request")
|
|
MapSet(resultPostResponses, "409", resultPostResponses409)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1FriendsRequestsRequestIdAccept :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Accept friend request")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Request accepted")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses404: Map(string, Any)
|
|
MapInit(resultPostResponses404)
|
|
MapSet(resultPostResponses404, "description", "Request not found")
|
|
MapSet(resultPostResponses, "404", resultPostResponses404)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1FriendsRequestsRequestIdDecline :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPost: Map(string, Any)
|
|
MapInit(resultPost)
|
|
MapSet(resultPost, "summary", "Decline friend request")
|
|
MapSet(resultPost, "parameters", BearerHeaderParameters())
|
|
resultPostResponses: Map(string, Any)
|
|
MapInit(resultPostResponses)
|
|
resultPostResponses200: Map(string, Any)
|
|
MapInit(resultPostResponses200)
|
|
MapSet(resultPostResponses200, "description", "Request declined")
|
|
MapSet(resultPostResponses, "200", resultPostResponses200)
|
|
resultPostResponses401: Map(string, Any)
|
|
MapInit(resultPostResponses401)
|
|
MapSet(resultPostResponses401, "description", "Bearer token rejected")
|
|
MapSet(resultPostResponses, "401", resultPostResponses401)
|
|
resultPostResponses404: Map(string, Any)
|
|
MapInit(resultPostResponses404)
|
|
MapSet(resultPostResponses404, "description", "Request not found")
|
|
MapSet(resultPostResponses, "404", resultPostResponses404)
|
|
MapSet(resultPost, "responses", resultPostResponses)
|
|
MapSet(result, "post", resultPost)
|
|
return result
|
|
}
|
|
|
|
PathApiV1ProfileStats :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultPut: Map(string, Any)
|
|
MapInit(resultPut)
|
|
MapSet(resultPut, "summary", "Publish app-neutral profile stats")
|
|
MapSet(resultPut, "description", "Bearer-authenticated aggregate stats. Mesh stores only app/practice/metric/value rows.")
|
|
MapSet(resultPut, "parameters", BearerHeaderParameters())
|
|
resultPutRequestBody: Map(string, Any)
|
|
MapInit(resultPutRequestBody)
|
|
MapSet(resultPutRequestBody, "required", true)
|
|
resultPutRequestBodyContent: Map(string, Any)
|
|
MapInit(resultPutRequestBodyContent)
|
|
resultPutRequestBodyContentApplicationJson: Map(string, Any)
|
|
MapInit(resultPutRequestBodyContentApplicationJson)
|
|
resultPutRequestBodyContentApplicationJsonSchema: Map(string, Any)
|
|
MapInit(resultPutRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPutRequestBodyContentApplicationJsonSchema, "$ref", "#/components/schemas/ProfileStatsRequest")
|
|
MapSet(resultPutRequestBodyContentApplicationJson, "schema", resultPutRequestBodyContentApplicationJsonSchema)
|
|
MapSet(resultPutRequestBodyContent, "application/json", resultPutRequestBodyContentApplicationJson)
|
|
MapSet(resultPutRequestBody, "content", resultPutRequestBodyContent)
|
|
MapSet(resultPut, "requestBody", resultPutRequestBody)
|
|
resultPutResponses: Map(string, Any)
|
|
MapInit(resultPutResponses)
|
|
resultPutResponses200: Map(string, Any)
|
|
MapInit(resultPutResponses200)
|
|
MapSet(resultPutResponses200, "description", "Stats stored")
|
|
MapSet(resultPutResponses, "200", resultPutResponses200)
|
|
resultPutResponses400: Map(string, Any)
|
|
MapInit(resultPutResponses400)
|
|
MapSet(resultPutResponses400, "description", "Invalid stat namespace")
|
|
MapSet(resultPutResponses, "400", resultPutResponses400)
|
|
MapSet(resultPut, "responses", resultPutResponses)
|
|
MapSet(result, "put", resultPut)
|
|
return result
|
|
}
|
|
|
|
PathApiV1FriendsStats :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
resultGet: Map(string, Any)
|
|
MapInit(resultGet)
|
|
MapSet(resultGet, "summary", "List friend leaderboard stats")
|
|
MapSet(resultGet, "description", "Returns the caller and accepted friends only.")
|
|
resultGetParameters0: Map(string, Any)
|
|
MapInit(resultGetParameters0)
|
|
MapSet(resultGetParameters0, "name", "app")
|
|
MapSet(resultGetParameters0, "in", "query")
|
|
MapSet(resultGetParameters0, "required", true)
|
|
resultGetParameters0Schema: Map(string, Any)
|
|
MapInit(resultGetParameters0Schema)
|
|
MapSet(resultGetParameters0Schema, "type", "string")
|
|
MapSet(resultGetParameters0, "schema", resultGetParameters0Schema)
|
|
resultGetParameters1: Map(string, Any)
|
|
MapInit(resultGetParameters1)
|
|
MapSet(resultGetParameters1, "name", "practice")
|
|
MapSet(resultGetParameters1, "in", "query")
|
|
MapSet(resultGetParameters1, "required", true)
|
|
resultGetParameters1Schema: Map(string, Any)
|
|
MapInit(resultGetParameters1Schema)
|
|
MapSet(resultGetParameters1Schema, "type", "string")
|
|
MapSet(resultGetParameters1, "schema", resultGetParameters1Schema)
|
|
resultGetParameters2: Map(string, Any)
|
|
MapInit(resultGetParameters2)
|
|
MapSet(resultGetParameters2, "name", "metric")
|
|
MapSet(resultGetParameters2, "in", "query")
|
|
MapSet(resultGetParameters2, "required", true)
|
|
resultGetParameters2Schema: Map(string, Any)
|
|
MapInit(resultGetParameters2Schema)
|
|
MapSet(resultGetParameters2Schema, "type", "string")
|
|
MapSet(resultGetParameters2, "schema", resultGetParameters2Schema)
|
|
MapSet(resultGet, "parameters", AppendObject(AppendObject(AppendObject(BearerHeaderParameters(), resultGetParameters0), resultGetParameters1), resultGetParameters2))
|
|
resultGetResponses: Map(string, Any)
|
|
MapInit(resultGetResponses)
|
|
resultGetResponses200: Map(string, Any)
|
|
MapInit(resultGetResponses200)
|
|
MapSet(resultGetResponses200, "description", "Leaderboard rows")
|
|
MapSet(resultGetResponses, "200", resultGetResponses200)
|
|
resultGetResponses400: Map(string, Any)
|
|
MapInit(resultGetResponses400)
|
|
MapSet(resultGetResponses400, "description", "Invalid stats query")
|
|
MapSet(resultGetResponses, "400", resultGetResponses400)
|
|
MapSet(resultGet, "responses", resultGetResponses)
|
|
MapSet(result, "get", resultGet)
|
|
return result
|
|
}
|
|
|
|
Paths :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
additions := chat_paths.Paths()
|
|
MapSet(result, "/api/v1/chat/completions", MapGet(additions, "/api/v1/chat/completions"))
|
|
MapSet(result, "/api/v1/chat/spelling", MapGet(additions, "/api/v1/chat/spelling"))
|
|
MapSet(result, "/api/v1/chat/habit-icons", MapGet(additions, "/api/v1/chat/habit-icons"))
|
|
MapSet(result, "/api/v1/feedback", MapGet(additions, "/api/v1/feedback"))
|
|
MapSet(result, "/api/v1/admin/feedback", MapGet(additions, "/api/v1/admin/feedback"))
|
|
MapSet(result, "/api/v1/admin/feedback/reply", MapGet(additions, "/api/v1/admin/feedback/reply"))
|
|
MapSet(result, "/api/v1/lumi/developer", MapGet(additions, "/api/v1/lumi/developer"))
|
|
MapSet(result, "/api/v1/admin/lumi/developer", MapGet(additions, "/api/v1/admin/lumi/developer"))
|
|
telegram := telegram_paths.Paths()
|
|
telegramNames: [12]string = .["/api/v1/lumi/telegram/link", "/api/v1/lumi/telegram/updates",
|
|
"/api/v1/lumi/telegram/ack", "/api/v1/lumi/telegram/messages", "/api/v1/lumi/telegram/webhook",
|
|
"/api/v1/telegram/environment", "/api/v1/telegram/entry", "/api/v1/telegram/entry/verify",
|
|
"/api/v1/telegram/entry/status", "/api/v1/telegram/entry/rendezvous", "/api/v1/telegram/entry/cancel", "/api/v1/telegram/account/bind"]
|
|
for name: telegramNames {
|
|
MapSet(result, name, MapGet(telegram, name))
|
|
}
|
|
authorization := authorization_paths.Paths()
|
|
authorizationNames: [10]string = .["/api/v1/authorization/requests", "/api/v1/authorization/rendezvous",
|
|
"/api/v1/authorization/cancel", "/api/v1/authorization/claim", "/api/v1/authorization/approve",
|
|
"/api/v1/authorization/revoke", "/api/v1/authorization/challenge", "/api/v1/authorization/session",
|
|
"/api/v1/delegated/sync", "/api/v1/delegated/ws"]
|
|
for name: authorizationNames {
|
|
MapSet(result, name, MapGet(authorization, name))
|
|
}
|
|
storagePlans := storage_plans.Paths()
|
|
MapSet(result, "/api/v1/storage/plan", MapGet(storagePlans, "/api/v1/storage/plan"))
|
|
unlocks := unlock_paths.Paths()
|
|
MapSet(result, "/api/v1/unlocks", MapGet(unlocks, "/api/v1/unlocks"))
|
|
MapSet(result, "/api/v1/unlocks/grant", MapGet(unlocks, "/api/v1/unlocks/grant"))
|
|
referrals := referral_paths.Paths()
|
|
for path: MapKeys(referrals) {
|
|
MapSet(result, path, MapGet(referrals, path))
|
|
}
|
|
gifts := gift_paths.Paths()
|
|
MapSet(result, "/api/v1/tokens/gifts", MapGet(gifts, "/api/v1/tokens/gifts"))
|
|
MapSet(result, "/api/v1/unlocks/products", MapGet(unlocks, "/api/v1/unlocks/products"))
|
|
game_rewards := reward_paths.Paths()
|
|
game_history := game_evidence_paths.Paths()
|
|
MapSet(result, "/api/v1/admin/game-maps", MapGet(game_history, "/api/v1/admin/game-maps"))
|
|
MapSet(result, "/api/v1/game-completions", MapGet(game_history, "/api/v1/game-completions"))
|
|
MapSet(result, "/api/v1/rewards", MapGet(game_rewards, "/api/v1/rewards"))
|
|
old_progress := reward_migration_paths.Paths()
|
|
MapSet(result, "/api/v1/rewards/migration", MapGet(old_progress, "/api/v1/rewards/migration"))
|
|
rates := exchange_rate_paths.Paths()
|
|
MapSet(result, "/api/v1/rates", MapGet(rates, "/api/v1/rates"))
|
|
lists := shared_list_paths.Paths()
|
|
MapSet(result, "/api/v1/lists", MapGet(lists, "/api/v1/lists"))
|
|
published := publication_paths.Paths()
|
|
MapSet(result, "/api/v1/publications", MapGet(published, "/api/v1/publications"))
|
|
MapSet(result, "/api/v1/publications/{id}", MapGet(published, "/api/v1/publications/{id}"))
|
|
packages := package_paths.Paths()
|
|
blobs := blob_paths.Paths()
|
|
MapSet(result, "/api/v1/blobs/{app_id}/{sha256}", MapGet(blobs, "/api/v1/blobs/{app_id}/{sha256}"))
|
|
MapSet(result, "/api/v1/blobs/{app_id}/{sha256}/trash", MapGet(blobs, "/api/v1/blobs/{app_id}/{sha256}/trash"))
|
|
MapSet(result, "/api/v1/blobs/{app_id}/{sha256}/restore", MapGet(blobs, "/api/v1/blobs/{app_id}/{sha256}/restore"))
|
|
MapSet(result, "/api/v1/packages/{app_id}/{asset}", MapGet(packages, "/api/v1/packages/{app_id}/{asset}"))
|
|
MapSet(result, "/api/v2/packages/{app_id}/{asset}", MapGet(packages, "/api/v2/packages/{app_id}/{asset}"))
|
|
MapSet(result, "/api/v2/packages/{app_id}/{asset}/{grant}", MapGet(packages, "/api/v2/packages/{app_id}/{asset}/{grant}"))
|
|
device_links := device_link_paths.Paths()
|
|
deviceLinkNames: [3]string = .["/api/v1/link/put", "/api/v1/link/get", "/api/v1/link/close"]
|
|
for name: deviceLinkNames {
|
|
MapSet(result, name, MapGet(device_links, name))
|
|
}
|
|
account_backups := account_backup_paths.Paths()
|
|
accountBackupNames: [3]string = .["/api/v1/account-backup/salt", "/api/v1/account-backup/open",
|
|
"/api/v1/account/backup"]
|
|
for name: accountBackupNames {
|
|
MapSet(result, name, MapGet(account_backups, name))
|
|
}
|
|
account_sign_in := account_sign_in_paths.Paths()
|
|
accountSignInNames: [6]string = .["/api/v1/account-backup/passkey/open", "/api/v1/account-backup/methods",
|
|
"/api/v1/account-backup/google", "/api/v1/account/passkeys", "/api/v1/account/passkeys/remove",
|
|
"/api/v1/account/google"]
|
|
for name: accountSignInNames {
|
|
MapSet(result, name, MapGet(account_sign_in, name))
|
|
}
|
|
MapSet(result, "/api/v1/account/google/remove", MapGet(account_sign_in, "/api/v1/account/google/remove"))
|
|
MapSet(result, "/healthz", PathHealthz())
|
|
MapSet(result, "/readyz", PathReadyz())
|
|
MapSet(result, "/api/v1/node", PathApiV1Node())
|
|
MapSet(result, "/api/v1/node/pairing/invites", PathApiV1NodePairingInvites())
|
|
MapSet(result, "/api/v1/node/pairing/accept", PathApiV1NodePairingAccept())
|
|
MapSet(result, "/api/v1/node/pairing/complete", PathApiV1NodePairingComplete())
|
|
MapSet(result, "/api/v1/node/peers", PathApiV1NodePeers())
|
|
MapSet(result, "/api/v1/namespaces", PathApiV1Namespaces())
|
|
MapSet(result, "/api/v1/namespaces/claims", PathApiV1NamespacesClaims())
|
|
MapSet(result, "/api/v1/namespaces/resolve", PathApiV1NamespacesResolve())
|
|
MapSet(result, "/api/v1/node/mesh/export", PathApiV1NodeMeshExport())
|
|
MapSet(result, "/api/v1/node/mesh/import", PathApiV1NodeMeshImport())
|
|
MapSet(result, "/metrics", PathMetrics())
|
|
MapSet(result, "/api/v1/tokens/assets", PathApiV1TokensAssets())
|
|
MapSet(result, "/api/v1/tokens/issuer", PathApiV1TokensIssuer())
|
|
MapSet(result, "/api/v1/tokens/products", PathApiV1TokensProducts())
|
|
MapSet(result, "/api/v1/tokens/balance", PathApiV1TokensBalance())
|
|
MapSet(result, "/api/v1/tokens/ledger", PathApiV1TokensLedger())
|
|
MapSet(result, "/api/v1/tokens/activity", PathApiV1TokensActivity())
|
|
MapSet(result, "/api/v1/tokens/spend", PathApiV1TokensSpend())
|
|
MapSet(result, "/api/v1/tokens/purchases/google/verify", PathApiV1TokensPurchasesGoogleVerify())
|
|
MapSet(result, "/api/v1/tokens/purchases/monero/invoices", PathApiV1TokensPurchasesMoneroInvoices())
|
|
MapSet(result, "/api/v1/tokens/purchases/monero/invoices/{id}", PathApiV1TokensPurchasesMoneroInvoicesId())
|
|
MapSet(result, "/api/v1/tokens/purchases/monero/address", PathApiV1TokensPurchasesMoneroAddress())
|
|
MapSet(result, "/api/v1/tokens/purchases/monero/address/{recipient}", PathApiV1TokensPurchasesMoneroAddressRecipient())
|
|
MapSet(result, "/api/v1/tokens/purchases/monero/deposits", PathApiV1TokensPurchasesMoneroDeposits())
|
|
MapSet(result, "/api/v1/tokens/checkpoints/latest", PathApiV1TokensCheckpointsLatest())
|
|
MapSet(result, "/api/v1/tokens/receipts/{receipt_id}", PathApiV1TokensReceiptsReceiptId())
|
|
MapSet(result, "/api/v1/admin/tokens/manual-credit", PathApiV1AdminTokensManualCredit())
|
|
MapSet(result, "/api/v1/admin/tokens/checkpoint", PathApiV1AdminTokensCheckpoint())
|
|
MapSet(result, "/api/v1/apps", PathApiV1Apps())
|
|
MapSet(result, "/api/v1/apps/register-signed", PathApiV1AppsRegisterSigned())
|
|
MapSet(result, "/api/v1/apps/{app_id}", PathApiV1AppsAppId())
|
|
MapSet(result, "/api/v1/apps/{app_id}/collections", PathApiV1AppsAppIdCollections())
|
|
MapSet(result, "/api/v1/account/app-grants", PathApiV1AccountAppGrants())
|
|
MapSet(result, "/api/v1/account/app-grants/signed", PathApiV1AccountAppGrantsSigned())
|
|
MapSet(result, "/api/v1/account/app-records", PathApiV1AccountAppRecords())
|
|
MapSet(result, "/api/v1/sync/diagnostics", PathApiV1SyncDiagnostics())
|
|
MapSet(result, "/api/v1/sync/challenge", PathApiV1SyncChallenge())
|
|
MapSet(result, "/api/v1/sync/login", PathApiV1SyncLogin())
|
|
MapSet(result, "/api/v1/sync/logout", PathApiV1SyncLogout())
|
|
MapSet(result, "/api/v1/sync", PathApiV1Sync())
|
|
MapSet(result, "/api/v1/sync/ws", PathApiV1SyncWs())
|
|
MapSet(result, "/api/v1/account", PathApiV1Account())
|
|
MapSet(result, "/api/v1/account/delete", PathApiV1AccountDelete())
|
|
MapSet(result, "/api/v1/account/export", PathApiV1AccountExport())
|
|
MapSet(result, "/api/v1/account/devices", PathApiV1AccountDevices())
|
|
MapSet(result, "/api/v1/account/delete-with-key", PathApiV1AccountDeleteWithKey())
|
|
aliases := alias_paths.Paths()
|
|
MapSet(result, "/api/v1/account/alias", MapGet(aliases, "/api/v1/account/alias"))
|
|
MapSet(result, "/api/v1/account/alias/purchase", MapGet(aliases, "/api/v1/account/alias/purchase"))
|
|
MapSet(result, "/api/v1/account/profile-icon", PathApiV1AccountProfileIcon())
|
|
MapSet(result, "/api/v1/friends", PathApiV1Friends())
|
|
MapSet(result, "/api/v1/friends/requests", PathApiV1FriendsRequests())
|
|
MapSet(result, "/api/v1/friends/requests/{request_id}/accept", PathApiV1FriendsRequestsRequestIdAccept())
|
|
MapSet(result, "/api/v1/friends/requests/{request_id}/decline", PathApiV1FriendsRequestsRequestIdDecline())
|
|
MapSet(result, "/api/v1/profile/stats", PathApiV1ProfileStats())
|
|
MapSet(result, "/api/v1/friends/stats", PathApiV1FriendsStats())
|
|
return result
|
|
}
|
|
|
|
SchemaNodeInfoResponse :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesBaseUrl: Map(string, Any)
|
|
MapInit(resultPropertiesBaseUrl)
|
|
MapSet(resultPropertiesBaseUrl, "type", "string")
|
|
MapSet(resultProperties, "base_url", resultPropertiesBaseUrl)
|
|
resultPropertiesCapabilities: Map(string, Any)
|
|
MapInit(resultPropertiesCapabilities)
|
|
MapSet(resultPropertiesCapabilities, "type", "array")
|
|
resultPropertiesCapabilitiesItems: Map(string, Any)
|
|
MapInit(resultPropertiesCapabilitiesItems)
|
|
MapSet(resultPropertiesCapabilitiesItems, "type", "string")
|
|
MapSet(resultPropertiesCapabilities, "items", resultPropertiesCapabilitiesItems)
|
|
MapSet(resultProperties, "capabilities", resultPropertiesCapabilities)
|
|
resultPropertiesKnownNodes: Map(string, Any)
|
|
MapInit(resultPropertiesKnownNodes)
|
|
MapSet(resultPropertiesKnownNodes, "type", "array")
|
|
resultPropertiesKnownNodesItems: Map(string, Any)
|
|
MapInit(resultPropertiesKnownNodesItems)
|
|
MapSet(resultPropertiesKnownNodesItems, "$ref", "#/components/schemas/NodePeer")
|
|
MapSet(resultPropertiesKnownNodes, "items", resultPropertiesKnownNodesItems)
|
|
MapSet(resultProperties, "known_nodes", resultPropertiesKnownNodes)
|
|
resultPropertiesUsage: Map(string, Any)
|
|
MapInit(resultPropertiesUsage)
|
|
MapSet(resultPropertiesUsage, "$ref", "#/components/schemas/NodeUsage")
|
|
MapSet(resultProperties, "usage", resultPropertiesUsage)
|
|
resultPropertiesStorage: Map(string, Any)
|
|
MapInit(resultPropertiesStorage)
|
|
MapSet(resultPropertiesStorage, "$ref", "#/components/schemas/NodeStorageUsage")
|
|
MapSet(resultProperties, "storage", resultPropertiesStorage)
|
|
resultPropertiesProtocol: Map(string, Any)
|
|
MapInit(resultPropertiesProtocol)
|
|
MapSet(resultPropertiesProtocol, "type", "object")
|
|
resultPropertiesProtocolProperties: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolProperties)
|
|
resultPropertiesProtocolPropertiesMinSupported: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolPropertiesMinSupported)
|
|
MapSet(resultPropertiesProtocolPropertiesMinSupported, "type", "integer")
|
|
MapSet(resultPropertiesProtocolProperties, "min_supported", resultPropertiesProtocolPropertiesMinSupported)
|
|
resultPropertiesProtocolPropertiesLatest: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolPropertiesLatest)
|
|
MapSet(resultPropertiesProtocolPropertiesLatest, "type", "integer")
|
|
MapSet(resultPropertiesProtocolProperties, "latest", resultPropertiesProtocolPropertiesLatest)
|
|
MapSet(resultPropertiesProtocol, "properties", resultPropertiesProtocolProperties)
|
|
MapSet(resultProperties, "protocol", resultPropertiesProtocol)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaNodePeer :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesName: Map(string, Any)
|
|
MapInit(resultPropertiesName)
|
|
MapSet(resultPropertiesName, "type", "string")
|
|
MapSet(resultProperties, "name", resultPropertiesName)
|
|
resultPropertiesUrl: Map(string, Any)
|
|
MapInit(resultPropertiesUrl)
|
|
MapSet(resultPropertiesUrl, "type", "string")
|
|
MapSet(resultProperties, "url", resultPropertiesUrl)
|
|
resultPropertiesSync: Map(string, Any)
|
|
MapInit(resultPropertiesSync)
|
|
MapSet(resultPropertiesSync, "$ref", "#/components/schemas/NodeSyncPolicy")
|
|
MapSet(resultProperties, "sync", resultPropertiesSync)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaNodeSyncPolicy :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesDirection: Map(string, Any)
|
|
MapInit(resultPropertiesDirection)
|
|
MapSet(resultPropertiesDirection, "type", "string")
|
|
resultPropertiesDirectionEnum := AllocateStrings(cast(isize)4)
|
|
resultPropertiesDirectionEnum[0] = "pull"
|
|
resultPropertiesDirectionEnum[1] = "push"
|
|
resultPropertiesDirectionEnum[2] = "bidirectional"
|
|
resultPropertiesDirectionEnum[3] = "none"
|
|
MapSet(resultPropertiesDirection, "enum", resultPropertiesDirectionEnum)
|
|
MapSet(resultProperties, "direction", resultPropertiesDirection)
|
|
resultPropertiesApps: Map(string, Any)
|
|
MapInit(resultPropertiesApps)
|
|
MapSet(resultPropertiesApps, "type", "array")
|
|
resultPropertiesAppsItems: Map(string, Any)
|
|
MapInit(resultPropertiesAppsItems)
|
|
MapSet(resultPropertiesAppsItems, "type", "string")
|
|
MapSet(resultPropertiesApps, "items", resultPropertiesAppsItems)
|
|
MapSet(resultProperties, "apps", resultPropertiesApps)
|
|
resultPropertiesCollections: Map(string, Any)
|
|
MapInit(resultPropertiesCollections)
|
|
MapSet(resultPropertiesCollections, "type", "array")
|
|
resultPropertiesCollectionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionsItems)
|
|
MapSet(resultPropertiesCollectionsItems, "type", "string")
|
|
MapSet(resultPropertiesCollections, "items", resultPropertiesCollectionsItems)
|
|
MapSet(resultProperties, "collections", resultPropertiesCollections)
|
|
resultPropertiesData: Map(string, Any)
|
|
MapInit(resultPropertiesData)
|
|
MapSet(resultPropertiesData, "type", "array")
|
|
resultPropertiesDataItems: Map(string, Any)
|
|
MapInit(resultPropertiesDataItems)
|
|
MapSet(resultPropertiesDataItems, "type", "string")
|
|
MapSet(resultPropertiesData, "items", resultPropertiesDataItems)
|
|
MapSet(resultProperties, "data", resultPropertiesData)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaNodeUsage :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesRegisteredUsers: Map(string, Any)
|
|
MapInit(resultPropertiesRegisteredUsers)
|
|
MapSet(resultPropertiesRegisteredUsers, "type", "integer")
|
|
MapSet(resultProperties, "registered_users", resultPropertiesRegisteredUsers)
|
|
resultPropertiesActiveUsers30d: Map(string, Any)
|
|
MapInit(resultPropertiesActiveUsers30d)
|
|
MapSet(resultPropertiesActiveUsers30d, "type", "integer")
|
|
MapSet(resultProperties, "active_users_30d", resultPropertiesActiveUsers30d)
|
|
resultPropertiesRegisteredClients: Map(string, Any)
|
|
MapInit(resultPropertiesRegisteredClients)
|
|
MapSet(resultPropertiesRegisteredClients, "type", "integer")
|
|
MapSet(resultProperties, "registered_clients", resultPropertiesRegisteredClients)
|
|
resultPropertiesActiveClients30d: Map(string, Any)
|
|
MapInit(resultPropertiesActiveClients30d)
|
|
MapSet(resultPropertiesActiveClients30d, "type", "integer")
|
|
MapSet(resultProperties, "active_clients_30d", resultPropertiesActiveClients30d)
|
|
resultPropertiesConnectedUsers: Map(string, Any)
|
|
MapInit(resultPropertiesConnectedUsers)
|
|
MapSet(resultPropertiesConnectedUsers, "type", "integer")
|
|
MapSet(resultProperties, "connected_users", resultPropertiesConnectedUsers)
|
|
resultPropertiesConnectedWebsocketClients: Map(string, Any)
|
|
MapInit(resultPropertiesConnectedWebsocketClients)
|
|
MapSet(resultPropertiesConnectedWebsocketClients, "type", "integer")
|
|
MapSet(resultProperties, "connected_websocket_clients", resultPropertiesConnectedWebsocketClients)
|
|
resultPropertiesRecentActivityWindowDays: Map(string, Any)
|
|
MapInit(resultPropertiesRecentActivityWindowDays)
|
|
MapSet(resultPropertiesRecentActivityWindowDays, "type", "integer")
|
|
MapSet(resultProperties, "recent_activity_window_days", resultPropertiesRecentActivityWindowDays)
|
|
resultPropertiesWebsocketConnectionLimitPerUser: Map(string, Any)
|
|
MapInit(resultPropertiesWebsocketConnectionLimitPerUser)
|
|
MapSet(resultPropertiesWebsocketConnectionLimitPerUser, "type", "integer")
|
|
MapSet(resultProperties, "websocket_connection_limit_per_user", resultPropertiesWebsocketConnectionLimitPerUser)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaNodeStorageUsage :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesDatabaseFileBytes: Map(string, Any)
|
|
MapInit(resultPropertiesDatabaseFileBytes)
|
|
MapSet(resultPropertiesDatabaseFileBytes, "type", "integer")
|
|
MapSet(resultProperties, "database_file_bytes", resultPropertiesDatabaseFileBytes)
|
|
resultPropertiesDatabaseWalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesDatabaseWalBytes)
|
|
MapSet(resultPropertiesDatabaseWalBytes, "type", "integer")
|
|
MapSet(resultProperties, "database_wal_bytes", resultPropertiesDatabaseWalBytes)
|
|
resultPropertiesDatabaseShmBytes: Map(string, Any)
|
|
MapInit(resultPropertiesDatabaseShmBytes)
|
|
MapSet(resultPropertiesDatabaseShmBytes, "type", "integer")
|
|
MapSet(resultProperties, "database_shm_bytes", resultPropertiesDatabaseShmBytes)
|
|
resultPropertiesDatabaseTotalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesDatabaseTotalBytes)
|
|
MapSet(resultPropertiesDatabaseTotalBytes, "type", "integer")
|
|
MapSet(resultProperties, "database_total_bytes", resultPropertiesDatabaseTotalBytes)
|
|
resultPropertiesSqlitePageBytes: Map(string, Any)
|
|
MapInit(resultPropertiesSqlitePageBytes)
|
|
MapSet(resultPropertiesSqlitePageBytes, "type", "integer")
|
|
MapSet(resultProperties, "sqlite_page_bytes", resultPropertiesSqlitePageBytes)
|
|
resultPropertiesLogicalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesLogicalBytes)
|
|
MapSet(resultPropertiesLogicalBytes, "type", "integer")
|
|
MapSet(resultProperties, "logical_bytes", resultPropertiesLogicalBytes)
|
|
resultPropertiesEncryptedRecordBytes: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedRecordBytes)
|
|
MapSet(resultPropertiesEncryptedRecordBytes, "type", "integer")
|
|
MapSet(resultProperties, "encrypted_record_bytes", resultPropertiesEncryptedRecordBytes)
|
|
resultPropertiesEncryptedPayloadBytes: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadBytes)
|
|
MapSet(resultPropertiesEncryptedPayloadBytes, "type", "integer")
|
|
MapSet(resultProperties, "encrypted_payload_bytes", resultPropertiesEncryptedPayloadBytes)
|
|
resultPropertiesUnassignedBytes: Map(string, Any)
|
|
MapInit(resultPropertiesUnassignedBytes)
|
|
MapSet(resultPropertiesUnassignedBytes, "type", "integer")
|
|
MapSet(resultProperties, "unassigned_bytes", resultPropertiesUnassignedBytes)
|
|
resultPropertiesUnassignedEncryptedPayloads: Map(string, Any)
|
|
MapInit(resultPropertiesUnassignedEncryptedPayloads)
|
|
MapSet(resultPropertiesUnassignedEncryptedPayloads, "$ref", "#/components/schemas/StorageBucketUsage")
|
|
MapSet(resultProperties, "unassigned_encrypted_payloads", resultPropertiesUnassignedEncryptedPayloads)
|
|
resultPropertiesApps: Map(string, Any)
|
|
MapInit(resultPropertiesApps)
|
|
MapSet(resultPropertiesApps, "type", "array")
|
|
resultPropertiesAppsItems: Map(string, Any)
|
|
MapInit(resultPropertiesAppsItems)
|
|
MapSet(resultPropertiesAppsItems, "$ref", "#/components/schemas/AppStorageUsage")
|
|
MapSet(resultPropertiesApps, "items", resultPropertiesAppsItems)
|
|
MapSet(resultProperties, "apps", resultPropertiesApps)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppStorageUsage :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesAppId: Map(string, Any)
|
|
MapInit(resultPropertiesAppId)
|
|
MapSet(resultPropertiesAppId, "type", "string")
|
|
MapSet(resultProperties, "app_id", resultPropertiesAppId)
|
|
resultPropertiesDisplayName: Map(string, Any)
|
|
MapInit(resultPropertiesDisplayName)
|
|
MapSet(resultPropertiesDisplayName, "type", "string")
|
|
MapSet(resultProperties, "display_name", resultPropertiesDisplayName)
|
|
resultPropertiesLogicalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesLogicalBytes)
|
|
MapSet(resultPropertiesLogicalBytes, "type", "integer")
|
|
MapSet(resultProperties, "logical_bytes", resultPropertiesLogicalBytes)
|
|
resultPropertiesRecordBytes: Map(string, Any)
|
|
MapInit(resultPropertiesRecordBytes)
|
|
MapSet(resultPropertiesRecordBytes, "type", "integer")
|
|
MapSet(resultProperties, "record_bytes", resultPropertiesRecordBytes)
|
|
resultPropertiesRecordCount: Map(string, Any)
|
|
MapInit(resultPropertiesRecordCount)
|
|
MapSet(resultPropertiesRecordCount, "type", "integer")
|
|
MapSet(resultProperties, "record_count", resultPropertiesRecordCount)
|
|
resultPropertiesCollections: Map(string, Any)
|
|
MapInit(resultPropertiesCollections)
|
|
MapSet(resultPropertiesCollections, "type", "array")
|
|
resultPropertiesCollectionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionsItems)
|
|
MapSet(resultPropertiesCollectionsItems, "$ref", "#/components/schemas/CollectionStorageUsage")
|
|
MapSet(resultPropertiesCollections, "items", resultPropertiesCollectionsItems)
|
|
MapSet(resultProperties, "collections", resultPropertiesCollections)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaCollectionStorageUsage :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesCollectionPrefix: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionPrefix)
|
|
MapSet(resultPropertiesCollectionPrefix, "type", "string")
|
|
MapSet(resultProperties, "collection_prefix", resultPropertiesCollectionPrefix)
|
|
resultPropertiesCollection: Map(string, Any)
|
|
MapInit(resultPropertiesCollection)
|
|
MapSet(resultPropertiesCollection, "type", "string")
|
|
MapSet(resultProperties, "collection", resultPropertiesCollection)
|
|
resultPropertiesLogicalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesLogicalBytes)
|
|
MapSet(resultPropertiesLogicalBytes, "type", "integer")
|
|
MapSet(resultProperties, "logical_bytes", resultPropertiesLogicalBytes)
|
|
resultPropertiesRecordBytes: Map(string, Any)
|
|
MapInit(resultPropertiesRecordBytes)
|
|
MapSet(resultPropertiesRecordBytes, "type", "integer")
|
|
MapSet(resultProperties, "record_bytes", resultPropertiesRecordBytes)
|
|
resultPropertiesRecordCount: Map(string, Any)
|
|
MapInit(resultPropertiesRecordCount)
|
|
MapSet(resultPropertiesRecordCount, "type", "integer")
|
|
MapSet(resultProperties, "record_count", resultPropertiesRecordCount)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaStorageBucketUsage :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesLogicalBytes: Map(string, Any)
|
|
MapInit(resultPropertiesLogicalBytes)
|
|
MapSet(resultPropertiesLogicalBytes, "type", "integer")
|
|
MapSet(resultProperties, "logical_bytes", resultPropertiesLogicalBytes)
|
|
resultPropertiesCount: Map(string, Any)
|
|
MapInit(resultPropertiesCount)
|
|
MapSet(resultPropertiesCount, "type", "integer")
|
|
MapSet(resultProperties, "count", resultPropertiesCount)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaFriendRequestCreateRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)1)
|
|
resultRequired[0] = "target"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesTarget: Map(string, Any)
|
|
MapInit(resultPropertiesTarget)
|
|
MapSet(resultPropertiesTarget, "type", "string")
|
|
MapSet(resultPropertiesTarget, "description", "Alias with optional @ prefix or 64-character public ID hash.")
|
|
MapSet(resultProperties, "target", resultPropertiesTarget)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaProfileStatsRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)2)
|
|
resultRequired[0] = "app"
|
|
resultRequired[1] = "metrics"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesApp: Map(string, Any)
|
|
MapInit(resultPropertiesApp)
|
|
MapSet(resultPropertiesApp, "type", "string")
|
|
MapSet(resultProperties, "app", resultPropertiesApp)
|
|
resultPropertiesMetrics: Map(string, Any)
|
|
MapInit(resultPropertiesMetrics)
|
|
MapSet(resultPropertiesMetrics, "type", "array")
|
|
resultPropertiesMetricsItems: Map(string, Any)
|
|
MapInit(resultPropertiesMetricsItems)
|
|
MapSet(resultPropertiesMetricsItems, "$ref", "#/components/schemas/ProfileMetric")
|
|
MapSet(resultPropertiesMetrics, "items", resultPropertiesMetricsItems)
|
|
MapSet(resultProperties, "metrics", resultPropertiesMetrics)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaProfileMetric :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesPractice: Map(string, Any)
|
|
MapInit(resultPropertiesPractice)
|
|
MapSet(resultPropertiesPractice, "type", "string")
|
|
MapSet(resultProperties, "practice", resultPropertiesPractice)
|
|
resultPropertiesMetric: Map(string, Any)
|
|
MapInit(resultPropertiesMetric)
|
|
MapSet(resultPropertiesMetric, "type", "string")
|
|
MapSet(resultProperties, "metric", resultPropertiesMetric)
|
|
resultPropertiesValue: Map(string, Any)
|
|
MapInit(resultPropertiesValue)
|
|
MapSet(resultPropertiesValue, "type", "number")
|
|
MapSet(resultProperties, "value", resultPropertiesValue)
|
|
resultPropertiesLabel: Map(string, Any)
|
|
MapInit(resultPropertiesLabel)
|
|
MapSet(resultPropertiesLabel, "type", "string")
|
|
MapSet(resultProperties, "label", resultPropertiesLabel)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppRegistryResponse :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesApps: Map(string, Any)
|
|
MapInit(resultPropertiesApps)
|
|
MapSet(resultPropertiesApps, "type", "array")
|
|
resultPropertiesAppsItems: Map(string, Any)
|
|
MapInit(resultPropertiesAppsItems)
|
|
MapSet(resultPropertiesAppsItems, "$ref", "#/components/schemas/AppRegistration")
|
|
MapSet(resultPropertiesApps, "items", resultPropertiesAppsItems)
|
|
MapSet(resultProperties, "apps", resultPropertiesApps)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppRegistration :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesAppId: Map(string, Any)
|
|
MapInit(resultPropertiesAppId)
|
|
MapSet(resultPropertiesAppId, "type", "string")
|
|
MapSet(resultProperties, "app_id", resultPropertiesAppId)
|
|
resultPropertiesDisplayName: Map(string, Any)
|
|
MapInit(resultPropertiesDisplayName)
|
|
MapSet(resultPropertiesDisplayName, "type", "string")
|
|
MapSet(resultProperties, "display_name", resultPropertiesDisplayName)
|
|
resultPropertiesDescription: Map(string, Any)
|
|
MapInit(resultPropertiesDescription)
|
|
MapSet(resultPropertiesDescription, "type", "string")
|
|
MapSet(resultProperties, "description", resultPropertiesDescription)
|
|
resultPropertiesHomepageUrl: Map(string, Any)
|
|
MapInit(resultPropertiesHomepageUrl)
|
|
MapSet(resultPropertiesHomepageUrl, "type", "string")
|
|
MapSet(resultProperties, "homepage_url", resultPropertiesHomepageUrl)
|
|
resultPropertiesSourceUrl: Map(string, Any)
|
|
MapInit(resultPropertiesSourceUrl)
|
|
MapSet(resultPropertiesSourceUrl, "type", "string")
|
|
MapSet(resultProperties, "source_url", resultPropertiesSourceUrl)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesAppSchemaVersion: Map(string, Any)
|
|
MapInit(resultPropertiesAppSchemaVersion)
|
|
MapSet(resultPropertiesAppSchemaVersion, "type", "integer")
|
|
MapSet(resultProperties, "app_schema_version", resultPropertiesAppSchemaVersion)
|
|
resultPropertiesMinSupportedClientVersion: Map(string, Any)
|
|
MapInit(resultPropertiesMinSupportedClientVersion)
|
|
MapSet(resultPropertiesMinSupportedClientVersion, "type", "string")
|
|
MapSet(resultProperties, "min_supported_client_version", resultPropertiesMinSupportedClientVersion)
|
|
resultPropertiesCurrentClientVersion: Map(string, Any)
|
|
MapInit(resultPropertiesCurrentClientVersion)
|
|
MapSet(resultPropertiesCurrentClientVersion, "type", "string")
|
|
MapSet(resultProperties, "current_client_version", resultPropertiesCurrentClientVersion)
|
|
resultPropertiesCompatibilityUntil: Map(string, Any)
|
|
MapInit(resultPropertiesCompatibilityUntil)
|
|
MapSet(resultPropertiesCompatibilityUntil, "type", "string")
|
|
MapSet(resultPropertiesCompatibilityUntil, "format", "date")
|
|
MapSet(resultProperties, "compatibility_until", resultPropertiesCompatibilityUntil)
|
|
resultPropertiesManifestVersion: Map(string, Any)
|
|
MapInit(resultPropertiesManifestVersion)
|
|
MapSet(resultPropertiesManifestVersion, "type", "integer")
|
|
MapSet(resultProperties, "manifest_version", resultPropertiesManifestVersion)
|
|
resultPropertiesManifestHash: Map(string, Any)
|
|
MapInit(resultPropertiesManifestHash)
|
|
MapSet(resultPropertiesManifestHash, "type", "string")
|
|
MapSet(resultProperties, "manifest_hash", resultPropertiesManifestHash)
|
|
resultPropertiesManifestExpiresAt: Map(string, Any)
|
|
MapInit(resultPropertiesManifestExpiresAt)
|
|
MapSet(resultPropertiesManifestExpiresAt, "type", "integer")
|
|
MapSet(resultProperties, "manifest_expires_at", resultPropertiesManifestExpiresAt)
|
|
resultPropertiesCollections: Map(string, Any)
|
|
MapInit(resultPropertiesCollections)
|
|
MapSet(resultPropertiesCollections, "type", "array")
|
|
resultPropertiesCollectionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionsItems)
|
|
MapSet(resultPropertiesCollectionsItems, "$ref", "#/components/schemas/AppCollection")
|
|
MapSet(resultPropertiesCollections, "items", resultPropertiesCollectionsItems)
|
|
MapSet(resultProperties, "collections", resultPropertiesCollections)
|
|
resultPropertiesCapabilities: Map(string, Any)
|
|
MapInit(resultPropertiesCapabilities)
|
|
MapSet(resultPropertiesCapabilities, "type", "array")
|
|
resultPropertiesCapabilitiesItems: Map(string, Any)
|
|
MapInit(resultPropertiesCapabilitiesItems)
|
|
MapSet(resultPropertiesCapabilitiesItems, "type", "string")
|
|
MapSet(resultPropertiesCapabilities, "items", resultPropertiesCapabilitiesItems)
|
|
MapSet(resultProperties, "capabilities", resultPropertiesCapabilities)
|
|
resultPropertiesFeatures: Map(string, Any)
|
|
MapInit(resultPropertiesFeatures)
|
|
MapSet(resultPropertiesFeatures, "type", "array")
|
|
resultPropertiesFeaturesItems: Map(string, Any)
|
|
MapInit(resultPropertiesFeaturesItems)
|
|
MapSet(resultPropertiesFeaturesItems, "$ref", "#/components/schemas/AppFeature")
|
|
MapSet(resultPropertiesFeatures, "items", resultPropertiesFeaturesItems)
|
|
MapSet(resultProperties, "features", resultPropertiesFeatures)
|
|
resultPropertiesLegacyProtocols: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyProtocols)
|
|
MapSet(resultPropertiesLegacyProtocols, "type", "array")
|
|
resultPropertiesLegacyProtocolsItems: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyProtocolsItems)
|
|
MapSet(resultPropertiesLegacyProtocolsItems, "$ref", "#/components/schemas/LegacyProtocol")
|
|
MapSet(resultPropertiesLegacyProtocols, "items", resultPropertiesLegacyProtocolsItems)
|
|
MapSet(resultProperties, "legacy_protocols", resultPropertiesLegacyProtocols)
|
|
resultPropertiesKeys: Map(string, Any)
|
|
MapInit(resultPropertiesKeys)
|
|
MapSet(resultPropertiesKeys, "type", "array")
|
|
resultPropertiesKeysItems: Map(string, Any)
|
|
MapInit(resultPropertiesKeysItems)
|
|
MapSet(resultPropertiesKeysItems, "$ref", "#/components/schemas/AppKey")
|
|
MapSet(resultPropertiesKeys, "items", resultPropertiesKeysItems)
|
|
MapSet(resultProperties, "keys", resultPropertiesKeys)
|
|
resultPropertiesTokenPolicies: Map(string, Any)
|
|
MapInit(resultPropertiesTokenPolicies)
|
|
MapSet(resultPropertiesTokenPolicies, "type", "array")
|
|
resultPropertiesTokenPoliciesItems: Map(string, Any)
|
|
MapInit(resultPropertiesTokenPoliciesItems)
|
|
MapSet(resultPropertiesTokenPoliciesItems, "$ref", "#/components/schemas/TokenPolicy")
|
|
MapSet(resultPropertiesTokenPolicies, "items", resultPropertiesTokenPoliciesItems)
|
|
MapSet(resultProperties, "token_policies", resultPropertiesTokenPolicies)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppCollection :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesCollectionPrefix: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionPrefix)
|
|
MapSet(resultPropertiesCollectionPrefix, "type", "string")
|
|
MapSet(resultProperties, "collection_prefix", resultPropertiesCollectionPrefix)
|
|
resultPropertiesVisibility: Map(string, Any)
|
|
MapInit(resultPropertiesVisibility)
|
|
MapSet(resultPropertiesVisibility, "type", "string")
|
|
MapSet(resultProperties, "visibility", resultPropertiesVisibility)
|
|
resultPropertiesSchemaVersion: Map(string, Any)
|
|
MapInit(resultPropertiesSchemaVersion)
|
|
MapSet(resultPropertiesSchemaVersion, "type", "integer")
|
|
MapSet(resultProperties, "schema_version", resultPropertiesSchemaVersion)
|
|
resultPropertiesDescription: Map(string, Any)
|
|
MapInit(resultPropertiesDescription)
|
|
MapSet(resultPropertiesDescription, "type", "string")
|
|
MapSet(resultProperties, "description", resultPropertiesDescription)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppFeature :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "string")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesCollections: Map(string, Any)
|
|
MapInit(resultPropertiesCollections)
|
|
MapSet(resultPropertiesCollections, "type", "array")
|
|
resultPropertiesCollectionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesCollectionsItems)
|
|
MapSet(resultPropertiesCollectionsItems, "type", "string")
|
|
MapSet(resultPropertiesCollections, "items", resultPropertiesCollectionsItems)
|
|
MapSet(resultProperties, "collections", resultPropertiesCollections)
|
|
resultPropertiesRequiresSignedTx: Map(string, Any)
|
|
MapInit(resultPropertiesRequiresSignedTx)
|
|
MapSet(resultPropertiesRequiresSignedTx, "type", "boolean")
|
|
MapSet(resultProperties, "requires_signed_tx", resultPropertiesRequiresSignedTx)
|
|
resultPropertiesDescription: Map(string, Any)
|
|
MapInit(resultPropertiesDescription)
|
|
MapSet(resultPropertiesDescription, "type", "string")
|
|
MapSet(resultProperties, "description", resultPropertiesDescription)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaLegacyProtocol :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesName: Map(string, Any)
|
|
MapInit(resultPropertiesName)
|
|
MapSet(resultPropertiesName, "type", "string")
|
|
MapSet(resultProperties, "name", resultPropertiesName)
|
|
resultPropertiesVersion: Map(string, Any)
|
|
MapInit(resultPropertiesVersion)
|
|
MapSet(resultPropertiesVersion, "type", "integer")
|
|
MapSet(resultProperties, "version", resultPropertiesVersion)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesValidUntil: Map(string, Any)
|
|
MapInit(resultPropertiesValidUntil)
|
|
MapSet(resultPropertiesValidUntil, "type", "string")
|
|
MapSet(resultPropertiesValidUntil, "format", "date")
|
|
MapSet(resultProperties, "valid_until", resultPropertiesValidUntil)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAppKey :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesKeyId: Map(string, Any)
|
|
MapInit(resultPropertiesKeyId)
|
|
MapSet(resultPropertiesKeyId, "type", "string")
|
|
MapSet(resultProperties, "key_id", resultPropertiesKeyId)
|
|
resultPropertiesAlgorithm: Map(string, Any)
|
|
MapInit(resultPropertiesAlgorithm)
|
|
MapSet(resultPropertiesAlgorithm, "type", "string")
|
|
MapSet(resultProperties, "algorithm", resultPropertiesAlgorithm)
|
|
resultPropertiesPublicKey: Map(string, Any)
|
|
MapInit(resultPropertiesPublicKey)
|
|
MapSet(resultPropertiesPublicKey, "type", "string")
|
|
MapSet(resultProperties, "public_key", resultPropertiesPublicKey)
|
|
resultPropertiesPurpose: Map(string, Any)
|
|
MapInit(resultPropertiesPurpose)
|
|
MapSet(resultPropertiesPurpose, "type", "string")
|
|
MapSet(resultProperties, "purpose", resultPropertiesPurpose)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesExpiresAt: Map(string, Any)
|
|
MapInit(resultPropertiesExpiresAt)
|
|
MapSet(resultPropertiesExpiresAt, "type", "integer")
|
|
MapSet(resultProperties, "expires_at", resultPropertiesExpiresAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaTokenPolicy :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesAssetId: Map(string, Any)
|
|
MapInit(resultPropertiesAssetId)
|
|
MapSet(resultPropertiesAssetId, "type", "string")
|
|
MapSet(resultProperties, "asset_id", resultPropertiesAssetId)
|
|
resultPropertiesPermission: Map(string, Any)
|
|
MapInit(resultPropertiesPermission)
|
|
MapSet(resultPropertiesPermission, "type", "string")
|
|
MapSet(resultProperties, "permission", resultPropertiesPermission)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesLegacyUnsignedUntil: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyUnsignedUntil)
|
|
MapSet(resultPropertiesLegacyUnsignedUntil, "type", "integer")
|
|
MapSet(resultPropertiesLegacyUnsignedUntil, "format", "int64")
|
|
MapSet(resultProperties, "legacy_unsigned_until", resultPropertiesLegacyUnsignedUntil)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaLoginRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)2)
|
|
resultRequired[0] = "user_id_hash"
|
|
resultRequired[1] = "client_id"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesClientId: Map(string, Any)
|
|
MapInit(resultPropertiesClientId)
|
|
MapSet(resultPropertiesClientId, "type", "string")
|
|
MapSet(resultProperties, "client_id", resultPropertiesClientId)
|
|
resultPropertiesPublicKey: Map(string, Any)
|
|
MapInit(resultPropertiesPublicKey)
|
|
MapSet(resultPropertiesPublicKey, "type", "string")
|
|
MapSet(resultPropertiesPublicKey, "description", "ML-DSA-44 public key as hex or base64; required on first login.")
|
|
MapSet(resultProperties, "public_key", resultPropertiesPublicKey)
|
|
resultPropertiesRestore: Map(string, Any)
|
|
MapInit(resultPropertiesRestore)
|
|
MapSet(resultPropertiesRestore, "type", "boolean")
|
|
MapSet(resultPropertiesRestore, "description", "Bring back this key's deleted account while it is on hold, before any new data. Without it, a login during the hold starts an empty account and the held data is deleted when the hold ends.")
|
|
MapSet(resultProperties, "restore", resultPropertiesRestore)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)1)
|
|
resultRequired[0] = "user_id_hash"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesProtocolVersion: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolVersion)
|
|
MapSet(resultPropertiesProtocolVersion, "type", "integer")
|
|
MapSet(resultPropertiesProtocolVersion, "description", "Use 5 for encrypted-record primary private data, or 4 for encrypted-record dual-write transition support. Version 3 clean hierarchical data responses and versions 1-2 legacy clients remain supported.")
|
|
MapSet(resultProperties, "protocol_version", resultPropertiesProtocolVersion)
|
|
resultPropertiesAppId: Map(string, Any)
|
|
MapInit(resultPropertiesAppId)
|
|
MapSet(resultPropertiesAppId, "type", "string")
|
|
MapSet(resultPropertiesAppId, "description", "Optional through protocol v5. Future protocol v6 requires a registered app_id and registered encrypted record collections.")
|
|
MapSet(resultProperties, "app_id", resultPropertiesAppId)
|
|
resultPropertiesClientCapabilities: Map(string, Any)
|
|
MapInit(resultPropertiesClientCapabilities)
|
|
MapSet(resultPropertiesClientCapabilities, "type", "array")
|
|
resultPropertiesClientCapabilitiesItems: Map(string, Any)
|
|
MapInit(resultPropertiesClientCapabilitiesItems)
|
|
MapSet(resultPropertiesClientCapabilitiesItems, "type", "string")
|
|
MapSet(resultPropertiesClientCapabilities, "items", resultPropertiesClientCapabilitiesItems)
|
|
MapSet(resultProperties, "client_capabilities", resultPropertiesClientCapabilities)
|
|
resultPropertiesIncludeLegacyData: Map(string, Any)
|
|
MapInit(resultPropertiesIncludeLegacyData)
|
|
MapSet(resultPropertiesIncludeLegacyData, "type", "boolean")
|
|
MapSet(resultPropertiesIncludeLegacyData, "description", "Protocol v5 opt-in for receiving legacy typed private rows alongside encrypted records.")
|
|
MapSet(resultProperties, "include_legacy_data", resultPropertiesIncludeLegacyData)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesClientId: Map(string, Any)
|
|
MapInit(resultPropertiesClientId)
|
|
MapSet(resultPropertiesClientId, "type", "string")
|
|
MapSet(resultProperties, "client_id", resultPropertiesClientId)
|
|
resultPropertiesClientClock: Map(string, Any)
|
|
MapInit(resultPropertiesClientClock)
|
|
MapSet(resultPropertiesClientClock, "type", "integer")
|
|
MapSet(resultProperties, "client_clock", resultPropertiesClientClock)
|
|
resultPropertiesSinceServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesSinceServerVersion)
|
|
MapSet(resultPropertiesSinceServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "since_server_version", resultPropertiesSinceServerVersion)
|
|
resultPropertiesPublicKey: Map(string, Any)
|
|
MapInit(resultPropertiesPublicKey)
|
|
MapSet(resultPropertiesPublicKey, "type", "string")
|
|
MapSet(resultPropertiesPublicKey, "description", "ML-DSA-44 public key as hex or base64; required on first sync.")
|
|
MapSet(resultProperties, "public_key", resultPropertiesPublicKey)
|
|
resultPropertiesHabits: Map(string, Any)
|
|
MapInit(resultPropertiesHabits)
|
|
MapSet(resultPropertiesHabits, "type", "array")
|
|
resultPropertiesHabitsItems: Map(string, Any)
|
|
MapInit(resultPropertiesHabitsItems)
|
|
MapSet(resultPropertiesHabitsItems, "$ref", "#/components/schemas/Habit")
|
|
MapSet(resultPropertiesHabits, "items", resultPropertiesHabitsItems)
|
|
MapSet(resultProperties, "habits", resultPropertiesHabits)
|
|
resultPropertiesHabitDays: Map(string, Any)
|
|
MapInit(resultPropertiesHabitDays)
|
|
MapSet(resultPropertiesHabitDays, "type", "array")
|
|
resultPropertiesHabitDaysItems: Map(string, Any)
|
|
MapInit(resultPropertiesHabitDaysItems)
|
|
MapSet(resultPropertiesHabitDaysItems, "$ref", "#/components/schemas/HabitDay")
|
|
MapSet(resultPropertiesHabitDays, "items", resultPropertiesHabitDaysItems)
|
|
MapSet(resultProperties, "habit_days", resultPropertiesHabitDays)
|
|
resultPropertiesSessions: Map(string, Any)
|
|
MapInit(resultPropertiesSessions)
|
|
MapSet(resultPropertiesSessions, "type", "array")
|
|
resultPropertiesSessionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesSessionsItems)
|
|
MapSet(resultPropertiesSessionsItems, "$ref", "#/components/schemas/Session")
|
|
MapSet(resultPropertiesSessions, "items", resultPropertiesSessionsItems)
|
|
MapSet(resultProperties, "sessions", resultPropertiesSessions)
|
|
resultPropertiesOps: Map(string, Any)
|
|
MapInit(resultPropertiesOps)
|
|
MapSet(resultPropertiesOps, "type", "array")
|
|
resultPropertiesOpsItems: Map(string, Any)
|
|
MapInit(resultPropertiesOpsItems)
|
|
MapSet(resultPropertiesOpsItems, "$ref", "#/components/schemas/SyncOp")
|
|
MapSet(resultPropertiesOps, "items", resultPropertiesOpsItems)
|
|
MapSet(resultProperties, "ops", resultPropertiesOps)
|
|
resultPropertiesEncryptedRecords: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedRecords)
|
|
MapSet(resultPropertiesEncryptedRecords, "type", "array")
|
|
resultPropertiesEncryptedRecordsItems: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedRecordsItems)
|
|
MapSet(resultPropertiesEncryptedRecordsItems, "$ref", "#/components/schemas/EncryptedRecord")
|
|
MapSet(resultPropertiesEncryptedRecords, "items", resultPropertiesEncryptedRecordsItems)
|
|
MapSet(resultProperties, "encrypted_records", resultPropertiesEncryptedRecords)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaEncryptedSyncEnvelope :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
MapSet(result, "description", "Opaque whole-payload encrypted sync envelope. Mesh authenticates the account and relays the JSON body unchanged as encrypted_payloads.")
|
|
resultRequired := AllocateStrings(cast(isize)3)
|
|
resultRequired[0] = "v"
|
|
resultRequired[1] = "nonce"
|
|
resultRequired[2] = "ciphertext"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesV: Map(string, Any)
|
|
MapInit(resultPropertiesV)
|
|
MapSet(resultPropertiesV, "type", "integer")
|
|
resultPropertiesVEnum := AllocateIntegers(cast(isize)2)
|
|
resultPropertiesVEnum[0] = cast(isize)1
|
|
resultPropertiesVEnum[1] = cast(isize)2
|
|
MapSet(resultPropertiesV, "enum", resultPropertiesVEnum)
|
|
MapSet(resultProperties, "v", resultPropertiesV)
|
|
resultPropertiesNonce: Map(string, Any)
|
|
MapInit(resultPropertiesNonce)
|
|
MapSet(resultPropertiesNonce, "type", "string")
|
|
MapSet(resultProperties, "nonce", resultPropertiesNonce)
|
|
resultPropertiesCiphertext: Map(string, Any)
|
|
MapInit(resultPropertiesCiphertext)
|
|
MapSet(resultPropertiesCiphertext, "type", "string")
|
|
MapSet(resultProperties, "ciphertext", resultPropertiesCiphertext)
|
|
MapSet(result, "properties", resultProperties)
|
|
MapSet(result, "additionalProperties", true)
|
|
return result
|
|
}
|
|
|
|
SchemaLoginResponse :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesAuthToken: Map(string, Any)
|
|
MapInit(resultPropertiesAuthToken)
|
|
MapSet(resultPropertiesAuthToken, "type", "string")
|
|
MapSet(resultProperties, "auth_token", resultPropertiesAuthToken)
|
|
resultPropertiesExpiresInSeconds: Map(string, Any)
|
|
MapInit(resultPropertiesExpiresInSeconds)
|
|
MapSet(resultPropertiesExpiresInSeconds, "type", "integer")
|
|
MapSet(resultProperties, "expires_in_seconds", resultPropertiesExpiresInSeconds)
|
|
resultPropertiesServerTime: Map(string, Any)
|
|
MapInit(resultPropertiesServerTime)
|
|
MapSet(resultPropertiesServerTime, "type", "integer")
|
|
MapSet(resultPropertiesServerTime, "description", "Unix seconds from the server clock. Clients can use it to compensate for local clock skew while caching bearer tokens.")
|
|
MapSet(resultProperties, "server_time", resultPropertiesServerTime)
|
|
resultPropertiesAccountAlias: Map(string, Any)
|
|
MapInit(resultPropertiesAccountAlias)
|
|
MapSet(resultPropertiesAccountAlias, "type", "string")
|
|
MapSet(resultProperties, "account_alias", resultPropertiesAccountAlias)
|
|
resultPropertiesProfileIcon: Map(string, Any)
|
|
MapInit(resultPropertiesProfileIcon)
|
|
MapSet(resultPropertiesProfileIcon, "type", "integer")
|
|
MapSet(resultProperties, "profile_icon", resultPropertiesProfileIcon)
|
|
resultPropertiesHeldUntil: Map(string, Any)
|
|
MapInit(resultPropertiesHeldUntil)
|
|
MapSet(resultPropertiesHeldUntil, "type", "integer")
|
|
MapSet(resultPropertiesHeldUntil, "description", "Unix seconds when this key's deleted account, still on hold, is deleted permanently. Absent when nothing is on hold.")
|
|
MapSet(resultProperties, "held_until", resultPropertiesHeldUntil)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncResponse :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesProtocolVersion: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolVersion)
|
|
MapSet(resultPropertiesProtocolVersion, "type", "integer")
|
|
MapSet(resultProperties, "protocol_version", resultPropertiesProtocolVersion)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesServerCapabilities: Map(string, Any)
|
|
MapInit(resultPropertiesServerCapabilities)
|
|
MapSet(resultPropertiesServerCapabilities, "type", "array")
|
|
resultPropertiesServerCapabilitiesItems: Map(string, Any)
|
|
MapInit(resultPropertiesServerCapabilitiesItems)
|
|
MapSet(resultPropertiesServerCapabilitiesItems, "type", "string")
|
|
MapSet(resultPropertiesServerCapabilities, "items", resultPropertiesServerCapabilitiesItems)
|
|
MapSet(resultProperties, "server_capabilities", resultPropertiesServerCapabilities)
|
|
resultPropertiesTransitionMode: Map(string, Any)
|
|
MapInit(resultPropertiesTransitionMode)
|
|
MapSet(resultPropertiesTransitionMode, "type", "string")
|
|
MapSet(resultProperties, "transition_mode", resultPropertiesTransitionMode)
|
|
resultPropertiesServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesServerVersion)
|
|
MapSet(resultPropertiesServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "server_version", resultPropertiesServerVersion)
|
|
resultPropertiesServerClock: Map(string, Any)
|
|
MapInit(resultPropertiesServerClock)
|
|
MapSet(resultPropertiesServerClock, "type", "integer")
|
|
MapSet(resultProperties, "server_clock", resultPropertiesServerClock)
|
|
resultPropertiesChanges: Map(string, Any)
|
|
MapInit(resultPropertiesChanges)
|
|
MapSet(resultPropertiesChanges, "type", "object")
|
|
MapSet(resultPropertiesChanges, "description", "Legacy v1/v2 table-array changes.")
|
|
MapSet(resultProperties, "changes", resultPropertiesChanges)
|
|
resultPropertiesData: Map(string, Any)
|
|
MapInit(resultPropertiesData)
|
|
MapSet(resultPropertiesData, "$ref", "#/components/schemas/CleanData")
|
|
MapSet(resultProperties, "data", resultPropertiesData)
|
|
resultPropertiesLogs: Map(string, Any)
|
|
MapInit(resultPropertiesLogs)
|
|
MapSet(resultPropertiesLogs, "type", "array")
|
|
resultPropertiesLogsItems: Map(string, Any)
|
|
MapInit(resultPropertiesLogsItems)
|
|
MapSet(resultPropertiesLogsItems, "$ref", "#/components/schemas/SyncLog")
|
|
MapSet(resultPropertiesLogs, "items", resultPropertiesLogsItems)
|
|
MapSet(resultProperties, "logs", resultPropertiesLogs)
|
|
resultPropertiesDeletes: Map(string, Any)
|
|
MapInit(resultPropertiesDeletes)
|
|
MapSet(resultPropertiesDeletes, "type", "array")
|
|
resultPropertiesDeletesItems: Map(string, Any)
|
|
MapInit(resultPropertiesDeletesItems)
|
|
MapSet(resultPropertiesDeletesItems, "$ref", "#/components/schemas/SyncLog")
|
|
MapSet(resultPropertiesDeletes, "items", resultPropertiesDeletesItems)
|
|
MapSet(resultProperties, "deletes", resultPropertiesDeletes)
|
|
resultPropertiesEncryptedPayloads: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloads)
|
|
MapSet(resultPropertiesEncryptedPayloads, "type", "array")
|
|
resultPropertiesEncryptedPayloadsItems: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadsItems)
|
|
MapSet(resultPropertiesEncryptedPayloadsItems, "$ref", "#/components/schemas/EncryptedPayload")
|
|
MapSet(resultPropertiesEncryptedPayloads, "items", resultPropertiesEncryptedPayloadsItems)
|
|
MapSet(resultProperties, "encrypted_payloads", resultPropertiesEncryptedPayloads)
|
|
resultPropertiesEncryptedPayloadsNextSinceVersion: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadsNextSinceVersion)
|
|
MapSet(resultPropertiesEncryptedPayloadsNextSinceVersion, "type", "integer")
|
|
MapSet(resultProperties, "encrypted_payloads_next_since_version", resultPropertiesEncryptedPayloadsNextSinceVersion)
|
|
resultPropertiesEncryptedPayloadsTruncated: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadsTruncated)
|
|
MapSet(resultPropertiesEncryptedPayloadsTruncated, "type", "boolean")
|
|
MapSet(resultProperties, "encrypted_payloads_truncated", resultPropertiesEncryptedPayloadsTruncated)
|
|
resultPropertiesUpgradeNotice: Map(string, Any)
|
|
MapInit(resultPropertiesUpgradeNotice)
|
|
MapSet(resultPropertiesUpgradeNotice, "type", "string")
|
|
MapSet(resultProperties, "upgrade_notice", resultPropertiesUpgradeNotice)
|
|
resultPropertiesMinSupportedProtocol: Map(string, Any)
|
|
MapInit(resultPropertiesMinSupportedProtocol)
|
|
MapSet(resultPropertiesMinSupportedProtocol, "type", "integer")
|
|
MapSet(resultProperties, "min_supported_protocol", resultPropertiesMinSupportedProtocol)
|
|
resultPropertiesLatestProtocol: Map(string, Any)
|
|
MapInit(resultPropertiesLatestProtocol)
|
|
MapSet(resultPropertiesLatestProtocol, "type", "integer")
|
|
MapSet(resultPropertiesLatestProtocol, "description", "Negotiated protocol for legacy clients; not an app release indicator.")
|
|
MapSet(resultProperties, "latest_protocol", resultPropertiesLatestProtocol)
|
|
resultPropertiesServerLatestProtocol: Map(string, Any)
|
|
MapInit(resultPropertiesServerLatestProtocol)
|
|
MapSet(resultPropertiesServerLatestProtocol, "type", "integer")
|
|
MapSet(resultPropertiesServerLatestProtocol, "description", "Newest server protocol capability; not an app release indicator.")
|
|
MapSet(resultProperties, "server_latest_protocol", resultPropertiesServerLatestProtocol)
|
|
resultPropertiesLegacyClients: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyClients)
|
|
MapSet(resultPropertiesLegacyClients, "type", "array")
|
|
resultPropertiesLegacyClientsItems: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyClientsItems)
|
|
MapSet(resultPropertiesLegacyClientsItems, "type", "string")
|
|
MapSet(resultPropertiesLegacyClients, "items", resultPropertiesLegacyClientsItems)
|
|
MapSet(resultProperties, "legacy_clients", resultPropertiesLegacyClients)
|
|
resultPropertiesDiagnostics: Map(string, Any)
|
|
MapInit(resultPropertiesDiagnostics)
|
|
MapSet(resultPropertiesDiagnostics, "$ref", "#/components/schemas/SyncDiagnostics")
|
|
MapSet(resultProperties, "diagnostics", resultPropertiesDiagnostics)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaCleanData :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesHabits: Map(string, Any)
|
|
MapInit(resultPropertiesHabits)
|
|
MapSet(resultPropertiesHabits, "type", "array")
|
|
resultPropertiesHabitsItems: Map(string, Any)
|
|
MapInit(resultPropertiesHabitsItems)
|
|
MapSet(resultPropertiesHabitsItems, "$ref", "#/components/schemas/Habit")
|
|
MapSet(resultPropertiesHabits, "items", resultPropertiesHabitsItems)
|
|
MapSet(resultProperties, "habits", resultPropertiesHabits)
|
|
resultPropertiesHabitDays: Map(string, Any)
|
|
MapInit(resultPropertiesHabitDays)
|
|
MapSet(resultPropertiesHabitDays, "type", "array")
|
|
resultPropertiesHabitDaysItems: Map(string, Any)
|
|
MapInit(resultPropertiesHabitDaysItems)
|
|
MapSet(resultPropertiesHabitDaysItems, "$ref", "#/components/schemas/CleanHabitDay")
|
|
MapSet(resultPropertiesHabitDays, "items", resultPropertiesHabitDaysItems)
|
|
MapSet(resultProperties, "habit_days", resultPropertiesHabitDays)
|
|
resultPropertiesSessions: Map(string, Any)
|
|
MapInit(resultPropertiesSessions)
|
|
MapSet(resultPropertiesSessions, "type", "array")
|
|
resultPropertiesSessionsItems: Map(string, Any)
|
|
MapInit(resultPropertiesSessionsItems)
|
|
MapSet(resultPropertiesSessionsItems, "$ref", "#/components/schemas/Session")
|
|
MapSet(resultPropertiesSessions, "items", resultPropertiesSessionsItems)
|
|
MapSet(resultProperties, "sessions", resultPropertiesSessions)
|
|
resultPropertiesMeditationLogs: Map(string, Any)
|
|
MapInit(resultPropertiesMeditationLogs)
|
|
MapSet(resultPropertiesMeditationLogs, "type", "array")
|
|
resultPropertiesMeditationLogsItems: Map(string, Any)
|
|
MapInit(resultPropertiesMeditationLogsItems)
|
|
MapSet(resultPropertiesMeditationLogsItems, "$ref", "#/components/schemas/MeditationLog")
|
|
MapSet(resultPropertiesMeditationLogs, "items", resultPropertiesMeditationLogsItems)
|
|
MapSet(resultProperties, "meditation_logs", resultPropertiesMeditationLogs)
|
|
resultPropertiesSocialCache: Map(string, Any)
|
|
MapInit(resultPropertiesSocialCache)
|
|
MapSet(resultPropertiesSocialCache, "type", "array")
|
|
resultPropertiesSocialCacheItems: Map(string, Any)
|
|
MapInit(resultPropertiesSocialCacheItems)
|
|
MapSet(resultPropertiesSocialCacheItems, "$ref", "#/components/schemas/SocialCache")
|
|
MapSet(resultPropertiesSocialCache, "items", resultPropertiesSocialCacheItems)
|
|
MapSet(resultProperties, "social_cache", resultPropertiesSocialCache)
|
|
resultPropertiesEncryptedRecords: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedRecords)
|
|
MapSet(resultPropertiesEncryptedRecords, "type", "array")
|
|
resultPropertiesEncryptedRecordsItems: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedRecordsItems)
|
|
MapSet(resultPropertiesEncryptedRecordsItems, "$ref", "#/components/schemas/EncryptedRecord")
|
|
MapSet(resultPropertiesEncryptedRecords, "items", resultPropertiesEncryptedRecordsItems)
|
|
MapSet(resultProperties, "encrypted_records", resultPropertiesEncryptedRecords)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaDeleteRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)1)
|
|
resultRequired[0] = "user_id_hash"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaDeleteWithKeyRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)2)
|
|
resultRequired[0] = "user_id_hash"
|
|
resultRequired[1] = "exported_key"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesExportedKey: Map(string, Any)
|
|
MapInit(resultPropertiesExportedKey)
|
|
MapSet(resultPropertiesExportedKey, "type", "string")
|
|
MapSet(resultPropertiesExportedKey, "description", "Full text of the exported account key file.")
|
|
MapSet(resultProperties, "exported_key", resultPropertiesExportedKey)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaAliasRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)2)
|
|
resultRequired[0] = "user_id_hash"
|
|
resultRequired[1] = "alias"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesAlias: Map(string, Any)
|
|
MapInit(resultPropertiesAlias)
|
|
MapSet(resultPropertiesAlias, "type", "string")
|
|
MapSet(resultPropertiesAlias, "description", "Account alias (4-32 characters from a-z, 0-9 and underscore; normalized lowercase).")
|
|
MapSet(resultProperties, "alias", resultPropertiesAlias)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaProfileIconRequest :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultRequired := AllocateStrings(cast(isize)2)
|
|
resultRequired[0] = "user_id_hash"
|
|
resultRequired[1] = "profile_icon"
|
|
MapSet(result, "required", resultRequired)
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultPropertiesUserIdHash, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesProfileIcon: Map(string, Any)
|
|
MapInit(resultPropertiesProfileIcon)
|
|
MapSet(resultPropertiesProfileIcon, "type", "integer")
|
|
MapSet(resultPropertiesProfileIcon, "description", "Icon selector value.")
|
|
MapSet(resultProperties, "profile_icon", resultPropertiesProfileIcon)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaHabit :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "string")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesName: Map(string, Any)
|
|
MapInit(resultPropertiesName)
|
|
MapSet(resultPropertiesName, "type", "string")
|
|
MapSet(resultProperties, "name", resultPropertiesName)
|
|
resultPropertiesColorR: Map(string, Any)
|
|
MapInit(resultPropertiesColorR)
|
|
MapSet(resultPropertiesColorR, "type", "integer")
|
|
MapSet(resultProperties, "color_r", resultPropertiesColorR)
|
|
resultPropertiesColorG: Map(string, Any)
|
|
MapInit(resultPropertiesColorG)
|
|
MapSet(resultPropertiesColorG, "type", "integer")
|
|
MapSet(resultProperties, "color_g", resultPropertiesColorG)
|
|
resultPropertiesColorB: Map(string, Any)
|
|
MapInit(resultPropertiesColorB)
|
|
MapSet(resultPropertiesColorB, "type", "integer")
|
|
MapSet(resultProperties, "color_b", resultPropertiesColorB)
|
|
resultPropertiesSyncMode: Map(string, Any)
|
|
MapInit(resultPropertiesSyncMode)
|
|
MapSet(resultPropertiesSyncMode, "type", "integer")
|
|
MapSet(resultProperties, "sync_mode", resultPropertiesSyncMode)
|
|
resultPropertiesSyncActivity: Map(string, Any)
|
|
MapInit(resultPropertiesSyncActivity)
|
|
MapSet(resultPropertiesSyncActivity, "type", "integer")
|
|
MapSet(resultProperties, "sync_activity", resultPropertiesSyncActivity)
|
|
resultPropertiesCounterEnabled: Map(string, Any)
|
|
MapInit(resultPropertiesCounterEnabled)
|
|
MapSet(resultPropertiesCounterEnabled, "type", "integer")
|
|
MapSet(resultProperties, "counter_enabled", resultPropertiesCounterEnabled)
|
|
resultPropertiesSortOrder: Map(string, Any)
|
|
MapInit(resultPropertiesSortOrder)
|
|
MapSet(resultPropertiesSortOrder, "type", "integer")
|
|
MapSet(resultProperties, "sort_order", resultPropertiesSortOrder)
|
|
resultPropertiesDeletedAt: Map(string, Any)
|
|
MapInit(resultPropertiesDeletedAt)
|
|
MapSet(resultPropertiesDeletedAt, "type", "integer")
|
|
MapSet(resultProperties, "deleted_at", resultPropertiesDeletedAt)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaHabitDay :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesHabitId: Map(string, Any)
|
|
MapInit(resultPropertiesHabitId)
|
|
MapSet(resultPropertiesHabitId, "type", "string")
|
|
MapSet(resultProperties, "habit_id", resultPropertiesHabitId)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
resultPropertiesCompleted: Map(string, Any)
|
|
MapInit(resultPropertiesCompleted)
|
|
MapSet(resultPropertiesCompleted, "type", "boolean")
|
|
MapSet(resultProperties, "completed", resultPropertiesCompleted)
|
|
resultPropertiesCount: Map(string, Any)
|
|
MapInit(resultPropertiesCount)
|
|
MapSet(resultPropertiesCount, "type", "integer")
|
|
MapSet(resultProperties, "count", resultPropertiesCount)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaCleanHabitDay :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesHabitId: Map(string, Any)
|
|
MapInit(resultPropertiesHabitId)
|
|
MapSet(resultPropertiesHabitId, "type", "string")
|
|
MapSet(resultProperties, "habit_id", resultPropertiesHabitId)
|
|
resultPropertiesHabitName: Map(string, Any)
|
|
MapInit(resultPropertiesHabitName)
|
|
MapSet(resultPropertiesHabitName, "type", "string")
|
|
MapSet(resultProperties, "habit_name", resultPropertiesHabitName)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
resultPropertiesCompleted: Map(string, Any)
|
|
MapInit(resultPropertiesCompleted)
|
|
MapSet(resultPropertiesCompleted, "type", "boolean")
|
|
MapSet(resultProperties, "completed", resultPropertiesCompleted)
|
|
resultPropertiesCount: Map(string, Any)
|
|
MapInit(resultPropertiesCount)
|
|
MapSet(resultPropertiesCount, "type", "integer")
|
|
MapSet(resultProperties, "count", resultPropertiesCount)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSession :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "string")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesStartedAt: Map(string, Any)
|
|
MapInit(resultPropertiesStartedAt)
|
|
MapSet(resultPropertiesStartedAt, "type", "string")
|
|
MapSet(resultPropertiesStartedAt, "format", "date-time")
|
|
MapSet(resultProperties, "started_at", resultPropertiesStartedAt)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
resultPropertiesTopic: Map(string, Any)
|
|
MapInit(resultPropertiesTopic)
|
|
MapSet(resultPropertiesTopic, "type", "string")
|
|
MapSet(resultProperties, "topic", resultPropertiesTopic)
|
|
resultPropertiesActivity: Map(string, Any)
|
|
MapInit(resultPropertiesActivity)
|
|
MapSet(resultPropertiesActivity, "type", "integer")
|
|
MapSet(resultProperties, "activity", resultPropertiesActivity)
|
|
resultPropertiesSource: Map(string, Any)
|
|
MapInit(resultPropertiesSource)
|
|
MapSet(resultPropertiesSource, "type", "string")
|
|
MapSet(resultProperties, "source", resultPropertiesSource)
|
|
resultPropertiesRoundsHash: Map(string, Any)
|
|
MapInit(resultPropertiesRoundsHash)
|
|
MapSet(resultPropertiesRoundsHash, "type", "string")
|
|
MapSet(resultProperties, "rounds_hash", resultPropertiesRoundsHash)
|
|
resultPropertiesMoodBefore: Map(string, Any)
|
|
MapInit(resultPropertiesMoodBefore)
|
|
MapSet(resultPropertiesMoodBefore, "type", "integer")
|
|
MapSet(resultProperties, "mood_before", resultPropertiesMoodBefore)
|
|
resultPropertiesMoodAfter: Map(string, Any)
|
|
MapInit(resultPropertiesMoodAfter)
|
|
MapSet(resultPropertiesMoodAfter, "type", "integer")
|
|
MapSet(resultProperties, "mood_after", resultPropertiesMoodAfter)
|
|
resultPropertiesEnergy: Map(string, Any)
|
|
MapInit(resultPropertiesEnergy)
|
|
MapSet(resultPropertiesEnergy, "type", "integer")
|
|
MapSet(resultProperties, "energy", resultPropertiesEnergy)
|
|
resultPropertiesStress: Map(string, Any)
|
|
MapInit(resultPropertiesStress)
|
|
MapSet(resultPropertiesStress, "type", "integer")
|
|
MapSet(resultProperties, "stress", resultPropertiesStress)
|
|
resultPropertiesNote: Map(string, Any)
|
|
MapInit(resultPropertiesNote)
|
|
MapSet(resultPropertiesNote, "type", "string")
|
|
MapSet(resultProperties, "note", resultPropertiesNote)
|
|
resultPropertiesTags: Map(string, Any)
|
|
MapInit(resultPropertiesTags)
|
|
MapSet(resultPropertiesTags, "type", "string")
|
|
MapSet(resultProperties, "tags", resultPropertiesTags)
|
|
resultPropertiesDeletedAt: Map(string, Any)
|
|
MapInit(resultPropertiesDeletedAt)
|
|
MapSet(resultPropertiesDeletedAt, "type", "integer")
|
|
MapSet(resultProperties, "deleted_at", resultPropertiesDeletedAt)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
resultPropertiesRounds: Map(string, Any)
|
|
MapInit(resultPropertiesRounds)
|
|
MapSet(resultPropertiesRounds, "type", "array")
|
|
resultPropertiesRoundsItems: Map(string, Any)
|
|
MapInit(resultPropertiesRoundsItems)
|
|
MapSet(resultPropertiesRoundsItems, "$ref", "#/components/schemas/SessionRound")
|
|
MapSet(resultPropertiesRounds, "items", resultPropertiesRoundsItems)
|
|
MapSet(resultProperties, "rounds", resultPropertiesRounds)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSessionRound :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesRoundIndex: Map(string, Any)
|
|
MapInit(resultPropertiesRoundIndex)
|
|
MapSet(resultPropertiesRoundIndex, "type", "integer")
|
|
MapSet(resultProperties, "round_index", resultPropertiesRoundIndex)
|
|
resultPropertiesBreaths: Map(string, Any)
|
|
MapInit(resultPropertiesBreaths)
|
|
MapSet(resultPropertiesBreaths, "type", "integer")
|
|
MapSet(resultProperties, "breaths", resultPropertiesBreaths)
|
|
resultPropertiesHoldSeconds: Map(string, Any)
|
|
MapInit(resultPropertiesHoldSeconds)
|
|
MapSet(resultPropertiesHoldSeconds, "type", "integer")
|
|
MapSet(resultProperties, "hold_seconds", resultPropertiesHoldSeconds)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaMeditationLog :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "string")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesSessionId: Map(string, Any)
|
|
MapInit(resultPropertiesSessionId)
|
|
MapSet(resultPropertiesSessionId, "type", "string")
|
|
MapSet(resultProperties, "session_id", resultPropertiesSessionId)
|
|
resultPropertiesDurationSeconds: Map(string, Any)
|
|
MapInit(resultPropertiesDurationSeconds)
|
|
MapSet(resultPropertiesDurationSeconds, "type", "integer")
|
|
MapSet(resultProperties, "duration_seconds", resultPropertiesDurationSeconds)
|
|
resultPropertiesCompletedAt: Map(string, Any)
|
|
MapInit(resultPropertiesCompletedAt)
|
|
MapSet(resultPropertiesCompletedAt, "type", "string")
|
|
MapSet(resultPropertiesCompletedAt, "format", "date-time")
|
|
MapSet(resultProperties, "completed_at", resultPropertiesCompletedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSocialCache :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesKind: Map(string, Any)
|
|
MapInit(resultPropertiesKind)
|
|
MapSet(resultPropertiesKind, "type", "string")
|
|
MapSet(resultProperties, "kind", resultPropertiesKind)
|
|
resultPropertiesJson: Map(string, Any)
|
|
MapInit(resultPropertiesJson)
|
|
MapSet(resultPropertiesJson, "type", "object")
|
|
MapSet(resultProperties, "json", resultPropertiesJson)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaEncryptedRecord :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesCollection: Map(string, Any)
|
|
MapInit(resultPropertiesCollection)
|
|
MapSet(resultPropertiesCollection, "type", "string")
|
|
MapSet(resultProperties, "collection", resultPropertiesCollection)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "string")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesKeyId: Map(string, Any)
|
|
MapInit(resultPropertiesKeyId)
|
|
MapSet(resultPropertiesKeyId, "type", "string")
|
|
MapSet(resultProperties, "key_id", resultPropertiesKeyId)
|
|
resultPropertiesNonce: Map(string, Any)
|
|
MapInit(resultPropertiesNonce)
|
|
MapSet(resultPropertiesNonce, "type", "string")
|
|
MapSet(resultProperties, "nonce", resultPropertiesNonce)
|
|
resultPropertiesCiphertext: Map(string, Any)
|
|
MapInit(resultPropertiesCiphertext)
|
|
MapSet(resultPropertiesCiphertext, "type", "string")
|
|
MapSet(resultProperties, "ciphertext", resultPropertiesCiphertext)
|
|
resultPropertiesUpdatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesUpdatedAt)
|
|
MapSet(resultPropertiesUpdatedAt, "type", "string")
|
|
MapSet(resultPropertiesUpdatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "updated_at", resultPropertiesUpdatedAt)
|
|
resultPropertiesDeletedAt: Map(string, Any)
|
|
MapInit(resultPropertiesDeletedAt)
|
|
MapSet(resultPropertiesDeletedAt, "type", "integer")
|
|
MapSet(resultProperties, "deleted_at", resultPropertiesDeletedAt)
|
|
resultPropertiesContentHash: Map(string, Any)
|
|
MapInit(resultPropertiesContentHash)
|
|
MapSet(resultPropertiesContentHash, "type", "string")
|
|
MapSet(resultPropertiesContentHash, "description", "Optional lowercase SHA-256 hex hash of the canonical plaintext or ciphertext selected by the client protocol.")
|
|
MapSet(resultProperties, "content_hash", resultPropertiesContentHash)
|
|
resultPropertiesSchemaVersion: Map(string, Any)
|
|
MapInit(resultPropertiesSchemaVersion)
|
|
MapSet(resultPropertiesSchemaVersion, "type", "integer")
|
|
MapSet(resultProperties, "schema_version", resultPropertiesSchemaVersion)
|
|
resultPropertiesParentId: Map(string, Any)
|
|
MapInit(resultPropertiesParentId)
|
|
MapSet(resultPropertiesParentId, "type", "string")
|
|
MapSet(resultProperties, "parent_id", resultPropertiesParentId)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaEncryptedPayload :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
MapSet(result, "description", "Opaque encrypted envelope stored and relayed by server version.")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "integer")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesClientId: Map(string, Any)
|
|
MapInit(resultPropertiesClientId)
|
|
MapSet(resultPropertiesClientId, "type", "string")
|
|
MapSet(resultProperties, "client_id", resultPropertiesClientId)
|
|
resultPropertiesPayload: Map(string, Any)
|
|
MapInit(resultPropertiesPayload)
|
|
MapSet(resultPropertiesPayload, "$ref", "#/components/schemas/EncryptedSyncEnvelope")
|
|
MapSet(resultProperties, "payload", resultPropertiesPayload)
|
|
resultPropertiesCreatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesCreatedAt)
|
|
MapSet(resultPropertiesCreatedAt, "type", "string")
|
|
MapSet(resultPropertiesCreatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "created_at", resultPropertiesCreatedAt)
|
|
resultPropertiesServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesServerVersion)
|
|
MapSet(resultPropertiesServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "server_version", resultPropertiesServerVersion)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncDiagnostics :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesSnapshotReason: Map(string, Any)
|
|
MapInit(resultPropertiesSnapshotReason)
|
|
MapSet(resultPropertiesSnapshotReason, "type", "string")
|
|
MapSet(resultProperties, "snapshot_reason", resultPropertiesSnapshotReason)
|
|
resultPropertiesRequestedSinceServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesRequestedSinceServerVersion)
|
|
MapSet(resultPropertiesRequestedSinceServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "requested_since_server_version", resultPropertiesRequestedSinceServerVersion)
|
|
resultPropertiesEffectiveSinceServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesEffectiveSinceServerVersion)
|
|
MapSet(resultPropertiesEffectiveSinceServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "effective_since_server_version", resultPropertiesEffectiveSinceServerVersion)
|
|
resultPropertiesClientClock: Map(string, Any)
|
|
MapInit(resultPropertiesClientClock)
|
|
MapSet(resultPropertiesClientClock, "type", "integer")
|
|
MapSet(resultProperties, "client_clock", resultPropertiesClientClock)
|
|
resultPropertiesCompactedThroughVersion: Map(string, Any)
|
|
MapInit(resultPropertiesCompactedThroughVersion)
|
|
MapSet(resultPropertiesCompactedThroughVersion, "type", "integer")
|
|
MapSet(resultProperties, "compacted_through_version", resultPropertiesCompactedThroughVersion)
|
|
resultPropertiesHasLocalChanges: Map(string, Any)
|
|
MapInit(resultPropertiesHasLocalChanges)
|
|
MapSet(resultPropertiesHasLocalChanges, "type", "boolean")
|
|
MapSet(resultProperties, "has_local_changes", resultPropertiesHasLocalChanges)
|
|
resultPropertiesAcceptedOps: Map(string, Any)
|
|
MapInit(resultPropertiesAcceptedOps)
|
|
MapSet(resultPropertiesAcceptedOps, "type", "integer")
|
|
MapSet(resultProperties, "accepted_ops", resultPropertiesAcceptedOps)
|
|
resultPropertiesRemoteOps: Map(string, Any)
|
|
MapInit(resultPropertiesRemoteOps)
|
|
MapSet(resultPropertiesRemoteOps, "type", "integer")
|
|
MapSet(resultProperties, "remote_ops", resultPropertiesRemoteOps)
|
|
resultPropertiesAppliedInput: Map(string, Any)
|
|
MapInit(resultPropertiesAppliedInput)
|
|
MapSet(resultPropertiesAppliedInput, "type", "object")
|
|
MapSet(resultProperties, "applied_input", resultPropertiesAppliedInput)
|
|
resultPropertiesReturnedChanges: Map(string, Any)
|
|
MapInit(resultPropertiesReturnedChanges)
|
|
MapSet(resultPropertiesReturnedChanges, "type", "object")
|
|
MapSet(resultProperties, "returned_changes", resultPropertiesReturnedChanges)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncDiagnosticReport :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesStatus: Map(string, Any)
|
|
MapInit(resultPropertiesStatus)
|
|
MapSet(resultPropertiesStatus, "type", "string")
|
|
MapSet(resultProperties, "status", resultPropertiesStatus)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesServerVersion)
|
|
MapSet(resultPropertiesServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "server_version", resultPropertiesServerVersion)
|
|
resultPropertiesStateHash: Map(string, Any)
|
|
MapInit(resultPropertiesStateHash)
|
|
MapSet(resultPropertiesStateHash, "type", "string")
|
|
MapSet(resultProperties, "state_hash", resultPropertiesStateHash)
|
|
resultPropertiesCompactedThroughVersion: Map(string, Any)
|
|
MapInit(resultPropertiesCompactedThroughVersion)
|
|
MapSet(resultPropertiesCompactedThroughVersion, "type", "integer")
|
|
MapSet(resultProperties, "compacted_through_version", resultPropertiesCompactedThroughVersion)
|
|
resultPropertiesTableCounts: Map(string, Any)
|
|
MapInit(resultPropertiesTableCounts)
|
|
MapSet(resultPropertiesTableCounts, "type", "object")
|
|
resultPropertiesTableCountsAdditionalProperties: Map(string, Any)
|
|
MapInit(resultPropertiesTableCountsAdditionalProperties)
|
|
MapSet(resultPropertiesTableCountsAdditionalProperties, "type", "integer")
|
|
MapSet(resultPropertiesTableCounts, "additionalProperties", resultPropertiesTableCountsAdditionalProperties)
|
|
MapSet(resultProperties, "table_counts", resultPropertiesTableCounts)
|
|
resultPropertiesEncryptedPayloadBytes: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadBytes)
|
|
MapSet(resultPropertiesEncryptedPayloadBytes, "type", "integer")
|
|
MapSet(resultProperties, "encrypted_payload_bytes", resultPropertiesEncryptedPayloadBytes)
|
|
resultPropertiesLegacyClients: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyClients)
|
|
MapSet(resultPropertiesLegacyClients, "type", "array")
|
|
resultPropertiesLegacyClientsItems: Map(string, Any)
|
|
MapInit(resultPropertiesLegacyClientsItems)
|
|
MapSet(resultPropertiesLegacyClientsItems, "type", "string")
|
|
MapSet(resultPropertiesLegacyClients, "items", resultPropertiesLegacyClientsItems)
|
|
MapSet(resultProperties, "legacy_clients", resultPropertiesLegacyClients)
|
|
resultPropertiesActiveWebsocketSupported: Map(string, Any)
|
|
MapInit(resultPropertiesActiveWebsocketSupported)
|
|
MapSet(resultPropertiesActiveWebsocketSupported, "type", "boolean")
|
|
MapSet(resultProperties, "active_websocket_supported", resultPropertiesActiveWebsocketSupported)
|
|
resultPropertiesRecentSyncAudit: Map(string, Any)
|
|
MapInit(resultPropertiesRecentSyncAudit)
|
|
MapSet(resultPropertiesRecentSyncAudit, "type", "array")
|
|
resultPropertiesRecentSyncAuditItems: Map(string, Any)
|
|
MapInit(resultPropertiesRecentSyncAuditItems)
|
|
MapSet(resultPropertiesRecentSyncAuditItems, "$ref", "#/components/schemas/SyncAuditEntry")
|
|
MapSet(resultPropertiesRecentSyncAudit, "items", resultPropertiesRecentSyncAuditItems)
|
|
MapSet(resultProperties, "recent_sync_audit", resultPropertiesRecentSyncAudit)
|
|
resultPropertiesRecentEncryptedPayloads: Map(string, Any)
|
|
MapInit(resultPropertiesRecentEncryptedPayloads)
|
|
MapSet(resultPropertiesRecentEncryptedPayloads, "type", "array")
|
|
resultPropertiesRecentEncryptedPayloadsItems: Map(string, Any)
|
|
MapInit(resultPropertiesRecentEncryptedPayloadsItems)
|
|
MapSet(resultPropertiesRecentEncryptedPayloadsItems, "$ref", "#/components/schemas/EncryptedPayload")
|
|
MapSet(resultPropertiesRecentEncryptedPayloads, "items", resultPropertiesRecentEncryptedPayloadsItems)
|
|
MapSet(resultProperties, "recent_encrypted_payloads", resultPropertiesRecentEncryptedPayloads)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncAuditEntry :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
MapSet(result, "description", "Metadata-only recent sync summary. It does not include typed payload contents or decrypted envelope contents.")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesId: Map(string, Any)
|
|
MapInit(resultPropertiesId)
|
|
MapSet(resultPropertiesId, "type", "integer")
|
|
MapSet(resultProperties, "id", resultPropertiesId)
|
|
resultPropertiesUserIdHash: Map(string, Any)
|
|
MapInit(resultPropertiesUserIdHash)
|
|
MapSet(resultPropertiesUserIdHash, "type", "string")
|
|
MapSet(resultProperties, "user_id_hash", resultPropertiesUserIdHash)
|
|
resultPropertiesClientId: Map(string, Any)
|
|
MapInit(resultPropertiesClientId)
|
|
MapSet(resultPropertiesClientId, "type", "string")
|
|
MapSet(resultProperties, "client_id", resultPropertiesClientId)
|
|
resultPropertiesAppId: Map(string, Any)
|
|
MapInit(resultPropertiesAppId)
|
|
MapSet(resultPropertiesAppId, "type", "string")
|
|
MapSet(resultProperties, "app_id", resultPropertiesAppId)
|
|
resultPropertiesProtocolVersion: Map(string, Any)
|
|
MapInit(resultPropertiesProtocolVersion)
|
|
MapSet(resultPropertiesProtocolVersion, "type", "integer")
|
|
MapSet(resultProperties, "protocol_version", resultPropertiesProtocolVersion)
|
|
resultPropertiesSinceServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesSinceServerVersion)
|
|
MapSet(resultPropertiesSinceServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "since_server_version", resultPropertiesSinceServerVersion)
|
|
resultPropertiesClientClock: Map(string, Any)
|
|
MapInit(resultPropertiesClientClock)
|
|
MapSet(resultPropertiesClientClock, "type", "integer")
|
|
MapSet(resultProperties, "client_clock", resultPropertiesClientClock)
|
|
resultPropertiesServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesServerVersion)
|
|
MapSet(resultPropertiesServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "server_version", resultPropertiesServerVersion)
|
|
resultPropertiesApplied: Map(string, Any)
|
|
MapInit(resultPropertiesApplied)
|
|
MapSet(resultPropertiesApplied, "type", "object")
|
|
MapSet(resultProperties, "applied", resultPropertiesApplied)
|
|
resultPropertiesRemoteOps: Map(string, Any)
|
|
MapInit(resultPropertiesRemoteOps)
|
|
MapSet(resultPropertiesRemoteOps, "type", "integer")
|
|
MapSet(resultProperties, "remote_ops", resultPropertiesRemoteOps)
|
|
resultPropertiesFullSnapshotRequired: Map(string, Any)
|
|
MapInit(resultPropertiesFullSnapshotRequired)
|
|
MapSet(resultPropertiesFullSnapshotRequired, "type", "boolean")
|
|
MapSet(resultProperties, "full_snapshot_required", resultPropertiesFullSnapshotRequired)
|
|
resultPropertiesSnapshotReason: Map(string, Any)
|
|
MapInit(resultPropertiesSnapshotReason)
|
|
MapSet(resultPropertiesSnapshotReason, "type", "string")
|
|
MapSet(resultProperties, "snapshot_reason", resultPropertiesSnapshotReason)
|
|
resultPropertiesEncryptedPayload: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayload)
|
|
MapSet(resultPropertiesEncryptedPayload, "type", "boolean")
|
|
MapSet(resultProperties, "encrypted_payload", resultPropertiesEncryptedPayload)
|
|
resultPropertiesEncryptedPayloadBytes: Map(string, Any)
|
|
MapInit(resultPropertiesEncryptedPayloadBytes)
|
|
MapSet(resultPropertiesEncryptedPayloadBytes, "type", "integer")
|
|
MapSet(resultProperties, "encrypted_payload_bytes", resultPropertiesEncryptedPayloadBytes)
|
|
resultPropertiesCreatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesCreatedAt)
|
|
MapSet(resultPropertiesCreatedAt, "type", "string")
|
|
MapSet(resultPropertiesCreatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "created_at", resultPropertiesCreatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncOp :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesOpId: Map(string, Any)
|
|
MapInit(resultPropertiesOpId)
|
|
MapSet(resultPropertiesOpId, "type", "string")
|
|
MapSet(resultProperties, "op_id", resultPropertiesOpId)
|
|
resultPropertiesClientId: Map(string, Any)
|
|
MapInit(resultPropertiesClientId)
|
|
MapSet(resultPropertiesClientId, "type", "string")
|
|
MapSet(resultProperties, "client_id", resultPropertiesClientId)
|
|
resultPropertiesSeq: Map(string, Any)
|
|
MapInit(resultPropertiesSeq)
|
|
MapSet(resultPropertiesSeq, "type", "integer")
|
|
MapSet(resultProperties, "seq", resultPropertiesSeq)
|
|
resultPropertiesEntityType: Map(string, Any)
|
|
MapInit(resultPropertiesEntityType)
|
|
MapSet(resultPropertiesEntityType, "type", "string")
|
|
MapSet(resultProperties, "entity_type", resultPropertiesEntityType)
|
|
resultPropertiesEntityId: Map(string, Any)
|
|
MapInit(resultPropertiesEntityId)
|
|
MapSet(resultPropertiesEntityId, "type", "string")
|
|
MapSet(resultProperties, "entity_id", resultPropertiesEntityId)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
resultPropertiesOpType: Map(string, Any)
|
|
MapInit(resultPropertiesOpType)
|
|
MapSet(resultPropertiesOpType, "type", "string")
|
|
MapSet(resultProperties, "op_type", resultPropertiesOpType)
|
|
resultPropertiesPayload: Map(string, Any)
|
|
MapInit(resultPropertiesPayload)
|
|
MapSet(resultPropertiesPayload, "type", "object")
|
|
MapSet(resultProperties, "payload", resultPropertiesPayload)
|
|
resultPropertiesCreatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesCreatedAt)
|
|
MapSet(resultPropertiesCreatedAt, "type", "string")
|
|
MapSet(resultPropertiesCreatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "created_at", resultPropertiesCreatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
SchemaSyncLog :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "type", "object")
|
|
resultProperties: Map(string, Any)
|
|
MapInit(resultProperties)
|
|
resultPropertiesServerVersion: Map(string, Any)
|
|
MapInit(resultPropertiesServerVersion)
|
|
MapSet(resultPropertiesServerVersion, "type", "integer")
|
|
MapSet(resultProperties, "server_version", resultPropertiesServerVersion)
|
|
resultPropertiesKind: Map(string, Any)
|
|
MapInit(resultPropertiesKind)
|
|
MapSet(resultPropertiesKind, "type", "string")
|
|
MapSet(resultProperties, "kind", resultPropertiesKind)
|
|
resultPropertiesEntityType: Map(string, Any)
|
|
MapInit(resultPropertiesEntityType)
|
|
MapSet(resultPropertiesEntityType, "type", "string")
|
|
MapSet(resultProperties, "entity_type", resultPropertiesEntityType)
|
|
resultPropertiesEntityId: Map(string, Any)
|
|
MapInit(resultPropertiesEntityId)
|
|
MapSet(resultPropertiesEntityId, "type", "string")
|
|
MapSet(resultProperties, "entity_id", resultPropertiesEntityId)
|
|
resultPropertiesLocalDate: Map(string, Any)
|
|
MapInit(resultPropertiesLocalDate)
|
|
MapSet(resultPropertiesLocalDate, "type", "integer")
|
|
MapSet(resultProperties, "local_date", resultPropertiesLocalDate)
|
|
resultPropertiesOpType: Map(string, Any)
|
|
MapInit(resultPropertiesOpType)
|
|
MapSet(resultPropertiesOpType, "type", "string")
|
|
MapSet(resultProperties, "op_type", resultPropertiesOpType)
|
|
resultPropertiesPayload: Map(string, Any)
|
|
MapInit(resultPropertiesPayload)
|
|
MapSet(resultPropertiesPayload, "type", "object")
|
|
MapSet(resultProperties, "payload", resultPropertiesPayload)
|
|
resultPropertiesCreatedAt: Map(string, Any)
|
|
MapInit(resultPropertiesCreatedAt)
|
|
MapSet(resultPropertiesCreatedAt, "type", "string")
|
|
MapSet(resultPropertiesCreatedAt, "format", "date-time")
|
|
MapSet(resultProperties, "created_at", resultPropertiesCreatedAt)
|
|
MapSet(result, "properties", resultProperties)
|
|
return result
|
|
}
|
|
|
|
Schemas :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapInit(result)
|
|
MapSet(result, "NodeInfoResponse", SchemaNodeInfoResponse())
|
|
MapSet(result, "NodePeer", SchemaNodePeer())
|
|
MapSet(result, "NodeSyncPolicy", SchemaNodeSyncPolicy())
|
|
MapSet(result, "NodeUsage", SchemaNodeUsage())
|
|
MapSet(result, "NodeStorageUsage", SchemaNodeStorageUsage())
|
|
MapSet(result, "AppStorageUsage", SchemaAppStorageUsage())
|
|
MapSet(result, "CollectionStorageUsage", SchemaCollectionStorageUsage())
|
|
MapSet(result, "StorageBucketUsage", SchemaStorageBucketUsage())
|
|
MapSet(result, "FriendRequestCreateRequest", SchemaFriendRequestCreateRequest())
|
|
MapSet(result, "ProfileStatsRequest", SchemaProfileStatsRequest())
|
|
MapSet(result, "ProfileMetric", SchemaProfileMetric())
|
|
MapSet(result, "AppRegistryResponse", SchemaAppRegistryResponse())
|
|
MapSet(result, "AppRegistration", SchemaAppRegistration())
|
|
MapSet(result, "AppCollection", SchemaAppCollection())
|
|
MapSet(result, "AppFeature", SchemaAppFeature())
|
|
MapSet(result, "LegacyProtocol", SchemaLegacyProtocol())
|
|
MapSet(result, "AppKey", SchemaAppKey())
|
|
MapSet(result, "TokenPolicy", SchemaTokenPolicy())
|
|
MapSet(result, "LoginRequest", SchemaLoginRequest())
|
|
MapSet(result, "SyncRequest", SchemaSyncRequest())
|
|
MapSet(result, "EncryptedSyncEnvelope", SchemaEncryptedSyncEnvelope())
|
|
MapSet(result, "LoginResponse", SchemaLoginResponse())
|
|
MapSet(result, "SyncResponse", SchemaSyncResponse())
|
|
MapSet(result, "CleanData", SchemaCleanData())
|
|
MapSet(result, "DeleteRequest", SchemaDeleteRequest())
|
|
MapSet(result, "DeleteWithKeyRequest", SchemaDeleteWithKeyRequest())
|
|
MapSet(result, "AliasRequest", SchemaAliasRequest())
|
|
MapSet(result, "ProfileIconRequest", SchemaProfileIconRequest())
|
|
MapSet(result, "Habit", SchemaHabit())
|
|
MapSet(result, "HabitDay", SchemaHabitDay())
|
|
MapSet(result, "CleanHabitDay", SchemaCleanHabitDay())
|
|
MapSet(result, "Session", SchemaSession())
|
|
MapSet(result, "SessionRound", SchemaSessionRound())
|
|
MapSet(result, "MeditationLog", SchemaMeditationLog())
|
|
MapSet(result, "SocialCache", SchemaSocialCache())
|
|
MapSet(result, "EncryptedRecord", SchemaEncryptedRecord())
|
|
MapSet(result, "EncryptedPayload", SchemaEncryptedPayload())
|
|
MapSet(result, "SyncDiagnostics", SchemaSyncDiagnostics())
|
|
MapSet(result, "SyncDiagnosticReport", SchemaSyncDiagnosticReport())
|
|
MapSet(result, "SyncAuditEntry", SchemaSyncAuditEntry())
|
|
MapSet(result, "SyncOp", SchemaSyncOp())
|
|
MapSet(result, "SyncLog", SchemaSyncLog())
|
|
return result
|
|
}
|
|
|
|
Components :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapSet(result, "schemas", Schemas())
|
|
return result
|
|
}
|
|
|
|
Spec :: () -> Map(string, Any) {
|
|
result: Map(string, Any)
|
|
MapSet(result, "openapi", "3.1.0")
|
|
MapSet(result, "info", Info())
|
|
MapSet(result, "paths", Paths())
|
|
MapSet(result, "components", Components())
|
|
return result
|
|
}
|
|
|
|
SignedHeaderParameters :: () -> []Map(string, Any) {
|
|
result := AllocateObjects(cast(isize)2)
|
|
resultItem0: Map(string, Any)
|
|
MapInit(resultItem0)
|
|
MapSet(resultItem0, "name", "X-Mesh-User")
|
|
MapSet(resultItem0, "in", "header")
|
|
MapSet(resultItem0, "required", true)
|
|
MapSet(resultItem0, "description", "SHA-256 hash of the ML-DSA-44 public key. Legacy X-Ksync-User and X-Inbe-User are also accepted.")
|
|
resultItem0Schema: Map(string, Any)
|
|
MapInit(resultItem0Schema)
|
|
MapSet(resultItem0Schema, "type", "string")
|
|
MapSet(resultItem0Schema, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultItem0, "schema", resultItem0Schema)
|
|
result[0] = resultItem0
|
|
resultItem1: Map(string, Any)
|
|
MapInit(resultItem1)
|
|
MapSet(resultItem1, "name", "X-Mesh-Signature")
|
|
MapSet(resultItem1, "in", "header")
|
|
MapSet(resultItem1, "required", true)
|
|
MapSet(resultItem1, "description", "ML-DSA-44 signature as hex or base64. Legacy X-Ksync-Signature and X-Inbe-Signature are also accepted.")
|
|
resultItem1Schema: Map(string, Any)
|
|
MapInit(resultItem1Schema)
|
|
MapSet(resultItem1Schema, "type", "string")
|
|
MapSet(resultItem1, "schema", resultItem1Schema)
|
|
result[1] = resultItem1
|
|
return result
|
|
}
|
|
|
|
SyncHeaderParameters :: () -> []Map(string, Any) {
|
|
result := AllocateObjects(cast(isize)5)
|
|
resultItem0: Map(string, Any)
|
|
MapInit(resultItem0)
|
|
MapSet(resultItem0, "name", "Authorization")
|
|
MapSet(resultItem0, "in", "header")
|
|
MapSet(resultItem0, "required", true)
|
|
MapSet(resultItem0, "description", "Bearer auth token returned by POST /api/v1/sync/login.")
|
|
resultItem0Schema: Map(string, Any)
|
|
MapInit(resultItem0Schema)
|
|
MapSet(resultItem0Schema, "type", "string")
|
|
MapSet(resultItem0, "schema", resultItem0Schema)
|
|
result[0] = resultItem0
|
|
resultItem1: Map(string, Any)
|
|
MapInit(resultItem1)
|
|
MapSet(resultItem1, "name", "X-Mesh-User")
|
|
MapSet(resultItem1, "in", "header")
|
|
MapSet(resultItem1, "required", true)
|
|
MapSet(resultItem1, "description", "SHA-256 hash of the ML-DSA-44 public key. Legacy X-Ksync-User and X-Inbe-User are also accepted.")
|
|
resultItem1Schema: Map(string, Any)
|
|
MapInit(resultItem1Schema)
|
|
MapSet(resultItem1Schema, "type", "string")
|
|
MapSet(resultItem1Schema, "pattern", "^[0-9a-f]{64}$")
|
|
MapSet(resultItem1, "schema", resultItem1Schema)
|
|
result[1] = resultItem1
|
|
resultItem2: Map(string, Any)
|
|
MapInit(resultItem2)
|
|
MapSet(resultItem2, "name", "X-Mesh-Client")
|
|
MapSet(resultItem2, "in", "header")
|
|
MapSet(resultItem2, "required", false)
|
|
MapSet(resultItem2, "description", "Optional client ID for encrypted envelope metadata. X-Ksync-Client remains accepted.")
|
|
resultItem2Schema: Map(string, Any)
|
|
MapInit(resultItem2Schema)
|
|
MapSet(resultItem2Schema, "type", "string")
|
|
MapSet(resultItem2, "schema", resultItem2Schema)
|
|
result[2] = resultItem2
|
|
resultItem3: Map(string, Any)
|
|
MapInit(resultItem3)
|
|
MapSet(resultItem3, "name", "X-Mesh-Since-Version")
|
|
MapSet(resultItem3, "in", "header")
|
|
MapSet(resultItem3, "required", false)
|
|
MapSet(resultItem3, "description", "Optional last-seen server version for encrypted envelope delta reads. X-Ksync-Since-Version remains accepted.")
|
|
resultItem3Schema: Map(string, Any)
|
|
MapInit(resultItem3Schema)
|
|
MapSet(resultItem3Schema, "type", "integer")
|
|
MapSet(resultItem3, "schema", resultItem3Schema)
|
|
result[3] = resultItem3
|
|
resultItem4: Map(string, Any)
|
|
MapInit(resultItem4)
|
|
MapSet(resultItem4, "name", "X-Mesh-Limit")
|
|
MapSet(resultItem4, "in", "header")
|
|
MapSet(resultItem4, "required", false)
|
|
MapSet(resultItem4, "description", "Optional encrypted envelope page size. X-Ksync-Limit remains accepted. The server may clamp this with MESH_ENCRYPTED_PAYLOAD_MAX_RETURN.")
|
|
resultItem4Schema: Map(string, Any)
|
|
MapInit(resultItem4Schema)
|
|
MapSet(resultItem4Schema, "type", "integer")
|
|
MapSet(resultItem4, "schema", resultItem4Schema)
|
|
result[4] = resultItem4
|
|
return result
|
|
}
|
|
|
|
BearerHeaderParameters :: () -> []Map(string, Any) {
|
|
result := AllocateObjects(cast(isize)1)
|
|
resultItem0: Map(string, Any)
|
|
MapInit(resultItem0)
|
|
MapSet(resultItem0, "name", "Authorization")
|
|
MapSet(resultItem0, "in", "header")
|
|
MapSet(resultItem0, "required", true)
|
|
MapSet(resultItem0, "description", "Bearer auth token returned by POST /api/v1/sync/login.")
|
|
resultItem0Schema: Map(string, Any)
|
|
MapInit(resultItem0Schema)
|
|
MapSet(resultItem0Schema, "type", "string")
|
|
MapSet(resultItem0, "schema", resultItem0Schema)
|
|
result[0] = resultItem0
|
|
return result
|
|
}
|