waldur-js-client 7.9.7-dev.9 → 7.9.8-dev.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.
package/dist/sdk.gen.js CHANGED
@@ -4150,6 +4150,45 @@ export const celeryStatsRetrieve = (options) => {
4150
4150
  ...options
4151
4151
  });
4152
4152
  };
4153
+ /**
4154
+ * Execute a tool and return the result.
4155
+ */
4156
+ export const chatToolsExecute = (options) => {
4157
+ return (options.client ?? _heyApiClient).post({
4158
+ security: [
4159
+ {
4160
+ name: 'Authorization',
4161
+ type: 'apiKey'
4162
+ },
4163
+ {
4164
+ scheme: 'bearer',
4165
+ type: 'http'
4166
+ }
4167
+ ],
4168
+ url: '/api/chat-tools/execute/',
4169
+ ...options,
4170
+ headers: {
4171
+ 'Content-Type': 'application/json',
4172
+ ...options.headers
4173
+ }
4174
+ });
4175
+ };
4176
+ export const chatInvoke = (options) => {
4177
+ return (options?.client ?? _heyApiClient).post({
4178
+ security: [
4179
+ {
4180
+ name: 'Authorization',
4181
+ type: 'apiKey'
4182
+ },
4183
+ {
4184
+ scheme: 'bearer',
4185
+ type: 'http'
4186
+ }
4187
+ ],
4188
+ url: '/api/chat/invoke/',
4189
+ ...options
4190
+ });
4191
+ };
4153
4192
  export const chatStream = (options) => {
4154
4193
  return (options.client ?? _heyApiClient).post({
4155
4194
  security: [
@@ -6049,6 +6088,224 @@ export const databaseStatsRetrieve = (options) => {
6049
6088
  ...options
6050
6089
  });
6051
6090
  };
6091
+ /**
6092
+ * Get circuit breaker state
6093
+ * Get current STOMP circuit breaker state and statistics.
6094
+ *
6095
+ * Returns:
6096
+ * - state: Current state (closed/open/half_open)
6097
+ * - failure_count: Number of consecutive failures
6098
+ * - success_count: Successes since last state change
6099
+ * - last_failure_time: Timestamp of last failure
6100
+ * - last_state_change: When state last changed
6101
+ * - config: Circuit breaker configuration
6102
+ * - state_history: Recent state transitions
6103
+ *
6104
+ * Requires staff permissions.
6105
+ */
6106
+ export const debugPubsubCircuitBreakerRetrieve = (options) => {
6107
+ return (options?.client ?? _heyApiClient).get({
6108
+ security: [
6109
+ {
6110
+ name: 'Authorization',
6111
+ type: 'apiKey'
6112
+ },
6113
+ {
6114
+ scheme: 'bearer',
6115
+ type: 'http'
6116
+ }
6117
+ ],
6118
+ url: '/api/debug/pubsub/circuit_breaker/',
6119
+ ...options
6120
+ });
6121
+ };
6122
+ /**
6123
+ * Reset circuit breaker
6124
+ * Manually reset the STOMP circuit breaker to CLOSED state.
6125
+ *
6126
+ * Use with caution - only when RabbitMQ is confirmed healthy.
6127
+ *
6128
+ * Requires staff permissions.
6129
+ */
6130
+ export const debugPubsubCircuitBreakerReset = (options) => {
6131
+ return (options?.client ?? _heyApiClient).post({
6132
+ security: [
6133
+ {
6134
+ name: 'Authorization',
6135
+ type: 'apiKey'
6136
+ },
6137
+ {
6138
+ scheme: 'bearer',
6139
+ type: 'http'
6140
+ }
6141
+ ],
6142
+ url: '/api/debug/pubsub/circuit_breaker_reset/',
6143
+ ...options
6144
+ });
6145
+ };
6146
+ /**
6147
+ * Get dead letter queue status
6148
+ * Get dead letter queue (DLQ) statistics.
6149
+ *
6150
+ * The DLQ receives messages that failed to be delivered to their original
6151
+ * destination. This endpoint shows the current DLQ status.
6152
+ *
6153
+ * Note: DLQ is configured per-vhost. This endpoint checks all vhosts
6154
+ * for queues with 'dlq' in the name.
6155
+ *
6156
+ * Requires staff permissions.
6157
+ */
6158
+ export const debugPubsubDeadLetterQueueRetrieve = (options) => {
6159
+ return (options?.client ?? _heyApiClient).get({
6160
+ security: [
6161
+ {
6162
+ name: 'Authorization',
6163
+ type: 'apiKey'
6164
+ },
6165
+ {
6166
+ scheme: 'bearer',
6167
+ type: 'http'
6168
+ }
6169
+ ],
6170
+ url: '/api/debug/pubsub/dead_letter_queue/',
6171
+ ...options
6172
+ });
6173
+ };
6174
+ /**
6175
+ * Get message state cache statistics
6176
+ * Get message state tracker cache statistics for idempotency.
6177
+ *
6178
+ * The message state tracker prevents duplicate message sends by caching
6179
+ * the hash of message content. This endpoint provides cache statistics.
6180
+ *
6181
+ * Query params:
6182
+ * - resource_uuid: Filter by specific resource
6183
+ * - message_type: Filter by message type
6184
+ *
6185
+ * Requires staff permissions.
6186
+ */
6187
+ export const debugPubsubMessageStateCacheRetrieve = (options) => {
6188
+ return (options?.client ?? _heyApiClient).get({
6189
+ security: [
6190
+ {
6191
+ name: 'Authorization',
6192
+ type: 'apiKey'
6193
+ },
6194
+ {
6195
+ scheme: 'bearer',
6196
+ type: 'http'
6197
+ }
6198
+ ],
6199
+ url: '/api/debug/pubsub/message_state_cache/',
6200
+ ...options
6201
+ });
6202
+ };
6203
+ /**
6204
+ * Get publishing metrics
6205
+ * Get message publishing metrics and statistics.
6206
+ *
6207
+ * Returns:
6208
+ * - messages_sent: Total messages successfully sent
6209
+ * - messages_failed: Total failed message attempts
6210
+ * - messages_retried: Messages that required retry
6211
+ * - messages_skipped: Messages skipped due to circuit breaker
6212
+ * - circuit_breaker_trips: Number of times circuit opened
6213
+ * - rate_limiter_rejections: Messages rejected by rate limiter
6214
+ * - avg_publish_time_ms: Average publish latency
6215
+ * - last_publish_time: Timestamp of last publish attempt
6216
+ *
6217
+ * Requires staff permissions.
6218
+ */
6219
+ export const debugPubsubMetricsRetrieve = (options) => {
6220
+ return (options?.client ?? _heyApiClient).get({
6221
+ security: [
6222
+ {
6223
+ name: 'Authorization',
6224
+ type: 'apiKey'
6225
+ },
6226
+ {
6227
+ scheme: 'bearer',
6228
+ type: 'http'
6229
+ }
6230
+ ],
6231
+ url: '/api/debug/pubsub/metrics/',
6232
+ ...options
6233
+ });
6234
+ };
6235
+ /**
6236
+ * Reset publishing metrics
6237
+ * Reset all publishing metrics counters to zero.
6238
+ *
6239
+ * Requires staff permissions.
6240
+ */
6241
+ export const debugPubsubMetricsReset = (options) => {
6242
+ return (options?.client ?? _heyApiClient).post({
6243
+ security: [
6244
+ {
6245
+ name: 'Authorization',
6246
+ type: 'apiKey'
6247
+ },
6248
+ {
6249
+ scheme: 'bearer',
6250
+ type: 'http'
6251
+ }
6252
+ ],
6253
+ url: '/api/debug/pubsub/metrics_reset/',
6254
+ ...options
6255
+ });
6256
+ };
6257
+ /**
6258
+ * Get pubsub system health overview
6259
+ * Dashboard overview of pubsub system health.
6260
+ *
6261
+ * Combines circuit breaker state, publishing metrics, and health indicators
6262
+ * into a single response suitable for monitoring dashboards.
6263
+ *
6264
+ * Requires staff permissions.
6265
+ */
6266
+ export const debugPubsubOverviewRetrieve = (options) => {
6267
+ return (options?.client ?? _heyApiClient).get({
6268
+ security: [
6269
+ {
6270
+ name: 'Authorization',
6271
+ type: 'apiKey'
6272
+ },
6273
+ {
6274
+ scheme: 'bearer',
6275
+ type: 'http'
6276
+ }
6277
+ ],
6278
+ url: '/api/debug/pubsub/overview/',
6279
+ ...options
6280
+ });
6281
+ };
6282
+ /**
6283
+ * Get subscription queues overview
6284
+ * Get overview of subscription queues from RabbitMQ.
6285
+ *
6286
+ * Returns summary of subscription queues across all vhosts including
6287
+ * message counts and queue statistics.
6288
+ *
6289
+ * Note: For detailed queue management, use /api/rabbitmq-stats/ endpoint.
6290
+ *
6291
+ * Requires staff permissions.
6292
+ */
6293
+ export const debugPubsubQueuesRetrieve = (options) => {
6294
+ return (options?.client ?? _heyApiClient).get({
6295
+ security: [
6296
+ {
6297
+ name: 'Authorization',
6298
+ type: 'apiKey'
6299
+ },
6300
+ {
6301
+ scheme: 'bearer',
6302
+ type: 'http'
6303
+ }
6304
+ ],
6305
+ url: '/api/debug/pubsub/queues/',
6306
+ ...options
6307
+ });
6308
+ };
6052
6309
  export const digitaloceanDropletsList = (options) => {
6053
6310
  return (options?.client ?? _heyApiClient).get({
6054
6311
  security: [