fusio-sdk 7.0.11 → 7.0.13

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.
package/README.md CHANGED
@@ -1,6 +1,842 @@
1
-
2
- # Fusio SDK
3
-
4
- This Javascript library helps to talk to the Fusio (https://www.fusio-project.org/)
5
- API. It uses the automatically generated typescript definition of the Fusio
6
- backend. Please take a look at the `./examples` folder to see how you can use the SDK.
1
+
2
+ # fusio-sdk-javascript
3
+
4
+ This [SDK](https://github.com/apioo/fusio-sdk-javascript) is managed by the [SDK Fabric](https://sdk-fabric.org/) project, a global infrastructure to
5
+ automatically generate SDKs for every API.
6
+
7
+ You can find more information about this SDK at [TypeHub](https://typehub.cloud/):
8
+ https://app.typehub.cloud/d/fusio/sdk
9
+
10
+ ## Usage
11
+
12
+ ```typescript
13
+ const client = Client::build('[access_token]');
14
+
15
+ // Returns user data of the current authenticated user.
16
+ const response = await client.authorization().getWhoami();
17
+
18
+ // Revoke the access token of the current authenticated user.
19
+ const response = await client.authorization().revoke();
20
+
21
+ // Changes the password of the authenticated user.
22
+ const response = await client.backend().account().changePassword(new Backend_AccountChangePassword());
23
+
24
+ // Returns user data of the authenticated user.
25
+ const response = await client.backend().account().get();
26
+
27
+ // Updates user data of the authenticated user.
28
+ const response = await client.backend().account().update(new Backend_UserUpdate());
29
+
30
+ // Creates a new action.
31
+ const response = await client.backend().action().create(new Backend_ActionCreate());
32
+
33
+ // Deletes an existing action.
34
+ const response = await client.backend().action().delete("action_id");
35
+
36
+ // Executes a specific action.
37
+ const response = await client.backend().action().execute("action_id", new Backend_ActionExecuteRequest());
38
+
39
+ // Returns a specific action.
40
+ const response = await client.backend().action().get("action_id");
41
+
42
+ // Returns a paginated list of actions.
43
+ const response = await client.backend().action().getAll(1, 1, "search");
44
+
45
+ // Returns all available action classes.
46
+ const response = await client.backend().action().getClasses();
47
+
48
+ // Returns a paginated list of action commits.
49
+ const response = await client.backend().action().getCommits("action_id", 1, 1, "search");
50
+
51
+ // Returns the action config form.
52
+ const response = await client.backend().action().getForm("class");
53
+
54
+ // Updates an existing action.
55
+ const response = await client.backend().action().update("action_id", new Backend_ActionUpdate());
56
+
57
+ // Creates a new agent.
58
+ const response = await client.backend().agent().create(new Backend_AgentCreate());
59
+
60
+ // Deletes an existing agent.
61
+ const response = await client.backend().agent().delete("agent_id");
62
+
63
+ // Returns a specific agent.
64
+ const response = await client.backend().agent().get("agent_id");
65
+
66
+ // Returns a paginated list of agents.
67
+ const response = await client.backend().agent().getAll(1, 1, "search");
68
+
69
+ // Returns available tools for an agent.
70
+ const response = await client.backend().agent().getTools();
71
+
72
+ // Returns a paginated list of agent messages.
73
+ const response = await client.backend().agent().message().getAll("agent_id", "chat_id");
74
+
75
+ // Submits a new agent message.
76
+ const response = await client.backend().agent().message().submit("agent_id", new Agent_Input());
77
+
78
+ // Updates an existing agent.
79
+ const response = await client.backend().agent().update("agent_id", new Backend_AgentUpdate());
80
+
81
+ // Creates a new app.
82
+ const response = await client.backend().app().create(new Backend_AppCreate());
83
+
84
+ // Deletes an existing app.
85
+ const response = await client.backend().app().delete("app_id");
86
+
87
+ // Deletes an existing token from an app.
88
+ const response = await client.backend().app().deleteToken("app_id", "token_id");
89
+
90
+ // Returns a specific app.
91
+ const response = await client.backend().app().get("app_id");
92
+
93
+ // Returns a paginated list of apps.
94
+ const response = await client.backend().app().getAll(1, 1, "search");
95
+
96
+ // Updates an existing app.
97
+ const response = await client.backend().app().update("app_id", new Backend_AppUpdate());
98
+
99
+ // Returns a specific audit.
100
+ const response = await client.backend().audit().get("audit_id");
101
+
102
+ // Returns a paginated list of audits.
103
+ const response = await client.backend().audit().getAll(1, 1, "search", "from", "to", 1, 1, "event", "ip", "message");
104
+
105
+ // Generates an backup of the current system.
106
+ const response = await client.backend().backup().export();
107
+
108
+ // Imports an backup to the current system.
109
+ const response = await client.backend().backup().import(new Backend_BackupImport());
110
+
111
+ // Creates a new bundle.
112
+ const response = await client.backend().bundle().create(new Backend_BundleCreate());
113
+
114
+ // Deletes an existing bundle.
115
+ const response = await client.backend().bundle().delete("bundle_id");
116
+
117
+ // Returns a specific bundle.
118
+ const response = await client.backend().bundle().get("bundle_id");
119
+
120
+ // Returns a paginated list of bundles.
121
+ const response = await client.backend().bundle().getAll(1, 1, "search");
122
+
123
+ // Publish an existing bundle to the marketplace.
124
+ const response = await client.backend().bundle().publish("bundle_id");
125
+
126
+ // Updates an existing bundle.
127
+ const response = await client.backend().bundle().update("bundle_id", new Backend_BundleUpdate());
128
+
129
+ // Creates a new category.
130
+ const response = await client.backend().category().create(new Backend_CategoryCreate());
131
+
132
+ // Deletes an existing category.
133
+ const response = await client.backend().category().delete("category_id");
134
+
135
+ // Returns a specific category.
136
+ const response = await client.backend().category().get("category_id");
137
+
138
+ // Returns a paginated list of categories.
139
+ const response = await client.backend().category().getAll(1, 1, "search");
140
+
141
+ // Updates an existing category.
142
+ const response = await client.backend().category().update("category_id", new Backend_CategoryUpdate());
143
+
144
+ // Returns a specific config.
145
+ const response = await client.backend().config().get("config_id");
146
+
147
+ // Returns a paginated list of configuration values.
148
+ const response = await client.backend().config().getAll(1, 1, "search");
149
+
150
+ // Updates an existing config value.
151
+ const response = await client.backend().config().update("config_id", new Backend_ConfigUpdate());
152
+
153
+ // Sends a message to an agent.
154
+ const response = await client.backend().connection().agent().send("connection_id", new Agent_Input());
155
+
156
+ // Creates a new connection.
157
+ const response = await client.backend().connection().create(new Backend_ConnectionCreate());
158
+
159
+ // Creates a new row at a table on a database.
160
+ const response = await client.backend().connection().database().createRow("connection_id", "table_name", new Backend_DatabaseRow());
161
+
162
+ // Creates a new table on a database.
163
+ const response = await client.backend().connection().database().createTable("connection_id", new Backend_DatabaseTable());
164
+
165
+ // Deletes an existing row at a table on a database.
166
+ const response = await client.backend().connection().database().deleteRow("connection_id", "table_name", "id");
167
+
168
+ // Deletes an existing table on a database.
169
+ const response = await client.backend().connection().database().deleteTable("connection_id", "table_name");
170
+
171
+ // Returns a specific row at a table on a database.
172
+ const response = await client.backend().connection().database().getRow("connection_id", "table_name", "id");
173
+
174
+ // Returns paginated rows at a table on a database.
175
+ const response = await client.backend().connection().database().getRows("connection_id", "table_name", 1, 1, "filterBy", "filterOp", "filterValue", "sortBy", "sortOrder", "columns");
176
+
177
+ // Returns the schema of a specific table on a database.
178
+ const response = await client.backend().connection().database().getTable("connection_id", "table_name");
179
+
180
+ // Returns all available tables on a database.
181
+ const response = await client.backend().connection().database().getTables("connection_id", 1, 1);
182
+
183
+ // Updates an existing row at a table on a database.
184
+ const response = await client.backend().connection().database().updateRow("connection_id", "table_name", "id", new Backend_DatabaseRow());
185
+
186
+ // Updates an existing table on a database.
187
+ const response = await client.backend().connection().database().updateTable("connection_id", "table_name", new Backend_DatabaseTable());
188
+
189
+ // Deletes an existing connection.
190
+ const response = await client.backend().connection().delete("connection_id");
191
+
192
+ // Uploads one or more files on the filesystem connection.
193
+ const response = await client.backend().connection().filesystem().create("connection_id", new any());
194
+
195
+ // Deletes an existing file on the filesystem connection.
196
+ const response = await client.backend().connection().filesystem().delete("connection_id", "file_id");
197
+
198
+ // Returns the content of the provided file id on the filesystem connection.
199
+ await client.backend().connection().filesystem().get("connection_id", "file_id");
200
+
201
+ // Returns all available files on the filesystem connection.
202
+ const response = await client.backend().connection().filesystem().getAll("connection_id", 1, 1);
203
+
204
+ // Updates an existing file on the filesystem connection.
205
+ const response = await client.backend().connection().filesystem().update("connection_id", "file_id", new any());
206
+
207
+ // Returns a specific connection.
208
+ const response = await client.backend().connection().get("connection_id");
209
+
210
+ // Returns a paginated list of connections.
211
+ const response = await client.backend().connection().getAll(1, 1, "search", "class");
212
+
213
+ // Returns all available connection classes.
214
+ const response = await client.backend().connection().getClasses();
215
+
216
+ // Returns the connection config form.
217
+ const response = await client.backend().connection().getForm("class");
218
+
219
+ // Returns a redirect url to start the OAuth2 authorization flow for the given connection.
220
+ const response = await client.backend().connection().getRedirect("connection_id");
221
+
222
+ // Sends an arbitrary HTTP request to the connection.
223
+ const response = await client.backend().connection().http().execute("connection_id", new Backend_HttpRequest());
224
+
225
+ // Returns the SDK specification.
226
+ const response = await client.backend().connection().sdk().get("connection_id");
227
+
228
+ // Updates an existing connection.
229
+ const response = await client.backend().connection().update("connection_id", new Backend_ConnectionUpdate());
230
+
231
+ // Creates a new cronjob.
232
+ const response = await client.backend().cronjob().create(new Backend_CronjobCreate());
233
+
234
+ // Deletes an existing cronjob.
235
+ const response = await client.backend().cronjob().delete("cronjob_id");
236
+
237
+ // Returns a specific cronjob.
238
+ const response = await client.backend().cronjob().get("cronjob_id");
239
+
240
+ // Returns a paginated list of cronjobs.
241
+ const response = await client.backend().cronjob().getAll(1, 1, "search", 1);
242
+
243
+ // Updates an existing cronjob.
244
+ const response = await client.backend().cronjob().update("cronjob_id", new Backend_CronjobUpdate());
245
+
246
+ // Returns all available dashboard widgets.
247
+ const response = await client.backend().dashboard().getAll();
248
+
249
+ // Creates a new event.
250
+ const response = await client.backend().event().create(new Backend_EventCreate());
251
+
252
+ // Deletes an existing event.
253
+ const response = await client.backend().event().delete("event_id");
254
+
255
+ // Returns a specific event.
256
+ const response = await client.backend().event().get("event_id");
257
+
258
+ // Returns a paginated list of events.
259
+ const response = await client.backend().event().getAll(1, 1, "search", 1);
260
+
261
+ // Updates an existing event.
262
+ const response = await client.backend().event().update("event_id", new Backend_EventUpdate());
263
+
264
+ // Creates a new firewall rule.
265
+ const response = await client.backend().firewall().create(new Backend_FirewallCreate());
266
+
267
+ // Deletes an existing firewall rule.
268
+ const response = await client.backend().firewall().delete("firewall_id");
269
+
270
+ // Returns a specific firewall rule.
271
+ const response = await client.backend().firewall().get("firewall_id");
272
+
273
+ // Returns a paginated list of firewall rules.
274
+ const response = await client.backend().firewall().getAll(1, 1, "search");
275
+
276
+ // Updates an existing firewall rule.
277
+ const response = await client.backend().firewall().update("firewall_id", new Backend_FirewallUpdate());
278
+
279
+ // Creates a new form.
280
+ const response = await client.backend().form().create(new Backend_FormCreate());
281
+
282
+ // Deletes an existing form.
283
+ const response = await client.backend().form().delete("form_id");
284
+
285
+ // Returns a specific form.
286
+ const response = await client.backend().form().get("form_id");
287
+
288
+ // Returns a paginated list of forms.
289
+ const response = await client.backend().form().getAll(1, 1, "search");
290
+
291
+ // Updates an existing form.
292
+ const response = await client.backend().form().update("form_id", new Backend_FormUpdate());
293
+
294
+ // Executes a generator with the provided config.
295
+ const response = await client.backend().generator().executeProvider("provider", new Backend_GeneratorProvider());
296
+
297
+ // Generates a changelog of all potential changes if you execute this generator with the provided config.
298
+ const response = await client.backend().generator().getChangelog("provider", new Backend_GeneratorProviderConfig());
299
+
300
+ // Returns all available generator classes.
301
+ const response = await client.backend().generator().getClasses();
302
+
303
+ // Returns the generator config form.
304
+ const response = await client.backend().generator().getForm("provider");
305
+
306
+ // Creates a new identity.
307
+ const response = await client.backend().identity().create(new Backend_IdentityCreate());
308
+
309
+ // Deletes an existing identity.
310
+ const response = await client.backend().identity().delete("identity_id");
311
+
312
+ // Returns a specific identity.
313
+ const response = await client.backend().identity().get("identity_id");
314
+
315
+ // Returns a paginated list of identities.
316
+ const response = await client.backend().identity().getAll(1, 1, "search");
317
+
318
+ // Returns all available identity classes.
319
+ const response = await client.backend().identity().getClasses();
320
+
321
+ // Returns the identity config form.
322
+ const response = await client.backend().identity().getForm("class");
323
+
324
+ // Updates an existing identity.
325
+ const response = await client.backend().identity().update("identity_id", new Backend_IdentityUpdate());
326
+
327
+ // Returns a specific log.
328
+ const response = await client.backend().log().get("log_id");
329
+
330
+ // Returns a paginated list of logs.
331
+ const response = await client.backend().log().getAll(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
332
+
333
+ // Returns a paginated list of log errors.
334
+ const response = await client.backend().log().getAllErrors(1, 1, "search");
335
+
336
+ // Returns a specific error.
337
+ const response = await client.backend().log().getError("error_id");
338
+
339
+ // Returns a specific marketplace action.
340
+ const response = await client.backend().marketplace().action().get("user", "name");
341
+
342
+ // Returns a paginated list of marketplace actions.
343
+ const response = await client.backend().marketplace().action().getAll(1, "query");
344
+
345
+ // Installs an action from the marketplace.
346
+ const response = await client.backend().marketplace().action().install(new MarketplaceInstall());
347
+
348
+ // Upgrades an action from the marketplace.
349
+ const response = await client.backend().marketplace().action().upgrade("user", "name");
350
+
351
+ // Returns a specific marketplace app.
352
+ const response = await client.backend().marketplace().app().get("user", "name");
353
+
354
+ // Returns a paginated list of marketplace apps.
355
+ const response = await client.backend().marketplace().app().getAll(1, "query");
356
+
357
+ // Installs an app from the marketplace.
358
+ const response = await client.backend().marketplace().app().install(new MarketplaceInstall());
359
+
360
+ // Upgrades an app from the marketplace.
361
+ const response = await client.backend().marketplace().app().upgrade("user", "name");
362
+
363
+ // Returns a specific marketplace bundle.
364
+ const response = await client.backend().marketplace().bundle().get("user", "name");
365
+
366
+ // Returns a paginated list of marketplace bundles.
367
+ const response = await client.backend().marketplace().bundle().getAll(1, "query");
368
+
369
+ // Installs an bundle from the marketplace.
370
+ const response = await client.backend().marketplace().bundle().install(new MarketplaceInstall());
371
+
372
+ // Upgrades an bundle from the marketplace.
373
+ const response = await client.backend().marketplace().bundle().upgrade("user", "name");
374
+
375
+ // Creates a new operation.
376
+ const response = await client.backend().operation().create(new Backend_OperationCreate());
377
+
378
+ // Deletes an existing operation.
379
+ const response = await client.backend().operation().delete("operation_id");
380
+
381
+ // Returns a specific operation.
382
+ const response = await client.backend().operation().get("operation_id");
383
+
384
+ // Returns a paginated list of operations.
385
+ const response = await client.backend().operation().getAll(1, 1, "search", 1);
386
+
387
+ // Updates an existing operation.
388
+ const response = await client.backend().operation().update("operation_id", new Backend_OperationUpdate());
389
+
390
+ // Creates a new page.
391
+ const response = await client.backend().page().create(new Backend_PageCreate());
392
+
393
+ // Deletes an existing page.
394
+ const response = await client.backend().page().delete("page_id");
395
+
396
+ // Returns a specific page.
397
+ const response = await client.backend().page().get("page_id");
398
+
399
+ // Returns a paginated list of pages.
400
+ const response = await client.backend().page().getAll(1, 1, "search");
401
+
402
+ // Updates an existing page.
403
+ const response = await client.backend().page().update("page_id", new Backend_PageUpdate());
404
+
405
+ // Creates a new plan.
406
+ const response = await client.backend().plan().create(new Backend_PlanCreate());
407
+
408
+ // Deletes an existing plan.
409
+ const response = await client.backend().plan().delete("plan_id");
410
+
411
+ // Returns a specific plan.
412
+ const response = await client.backend().plan().get("plan_id");
413
+
414
+ // Returns a paginated list of plans.
415
+ const response = await client.backend().plan().getAll(1, 1, "search");
416
+
417
+ // Updates an existing plan.
418
+ const response = await client.backend().plan().update("plan_id", new Backend_PlanUpdate());
419
+
420
+ // Creates a new rate limitation.
421
+ const response = await client.backend().rate().create(new Backend_RateCreate());
422
+
423
+ // Deletes an existing rate.
424
+ const response = await client.backend().rate().delete("rate_id");
425
+
426
+ // Returns a specific rate.
427
+ const response = await client.backend().rate().get("rate_id");
428
+
429
+ // Returns a paginated list of rate limitations.
430
+ const response = await client.backend().rate().getAll(1, 1, "search");
431
+
432
+ // Updates an existing rate.
433
+ const response = await client.backend().rate().update("rate_id", new Backend_RateUpdate());
434
+
435
+ // Creates a new role.
436
+ const response = await client.backend().role().create(new Backend_RoleCreate());
437
+
438
+ // Deletes an existing role.
439
+ const response = await client.backend().role().delete("role_id");
440
+
441
+ // Returns a specific role.
442
+ const response = await client.backend().role().get("role_id");
443
+
444
+ // Returns a paginated list of roles.
445
+ const response = await client.backend().role().getAll(1, 1, "search");
446
+
447
+ // Updates an existing role.
448
+ const response = await client.backend().role().update("role_id", new Backend_RoleUpdate());
449
+
450
+ // Creates a new schema.
451
+ const response = await client.backend().schema().create(new Backend_SchemaCreate());
452
+
453
+ // Deletes an existing schema.
454
+ const response = await client.backend().schema().delete("schema_id");
455
+
456
+ // Returns a specific schema.
457
+ const response = await client.backend().schema().get("schema_id");
458
+
459
+ // Returns a paginated list of schemas.
460
+ const response = await client.backend().schema().getAll(1, 1, "search", 1);
461
+
462
+ // Returns a paginated list of schema commits.
463
+ const response = await client.backend().schema().getCommits("schema_id", 1, 1, "search");
464
+
465
+ // Returns a HTML preview of the provided schema.
466
+ const response = await client.backend().schema().getPreview("schema_id");
467
+
468
+ // Updates an existing schema.
469
+ const response = await client.backend().schema().update("schema_id", new Backend_SchemaUpdate());
470
+
471
+ // Creates a new scope.
472
+ const response = await client.backend().scope().create(new Backend_ScopeCreate());
473
+
474
+ // Deletes an existing scope.
475
+ const response = await client.backend().scope().delete("scope_id");
476
+
477
+ // Returns a specific scope.
478
+ const response = await client.backend().scope().get("scope_id");
479
+
480
+ // Returns a paginated list of scopes.
481
+ const response = await client.backend().scope().getAll(1, 1, "search");
482
+
483
+ // Returns all available scopes grouped by category.
484
+ const response = await client.backend().scope().getCategories();
485
+
486
+ // Updates an existing scope.
487
+ const response = await client.backend().scope().update("scope_id", new Backend_ScopeUpdate());
488
+
489
+ // Generates a specific SDK.
490
+ const response = await client.backend().sdk().generate(new Backend_SdkGenerate());
491
+
492
+ // Returns a paginated list of SDKs.
493
+ const response = await client.backend().sdk().getAll();
494
+
495
+ // Returns the TypeHub specification.
496
+ const response = await client.backend().specification().get();
497
+
498
+ // Returns the changelog between your current specification and the last tag.
499
+ const response = await client.backend().specification().getChangelog();
500
+
501
+ // Publish the specification.
502
+ const response = await client.backend().specification().publish(new Backend_SpecificationPublish());
503
+
504
+ // Creates a new tag of your specification.
505
+ const response = await client.backend().specification().tag(new Passthru());
506
+
507
+ // Returns a statistic containing the activities per user.
508
+ const response = await client.backend().statistic().getActivitiesPerUser(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
509
+
510
+ // Returns a statistic containing the request count.
511
+ const response = await client.backend().statistic().getCountRequests(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
512
+
513
+ // Returns a statistic containing the errors per operation.
514
+ const response = await client.backend().statistic().getErrorsPerOperation(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
515
+
516
+ // Returns a statistic containing the incoming requests.
517
+ const response = await client.backend().statistic().getIncomingRequests(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
518
+
519
+ // Returns a statistic containing the incoming transactions.
520
+ const response = await client.backend().statistic().getIncomingTransactions(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
521
+
522
+ // Returns a statistic containing the issues tokens.
523
+ const response = await client.backend().statistic().getIssuedTokens(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
524
+
525
+ // Returns a statistic containing the most used activities.
526
+ const response = await client.backend().statistic().getMostUsedActivities(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
527
+
528
+ // Returns a statistic containing the most used apps.
529
+ const response = await client.backend().statistic().getMostUsedApps(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
530
+
531
+ // Returns a statistic containing the most used operations.
532
+ const response = await client.backend().statistic().getMostUsedOperations(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
533
+
534
+ // Returns a statistic containing the requests per ip.
535
+ const response = await client.backend().statistic().getRequestsPerIP(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
536
+
537
+ // Returns a statistic containing the requests per operation.
538
+ const response = await client.backend().statistic().getRequestsPerOperation(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
539
+
540
+ // Returns a statistic containing the requests per user.
541
+ const response = await client.backend().statistic().getRequestsPerUser(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
542
+
543
+ // Returns a statistic containing the test coverage.
544
+ const response = await client.backend().statistic().getTestCoverage();
545
+
546
+ // Returns a statistic containing the time average.
547
+ const response = await client.backend().statistic().getTimeAverage(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
548
+
549
+ // Returns a statistic containing the time per operation.
550
+ const response = await client.backend().statistic().getTimePerOperation(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
551
+
552
+ // Returns a statistic containing the used points.
553
+ const response = await client.backend().statistic().getUsedPoints(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
554
+
555
+ // Returns a statistic containing the user registrations.
556
+ const response = await client.backend().statistic().getUserRegistrations(1, 1, "search", "from", "to", 1, 1, 1, "ip", "userAgent", "method", "path", "header", "body");
557
+
558
+ // Creates a new taxonomy.
559
+ const response = await client.backend().taxonomy().create(new Backend_TaxonomyCreate());
560
+
561
+ // Deletes an existing taxonomy.
562
+ const response = await client.backend().taxonomy().delete("taxonomy_id");
563
+
564
+ // Returns a specific taxonomy.
565
+ const response = await client.backend().taxonomy().get("taxonomy_id");
566
+
567
+ // Returns a paginated list of taxonomies.
568
+ const response = await client.backend().taxonomy().getAll(1, 1, "search");
569
+
570
+ // Moves the provided ids to the taxonomy.
571
+ const response = await client.backend().taxonomy().move("taxonomy_id", new Backend_TaxonomyMove());
572
+
573
+ // Updates an existing taxonomy.
574
+ const response = await client.backend().taxonomy().update("taxonomy_id", new Backend_TaxonomyUpdate());
575
+
576
+ // Removes an existing tenant.
577
+ const response = await client.backend().tenant().remove("tenant_id");
578
+
579
+ // Setup a new tenant.
580
+ const response = await client.backend().tenant().setup("tenant_id");
581
+
582
+ // Returns a specific test.
583
+ const response = await client.backend().test().get("test_id");
584
+
585
+ // Returns a paginated list of tests.
586
+ const response = await client.backend().test().getAll(1, 1, "search");
587
+
588
+ // Refresh all tests.
589
+ const response = await client.backend().test().refresh();
590
+
591
+ // Run all tests.
592
+ const response = await client.backend().test().run();
593
+
594
+ // Updates an existing test.
595
+ const response = await client.backend().test().update("test_id", new Backend_Test());
596
+
597
+ // Returns a specific token.
598
+ const response = await client.backend().token().get("token_id");
599
+
600
+ // Returns a paginated list of tokens.
601
+ const response = await client.backend().token().getAll(1, 1, "search", "from", "to", 1, 1, 1, "scope", "ip");
602
+
603
+ // Returns a specific transaction.
604
+ const response = await client.backend().transaction().get("transaction_id");
605
+
606
+ // Returns a paginated list of transactions.
607
+ const response = await client.backend().transaction().getAll(1, 1, "search", "from", "to", 1, 1, 1, "status", "provider", 1);
608
+
609
+ // Returns all deleted records by trash type.
610
+ const response = await client.backend().trash().getAllByType("type", 1, 1, "search");
611
+
612
+ // Returns all trash types.
613
+ const response = await client.backend().trash().getTypes();
614
+
615
+ // Restores a previously deleted record.
616
+ const response = await client.backend().trash().restore("type", new Backend_TrashRestore());
617
+
618
+ // Creates a new trigger.
619
+ const response = await client.backend().trigger().create(new Backend_TriggerCreate());
620
+
621
+ // Deletes an existing trigger.
622
+ const response = await client.backend().trigger().delete("trigger_id");
623
+
624
+ // Returns a specific trigger.
625
+ const response = await client.backend().trigger().get("trigger_id");
626
+
627
+ // Returns a paginated list of triggers.
628
+ const response = await client.backend().trigger().getAll(1, 1, "search", 1);
629
+
630
+ // Updates an existing trigger.
631
+ const response = await client.backend().trigger().update("trigger_id", new Backend_TriggerUpdate());
632
+
633
+ // Creates a new user.
634
+ const response = await client.backend().user().create(new Backend_UserCreate());
635
+
636
+ // Deletes an existing user.
637
+ const response = await client.backend().user().delete("user_id");
638
+
639
+ // Returns a specific user.
640
+ const response = await client.backend().user().get("user_id");
641
+
642
+ // Returns a paginated list of users.
643
+ const response = await client.backend().user().getAll(1, 1, "search");
644
+
645
+ // Resend the activation mail to the provided user.
646
+ const response = await client.backend().user().resend("user_id", new Passthru());
647
+
648
+ // Updates an existing user.
649
+ const response = await client.backend().user().update("user_id", new Backend_UserUpdate());
650
+
651
+ // Creates a new webhook.
652
+ const response = await client.backend().webhook().create(new Backend_WebhookCreate());
653
+
654
+ // Deletes an existing webhook.
655
+ const response = await client.backend().webhook().delete("webhook_id");
656
+
657
+ // Returns a specific webhook.
658
+ const response = await client.backend().webhook().get("webhook_id");
659
+
660
+ // Returns a paginated list of webhooks.
661
+ const response = await client.backend().webhook().getAll(1, 1, "search");
662
+
663
+ // Updates an existing webhook.
664
+ const response = await client.backend().webhook().update("webhook_id", new Backend_WebhookUpdate());
665
+
666
+ // Activates an previously registered account through a token which was provided to the user via email.
667
+ const response = await client.consumer().account().activate(new Consumer_UserActivate());
668
+
669
+ // Authorizes the access of a specific app for the authenticated user.
670
+ const response = await client.consumer().account().authorize(new Consumer_AuthorizeRequest());
671
+
672
+ // Change the password for the authenticated user.
673
+ const response = await client.consumer().account().changePassword(new Backend_AccountChangePassword());
674
+
675
+ // Change the password after the password reset flow was started.
676
+ const response = await client.consumer().account().executePasswordReset(new Consumer_UserPasswordReset());
677
+
678
+ // Returns a user data for the authenticated user.
679
+ const response = await client.consumer().account().get();
680
+
681
+ // Returns information about a specific app to start the OAuth2 authorization code flow.
682
+ const response = await client.consumer().account().getApp("client_id", "scope");
683
+
684
+ // User login by providing a username and password.
685
+ const response = await client.consumer().account().login(new Consumer_UserLogin());
686
+
687
+ // Refresh a previously obtained access token.
688
+ const response = await client.consumer().account().refresh(new Consumer_UserRefresh());
689
+
690
+ // Register a new user account.
691
+ const response = await client.consumer().account().register(new Consumer_UserRegister());
692
+
693
+ // Start the password reset flow.
694
+ const response = await client.consumer().account().requestPasswordReset(new Consumer_UserEmail());
695
+
696
+ // Updates user data for the authenticated user.
697
+ const response = await client.consumer().account().update(new Consumer_UserAccount());
698
+
699
+ // Returns a specific agent.
700
+ const response = await client.consumer().agent().get("agent_id");
701
+
702
+ // Returns a paginated list of agents.
703
+ const response = await client.consumer().agent().getAll(1, 1, "search");
704
+
705
+ // Returns a paginated list of agent messages.
706
+ const response = await client.consumer().agent().message().getAll("agent_id", "chat_id");
707
+
708
+ // Submits a new agent message.
709
+ const response = await client.consumer().agent().message().submit("agent_id", new Agent_Input());
710
+
711
+ // Creates a new app for the authenticated user.
712
+ const response = await client.consumer().app().create(new Consumer_AppCreate());
713
+
714
+ // Deletes an existing app for the authenticated user.
715
+ const response = await client.consumer().app().delete("app_id");
716
+
717
+ // Returns a specific app for the authenticated user.
718
+ const response = await client.consumer().app().get("app_id");
719
+
720
+ // Returns a paginated list of apps which are assigned to the authenticated user.
721
+ const response = await client.consumer().app().getAll(1, 1, "search");
722
+
723
+ // Updates an existing app for the authenticated user.
724
+ const response = await client.consumer().app().update("app_id", new Consumer_AppUpdate());
725
+
726
+ // Returns a specific event for the authenticated user.
727
+ const response = await client.consumer().event().get("event_id");
728
+
729
+ // Returns a paginated list of apps which are assigned to the authenticated user.
730
+ const response = await client.consumer().event().getAll(1, 1, "search");
731
+
732
+ // Returns a specific form for the authenticated user.
733
+ const response = await client.consumer().form().get("form_id");
734
+
735
+ // Returns a paginated list of forms which are relevant to the authenticated user.
736
+ const response = await client.consumer().form().getAll(1, 1, "search");
737
+
738
+ // Deletes an existing grant for an app which was created by the authenticated user.
739
+ const response = await client.consumer().grant().delete("grant_id");
740
+
741
+ // Returns a paginated list of grants which are assigned to the authenticated user.
742
+ const response = await client.consumer().grant().getAll(1, 1, "search");
743
+
744
+ // Identity callback endpoint to exchange an access token.
745
+ const response = await client.consumer().identity().exchange("identity");
746
+
747
+ // Returns a paginated list of identities which are relevant to the authenticated user.
748
+ const response = await client.consumer().identity().getAll(1, "appKey");
749
+
750
+ // Redirect the user to the configured identity provider.
751
+ const response = await client.consumer().identity().redirect("identity");
752
+
753
+ // Returns a specific log for the authenticated user.
754
+ const response = await client.consumer().log().get("log_id");
755
+
756
+ // Returns a paginated list of logs which are assigned to the authenticated user.
757
+ const response = await client.consumer().log().getAll(1, 1, "search");
758
+
759
+ // Returns a specific page for the authenticated user.
760
+ const response = await client.consumer().page().get("page_id");
761
+
762
+ // Returns a paginated list of pages which are relevant to the authenticated user.
763
+ const response = await client.consumer().page().getAll(1, 1, "search");
764
+
765
+ // Start the checkout process for a specific plan.
766
+ const response = await client.consumer().payment().checkout("provider", new Consumer_PaymentCheckoutRequest());
767
+
768
+ // Generates a payment portal link for the authenticated user.
769
+ const response = await client.consumer().payment().portal("provider", new Consumer_PaymentPortalRequest());
770
+
771
+ // Returns a specific plan for the authenticated user.
772
+ const response = await client.consumer().plan().get("plan_id");
773
+
774
+ // Returns a paginated list of plans which are relevant to the authenticated user.
775
+ const response = await client.consumer().plan().getAll(1, 1, "search");
776
+
777
+ // Returns a paginated list of scopes which are assigned to the authenticated user.
778
+ const response = await client.consumer().scope().getAll(1, 1, "search");
779
+
780
+ // Returns all scopes by category.
781
+ const response = await client.consumer().scope().getCategories();
782
+
783
+ // Creates a new token for the authenticated user.
784
+ const response = await client.consumer().token().create(new Consumer_TokenCreate());
785
+
786
+ // Deletes an existing token for the authenticated user.
787
+ const response = await client.consumer().token().delete("token_id");
788
+
789
+ // Returns a specific token for the authenticated user.
790
+ const response = await client.consumer().token().get("token_id");
791
+
792
+ // Returns a paginated list of tokens which are assigned to the authenticated user.
793
+ const response = await client.consumer().token().getAll(1, 1, "search");
794
+
795
+ // Updates an existing token for the authenticated user.
796
+ const response = await client.consumer().token().update("token_id", new Consumer_TokenUpdate());
797
+
798
+ // Returns a specific transaction for the authenticated user.
799
+ const response = await client.consumer().transaction().get("transaction_id");
800
+
801
+ // Returns a paginated list of transactions which are assigned to the authenticated user.
802
+ const response = await client.consumer().transaction().getAll(1, 1, "search");
803
+
804
+ // Creates a new webhook for the authenticated user.
805
+ const response = await client.consumer().webhook().create(new Consumer_WebhookCreate());
806
+
807
+ // Deletes an existing webhook for the authenticated user.
808
+ const response = await client.consumer().webhook().delete("webhook_id");
809
+
810
+ // Returns a specific webhook for the authenticated user.
811
+ const response = await client.consumer().webhook().get("webhook_id");
812
+
813
+ // Returns a paginated list of webhooks which are assigned to the authenticated user.
814
+ const response = await client.consumer().webhook().getAll(1, 1, "search");
815
+
816
+ // Updates an existing webhook for the authenticated user.
817
+ const response = await client.consumer().webhook().update("webhook_id", new Consumer_WebhookUpdate());
818
+
819
+ // Endpoint to generate a captcha challenge.
820
+ const response = await client.system().captcha().challenge();
821
+
822
+ // Connection OAuth2 callback to authorize a connection.
823
+ const response = await client.system().connection().callback("name");
824
+
825
+ // Returns meta information and links about the current installed Fusio version.
826
+ const response = await client.system().meta().getAbout();
827
+
828
+ // Debug endpoint which returns the provided data.
829
+ const response = await client.system().meta().getDebug(new Passthru());
830
+
831
+ // Health check endpoint which returns information about the health status of the system.
832
+ const response = await client.system().meta().getHealth();
833
+
834
+ // Returns all available routes.
835
+ const response = await client.system().meta().getRoutes();
836
+
837
+ // Returns details of a specific schema.
838
+ const response = await client.system().meta().getSchema("name");
839
+
840
+ // Payment webhook endpoint after successful purchase of a plan.
841
+ const response = await client.system().payment().webhook("provider");
842
+ ```