waldur-js-client 8.0.8-dev.37 → 8.0.8-dev.39

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
@@ -2193,6 +2193,206 @@ export const affiliatedOrganizationsReportCount = (options) => {
2193
2193
  ...options
2194
2194
  });
2195
2195
  };
2196
+ export const anonymousChatFeedbacksList = (options) => {
2197
+ return (options?.client ?? _heyApiClient).get({
2198
+ security: [
2199
+ {
2200
+ name: 'Authorization',
2201
+ type: 'apiKey'
2202
+ },
2203
+ {
2204
+ scheme: 'bearer',
2205
+ type: 'http'
2206
+ },
2207
+ {
2208
+ scheme: 'bearer',
2209
+ type: 'http'
2210
+ }
2211
+ ],
2212
+ url: '/api/anonymous-chat-feedbacks/',
2213
+ ...options
2214
+ });
2215
+ };
2216
+ export const anonymousChatFeedbacksRetrieve = (options) => {
2217
+ return (options.client ?? _heyApiClient).get({
2218
+ security: [
2219
+ {
2220
+ name: 'Authorization',
2221
+ type: 'apiKey'
2222
+ },
2223
+ {
2224
+ scheme: 'bearer',
2225
+ type: 'http'
2226
+ },
2227
+ {
2228
+ scheme: 'bearer',
2229
+ type: 'http'
2230
+ }
2231
+ ],
2232
+ url: '/api/anonymous-chat-feedbacks/{interaction_uuid}/',
2233
+ ...options
2234
+ });
2235
+ };
2236
+ export const anonymousChatInteractionsList = (options) => {
2237
+ return (options?.client ?? _heyApiClient).get({
2238
+ security: [
2239
+ {
2240
+ name: 'Authorization',
2241
+ type: 'apiKey'
2242
+ },
2243
+ {
2244
+ scheme: 'bearer',
2245
+ type: 'http'
2246
+ },
2247
+ {
2248
+ scheme: 'bearer',
2249
+ type: 'http'
2250
+ }
2251
+ ],
2252
+ url: '/api/anonymous-chat-interactions/',
2253
+ ...options
2254
+ });
2255
+ };
2256
+ export const anonymousChatInteractionsRetrieve = (options) => {
2257
+ return (options.client ?? _heyApiClient).get({
2258
+ security: [
2259
+ {
2260
+ name: 'Authorization',
2261
+ type: 'apiKey'
2262
+ },
2263
+ {
2264
+ scheme: 'bearer',
2265
+ type: 'http'
2266
+ },
2267
+ {
2268
+ scheme: 'bearer',
2269
+ type: 'http'
2270
+ }
2271
+ ],
2272
+ url: '/api/anonymous-chat-interactions/{uuid}/',
2273
+ ...options
2274
+ });
2275
+ };
2276
+ /**
2277
+ * Today's global tenant budget snapshot
2278
+ * Returns the site-wide token + request usage accumulated since 00:00 UTC today and the configured daily caps. Powers the budget gauges card on the staff analytics dashboard.
2279
+ */
2280
+ export const anonymousChatInteractionsBudgetRetrieve = (options) => {
2281
+ return (options?.client ?? _heyApiClient).get({
2282
+ security: [
2283
+ {
2284
+ name: 'Authorization',
2285
+ type: 'apiKey'
2286
+ },
2287
+ {
2288
+ scheme: 'bearer',
2289
+ type: 'http'
2290
+ },
2291
+ {
2292
+ scheme: 'bearer',
2293
+ type: 'http'
2294
+ }
2295
+ ],
2296
+ url: '/api/anonymous-chat-interactions/budget/',
2297
+ ...options
2298
+ });
2299
+ };
2300
+ /**
2301
+ * Full transcript for one anonymous session
2302
+ * Returns the ordered list of interactions belonging to the given ``session_id``. Use this to read a conversation as a transcript.
2303
+ */
2304
+ export const anonymousChatInteractionsBySessionList = (options) => {
2305
+ return (options.client ?? _heyApiClient).get({
2306
+ security: [
2307
+ {
2308
+ name: 'Authorization',
2309
+ type: 'apiKey'
2310
+ },
2311
+ {
2312
+ scheme: 'bearer',
2313
+ type: 'http'
2314
+ },
2315
+ {
2316
+ scheme: 'bearer',
2317
+ type: 'http'
2318
+ }
2319
+ ],
2320
+ url: '/api/anonymous-chat-interactions/by-session/{session_id}/',
2321
+ ...options
2322
+ });
2323
+ };
2324
+ /**
2325
+ * Aggregate user list (no slug)
2326
+ * Returns one row per user_slug with aggregate counters. Powers the staff Users page in the admin analytics.
2327
+ */
2328
+ export const anonymousChatInteractionsByUserAggregate = (options) => {
2329
+ return (options?.client ?? _heyApiClient).get({
2330
+ security: [
2331
+ {
2332
+ name: 'Authorization',
2333
+ type: 'apiKey'
2334
+ },
2335
+ {
2336
+ scheme: 'bearer',
2337
+ type: 'http'
2338
+ },
2339
+ {
2340
+ scheme: 'bearer',
2341
+ type: 'http'
2342
+ }
2343
+ ],
2344
+ url: '/api/anonymous-chat-interactions/by-user/',
2345
+ ...options
2346
+ });
2347
+ };
2348
+ /**
2349
+ * All sessions for one pseudonymous user
2350
+ * Returns interactions sharing a ``user_slug`` (Scrypt of originating IP) — across however many sessions that anon user opened, ordered chronologically.
2351
+ */
2352
+ export const anonymousChatInteractionsByUserList = (options) => {
2353
+ return (options.client ?? _heyApiClient).get({
2354
+ security: [
2355
+ {
2356
+ name: 'Authorization',
2357
+ type: 'apiKey'
2358
+ },
2359
+ {
2360
+ scheme: 'bearer',
2361
+ type: 'http'
2362
+ },
2363
+ {
2364
+ scheme: 'bearer',
2365
+ type: 'http'
2366
+ }
2367
+ ],
2368
+ url: '/api/anonymous-chat-interactions/by-user/{user_slug}/',
2369
+ ...options
2370
+ });
2371
+ };
2372
+ /**
2373
+ * Aggregate KPI roll-up
2374
+ * Returns aggregate counters and rates for the anonymous chat flow. Filters are honoured (date range etc.) so the same parameters work as on the list endpoint.
2375
+ */
2376
+ export const anonymousChatInteractionsKpiRetrieve = (options) => {
2377
+ return (options?.client ?? _heyApiClient).get({
2378
+ security: [
2379
+ {
2380
+ name: 'Authorization',
2381
+ type: 'apiKey'
2382
+ },
2383
+ {
2384
+ scheme: 'bearer',
2385
+ type: 'http'
2386
+ },
2387
+ {
2388
+ scheme: 'bearer',
2389
+ type: 'http'
2390
+ }
2391
+ ],
2392
+ url: '/api/anonymous-chat-interactions/kpi/',
2393
+ ...options
2394
+ });
2395
+ };
2196
2396
  export const assignmentBatchesList = (options) => {
2197
2397
  return (options?.client ?? _heyApiClient).get({
2198
2398
  security: [
@@ -16488,6 +16688,81 @@ export const marketplaceCategoryHelpArticlesUpdate = (options) => {
16488
16688
  }
16489
16689
  });
16490
16690
  };
16691
+ export const marketplaceChatClick = (options) => {
16692
+ return (options.client ?? _heyApiClient).post({
16693
+ security: [
16694
+ {
16695
+ name: 'Authorization',
16696
+ type: 'apiKey'
16697
+ },
16698
+ {
16699
+ scheme: 'bearer',
16700
+ type: 'http'
16701
+ },
16702
+ {
16703
+ scheme: 'bearer',
16704
+ type: 'http'
16705
+ }
16706
+ ],
16707
+ url: '/api/marketplace-chat/click/',
16708
+ ...options,
16709
+ headers: {
16710
+ 'Content-Type': 'application/json',
16711
+ ...options.headers
16712
+ }
16713
+ });
16714
+ };
16715
+ export const marketplaceChatFeedback = (options) => {
16716
+ return (options.client ?? _heyApiClient).post({
16717
+ security: [
16718
+ {
16719
+ name: 'Authorization',
16720
+ type: 'apiKey'
16721
+ },
16722
+ {
16723
+ scheme: 'bearer',
16724
+ type: 'http'
16725
+ },
16726
+ {
16727
+ scheme: 'bearer',
16728
+ type: 'http'
16729
+ }
16730
+ ],
16731
+ url: '/api/marketplace-chat/feedback/',
16732
+ ...options,
16733
+ headers: {
16734
+ 'Content-Type': 'application/json',
16735
+ ...options.headers
16736
+ }
16737
+ });
16738
+ };
16739
+ /**
16740
+ * Anonymous chat streaming endpoint. Returns NDJSON with one assistant content block per line. Final `m` frame carries input/output token counts.
16741
+ */
16742
+ export const marketplaceChatStream = (options) => {
16743
+ return (options.client ?? _heyApiClient).post({
16744
+ security: [
16745
+ {
16746
+ name: 'Authorization',
16747
+ type: 'apiKey'
16748
+ },
16749
+ {
16750
+ scheme: 'bearer',
16751
+ type: 'http'
16752
+ },
16753
+ {
16754
+ scheme: 'bearer',
16755
+ type: 'http'
16756
+ }
16757
+ ],
16758
+ url: '/api/marketplace-chat/stream/',
16759
+ ...options,
16760
+ headers: {
16761
+ 'Content-Type': 'application/json',
16762
+ ...options.headers
16763
+ }
16764
+ });
16765
+ };
16491
16766
  /**
16492
16767
  * List monthly component usage summaries globally
16493
16768
  * Returns paginated monthly component usage across all offerings and service providers. Results are automatically filtered by the user's permissions. Defaults to the current month if no time filters ('billing_period', 'start', 'end') are provided.
@@ -23946,6 +24221,62 @@ export const marketplaceProviderResourcesUpdate = (options) => {
23946
24221
  }
23947
24222
  });
23948
24223
  };
24224
+ /**
24225
+ * Grant a role to a user
24226
+ * Assigns a specific role to a user within the current scope. An optional expiration time for the role can be set.
24227
+ */
24228
+ export const marketplaceProviderResourcesAddUser = (options) => {
24229
+ return (options.client ?? _heyApiClient).post({
24230
+ security: [
24231
+ {
24232
+ name: 'Authorization',
24233
+ type: 'apiKey'
24234
+ },
24235
+ {
24236
+ scheme: 'bearer',
24237
+ type: 'http'
24238
+ },
24239
+ {
24240
+ scheme: 'bearer',
24241
+ type: 'http'
24242
+ }
24243
+ ],
24244
+ url: '/api/marketplace-provider-resources/{uuid}/add_user/',
24245
+ ...options,
24246
+ headers: {
24247
+ 'Content-Type': 'application/json',
24248
+ ...options.headers
24249
+ }
24250
+ });
24251
+ };
24252
+ /**
24253
+ * Revoke a role from a user
24254
+ * Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
24255
+ */
24256
+ export const marketplaceProviderResourcesDeleteUser = (options) => {
24257
+ return (options.client ?? _heyApiClient).post({
24258
+ security: [
24259
+ {
24260
+ name: 'Authorization',
24261
+ type: 'apiKey'
24262
+ },
24263
+ {
24264
+ scheme: 'bearer',
24265
+ type: 'http'
24266
+ },
24267
+ {
24268
+ scheme: 'bearer',
24269
+ type: 'http'
24270
+ }
24271
+ ],
24272
+ url: '/api/marketplace-provider-resources/{uuid}/delete_user/',
24273
+ ...options,
24274
+ headers: {
24275
+ 'Content-Type': 'application/json',
24276
+ ...options.headers
24277
+ }
24278
+ });
24279
+ };
23949
24280
  /**
23950
24281
  * Get resource details
23951
24282
  * Returns the detailed representation of the backend resource associated with the marketplace resource. The format of the response depends on the resource type.
@@ -24045,6 +24376,30 @@ export const marketplaceProviderResourcesHistoryAtRetrieve = (options) => {
24045
24376
  ...options
24046
24377
  });
24047
24378
  };
24379
+ /**
24380
+ * List users and their roles in a scope
24381
+ * Retrieves a list of users who have a role within a specific scope (e.g., a project or an organization). The list can be filtered by user details or role.
24382
+ */
24383
+ export const marketplaceProviderResourcesListUsersList = (options) => {
24384
+ return (options.client ?? _heyApiClient).get({
24385
+ security: [
24386
+ {
24387
+ name: 'Authorization',
24388
+ type: 'apiKey'
24389
+ },
24390
+ {
24391
+ scheme: 'bearer',
24392
+ type: 'http'
24393
+ },
24394
+ {
24395
+ scheme: 'bearer',
24396
+ type: 'http'
24397
+ }
24398
+ ],
24399
+ url: '/api/marketplace-provider-resources/{uuid}/list_users/',
24400
+ ...options
24401
+ });
24402
+ };
24048
24403
  /**
24049
24404
  * Move a resource to another project
24050
24405
  * Moves a resource and its associated data to a different project. Requires staff permissions.
@@ -24763,6 +25118,34 @@ export const marketplaceProviderResourcesUpdateOptionsDirect = (options) => {
24763
25118
  }
24764
25119
  });
24765
25120
  };
25121
+ /**
25122
+ * Update a user's role expiration
25123
+ * Updates the expiration time for a user's existing role in the current scope. This is useful for extending or shortening the duration of a permission. To make a role permanent, set expiration_time to null.
25124
+ */
25125
+ export const marketplaceProviderResourcesUpdateUser = (options) => {
25126
+ return (options.client ?? _heyApiClient).post({
25127
+ security: [
25128
+ {
25129
+ name: 'Authorization',
25130
+ type: 'apiKey'
25131
+ },
25132
+ {
25133
+ scheme: 'bearer',
25134
+ type: 'http'
25135
+ },
25136
+ {
25137
+ scheme: 'bearer',
25138
+ type: 'http'
25139
+ }
25140
+ ],
25141
+ url: '/api/marketplace-provider-resources/{uuid}/update_user/',
25142
+ ...options,
25143
+ headers: {
25144
+ 'Content-Type': 'application/json',
25145
+ ...options.headers
25146
+ }
25147
+ });
25148
+ };
24766
25149
  /**
24767
25150
  * Check service provider signature
24768
25151
  *
@@ -37704,6 +38087,30 @@ export const openstackInstancesFloatingIpsList = (options) => {
37704
38087
  ...options
37705
38088
  });
37706
38089
  };
38090
+ /**
38091
+ * Get Placement allocations for the instance
38092
+ * Return what the OpenStack Placement service records as currently allocated to this instance, broken down by resource provider. Useful for diagnostics — especially for non-classic resources (VGPU, PCI_DEVICE, custom classes) that the flavor alone does not describe. Returns an empty list when Placement has no record (e.g. transient state right after create, or pre-Placement clouds).
38093
+ */
38094
+ export const openstackInstancesPlacementAllocationsList = (options) => {
38095
+ return (options.client ?? _heyApiClient).get({
38096
+ security: [
38097
+ {
38098
+ name: 'Authorization',
38099
+ type: 'apiKey'
38100
+ },
38101
+ {
38102
+ scheme: 'bearer',
38103
+ type: 'http'
38104
+ },
38105
+ {
38106
+ scheme: 'bearer',
38107
+ type: 'http'
38108
+ }
38109
+ ],
38110
+ url: '/api/openstack-instances/{uuid}/placement_allocations/',
38111
+ ...options
38112
+ });
38113
+ };
37707
38114
  /**
37708
38115
  * List instance ports
37709
38116
  * Get a list of instance ports
@@ -37752,6 +38159,34 @@ export const openstackInstancesPull = (options) => {
37752
38159
  ...options
37753
38160
  });
37754
38161
  };
38162
+ /**
38163
+ * Rescue instance
38164
+ * Boot the instance from a separate rescue image while keeping the original disk attached. Volume-backed instances require an explicit rescue_image with hw_rescue_device or hw_rescue_bus set.
38165
+ */
38166
+ export const openstackInstancesRescue = (options) => {
38167
+ return (options.client ?? _heyApiClient).post({
38168
+ security: [
38169
+ {
38170
+ name: 'Authorization',
38171
+ type: 'apiKey'
38172
+ },
38173
+ {
38174
+ scheme: 'bearer',
38175
+ type: 'http'
38176
+ },
38177
+ {
38178
+ scheme: 'bearer',
38179
+ type: 'http'
38180
+ }
38181
+ ],
38182
+ url: '/api/openstack-instances/{uuid}/rescue/',
38183
+ ...options,
38184
+ headers: {
38185
+ 'Content-Type': 'application/json',
38186
+ ...options.headers
38187
+ }
38188
+ });
38189
+ };
37755
38190
  /**
37756
38191
  * Restart instance
37757
38192
  * Restart the instance
@@ -37902,6 +38337,30 @@ export const openstackInstancesUnlink = (options) => {
37902
38337
  ...options
37903
38338
  });
37904
38339
  };
38340
+ /**
38341
+ * Unrescue instance
38342
+ * Restore the instance from rescue mode.
38343
+ */
38344
+ export const openstackInstancesUnrescue = (options) => {
38345
+ return (options.client ?? _heyApiClient).post({
38346
+ security: [
38347
+ {
38348
+ name: 'Authorization',
38349
+ type: 'apiKey'
38350
+ },
38351
+ {
38352
+ scheme: 'bearer',
38353
+ type: 'http'
38354
+ },
38355
+ {
38356
+ scheme: 'bearer',
38357
+ type: 'http'
38358
+ }
38359
+ ],
38360
+ url: '/api/openstack-instances/{uuid}/unrescue/',
38361
+ ...options
38362
+ });
38363
+ };
37905
38364
  /**
37906
38365
  * Update instance allowed address pairs
37907
38366
  * Update allowed address pairs of the instance