edgebase_core 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +77 -0
- data/lib/edgebase_core/context_manager.rb +23 -0
- data/lib/edgebase_core/errors.rb +41 -0
- data/lib/edgebase_core/field_ops.rb +21 -0
- data/lib/edgebase_core/generated/api_core.rb +915 -0
- data/lib/edgebase_core/generated/client_wrappers.rb +268 -0
- data/lib/edgebase_core/http_client.rb +219 -0
- data/lib/edgebase_core/storage.rb +161 -0
- data/lib/edgebase_core/table_ref.rb +472 -0
- data/lib/edgebase_core.rb +10 -0
- data/llms.txt +88 -0
- metadata +60 -0
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Auto-generated core API Core — DO NOT EDIT.
|
|
4
|
+
#
|
|
5
|
+
# Regenerate: npx tsx tools/sdk-codegen/generate.ts
|
|
6
|
+
# Source: openapi.json (0.1.0)
|
|
7
|
+
|
|
8
|
+
require "cgi"
|
|
9
|
+
|
|
10
|
+
module EdgebaseCore
|
|
11
|
+
class GeneratedDbApi
|
|
12
|
+
# Generated API methods — calls HttpClient internally.
|
|
13
|
+
|
|
14
|
+
def initialize(http)
|
|
15
|
+
@http = http
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
attr_reader :http
|
|
19
|
+
|
|
20
|
+
# Health check — GET /api/health
|
|
21
|
+
def get_health()
|
|
22
|
+
@http.get("/health")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Sign up with email and password — POST /api/auth/signup
|
|
26
|
+
def auth_signup(body = nil)
|
|
27
|
+
@http.post("/auth/signup", body)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Sign in with email and password — POST /api/auth/signin
|
|
31
|
+
def auth_signin(body = nil)
|
|
32
|
+
@http.post("/auth/signin", body)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Sign in anonymously — POST /api/auth/signin/anonymous
|
|
36
|
+
def auth_signin_anonymous(body = nil)
|
|
37
|
+
@http.post("/auth/signin/anonymous", body)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Send magic link to email — POST /api/auth/signin/magic-link
|
|
41
|
+
def auth_signin_magic_link(body = nil)
|
|
42
|
+
@http.post("/auth/signin/magic-link", body)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Verify magic link token — POST /api/auth/verify-magic-link
|
|
46
|
+
def auth_verify_magic_link(body = nil)
|
|
47
|
+
@http.post("/auth/verify-magic-link", body)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Send OTP SMS to phone number — POST /api/auth/signin/phone
|
|
51
|
+
def auth_signin_phone(body = nil)
|
|
52
|
+
@http.post("/auth/signin/phone", body)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Verify phone OTP and create session — POST /api/auth/verify-phone
|
|
56
|
+
def auth_verify_phone(body = nil)
|
|
57
|
+
@http.post("/auth/verify-phone", body)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Link phone number to existing account — POST /api/auth/link/phone
|
|
61
|
+
def auth_link_phone(body = nil)
|
|
62
|
+
@http.post("/auth/link/phone", body)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Verify OTP and link phone to account — POST /api/auth/verify-link-phone
|
|
66
|
+
def auth_verify_link_phone(body = nil)
|
|
67
|
+
@http.post("/auth/verify-link-phone", body)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Send OTP code to email — POST /api/auth/signin/email-otp
|
|
71
|
+
def auth_signin_email_otp(body = nil)
|
|
72
|
+
@http.post("/auth/signin/email-otp", body)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Verify email OTP and create session — POST /api/auth/verify-email-otp
|
|
76
|
+
def auth_verify_email_otp(body = nil)
|
|
77
|
+
@http.post("/auth/verify-email-otp", body)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Enroll new TOTP factor — POST /api/auth/mfa/totp/enroll
|
|
81
|
+
def auth_mfa_totp_enroll()
|
|
82
|
+
@http.post("/auth/mfa/totp/enroll")
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Confirm TOTP enrollment with code — POST /api/auth/mfa/totp/verify
|
|
86
|
+
def auth_mfa_totp_verify(body = nil)
|
|
87
|
+
@http.post("/auth/mfa/totp/verify", body)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Verify MFA code during signin — POST /api/auth/mfa/verify
|
|
91
|
+
def auth_mfa_verify(body = nil)
|
|
92
|
+
@http.post("/auth/mfa/verify", body)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Use recovery code during MFA signin — POST /api/auth/mfa/recovery
|
|
96
|
+
def auth_mfa_recovery(body = nil)
|
|
97
|
+
@http.post("/auth/mfa/recovery", body)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Disable TOTP factor — DELETE /api/auth/mfa/totp
|
|
101
|
+
def auth_mfa_totp_delete(body = nil)
|
|
102
|
+
@http.delete("/auth/mfa/totp", body)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# List MFA factors for authenticated user — GET /api/auth/mfa/factors
|
|
106
|
+
def auth_mfa_factors()
|
|
107
|
+
@http.get("/auth/mfa/factors")
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Refresh access token — POST /api/auth/refresh
|
|
111
|
+
def auth_refresh(body = nil)
|
|
112
|
+
@http.post("/auth/refresh", body)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Sign out and revoke refresh token — POST /api/auth/signout
|
|
116
|
+
def auth_signout(body = nil)
|
|
117
|
+
@http.post("/auth/signout", body)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Change password for authenticated user — POST /api/auth/change-password
|
|
121
|
+
def auth_change_password(body = nil)
|
|
122
|
+
@http.post("/auth/change-password", body)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Request email change with password confirmation — POST /api/auth/change-email
|
|
126
|
+
def auth_change_email(body = nil)
|
|
127
|
+
@http.post("/auth/change-email", body)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Verify email change token — POST /api/auth/verify-email-change
|
|
131
|
+
def auth_verify_email_change(body = nil)
|
|
132
|
+
@http.post("/auth/verify-email-change", body)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Generate passkey registration options — POST /api/auth/passkeys/register-options
|
|
136
|
+
def auth_passkeys_register_options()
|
|
137
|
+
@http.post("/auth/passkeys/register-options")
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Verify and store passkey registration — POST /api/auth/passkeys/register
|
|
141
|
+
def auth_passkeys_register(body = nil)
|
|
142
|
+
@http.post("/auth/passkeys/register", body)
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Generate passkey authentication options — POST /api/auth/passkeys/auth-options
|
|
146
|
+
def auth_passkeys_auth_options(body = nil)
|
|
147
|
+
@http.post("/auth/passkeys/auth-options", body)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Authenticate with passkey — POST /api/auth/passkeys/authenticate
|
|
151
|
+
def auth_passkeys_authenticate(body = nil)
|
|
152
|
+
@http.post("/auth/passkeys/authenticate", body)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# List passkeys for authenticated user — GET /api/auth/passkeys
|
|
156
|
+
def auth_passkeys_list()
|
|
157
|
+
@http.get("/auth/passkeys")
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Delete a passkey — DELETE /api/auth/passkeys/{credentialId}
|
|
161
|
+
def auth_passkeys_delete(credential_id)
|
|
162
|
+
@http.delete("/auth/passkeys/#{CGI.escape(credential_id).gsub('+', '%20')}")
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Get current authenticated user info — GET /api/auth/me
|
|
166
|
+
def auth_get_me()
|
|
167
|
+
@http.get("/auth/me")
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Update user profile — PATCH /api/auth/profile
|
|
171
|
+
def auth_update_profile(body = nil)
|
|
172
|
+
@http.patch("/auth/profile", body)
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# List active sessions — GET /api/auth/sessions
|
|
176
|
+
def auth_get_sessions()
|
|
177
|
+
@http.get("/auth/sessions")
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Delete a session — DELETE /api/auth/sessions/{id}
|
|
181
|
+
def auth_delete_session(id)
|
|
182
|
+
@http.delete("/auth/sessions/#{CGI.escape(id).gsub('+', '%20')}")
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# List linked sign-in identities for the current user — GET /api/auth/identities
|
|
186
|
+
def auth_get_identities()
|
|
187
|
+
@http.get("/auth/identities")
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Unlink a linked sign-in identity — DELETE /api/auth/identities/{identityId}
|
|
191
|
+
def auth_delete_identity(identity_id)
|
|
192
|
+
@http.delete("/auth/identities/#{CGI.escape(identity_id).gsub('+', '%20')}")
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Link email and password to existing account — POST /api/auth/link/email
|
|
196
|
+
def auth_link_email(body = nil)
|
|
197
|
+
@http.post("/auth/link/email", body)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Send a verification email to the current authenticated user — POST /api/auth/request-email-verification
|
|
201
|
+
def auth_request_email_verification(body = nil)
|
|
202
|
+
@http.post("/auth/request-email-verification", body)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Verify email address with token — POST /api/auth/verify-email
|
|
206
|
+
def auth_verify_email(body = nil)
|
|
207
|
+
@http.post("/auth/verify-email", body)
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Request password reset email — POST /api/auth/request-password-reset
|
|
211
|
+
def auth_request_password_reset(body = nil)
|
|
212
|
+
@http.post("/auth/request-password-reset", body)
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Reset password with token — POST /api/auth/reset-password
|
|
216
|
+
def auth_reset_password(body = nil)
|
|
217
|
+
@http.post("/auth/reset-password", body)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Start OAuth redirect — GET /api/auth/oauth/{provider}
|
|
221
|
+
def oauth_redirect(provider)
|
|
222
|
+
@http.get("/auth/oauth/#{CGI.escape(provider).gsub('+', '%20')}")
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# OAuth callback — GET /api/auth/oauth/{provider}/callback
|
|
226
|
+
def oauth_callback(provider)
|
|
227
|
+
@http.get("/auth/oauth/#{CGI.escape(provider).gsub('+', '%20')}/callback")
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Start OAuth account linking — POST /api/auth/oauth/link/{provider}
|
|
231
|
+
def oauth_link_start(provider)
|
|
232
|
+
@http.post("/auth/oauth/link/#{CGI.escape(provider).gsub('+', '%20')}")
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# OAuth link callback — GET /api/auth/oauth/link/{provider}/callback
|
|
236
|
+
def oauth_link_callback(provider)
|
|
237
|
+
@http.get("/auth/oauth/link/#{CGI.escape(provider).gsub('+', '%20')}/callback")
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Count records in dynamic table — GET /api/db/{namespace}/{instanceId}/tables/{table}/count
|
|
241
|
+
def db_count_records(namespace, instance_id, table, query: nil)
|
|
242
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/count", params: query)
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Search records in dynamic table — GET /api/db/{namespace}/{instanceId}/tables/{table}/search
|
|
246
|
+
def db_search_records(namespace, instance_id, table, query: nil)
|
|
247
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/search", params: query)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Get single record from dynamic table — GET /api/db/{namespace}/{instanceId}/tables/{table}/{id}
|
|
251
|
+
def db_get_record(namespace, instance_id, table, id, query: nil)
|
|
252
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}", params: query)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Update record in dynamic table — PATCH /api/db/{namespace}/{instanceId}/tables/{table}/{id}
|
|
256
|
+
def db_update_record(namespace, instance_id, table, id, body = nil)
|
|
257
|
+
@http.patch("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}", body)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Delete record from dynamic table — DELETE /api/db/{namespace}/{instanceId}/tables/{table}/{id}
|
|
261
|
+
def db_delete_record(namespace, instance_id, table, id)
|
|
262
|
+
@http.delete("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}")
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# List records from dynamic table — GET /api/db/{namespace}/{instanceId}/tables/{table}
|
|
266
|
+
def db_list_records(namespace, instance_id, table, query: nil)
|
|
267
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}", params: query)
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Insert record into dynamic table — POST /api/db/{namespace}/{instanceId}/tables/{table}
|
|
271
|
+
def db_insert_record(namespace, instance_id, table, body = nil, query: nil)
|
|
272
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}", body, params: query)
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Batch insert records into dynamic table — POST /api/db/{namespace}/{instanceId}/tables/{table}/batch
|
|
276
|
+
def db_batch_records(namespace, instance_id, table, body = nil, query: nil)
|
|
277
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/batch", body, params: query)
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Batch update/delete records by filter in dynamic table — POST /api/db/{namespace}/{instanceId}/tables/{table}/batch-by-filter
|
|
281
|
+
def db_batch_by_filter(namespace, instance_id, table, body = nil, query: nil)
|
|
282
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/#{CGI.escape(instance_id).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/batch-by-filter", body, params: query)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Check database live subscription WebSocket prerequisites — GET /api/db/connect-check
|
|
286
|
+
def check_database_subscription_connection(query: nil)
|
|
287
|
+
@http.get("/db/connect-check", params: query)
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Connect to database live subscriptions WebSocket — GET /api/db/subscribe
|
|
291
|
+
def connect_database_subscription(query: nil)
|
|
292
|
+
@http.get("/db/subscribe", params: query)
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Get table schema — GET /api/schema
|
|
296
|
+
def get_schema()
|
|
297
|
+
@http.get("/schema")
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Upload file — POST /api/storage/{bucket}/upload
|
|
301
|
+
def upload_file(bucket, body = nil)
|
|
302
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/upload", body)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Get file metadata — GET /api/storage/{bucket}/{key}/metadata
|
|
306
|
+
def get_file_metadata(bucket, key)
|
|
307
|
+
@http.get("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/#{CGI.escape(key).gsub('+', '%20')}/metadata")
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Update file metadata — PATCH /api/storage/{bucket}/{key}/metadata
|
|
311
|
+
def update_file_metadata(bucket, key, body = nil)
|
|
312
|
+
@http.patch("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/#{CGI.escape(key).gsub('+', '%20')}/metadata", body)
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
# Check if file exists — HEAD /api/storage/{bucket}/{key}
|
|
316
|
+
def check_file_exists(bucket, key)
|
|
317
|
+
@http.head("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/#{CGI.escape(key).gsub('+', '%20')}")
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
# Download file — GET /api/storage/{bucket}/{key}
|
|
321
|
+
def download_file(bucket, key)
|
|
322
|
+
@http.get("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/#{CGI.escape(key).gsub('+', '%20')}")
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Delete file — DELETE /api/storage/{bucket}/{key}
|
|
326
|
+
def delete_file(bucket, key)
|
|
327
|
+
@http.delete("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/#{CGI.escape(key).gsub('+', '%20')}")
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Get uploaded parts — GET /api/storage/{bucket}/uploads/{uploadId}/parts
|
|
331
|
+
def get_upload_parts(bucket, upload_id, query: nil)
|
|
332
|
+
@http.get("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/uploads/#{CGI.escape(upload_id).gsub('+', '%20')}/parts", params: query)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# List files in bucket — GET /api/storage/{bucket}
|
|
336
|
+
def list_files(bucket)
|
|
337
|
+
@http.get("/storage/#{CGI.escape(bucket).gsub('+', '%20')}")
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Batch delete files — POST /api/storage/{bucket}/delete-batch
|
|
341
|
+
def delete_batch(bucket, body = nil)
|
|
342
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/delete-batch", body)
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
# Create signed download URL — POST /api/storage/{bucket}/signed-url
|
|
346
|
+
def create_signed_download_url(bucket, body = nil)
|
|
347
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/signed-url", body)
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Batch create signed download URLs — POST /api/storage/{bucket}/signed-urls
|
|
351
|
+
def create_signed_download_urls(bucket, body = nil)
|
|
352
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/signed-urls", body)
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Create signed upload URL — POST /api/storage/{bucket}/signed-upload-url
|
|
356
|
+
def create_signed_upload_url(bucket, body = nil)
|
|
357
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/signed-upload-url", body)
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Start multipart upload — POST /api/storage/{bucket}/multipart/create
|
|
361
|
+
def create_multipart_upload(bucket, body = nil)
|
|
362
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/multipart/create", body)
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# Upload a part — POST /api/storage/{bucket}/multipart/upload-part
|
|
366
|
+
def upload_part(bucket, body = nil)
|
|
367
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/multipart/upload-part", body)
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Complete multipart upload — POST /api/storage/{bucket}/multipart/complete
|
|
371
|
+
def complete_multipart_upload(bucket, body = nil)
|
|
372
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/multipart/complete", body)
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# Abort multipart upload — POST /api/storage/{bucket}/multipart/abort
|
|
376
|
+
def abort_multipart_upload(bucket, body = nil)
|
|
377
|
+
@http.post("/storage/#{CGI.escape(bucket).gsub('+', '%20')}/multipart/abort", body)
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Get public configuration — GET /api/config
|
|
381
|
+
def get_config()
|
|
382
|
+
@http.get("/config")
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# Register push token — POST /api/push/register
|
|
386
|
+
def push_register(body = nil)
|
|
387
|
+
@http.post("/push/register", body)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Unregister push token — POST /api/push/unregister
|
|
391
|
+
def push_unregister(body = nil)
|
|
392
|
+
@http.post("/push/unregister", body)
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# Subscribe token to topic — POST /api/push/topic/subscribe
|
|
396
|
+
def push_topic_subscribe(body = nil)
|
|
397
|
+
@http.post("/push/topic/subscribe", body)
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Unsubscribe token from topic — POST /api/push/topic/unsubscribe
|
|
401
|
+
def push_topic_unsubscribe(body = nil)
|
|
402
|
+
@http.post("/push/topic/unsubscribe", body)
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Check room WebSocket connection prerequisites — GET /api/room/connect-check
|
|
406
|
+
def check_room_connection(query: nil)
|
|
407
|
+
@http.get("/room/connect-check", params: query)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
# Connect to room WebSocket — GET /api/room
|
|
411
|
+
def connect_room(query: nil)
|
|
412
|
+
@http.get("/room", params: query)
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Get room metadata — GET /api/room/metadata
|
|
416
|
+
def get_room_metadata(query: nil)
|
|
417
|
+
@http.get("/room/metadata", params: query)
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Get the active room realtime media session — GET /api/room/media/realtime/session
|
|
421
|
+
def get_room_realtime_session(query: nil)
|
|
422
|
+
@http.get("/room/media/realtime/session", params: query)
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Create a room realtime media session — POST /api/room/media/realtime/session
|
|
426
|
+
def create_room_realtime_session(body = nil, query: nil)
|
|
427
|
+
@http.post("/room/media/realtime/session", body, params: query)
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Generate TURN / ICE credentials for room realtime media — POST /api/room/media/realtime/turn
|
|
431
|
+
def create_room_realtime_ice_servers(body = nil, query: nil)
|
|
432
|
+
@http.post("/room/media/realtime/turn", body, params: query)
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Add realtime media tracks to a room session — POST /api/room/media/realtime/tracks/new
|
|
436
|
+
def add_room_realtime_tracks(body = nil, query: nil)
|
|
437
|
+
@http.post("/room/media/realtime/tracks/new", body, params: query)
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# Renegotiate a room realtime media session — PUT /api/room/media/realtime/renegotiate
|
|
441
|
+
def renegotiate_room_realtime_session(body = nil, query: nil)
|
|
442
|
+
@http.put("/room/media/realtime/renegotiate", body, params: query)
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# Close room realtime media tracks — PUT /api/room/media/realtime/tracks/close
|
|
446
|
+
def close_room_realtime_tracks(body = nil, query: nil)
|
|
447
|
+
@http.put("/room/media/realtime/tracks/close", body, params: query)
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Track custom events — POST /api/analytics/track
|
|
451
|
+
def track_events(body = nil)
|
|
452
|
+
@http.post("/analytics/track", body)
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Count records in a single-instance table — GET /api/db/{namespace}/tables/{table}/count
|
|
456
|
+
def db_single_count_records(namespace, table, query: nil)
|
|
457
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/count", params: query)
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# Search records in a single-instance table — GET /api/db/{namespace}/tables/{table}/search
|
|
461
|
+
def db_single_search_records(namespace, table, query: nil)
|
|
462
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/search", params: query)
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Get a single record from a single-instance table — GET /api/db/{namespace}/tables/{table}/{id}
|
|
466
|
+
def db_single_get_record(namespace, table, id, query: nil)
|
|
467
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}", params: query)
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Update a record in a single-instance table — PATCH /api/db/{namespace}/tables/{table}/{id}
|
|
471
|
+
def db_single_update_record(namespace, table, id, body = nil)
|
|
472
|
+
@http.patch("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}", body)
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# Delete a record from a single-instance table — DELETE /api/db/{namespace}/tables/{table}/{id}
|
|
476
|
+
def db_single_delete_record(namespace, table, id)
|
|
477
|
+
@http.delete("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/#{CGI.escape(id).gsub('+', '%20')}")
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
# List records from a single-instance table — GET /api/db/{namespace}/tables/{table}
|
|
481
|
+
def db_single_list_records(namespace, table, query: nil)
|
|
482
|
+
@http.get("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}", params: query)
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
# Insert a record into a single-instance table — POST /api/db/{namespace}/tables/{table}
|
|
486
|
+
def db_single_insert_record(namespace, table, body = nil, query: nil)
|
|
487
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}", body, params: query)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Batch insert records into a single-instance table — POST /api/db/{namespace}/tables/{table}/batch
|
|
491
|
+
def db_single_batch_records(namespace, table, body = nil, query: nil)
|
|
492
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/batch", body, params: query)
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# Batch update/delete records by filter in a single-instance table — POST /api/db/{namespace}/tables/{table}/batch-by-filter
|
|
496
|
+
def db_single_batch_by_filter(namespace, table, body = nil, query: nil)
|
|
497
|
+
@http.post("/db/#{CGI.escape(namespace).gsub('+', '%20')}/tables/#{CGI.escape(table).gsub('+', '%20')}/batch-by-filter", body, params: query)
|
|
498
|
+
end
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
# Auto-generated path constants — DO NOT EDIT.
|
|
503
|
+
module ApiPaths
|
|
504
|
+
ADMIN_LOGIN = "/admin/api/auth/login"
|
|
505
|
+
ADMIN_REFRESH = "/admin/api/auth/refresh"
|
|
506
|
+
BACKUP_CLEANUP_PLUGIN = "/admin/api/backup/cleanup-plugin"
|
|
507
|
+
BACKUP_GET_CONFIG = "/admin/api/backup/config"
|
|
508
|
+
BACKUP_DUMP_CONTROL_D1 = "/admin/api/backup/dump-control-d1"
|
|
509
|
+
BACKUP_DUMP_D1 = "/admin/api/backup/dump-d1"
|
|
510
|
+
BACKUP_DUMP_DATA = "/admin/api/backup/dump-data"
|
|
511
|
+
BACKUP_DUMP_DO = "/admin/api/backup/dump-do"
|
|
512
|
+
BACKUP_DUMP_STORAGE = "/admin/api/backup/dump-storage"
|
|
513
|
+
BACKUP_LIST_DOS = "/admin/api/backup/list-dos"
|
|
514
|
+
BACKUP_RESTORE_CONTROL_D1 = "/admin/api/backup/restore-control-d1"
|
|
515
|
+
BACKUP_RESTORE_D1 = "/admin/api/backup/restore-d1"
|
|
516
|
+
BACKUP_RESTORE_DATA = "/admin/api/backup/restore-data"
|
|
517
|
+
BACKUP_RESTORE_DO = "/admin/api/backup/restore-do"
|
|
518
|
+
BACKUP_RESTORE_STORAGE = "/admin/api/backup/restore-storage"
|
|
519
|
+
BACKUP_RESYNC_USERS_PUBLIC = "/admin/api/backup/resync-users-public"
|
|
520
|
+
BACKUP_WIPE_DO = "/admin/api/backup/wipe-do"
|
|
521
|
+
ADMIN_LIST_ADMINS = "/admin/api/data/admins"
|
|
522
|
+
ADMIN_CREATE_ADMIN = "/admin/api/data/admins"
|
|
523
|
+
ADMIN_GET_ANALYTICS = "/admin/api/data/analytics"
|
|
524
|
+
ADMIN_GET_ANALYTICS_EVENTS = "/admin/api/data/analytics/events"
|
|
525
|
+
ADMIN_GET_AUTH_SETTINGS = "/admin/api/data/auth/settings"
|
|
526
|
+
ADMIN_BACKUP_GET_CONFIG = "/admin/api/data/backup/config"
|
|
527
|
+
ADMIN_BACKUP_DUMP_D1 = "/admin/api/data/backup/dump-d1"
|
|
528
|
+
ADMIN_BACKUP_DUMP_DO = "/admin/api/data/backup/dump-do"
|
|
529
|
+
ADMIN_BACKUP_LIST_DOS = "/admin/api/data/backup/list-dos"
|
|
530
|
+
ADMIN_BACKUP_RESTORE_D1 = "/admin/api/data/backup/restore-d1"
|
|
531
|
+
ADMIN_BACKUP_RESTORE_DO = "/admin/api/data/backup/restore-do"
|
|
532
|
+
ADMIN_CLEANUP_ANON = "/admin/api/data/cleanup-anon"
|
|
533
|
+
ADMIN_GET_CONFIG_INFO = "/admin/api/data/config-info"
|
|
534
|
+
ADMIN_GET_DEV_INFO = "/admin/api/data/dev-info"
|
|
535
|
+
ADMIN_GET_EMAIL_TEMPLATES = "/admin/api/data/email/templates"
|
|
536
|
+
ADMIN_LIST_FUNCTIONS = "/admin/api/data/functions"
|
|
537
|
+
ADMIN_GET_LOGS = "/admin/api/data/logs"
|
|
538
|
+
ADMIN_GET_RECENT_LOGS = "/admin/api/data/logs/recent"
|
|
539
|
+
ADMIN_GET_MONITORING = "/admin/api/data/monitoring"
|
|
540
|
+
ADMIN_GET_OVERVIEW = "/admin/api/data/overview"
|
|
541
|
+
ADMIN_GET_PUSH_LOGS = "/admin/api/data/push/logs"
|
|
542
|
+
ADMIN_TEST_PUSH_SEND = "/admin/api/data/push/test-send"
|
|
543
|
+
ADMIN_GET_PUSH_TOKENS = "/admin/api/data/push/tokens"
|
|
544
|
+
ADMIN_RULES_TEST = "/admin/api/data/rules-test"
|
|
545
|
+
ADMIN_GET_SCHEMA = "/admin/api/data/schema"
|
|
546
|
+
ADMIN_EXECUTE_SQL = "/admin/api/data/sql"
|
|
547
|
+
ADMIN_LIST_BUCKETS = "/admin/api/data/storage/buckets"
|
|
548
|
+
ADMIN_LIST_TABLES = "/admin/api/data/tables"
|
|
549
|
+
ADMIN_LIST_USERS = "/admin/api/data/users"
|
|
550
|
+
ADMIN_CREATE_USER = "/admin/api/data/users"
|
|
551
|
+
ADMIN_RESET_PASSWORD = "/admin/api/internal/reset-password"
|
|
552
|
+
ADMIN_SETUP = "/admin/api/setup"
|
|
553
|
+
ADMIN_SETUP_STATUS = "/admin/api/setup/status"
|
|
554
|
+
QUERY_CUSTOM_EVENTS = "/api/analytics/events"
|
|
555
|
+
QUERY_ANALYTICS = "/api/analytics/query"
|
|
556
|
+
TRACK_EVENTS = "/api/analytics/track"
|
|
557
|
+
ADMIN_AUTH_LIST_USERS = "/api/auth/admin/users"
|
|
558
|
+
ADMIN_AUTH_CREATE_USER = "/api/auth/admin/users"
|
|
559
|
+
ADMIN_AUTH_IMPORT_USERS = "/api/auth/admin/users/import"
|
|
560
|
+
AUTH_CHANGE_EMAIL = "/api/auth/change-email"
|
|
561
|
+
AUTH_CHANGE_PASSWORD = "/api/auth/change-password"
|
|
562
|
+
AUTH_GET_IDENTITIES = "/api/auth/identities"
|
|
563
|
+
AUTH_LINK_EMAIL = "/api/auth/link/email"
|
|
564
|
+
AUTH_LINK_PHONE = "/api/auth/link/phone"
|
|
565
|
+
AUTH_GET_ME = "/api/auth/me"
|
|
566
|
+
AUTH_MFA_FACTORS = "/api/auth/mfa/factors"
|
|
567
|
+
AUTH_MFA_RECOVERY = "/api/auth/mfa/recovery"
|
|
568
|
+
AUTH_MFA_TOTP_DELETE = "/api/auth/mfa/totp"
|
|
569
|
+
AUTH_MFA_TOTP_ENROLL = "/api/auth/mfa/totp/enroll"
|
|
570
|
+
AUTH_MFA_TOTP_VERIFY = "/api/auth/mfa/totp/verify"
|
|
571
|
+
AUTH_MFA_VERIFY = "/api/auth/mfa/verify"
|
|
572
|
+
AUTH_PASSKEYS_LIST = "/api/auth/passkeys"
|
|
573
|
+
AUTH_PASSKEYS_AUTH_OPTIONS = "/api/auth/passkeys/auth-options"
|
|
574
|
+
AUTH_PASSKEYS_AUTHENTICATE = "/api/auth/passkeys/authenticate"
|
|
575
|
+
AUTH_PASSKEYS_REGISTER = "/api/auth/passkeys/register"
|
|
576
|
+
AUTH_PASSKEYS_REGISTER_OPTIONS = "/api/auth/passkeys/register-options"
|
|
577
|
+
AUTH_UPDATE_PROFILE = "/api/auth/profile"
|
|
578
|
+
AUTH_REFRESH = "/api/auth/refresh"
|
|
579
|
+
AUTH_REQUEST_EMAIL_VERIFICATION = "/api/auth/request-email-verification"
|
|
580
|
+
AUTH_REQUEST_PASSWORD_RESET = "/api/auth/request-password-reset"
|
|
581
|
+
AUTH_RESET_PASSWORD = "/api/auth/reset-password"
|
|
582
|
+
AUTH_GET_SESSIONS = "/api/auth/sessions"
|
|
583
|
+
AUTH_SIGNIN = "/api/auth/signin"
|
|
584
|
+
AUTH_SIGNIN_ANONYMOUS = "/api/auth/signin/anonymous"
|
|
585
|
+
AUTH_SIGNIN_EMAIL_OTP = "/api/auth/signin/email-otp"
|
|
586
|
+
AUTH_SIGNIN_MAGIC_LINK = "/api/auth/signin/magic-link"
|
|
587
|
+
AUTH_SIGNIN_PHONE = "/api/auth/signin/phone"
|
|
588
|
+
AUTH_SIGNOUT = "/api/auth/signout"
|
|
589
|
+
AUTH_SIGNUP = "/api/auth/signup"
|
|
590
|
+
AUTH_VERIFY_EMAIL = "/api/auth/verify-email"
|
|
591
|
+
AUTH_VERIFY_EMAIL_CHANGE = "/api/auth/verify-email-change"
|
|
592
|
+
AUTH_VERIFY_EMAIL_OTP = "/api/auth/verify-email-otp"
|
|
593
|
+
AUTH_VERIFY_LINK_PHONE = "/api/auth/verify-link-phone"
|
|
594
|
+
AUTH_VERIFY_MAGIC_LINK = "/api/auth/verify-magic-link"
|
|
595
|
+
AUTH_VERIFY_PHONE = "/api/auth/verify-phone"
|
|
596
|
+
GET_CONFIG = "/api/config"
|
|
597
|
+
DATABASE_LIVE_BROADCAST = "/api/db/broadcast"
|
|
598
|
+
CHECK_DATABASE_SUBSCRIPTION_CONNECTION = "/api/db/connect-check"
|
|
599
|
+
CONNECT_DATABASE_SUBSCRIPTION = "/api/db/subscribe"
|
|
600
|
+
GET_HEALTH = "/api/health"
|
|
601
|
+
PUSH_BROADCAST = "/api/push/broadcast"
|
|
602
|
+
GET_PUSH_LOGS = "/api/push/logs"
|
|
603
|
+
PUSH_REGISTER = "/api/push/register"
|
|
604
|
+
PUSH_SEND = "/api/push/send"
|
|
605
|
+
PUSH_SEND_MANY = "/api/push/send-many"
|
|
606
|
+
PUSH_SEND_TO_TOKEN = "/api/push/send-to-token"
|
|
607
|
+
PUSH_SEND_TO_TOPIC = "/api/push/send-to-topic"
|
|
608
|
+
GET_PUSH_TOKENS = "/api/push/tokens"
|
|
609
|
+
PUT_PUSH_TOKENS = "/api/push/tokens"
|
|
610
|
+
PATCH_PUSH_TOKENS = "/api/push/tokens"
|
|
611
|
+
PUSH_TOPIC_SUBSCRIBE = "/api/push/topic/subscribe"
|
|
612
|
+
PUSH_TOPIC_UNSUBSCRIBE = "/api/push/topic/unsubscribe"
|
|
613
|
+
PUSH_UNREGISTER = "/api/push/unregister"
|
|
614
|
+
CONNECT_ROOM = "/api/room"
|
|
615
|
+
CHECK_ROOM_CONNECTION = "/api/room/connect-check"
|
|
616
|
+
RENEGOTIATE_ROOM_REALTIME_SESSION = "/api/room/media/realtime/renegotiate"
|
|
617
|
+
GET_ROOM_REALTIME_SESSION = "/api/room/media/realtime/session"
|
|
618
|
+
CREATE_ROOM_REALTIME_SESSION = "/api/room/media/realtime/session"
|
|
619
|
+
CLOSE_ROOM_REALTIME_TRACKS = "/api/room/media/realtime/tracks/close"
|
|
620
|
+
ADD_ROOM_REALTIME_TRACKS = "/api/room/media/realtime/tracks/new"
|
|
621
|
+
CREATE_ROOM_REALTIME_ICE_SERVERS = "/api/room/media/realtime/turn"
|
|
622
|
+
GET_ROOM_METADATA = "/api/room/metadata"
|
|
623
|
+
GET_SCHEMA = "/api/schema"
|
|
624
|
+
EXECUTE_SQL = "/api/sql"
|
|
625
|
+
|
|
626
|
+
def self.backup_export_table(name)
|
|
627
|
+
"/admin/api/backup/export/#{name}"
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
def self.admin_delete_admin(id)
|
|
631
|
+
"/admin/api/data/admins/#{id}"
|
|
632
|
+
end
|
|
633
|
+
|
|
634
|
+
def self.admin_change_password(id)
|
|
635
|
+
"/admin/api/data/admins/#{id}/password"
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
def self.admin_list_bucket_objects(name)
|
|
639
|
+
"/admin/api/data/storage/buckets/#{name}/objects"
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
def self.admin_get_bucket_object(name, key)
|
|
643
|
+
"/admin/api/data/storage/buckets/#{name}/objects/#{key}"
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
def self.admin_delete_bucket_object(name, key)
|
|
647
|
+
"/admin/api/data/storage/buckets/#{name}/objects/#{key}"
|
|
648
|
+
end
|
|
649
|
+
|
|
650
|
+
def self.admin_create_signed_url(name)
|
|
651
|
+
"/admin/api/data/storage/buckets/#{name}/signed-url"
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
def self.admin_get_bucket_stats(name)
|
|
655
|
+
"/admin/api/data/storage/buckets/#{name}/stats"
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
def self.admin_upload_file(name)
|
|
659
|
+
"/admin/api/data/storage/buckets/#{name}/upload"
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
def self.admin_export_table(name)
|
|
663
|
+
"/admin/api/data/tables/#{name}/export"
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
def self.admin_import_table(name)
|
|
667
|
+
"/admin/api/data/tables/#{name}/import"
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
def self.admin_get_table_records(name)
|
|
671
|
+
"/admin/api/data/tables/#{name}/records"
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
def self.admin_create_table_record(name)
|
|
675
|
+
"/admin/api/data/tables/#{name}/records"
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
def self.admin_update_table_record(name, id)
|
|
679
|
+
"/admin/api/data/tables/#{name}/records/#{id}"
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
def self.admin_delete_table_record(name, id)
|
|
683
|
+
"/admin/api/data/tables/#{name}/records/#{id}"
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
def self.admin_get_user(id)
|
|
687
|
+
"/admin/api/data/users/#{id}"
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
def self.admin_update_user(id)
|
|
691
|
+
"/admin/api/data/users/#{id}"
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
def self.admin_delete_user(id)
|
|
695
|
+
"/admin/api/data/users/#{id}"
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
def self.admin_delete_user_mfa(id)
|
|
699
|
+
"/admin/api/data/users/#{id}/mfa"
|
|
700
|
+
end
|
|
701
|
+
|
|
702
|
+
def self.admin_get_user_profile(id)
|
|
703
|
+
"/admin/api/data/users/#{id}/profile"
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
def self.admin_send_password_reset(id)
|
|
707
|
+
"/admin/api/data/users/#{id}/send-password-reset"
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
def self.admin_delete_user_sessions(id)
|
|
711
|
+
"/admin/api/data/users/#{id}/sessions"
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
def self.admin_auth_get_user(id)
|
|
715
|
+
"/api/auth/admin/users/#{id}"
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
def self.admin_auth_update_user(id)
|
|
719
|
+
"/api/auth/admin/users/#{id}"
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
def self.admin_auth_delete_user(id)
|
|
723
|
+
"/api/auth/admin/users/#{id}"
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
def self.admin_auth_set_claims(id)
|
|
727
|
+
"/api/auth/admin/users/#{id}/claims"
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
def self.admin_auth_delete_user_mfa(id)
|
|
731
|
+
"/api/auth/admin/users/#{id}/mfa"
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
def self.admin_auth_revoke_user_sessions(id)
|
|
735
|
+
"/api/auth/admin/users/#{id}/revoke"
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
def self.auth_delete_identity(identity_id)
|
|
739
|
+
"/api/auth/identities/#{identity_id}"
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
def self.oauth_redirect(provider)
|
|
743
|
+
"/api/auth/oauth/#{provider}"
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
def self.oauth_callback(provider)
|
|
747
|
+
"/api/auth/oauth/#{provider}/callback"
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
def self.oauth_link_start(provider)
|
|
751
|
+
"/api/auth/oauth/link/#{provider}"
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
def self.oauth_link_callback(provider)
|
|
755
|
+
"/api/auth/oauth/link/#{provider}/callback"
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
def self.auth_passkeys_delete(credential_id)
|
|
759
|
+
"/api/auth/passkeys/#{credential_id}"
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
def self.auth_delete_session(id)
|
|
763
|
+
"/api/auth/sessions/#{id}"
|
|
764
|
+
end
|
|
765
|
+
|
|
766
|
+
def self.execute_d1_query(database)
|
|
767
|
+
"/api/d1/#{database}"
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
def self.db_list_records(namespace, instance_id, table)
|
|
771
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}"
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
def self.db_insert_record(namespace, instance_id, table)
|
|
775
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}"
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
def self.db_get_record(namespace, instance_id, table, id)
|
|
779
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/#{id}"
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
def self.db_update_record(namespace, instance_id, table, id)
|
|
783
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/#{id}"
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
def self.db_delete_record(namespace, instance_id, table, id)
|
|
787
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/#{id}"
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
def self.db_batch_records(namespace, instance_id, table)
|
|
791
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/batch"
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
def self.db_batch_by_filter(namespace, instance_id, table)
|
|
795
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/batch-by-filter"
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
def self.db_count_records(namespace, instance_id, table)
|
|
799
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/count"
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
def self.db_search_records(namespace, instance_id, table)
|
|
803
|
+
"/api/db/#{namespace}/#{instance_id}/tables/#{table}/search"
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
def self.db_single_list_records(namespace, table)
|
|
807
|
+
"/api/db/#{namespace}/tables/#{table}"
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
def self.db_single_insert_record(namespace, table)
|
|
811
|
+
"/api/db/#{namespace}/tables/#{table}"
|
|
812
|
+
end
|
|
813
|
+
|
|
814
|
+
def self.db_single_get_record(namespace, table, id)
|
|
815
|
+
"/api/db/#{namespace}/tables/#{table}/#{id}"
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
def self.db_single_update_record(namespace, table, id)
|
|
819
|
+
"/api/db/#{namespace}/tables/#{table}/#{id}"
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
def self.db_single_delete_record(namespace, table, id)
|
|
823
|
+
"/api/db/#{namespace}/tables/#{table}/#{id}"
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
def self.db_single_batch_records(namespace, table)
|
|
827
|
+
"/api/db/#{namespace}/tables/#{table}/batch"
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
def self.db_single_batch_by_filter(namespace, table)
|
|
831
|
+
"/api/db/#{namespace}/tables/#{table}/batch-by-filter"
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
def self.db_single_count_records(namespace, table)
|
|
835
|
+
"/api/db/#{namespace}/tables/#{table}/count"
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
def self.db_single_search_records(namespace, table)
|
|
839
|
+
"/api/db/#{namespace}/tables/#{table}/search"
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
def self.kv_operation(namespace)
|
|
843
|
+
"/api/kv/#{namespace}"
|
|
844
|
+
end
|
|
845
|
+
|
|
846
|
+
def self.list_files(bucket)
|
|
847
|
+
"/api/storage/#{bucket}"
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
def self.check_file_exists(bucket, key)
|
|
851
|
+
"/api/storage/#{bucket}/#{key}"
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
def self.download_file(bucket, key)
|
|
855
|
+
"/api/storage/#{bucket}/#{key}"
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
def self.delete_file(bucket, key)
|
|
859
|
+
"/api/storage/#{bucket}/#{key}"
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
def self.get_file_metadata(bucket, key)
|
|
863
|
+
"/api/storage/#{bucket}/#{key}/metadata"
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
def self.update_file_metadata(bucket, key)
|
|
867
|
+
"/api/storage/#{bucket}/#{key}/metadata"
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
def self.delete_batch(bucket)
|
|
871
|
+
"/api/storage/#{bucket}/delete-batch"
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
def self.abort_multipart_upload(bucket)
|
|
875
|
+
"/api/storage/#{bucket}/multipart/abort"
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
def self.complete_multipart_upload(bucket)
|
|
879
|
+
"/api/storage/#{bucket}/multipart/complete"
|
|
880
|
+
end
|
|
881
|
+
|
|
882
|
+
def self.create_multipart_upload(bucket)
|
|
883
|
+
"/api/storage/#{bucket}/multipart/create"
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
def self.upload_part(bucket)
|
|
887
|
+
"/api/storage/#{bucket}/multipart/upload-part"
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
def self.create_signed_upload_url(bucket)
|
|
891
|
+
"/api/storage/#{bucket}/signed-upload-url"
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
def self.create_signed_download_url(bucket)
|
|
895
|
+
"/api/storage/#{bucket}/signed-url"
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
def self.create_signed_download_urls(bucket)
|
|
899
|
+
"/api/storage/#{bucket}/signed-urls"
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
def self.upload_file(bucket)
|
|
903
|
+
"/api/storage/#{bucket}/upload"
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
def self.get_upload_parts(bucket, upload_id)
|
|
907
|
+
"/api/storage/#{bucket}/uploads/#{upload_id}/parts"
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
def self.vectorize_operation(index)
|
|
911
|
+
"/api/vectorize/#{index}"
|
|
912
|
+
end
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
end
|