@oasisomniverse/web4-api 2.0.0

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.
Files changed (116) hide show
  1. package/README.md +464 -0
  2. package/docs/README.md +52 -0
  3. package/docs/auth.md +89 -0
  4. package/docs/getting-started.md +129 -0
  5. package/docs/modules/Avatar.md +4160 -0
  6. package/docs/modules/Bridge.md +394 -0
  7. package/docs/modules/Chat.md +168 -0
  8. package/docs/modules/Clan.md +552 -0
  9. package/docs/modules/Competition.md +594 -0
  10. package/docs/modules/Data.md +796 -0
  11. package/docs/modules/EOSIO.md +508 -0
  12. package/docs/modules/Eggs.md +396 -0
  13. package/docs/modules/Files.md +312 -0
  14. package/docs/modules/Gifts.md +306 -0
  15. package/docs/modules/Health.md +90 -0
  16. package/docs/modules/Holochain.md +374 -0
  17. package/docs/modules/HyperDrive.md +3857 -0
  18. package/docs/modules/Karma.md +644 -0
  19. package/docs/modules/Keys.md +3303 -0
  20. package/docs/modules/Map.md +1026 -0
  21. package/docs/modules/Messaging.md +320 -0
  22. package/docs/modules/Nft.md +2216 -0
  23. package/docs/modules/OLand.md +425 -0
  24. package/docs/modules/ONET.md +442 -0
  25. package/docs/modules/ONODE.md +504 -0
  26. package/docs/modules/Provider.md +1396 -0
  27. package/docs/modules/Search.md +69 -0
  28. package/docs/modules/Seeds.md +167 -0
  29. package/docs/modules/Settings.md +533 -0
  30. package/docs/modules/Share.md +64 -0
  31. package/docs/modules/Social.md +190 -0
  32. package/docs/modules/Solana.md +150 -0
  33. package/docs/modules/Stats.md +359 -0
  34. package/docs/modules/Subscription.md +437 -0
  35. package/docs/modules/Video.md +150 -0
  36. package/docs/modules/Wallet.md +1993 -0
  37. package/index.d.ts +106 -0
  38. package/index.js +3 -0
  39. package/index.mjs +4 -0
  40. package/package.json +120 -0
  41. package/src/core/httpClient.js +110 -0
  42. package/src/core/routeHelper.js +50 -0
  43. package/src/core/tokenStore.js +52 -0
  44. package/src/core/types.d.ts +18 -0
  45. package/src/index.js +46 -0
  46. package/src/modules/Auth.d.ts +28 -0
  47. package/src/modules/Auth.js +98 -0
  48. package/src/modules/Avatar.d.ts +192 -0
  49. package/src/modules/Avatar.js +143 -0
  50. package/src/modules/Bridge.d.ts +24 -0
  51. package/src/modules/Bridge.js +35 -0
  52. package/src/modules/Cargo.js +35 -0
  53. package/src/modules/Chat.d.ts +15 -0
  54. package/src/modules/Chat.js +27 -0
  55. package/src/modules/Clan.d.ts +36 -0
  56. package/src/modules/Clan.js +41 -0
  57. package/src/modules/Competition.d.ts +33 -0
  58. package/src/modules/Competition.js +39 -0
  59. package/src/modules/Core.js +27 -0
  60. package/src/modules/Data.d.ts +36 -0
  61. package/src/modules/Data.js +41 -0
  62. package/src/modules/EOSIO.d.ts +33 -0
  63. package/src/modules/EOSIO.js +39 -0
  64. package/src/modules/Eggs.d.ts +24 -0
  65. package/src/modules/Eggs.js +33 -0
  66. package/src/modules/Files.d.ts +24 -0
  67. package/src/modules/Files.js +33 -0
  68. package/src/modules/Gifts.d.ts +24 -0
  69. package/src/modules/Gifts.js +33 -0
  70. package/src/modules/Health.d.ts +12 -0
  71. package/src/modules/Health.js +25 -0
  72. package/src/modules/Holochain.d.ts +27 -0
  73. package/src/modules/Holochain.js +35 -0
  74. package/src/modules/HyperDrive.d.ts +237 -0
  75. package/src/modules/HyperDrive.js +175 -0
  76. package/src/modules/Karma.d.ts +42 -0
  77. package/src/modules/Karma.js +45 -0
  78. package/src/modules/Keys.d.ts +183 -0
  79. package/src/modules/Keys.js +139 -0
  80. package/src/modules/Map.d.ts +75 -0
  81. package/src/modules/Map.js +65 -0
  82. package/src/modules/Messaging.d.ts +24 -0
  83. package/src/modules/Messaging.js +33 -0
  84. package/src/modules/Nft.d.ts +102 -0
  85. package/src/modules/Nft.js +85 -0
  86. package/src/modules/OAPP.js +31 -0
  87. package/src/modules/OLand.d.ts +27 -0
  88. package/src/modules/OLand.js +35 -0
  89. package/src/modules/ONET.d.ts +39 -0
  90. package/src/modules/ONET.js +43 -0
  91. package/src/modules/ONODE.d.ts +45 -0
  92. package/src/modules/ONODE.js +47 -0
  93. package/src/modules/Provider.d.ts +99 -0
  94. package/src/modules/Provider.js +83 -0
  95. package/src/modules/Search.d.ts +9 -0
  96. package/src/modules/Search.js +23 -0
  97. package/src/modules/Seeds.d.ts +15 -0
  98. package/src/modules/Seeds.js +27 -0
  99. package/src/modules/Settings.d.ts +48 -0
  100. package/src/modules/Settings.js +47 -0
  101. package/src/modules/Share.d.ts +9 -0
  102. package/src/modules/Share.js +23 -0
  103. package/src/modules/Social.d.ts +18 -0
  104. package/src/modules/Social.js +29 -0
  105. package/src/modules/Solana.d.ts +12 -0
  106. package/src/modules/Solana.js +25 -0
  107. package/src/modules/Stats.d.ts +30 -0
  108. package/src/modules/Stats.js +37 -0
  109. package/src/modules/Subscription.d.ts +36 -0
  110. package/src/modules/Subscription.js +41 -0
  111. package/src/modules/Telos.js +39 -0
  112. package/src/modules/Video.d.ts +15 -0
  113. package/src/modules/Video.js +27 -0
  114. package/src/modules/Wallet.d.ts +102 -0
  115. package/src/modules/Wallet.js +85 -0
  116. package/src/modules/index.js +79 -0
@@ -0,0 +1,237 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class HyperDriveModule {
5
+ constructor(http: unknown);
6
+
7
+ /** GET api/hyperdrive/quota/status */
8
+ checkQuotaStatus(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** POST api/hyperdrive/failover/triggers */
11
+ createFailoverTrigger(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** POST api/hyperdrive/subscription/quota-notifications */
14
+ createQuotaNotification(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** POST api/hyperdrive/replication/triggers */
17
+ createReplicationTrigger(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** POST api/hyperdrive/subscription/usage-alerts */
20
+ createUsageAlert(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** DELETE api/hyperdrive/failover/triggers/{id} */
23
+ deleteFailoverTrigger(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** DELETE api/hyperdrive/subscription/quota-notifications/{id} */
26
+ deleteQuotaNotification(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** DELETE api/hyperdrive/replication/triggers/{id} */
29
+ deleteReplicationTrigger(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** DELETE api/hyperdrive/subscription/usage-alerts/{id} */
32
+ deleteUsageAlert(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** POST api/hyperdrive/intelligent-mode/disable */
35
+ disableIntelligentMode(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** POST api/hyperdrive/intelligent-mode/enable */
38
+ enableIntelligentMode(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** GET api/hyperdrive/ai/recommendations */
41
+ getAIRecommendations(args?: Record<string, any>): Promise<OASISResponse>;
42
+
43
+ /** GET api/hyperdrive/analytics/report */
44
+ getAnalyticsReport(args?: Record<string, any>): Promise<OASISResponse>;
45
+
46
+ /** GET api/hyperdrive/best-provider */
47
+ getBestProvider(args?: Record<string, any>): Promise<OASISResponse>;
48
+
49
+ /** GET api/hyperdrive/config */
50
+ getConfiguration(args?: Record<string, any>): Promise<OASISResponse>;
51
+
52
+ /** GET api/hyperdrive/connections */
53
+ getConnectionCounts(args?: Record<string, any>): Promise<OASISResponse>;
54
+
55
+ /** GET api/hyperdrive/costs/history */
56
+ getCostHistory(args?: Record<string, any>): Promise<OASISResponse>;
57
+
58
+ /** GET api/hyperdrive/analytics/cost-optimization */
59
+ getCostOptimizationRecommendations(args?: Record<string, any>): Promise<OASISResponse>;
60
+
61
+ /** GET api/hyperdrive/replication/cost-optimization */
62
+ getCostOptimizationRule(args?: Record<string, any>): Promise<OASISResponse>;
63
+
64
+ /** GET api/hyperdrive/costs/projections */
65
+ getCostProjections(args?: Record<string, any>): Promise<OASISResponse>;
66
+
67
+ /** GET api/hyperdrive/costs/current */
68
+ getCurrentCosts(args?: Record<string, any>): Promise<OASISResponse>;
69
+
70
+ /** GET api/hyperdrive/quota/usage */
71
+ getCurrentUsage(args?: Record<string, any>): Promise<OASISResponse>;
72
+
73
+ /** GET api/hyperdrive/dashboard */
74
+ getDashboardData(args?: Record<string, any>): Promise<OASISResponse>;
75
+
76
+ /** GET api/hyperdrive/data-permissions */
77
+ getDataPermissions(args?: Record<string, any>): Promise<OASISResponse>;
78
+
79
+ /** GET api/hyperdrive/replication/data-type-rules */
80
+ getDataTypeReplicationRules(args?: Record<string, any>): Promise<OASISResponse>;
81
+
82
+ /** GET api/hyperdrive/failover/escalation-rules */
83
+ getEscalationRules(args?: Record<string, any>): Promise<OASISResponse>;
84
+
85
+ /** GET api/hyperdrive/failover/rules */
86
+ getFailoverRules(args?: Record<string, any>): Promise<OASISResponse>;
87
+
88
+ /** GET api/hyperdrive/failover/predictions */
89
+ getFailurePredictions(args?: Record<string, any>): Promise<OASISResponse>;
90
+
91
+ /** GET api/hyperdrive/providers/free */
92
+ getFreeProviders(args?: Record<string, any>): Promise<OASISResponse>;
93
+
94
+ /** GET api/hyperdrive/mode */
95
+ getHyperDriveMode(args?: Record<string, any>): Promise<OASISResponse>;
96
+
97
+ /** GET api/hyperdrive/intelligent-mode */
98
+ getIntelligentMode(args?: Record<string, any>): Promise<OASISResponse>;
99
+
100
+ /** GET api/hyperdrive/providers/low-cost */
101
+ getLowCostProviders(args?: Record<string, any>): Promise<OASISResponse>;
102
+
103
+ /** GET api/hyperdrive/metrics */
104
+ getMetrics(args?: Record<string, any>): Promise<OASISResponse>;
105
+
106
+ /** GET api/hyperdrive/analytics/performance-optimization */
107
+ getPerformanceOptimizationRecommendations(args?: Record<string, any>): Promise<OASISResponse>;
108
+
109
+ /** GET api/hyperdrive/analytics/predictive/{providerType} */
110
+ getPredictiveAnalytics(args?: Record<string, any>): Promise<OASISResponse>;
111
+
112
+ /** GET api/hyperdrive/failover/provider-rules */
113
+ getProviderFailoverRules(args?: Record<string, any>): Promise<OASISResponse>;
114
+
115
+ /** GET api/hyperdrive/metrics/{providerType} */
116
+ getProviderMetrics(args?: Record<string, any>): Promise<OASISResponse>;
117
+
118
+ /** GET api/hyperdrive/replication/provider-rules */
119
+ getProviderReplicationRules(args?: Record<string, any>): Promise<OASISResponse>;
120
+
121
+ /** GET api/hyperdrive/quota/limits */
122
+ getQuotaLimits(args?: Record<string, any>): Promise<OASISResponse>;
123
+
124
+ /** GET api/hyperdrive/subscription/quota-notifications */
125
+ getQuotaNotifications(args?: Record<string, any>): Promise<OASISResponse>;
126
+
127
+ /** GET api/hyperdrive/replication/rules */
128
+ getReplicationRules(args?: Record<string, any>): Promise<OASISResponse>;
129
+
130
+ /** GET api/hyperdrive/replication/schedule-rules */
131
+ getScheduleRules(args?: Record<string, any>): Promise<OASISResponse>;
132
+
133
+ /** GET api/hyperdrive/recommendations/security */
134
+ getSecurityRecommendations(args?: Record<string, any>): Promise<OASISResponse>;
135
+
136
+ /** GET api/hyperdrive/recommendations/smart */
137
+ getSmartRecommendations(args?: Record<string, any>): Promise<OASISResponse>;
138
+
139
+ /** GET api/hyperdrive/status */
140
+ getStatus(args?: Record<string, any>): Promise<OASISResponse>;
141
+
142
+ /** GET api/hyperdrive/subscription/config */
143
+ getSubscriptionConfig(args?: Record<string, any>): Promise<OASISResponse>;
144
+
145
+ /** GET api/hyperdrive/subscription/usage-alerts */
146
+ getUsageAlerts(args?: Record<string, any>): Promise<OASISResponse>;
147
+
148
+ /** POST api/hyperdrive/failover/preventive */
149
+ initiatePreventiveFailover(args?: Record<string, any>): Promise<OASISResponse>;
150
+
151
+ /** POST api/hyperdrive/analytics/record */
152
+ recordAnalyticsData(args?: Record<string, any>): Promise<OASISResponse>;
153
+
154
+ /** POST api/hyperdrive/record-connection */
155
+ recordConnection(args?: Record<string, any>): Promise<OASISResponse>;
156
+
157
+ /** POST api/hyperdrive/failover/record-failure */
158
+ recordFailureEvent(args?: Record<string, any>): Promise<OASISResponse>;
159
+
160
+ /** POST api/hyperdrive/ai/record-performance */
161
+ recordPerformanceData(args?: Record<string, any>): Promise<OASISResponse>;
162
+
163
+ /** POST api/hyperdrive/record-request */
164
+ recordRequest(args?: Record<string, any>): Promise<OASISResponse>;
165
+
166
+ /** POST api/hyperdrive/metrics/reset-all */
167
+ resetAllMetrics(args?: Record<string, any>): Promise<OASISResponse>;
168
+
169
+ /** POST api/hyperdrive/config/reset */
170
+ resetConfiguration(args?: Record<string, any>): Promise<OASISResponse>;
171
+
172
+ /** POST api/hyperdrive/metrics/{providerType}/reset */
173
+ resetProviderMetrics(args?: Record<string, any>): Promise<OASISResponse>;
174
+
175
+ /** PUT api/hyperdrive/costs/limits */
176
+ setCostLimits(args?: Record<string, any>): Promise<OASISResponse>;
177
+
178
+ /** PUT api/hyperdrive/mode */
179
+ setHyperDriveMode(args?: Record<string, any>): Promise<OASISResponse>;
180
+
181
+ /** PUT api/hyperdrive/config */
182
+ updateConfiguration(args?: Record<string, any>): Promise<OASISResponse>;
183
+
184
+ /** PUT api/hyperdrive/cost/{providerType} */
185
+ updateCostAnalysis(args?: Record<string, any>): Promise<OASISResponse>;
186
+
187
+ /** PUT api/hyperdrive/replication/cost-optimization */
188
+ updateCostOptimizationRule(args?: Record<string, any>): Promise<OASISResponse>;
189
+
190
+ /** PUT api/hyperdrive/data-permissions */
191
+ updateDataPermissions(args?: Record<string, any>): Promise<OASISResponse>;
192
+
193
+ /** PUT api/hyperdrive/replication/data-type-rules */
194
+ updateDataTypeReplicationRule(args?: Record<string, any>): Promise<OASISResponse>;
195
+
196
+ /** PUT api/hyperdrive/failover/escalation-rules */
197
+ updateEscalationRule(args?: Record<string, any>): Promise<OASISResponse>;
198
+
199
+ /** PUT api/hyperdrive/failover/rules */
200
+ updateFailoverRules(args?: Record<string, any>): Promise<OASISResponse>;
201
+
202
+ /** PUT api/hyperdrive/failover/triggers/{id} */
203
+ updateFailoverTrigger(args?: Record<string, any>): Promise<OASISResponse>;
204
+
205
+ /** PUT api/hyperdrive/geographic/{providerType} */
206
+ updateGeographicInfo(args?: Record<string, any>): Promise<OASISResponse>;
207
+
208
+ /** PUT api/hyperdrive/intelligent-mode */
209
+ updateIntelligentMode(args?: Record<string, any>): Promise<OASISResponse>;
210
+
211
+ /** PUT api/hyperdrive/failover/provider-rules */
212
+ updateProviderFailoverRule(args?: Record<string, any>): Promise<OASISResponse>;
213
+
214
+ /** PUT api/hyperdrive/replication/provider-rules */
215
+ updateProviderReplicationRule(args?: Record<string, any>): Promise<OASISResponse>;
216
+
217
+ /** PUT api/hyperdrive/subscription/quota-notifications/{id} */
218
+ updateQuotaNotification(args?: Record<string, any>): Promise<OASISResponse>;
219
+
220
+ /** PUT api/hyperdrive/replication/rules */
221
+ updateReplicationRules(args?: Record<string, any>): Promise<OASISResponse>;
222
+
223
+ /** PUT api/hyperdrive/replication/triggers/{id} */
224
+ updateReplicationTrigger(args?: Record<string, any>): Promise<OASISResponse>;
225
+
226
+ /** PUT api/hyperdrive/replication/schedule-rules */
227
+ updateScheduleRule(args?: Record<string, any>): Promise<OASISResponse>;
228
+
229
+ /** PUT api/hyperdrive/subscription/config */
230
+ updateSubscriptionConfig(args?: Record<string, any>): Promise<OASISResponse>;
231
+
232
+ /** PUT api/hyperdrive/subscription/usage-alerts/{id} */
233
+ updateUsageAlert(args?: Record<string, any>): Promise<OASISResponse>;
234
+
235
+ /** POST api/hyperdrive/config/validate */
236
+ validateConfiguration(args?: Record<string, any>): Promise<OASISResponse>;
237
+ }
@@ -0,0 +1,175 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/hyperDrive (source: ONODE WebAPI HyperDriveController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class HyperDriveModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // GET api/hyperDrive/quota/status
19
+ this.checkQuotaStatus = makeOperation(http, "api/hyperDrive", "GET", "quota/status");
20
+ // POST api/hyperDrive/failover/triggers
21
+ this.createFailoverTrigger = makeOperation(http, "api/hyperDrive", "POST", "failover/triggers");
22
+ // POST api/hyperDrive/subscription/quota-notifications
23
+ this.createQuotaNotification = makeOperation(http, "api/hyperDrive", "POST", "subscription/quota-notifications");
24
+ // POST api/hyperDrive/replication/triggers
25
+ this.createReplicationTrigger = makeOperation(http, "api/hyperDrive", "POST", "replication/triggers");
26
+ // POST api/hyperDrive/subscription/usage-alerts
27
+ this.createUsageAlert = makeOperation(http, "api/hyperDrive", "POST", "subscription/usage-alerts");
28
+ // DELETE api/hyperDrive/failover/triggers/{id}
29
+ this.deleteFailoverTrigger = makeOperation(http, "api/hyperDrive", "DELETE", "failover/triggers/{id}");
30
+ // DELETE api/hyperDrive/subscription/quota-notifications/{id}
31
+ this.deleteQuotaNotification = makeOperation(http, "api/hyperDrive", "DELETE", "subscription/quota-notifications/{id}");
32
+ // DELETE api/hyperDrive/replication/triggers/{id}
33
+ this.deleteReplicationTrigger = makeOperation(http, "api/hyperDrive", "DELETE", "replication/triggers/{id}");
34
+ // DELETE api/hyperDrive/subscription/usage-alerts/{id}
35
+ this.deleteUsageAlert = makeOperation(http, "api/hyperDrive", "DELETE", "subscription/usage-alerts/{id}");
36
+ // POST api/hyperDrive/intelligent-mode/disable
37
+ this.disableIntelligentMode = makeOperation(http, "api/hyperDrive", "POST", "intelligent-mode/disable");
38
+ // POST api/hyperDrive/intelligent-mode/enable
39
+ this.enableIntelligentMode = makeOperation(http, "api/hyperDrive", "POST", "intelligent-mode/enable");
40
+ // GET api/hyperDrive/ai/recommendations
41
+ this.getAIRecommendations = makeOperation(http, "api/hyperDrive", "GET", "ai/recommendations");
42
+ // GET api/hyperDrive/analytics/report
43
+ this.getAnalyticsReport = makeOperation(http, "api/hyperDrive", "GET", "analytics/report");
44
+ // GET api/hyperDrive/best-provider
45
+ this.getBestProvider = makeOperation(http, "api/hyperDrive", "GET", "best-provider");
46
+ // GET api/hyperDrive/config
47
+ this.getConfiguration = makeOperation(http, "api/hyperDrive", "GET", "config");
48
+ // GET api/hyperDrive/connections
49
+ this.getConnectionCounts = makeOperation(http, "api/hyperDrive", "GET", "connections");
50
+ // GET api/hyperDrive/costs/history
51
+ this.getCostHistory = makeOperation(http, "api/hyperDrive", "GET", "costs/history");
52
+ // GET api/hyperDrive/analytics/cost-optimization
53
+ this.getCostOptimizationRecommendations = makeOperation(http, "api/hyperDrive", "GET", "analytics/cost-optimization");
54
+ // GET api/hyperDrive/replication/cost-optimization
55
+ this.getCostOptimizationRule = makeOperation(http, "api/hyperDrive", "GET", "replication/cost-optimization");
56
+ // GET api/hyperDrive/costs/projections
57
+ this.getCostProjections = makeOperation(http, "api/hyperDrive", "GET", "costs/projections");
58
+ // GET api/hyperDrive/costs/current
59
+ this.getCurrentCosts = makeOperation(http, "api/hyperDrive", "GET", "costs/current");
60
+ // GET api/hyperDrive/quota/usage
61
+ this.getCurrentUsage = makeOperation(http, "api/hyperDrive", "GET", "quota/usage");
62
+ // GET api/hyperDrive/dashboard
63
+ this.getDashboardData = makeOperation(http, "api/hyperDrive", "GET", "dashboard");
64
+ // GET api/hyperDrive/data-permissions
65
+ this.getDataPermissions = makeOperation(http, "api/hyperDrive", "GET", "data-permissions");
66
+ // GET api/hyperDrive/replication/data-type-rules
67
+ this.getDataTypeReplicationRules = makeOperation(http, "api/hyperDrive", "GET", "replication/data-type-rules");
68
+ // GET api/hyperDrive/failover/escalation-rules
69
+ this.getEscalationRules = makeOperation(http, "api/hyperDrive", "GET", "failover/escalation-rules");
70
+ // GET api/hyperDrive/failover/rules
71
+ this.getFailoverRules = makeOperation(http, "api/hyperDrive", "GET", "failover/rules");
72
+ // GET api/hyperDrive/failover/predictions
73
+ this.getFailurePredictions = makeOperation(http, "api/hyperDrive", "GET", "failover/predictions");
74
+ // GET api/hyperDrive/providers/free
75
+ this.getFreeProviders = makeOperation(http, "api/hyperDrive", "GET", "providers/free");
76
+ // GET api/hyperDrive/mode
77
+ this.getHyperDriveMode = makeOperation(http, "api/hyperDrive", "GET", "mode");
78
+ // GET api/hyperDrive/intelligent-mode
79
+ this.getIntelligentMode = makeOperation(http, "api/hyperDrive", "GET", "intelligent-mode");
80
+ // GET api/hyperDrive/providers/low-cost
81
+ this.getLowCostProviders = makeOperation(http, "api/hyperDrive", "GET", "providers/low-cost");
82
+ // GET api/hyperDrive/metrics
83
+ this.getMetrics = makeOperation(http, "api/hyperDrive", "GET", "metrics");
84
+ // GET api/hyperDrive/analytics/performance-optimization
85
+ this.getPerformanceOptimizationRecommendations = makeOperation(http, "api/hyperDrive", "GET", "analytics/performance-optimization");
86
+ // GET api/hyperDrive/analytics/predictive/{providerType}
87
+ this.getPredictiveAnalytics = makeOperation(http, "api/hyperDrive", "GET", "analytics/predictive/{providerType}");
88
+ // GET api/hyperDrive/failover/provider-rules
89
+ this.getProviderFailoverRules = makeOperation(http, "api/hyperDrive", "GET", "failover/provider-rules");
90
+ // GET api/hyperDrive/metrics/{providerType}
91
+ this.getProviderMetrics = makeOperation(http, "api/hyperDrive", "GET", "metrics/{providerType}");
92
+ // GET api/hyperDrive/replication/provider-rules
93
+ this.getProviderReplicationRules = makeOperation(http, "api/hyperDrive", "GET", "replication/provider-rules");
94
+ // GET api/hyperDrive/quota/limits
95
+ this.getQuotaLimits = makeOperation(http, "api/hyperDrive", "GET", "quota/limits");
96
+ // GET api/hyperDrive/subscription/quota-notifications
97
+ this.getQuotaNotifications = makeOperation(http, "api/hyperDrive", "GET", "subscription/quota-notifications");
98
+ // GET api/hyperDrive/replication/rules
99
+ this.getReplicationRules = makeOperation(http, "api/hyperDrive", "GET", "replication/rules");
100
+ // GET api/hyperDrive/replication/schedule-rules
101
+ this.getScheduleRules = makeOperation(http, "api/hyperDrive", "GET", "replication/schedule-rules");
102
+ // GET api/hyperDrive/recommendations/security
103
+ this.getSecurityRecommendations = makeOperation(http, "api/hyperDrive", "GET", "recommendations/security");
104
+ // GET api/hyperDrive/recommendations/smart
105
+ this.getSmartRecommendations = makeOperation(http, "api/hyperDrive", "GET", "recommendations/smart");
106
+ // GET api/hyperDrive/status
107
+ this.getStatus = makeOperation(http, "api/hyperDrive", "GET", "status");
108
+ // GET api/hyperDrive/subscription/config
109
+ this.getSubscriptionConfig = makeOperation(http, "api/hyperDrive", "GET", "subscription/config");
110
+ // GET api/hyperDrive/subscription/usage-alerts
111
+ this.getUsageAlerts = makeOperation(http, "api/hyperDrive", "GET", "subscription/usage-alerts");
112
+ // POST api/hyperDrive/failover/preventive
113
+ this.initiatePreventiveFailover = makeOperation(http, "api/hyperDrive", "POST", "failover/preventive");
114
+ // POST api/hyperDrive/analytics/record
115
+ this.recordAnalyticsData = makeOperation(http, "api/hyperDrive", "POST", "analytics/record");
116
+ // POST api/hyperDrive/record-connection
117
+ this.recordConnection = makeOperation(http, "api/hyperDrive", "POST", "record-connection");
118
+ // POST api/hyperDrive/failover/record-failure
119
+ this.recordFailureEvent = makeOperation(http, "api/hyperDrive", "POST", "failover/record-failure");
120
+ // POST api/hyperDrive/ai/record-performance
121
+ this.recordPerformanceData = makeOperation(http, "api/hyperDrive", "POST", "ai/record-performance");
122
+ // POST api/hyperDrive/record-request
123
+ this.recordRequest = makeOperation(http, "api/hyperDrive", "POST", "record-request");
124
+ // POST api/hyperDrive/metrics/reset-all
125
+ this.resetAllMetrics = makeOperation(http, "api/hyperDrive", "POST", "metrics/reset-all");
126
+ // POST api/hyperDrive/config/reset
127
+ this.resetConfiguration = makeOperation(http, "api/hyperDrive", "POST", "config/reset");
128
+ // POST api/hyperDrive/metrics/{providerType}/reset
129
+ this.resetProviderMetrics = makeOperation(http, "api/hyperDrive", "POST", "metrics/{providerType}/reset");
130
+ // PUT api/hyperDrive/costs/limits
131
+ this.setCostLimits = makeOperation(http, "api/hyperDrive", "PUT", "costs/limits");
132
+ // PUT api/hyperDrive/mode
133
+ this.setHyperDriveMode = makeOperation(http, "api/hyperDrive", "PUT", "mode");
134
+ // PUT api/hyperDrive/config
135
+ this.updateConfiguration = makeOperation(http, "api/hyperDrive", "PUT", "config");
136
+ // PUT api/hyperDrive/cost/{providerType}
137
+ this.updateCostAnalysis = makeOperation(http, "api/hyperDrive", "PUT", "cost/{providerType}");
138
+ // PUT api/hyperDrive/replication/cost-optimization
139
+ this.updateCostOptimizationRule = makeOperation(http, "api/hyperDrive", "PUT", "replication/cost-optimization");
140
+ // PUT api/hyperDrive/data-permissions
141
+ this.updateDataPermissions = makeOperation(http, "api/hyperDrive", "PUT", "data-permissions");
142
+ // PUT api/hyperDrive/replication/data-type-rules
143
+ this.updateDataTypeReplicationRule = makeOperation(http, "api/hyperDrive", "PUT", "replication/data-type-rules");
144
+ // PUT api/hyperDrive/failover/escalation-rules
145
+ this.updateEscalationRule = makeOperation(http, "api/hyperDrive", "PUT", "failover/escalation-rules");
146
+ // PUT api/hyperDrive/failover/rules
147
+ this.updateFailoverRules = makeOperation(http, "api/hyperDrive", "PUT", "failover/rules");
148
+ // PUT api/hyperDrive/failover/triggers/{id}
149
+ this.updateFailoverTrigger = makeOperation(http, "api/hyperDrive", "PUT", "failover/triggers/{id}");
150
+ // PUT api/hyperDrive/geographic/{providerType}
151
+ this.updateGeographicInfo = makeOperation(http, "api/hyperDrive", "PUT", "geographic/{providerType}");
152
+ // PUT api/hyperDrive/intelligent-mode
153
+ this.updateIntelligentMode = makeOperation(http, "api/hyperDrive", "PUT", "intelligent-mode");
154
+ // PUT api/hyperDrive/failover/provider-rules
155
+ this.updateProviderFailoverRule = makeOperation(http, "api/hyperDrive", "PUT", "failover/provider-rules");
156
+ // PUT api/hyperDrive/replication/provider-rules
157
+ this.updateProviderReplicationRule = makeOperation(http, "api/hyperDrive", "PUT", "replication/provider-rules");
158
+ // PUT api/hyperDrive/subscription/quota-notifications/{id}
159
+ this.updateQuotaNotification = makeOperation(http, "api/hyperDrive", "PUT", "subscription/quota-notifications/{id}");
160
+ // PUT api/hyperDrive/replication/rules
161
+ this.updateReplicationRules = makeOperation(http, "api/hyperDrive", "PUT", "replication/rules");
162
+ // PUT api/hyperDrive/replication/triggers/{id}
163
+ this.updateReplicationTrigger = makeOperation(http, "api/hyperDrive", "PUT", "replication/triggers/{id}");
164
+ // PUT api/hyperDrive/replication/schedule-rules
165
+ this.updateScheduleRule = makeOperation(http, "api/hyperDrive", "PUT", "replication/schedule-rules");
166
+ // PUT api/hyperDrive/subscription/config
167
+ this.updateSubscriptionConfig = makeOperation(http, "api/hyperDrive", "PUT", "subscription/config");
168
+ // PUT api/hyperDrive/subscription/usage-alerts/{id}
169
+ this.updateUsageAlert = makeOperation(http, "api/hyperDrive", "PUT", "subscription/usage-alerts/{id}");
170
+ // POST api/hyperDrive/config/validate
171
+ this.validateConfiguration = makeOperation(http, "api/hyperDrive", "POST", "config/validate");
172
+ }
173
+ }
174
+
175
+ module.exports = { HyperDriveModule };
@@ -0,0 +1,42 @@
1
+ // AUTO-GENERATED by scripts/generate-types.js - do not hand-edit.
2
+ import type { OASISResponse } from '../core/types';
3
+
4
+ export declare class KarmaModule {
5
+ constructor(http: unknown);
6
+
7
+ /** POST api/karma/add-karma-to-avatar/{avatarId} */
8
+ addKarmaToAvatar(args?: Record<string, any>): Promise<OASISResponse>;
9
+
10
+ /** GET api/karma/get-karma-akashic-records-for-avatar/{avatarId} */
11
+ getKarmaAkashicRecordsForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
12
+
13
+ /** GET api/karma/get-karma-for-avatar/{avatarId} */
14
+ getKarmaForAvatar(args?: Record<string, any>): Promise<OASISResponse>;
15
+
16
+ /** GET api/karma/get-karma-history/{avatarId} */
17
+ getKarmaHistory(args?: Record<string, any>): Promise<OASISResponse>;
18
+
19
+ /** GET api/karma/get-karma-stats/{avatarId} */
20
+ getKarmaStats(args?: Record<string, any>): Promise<OASISResponse>;
21
+
22
+ /** GET api/karma/get-negative-karma-weighting/{karmaType} */
23
+ getNegativeKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
24
+
25
+ /** GET api/karma/get-positive-karma-weighting/{karmaType} */
26
+ getPositiveKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
27
+
28
+ /** POST api/karma/remove-karma-from-avatar/{avatarId} */
29
+ removeKarmaFromAvatar(args?: Record<string, any>): Promise<OASISResponse>;
30
+
31
+ /** POST api/karma/set-negative-karma-weighting/{karmaType}/{weighting} */
32
+ setNegativeKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
33
+
34
+ /** POST api/karma/set-positive-karma-weighting/{karmaType}/{weighting} */
35
+ setPositiveKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
36
+
37
+ /** POST api/karma/vote-for-negative-karma-weighting/{karmaType}/{weighting} */
38
+ voteForNegativeKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
39
+
40
+ /** POST api/karma/vote-for-positive-karma-weighting/{karmaType}/{weighting} */
41
+ voteForPositiveKarmaWeighting(args?: Record<string, any>): Promise<OASISResponse>;
42
+ }
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ // AUTO-GENERATED by scripts/generate-modules.js from endpoints.json - do not hand-edit.
4
+ // Regenerate with: node scripts/generate-modules.js
5
+
6
+ const { makeOperation } = require('../core/routeHelper');
7
+
8
+ /**
9
+ * Generated wrapper for api/karma (source: ONODE WebAPI KarmaController.cs).
10
+ * Every method takes a single args object: path-template tokens (e.g. {id})
11
+ * are consumed from it automatically; any remaining keys are sent as the
12
+ * query string (GET/DELETE) or JSON body (POST/PUT).
13
+ */
14
+ class KarmaModule {
15
+ constructor(http) {
16
+ this._http = http;
17
+
18
+ // POST api/karma/add-karma-to-avatar/{avatarId}
19
+ this.addKarmaToAvatar = makeOperation(http, "api/karma", "POST", "add-karma-to-avatar/{avatarId}");
20
+ // GET api/karma/get-karma-akashic-records-for-avatar/{avatarId}
21
+ this.getKarmaAkashicRecordsForAvatar = makeOperation(http, "api/karma", "GET", "get-karma-akashic-records-for-avatar/{avatarId}");
22
+ // GET api/karma/get-karma-for-avatar/{avatarId}
23
+ this.getKarmaForAvatar = makeOperation(http, "api/karma", "GET", "get-karma-for-avatar/{avatarId}");
24
+ // GET api/karma/get-karma-history/{avatarId}
25
+ this.getKarmaHistory = makeOperation(http, "api/karma", "GET", "get-karma-history/{avatarId}");
26
+ // GET api/karma/get-karma-stats/{avatarId}
27
+ this.getKarmaStats = makeOperation(http, "api/karma", "GET", "get-karma-stats/{avatarId}");
28
+ // GET api/karma/get-negative-karma-weighting/{karmaType}
29
+ this.getNegativeKarmaWeighting = makeOperation(http, "api/karma", "GET", "get-negative-karma-weighting/{karmaType}");
30
+ // GET api/karma/get-positive-karma-weighting/{karmaType}
31
+ this.getPositiveKarmaWeighting = makeOperation(http, "api/karma", "GET", "get-positive-karma-weighting/{karmaType}");
32
+ // POST api/karma/remove-karma-from-avatar/{avatarId}
33
+ this.removeKarmaFromAvatar = makeOperation(http, "api/karma", "POST", "remove-karma-from-avatar/{avatarId}");
34
+ // POST api/karma/set-negative-karma-weighting/{karmaType}/{weighting}
35
+ this.setNegativeKarmaWeighting = makeOperation(http, "api/karma", "POST", "set-negative-karma-weighting/{karmaType}/{weighting}");
36
+ // POST api/karma/set-positive-karma-weighting/{karmaType}/{weighting}
37
+ this.setPositiveKarmaWeighting = makeOperation(http, "api/karma", "POST", "set-positive-karma-weighting/{karmaType}/{weighting}");
38
+ // POST api/karma/vote-for-negative-karma-weighting/{karmaType}/{weighting}
39
+ this.voteForNegativeKarmaWeighting = makeOperation(http, "api/karma", "POST", "vote-for-negative-karma-weighting/{karmaType}/{weighting}");
40
+ // POST api/karma/vote-for-positive-karma-weighting/{karmaType}/{weighting}
41
+ this.voteForPositiveKarmaWeighting = makeOperation(http, "api/karma", "POST", "vote-for-positive-karma-weighting/{karmaType}/{weighting}");
42
+ }
43
+ }
44
+
45
+ module.exports = { KarmaModule };