waldur-js-client 8.0.10-dev.0 → 8.0.10-dev.10

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
@@ -4598,6 +4598,126 @@ export const conflictsOfInterestWaive = (options) => (options.client ?? client).
4598
4598
  ...options.headers
4599
4599
  }
4600
4600
  });
4601
+ export const creditTransactionsList = (options) => (options?.client ?? client).get({
4602
+ security: [
4603
+ { name: 'Authorization', type: 'apiKey' },
4604
+ { scheme: 'bearer', type: 'http' }
4605
+ ],
4606
+ url: '/api/credit-transactions/',
4607
+ ...options
4608
+ });
4609
+ /**
4610
+ * Get number of items in the collection matching the request parameters.
4611
+ */
4612
+ export const creditTransactionsCount = (options) => (options?.client ?? client).head({
4613
+ security: [
4614
+ { name: 'Authorization', type: 'apiKey' },
4615
+ { scheme: 'bearer', type: 'http' }
4616
+ ],
4617
+ url: '/api/credit-transactions/',
4618
+ ...options
4619
+ });
4620
+ export const creditTransactionsRetrieve = (options) => (options.client ?? client).get({
4621
+ security: [
4622
+ { name: 'Authorization', type: 'apiKey' },
4623
+ { scheme: 'bearer', type: 'http' }
4624
+ ],
4625
+ url: '/api/credit-transactions/{uuid}/',
4626
+ ...options
4627
+ });
4628
+ export const customerAffiliatesList = (options) => (options?.client ?? client).get({
4629
+ security: [
4630
+ { name: 'Authorization', type: 'apiKey' },
4631
+ { scheme: 'bearer', type: 'http' }
4632
+ ],
4633
+ url: '/api/customer-affiliates/',
4634
+ ...options
4635
+ });
4636
+ /**
4637
+ * Get number of items in the collection matching the request parameters.
4638
+ */
4639
+ export const customerAffiliatesCount = (options) => (options?.client ?? client).head({
4640
+ security: [
4641
+ { name: 'Authorization', type: 'apiKey' },
4642
+ { scheme: 'bearer', type: 'http' }
4643
+ ],
4644
+ url: '/api/customer-affiliates/',
4645
+ ...options
4646
+ });
4647
+ export const customerAffiliatesCreate = (options) => (options.client ?? client).post({
4648
+ security: [
4649
+ { name: 'Authorization', type: 'apiKey' },
4650
+ { scheme: 'bearer', type: 'http' }
4651
+ ],
4652
+ url: '/api/customer-affiliates/',
4653
+ ...options,
4654
+ headers: {
4655
+ 'Content-Type': 'application/json',
4656
+ ...options.headers
4657
+ }
4658
+ });
4659
+ export const customerAffiliatesDestroy = (options) => (options.client ?? client).delete({
4660
+ security: [
4661
+ { name: 'Authorization', type: 'apiKey' },
4662
+ { scheme: 'bearer', type: 'http' }
4663
+ ],
4664
+ url: '/api/customer-affiliates/{uuid}/',
4665
+ ...options
4666
+ });
4667
+ export const customerAffiliatesRetrieve = (options) => (options.client ?? client).get({
4668
+ security: [
4669
+ { name: 'Authorization', type: 'apiKey' },
4670
+ { scheme: 'bearer', type: 'http' }
4671
+ ],
4672
+ url: '/api/customer-affiliates/{uuid}/',
4673
+ ...options
4674
+ });
4675
+ export const customerAffiliatesPartialUpdate = (options) => (options.client ?? client).patch({
4676
+ security: [
4677
+ { name: 'Authorization', type: 'apiKey' },
4678
+ { scheme: 'bearer', type: 'http' }
4679
+ ],
4680
+ url: '/api/customer-affiliates/{uuid}/',
4681
+ ...options,
4682
+ headers: {
4683
+ 'Content-Type': 'application/json',
4684
+ ...options.headers
4685
+ }
4686
+ });
4687
+ export const customerAffiliatesUpdate = (options) => (options.client ?? client).put({
4688
+ security: [
4689
+ { name: 'Authorization', type: 'apiKey' },
4690
+ { scheme: 'bearer', type: 'http' }
4691
+ ],
4692
+ url: '/api/customer-affiliates/{uuid}/',
4693
+ ...options,
4694
+ headers: {
4695
+ 'Content-Type': 'application/json',
4696
+ ...options.headers
4697
+ }
4698
+ });
4699
+ /**
4700
+ * List fees accrued from this affiliate link. Exposes the fee amount and invoice period only — never the referred customer's invoice contents.
4701
+ */
4702
+ export const customerAffiliatesAccrualsList = (options) => (options.client ?? client).get({
4703
+ security: [
4704
+ { name: 'Authorization', type: 'apiKey' },
4705
+ { scheme: 'bearer', type: 'http' }
4706
+ ],
4707
+ url: '/api/customer-affiliates/{uuid}/accruals/',
4708
+ ...options
4709
+ });
4710
+ /**
4711
+ * Earnings summary of this affiliate link: lifetime total, per-month series and the affiliate organization's withdrawable credit balance.
4712
+ */
4713
+ export const customerAffiliatesEarningsRetrieve = (options) => (options.client ?? client).get({
4714
+ security: [
4715
+ { name: 'Authorization', type: 'apiKey' },
4716
+ { scheme: 'bearer', type: 'http' }
4717
+ ],
4718
+ url: '/api/customer-affiliates/{uuid}/earnings/',
4719
+ ...options
4720
+ });
4601
4721
  export const customerCreditsList = (options) => (options?.client ?? client).get({
4602
4722
  security: [
4603
4723
  { name: 'Authorization', type: 'apiKey' },
@@ -4669,6 +4789,21 @@ export const customerCreditsUpdate = (options) => (options.client ?? client).put
4669
4789
  ...options.headers
4670
4790
  }
4671
4791
  });
4792
+ /**
4793
+ * Staff adjustment of the withdrawable part of the credit. Records a signed ledger entry with a comment and changes the credit value by the same amount.
4794
+ */
4795
+ export const customerCreditsAdjustWithdrawable = (options) => (options.client ?? client).post({
4796
+ security: [
4797
+ { name: 'Authorization', type: 'apiKey' },
4798
+ { scheme: 'bearer', type: 'http' }
4799
+ ],
4800
+ url: '/api/customer-credits/{uuid}/adjust_withdrawable/',
4801
+ ...options,
4802
+ headers: {
4803
+ 'Content-Type': 'application/json',
4804
+ ...options.headers
4805
+ }
4806
+ });
4672
4807
  export const customerCreditsApplyCompensations = (options) => (options.client ?? client).post({
4673
4808
  security: [
4674
4809
  { name: 'Authorization', type: 'apiKey' },
@@ -10153,6 +10288,32 @@ export const marketplaceOfferingUsersCompletionStatusRetrieve = (options) => (op
10153
10288
  url: '/api/marketplace-offering-users/{uuid}/completion_status/',
10154
10289
  ...options
10155
10290
  });
10291
+ /**
10292
+ * List POSIX UID/GID allocations of an offering user
10293
+ *
10294
+ * Returns the user's POSIX identifiers (UID, primary GID) and, for each, the POSIX ID pool that tracks it. The pool fields are null when the value is not tracked by a pool.
10295
+ */
10296
+ export const marketplaceOfferingUsersPosixAllocationsList = (options) => (options.client ?? client).get({
10297
+ security: [
10298
+ { name: 'Authorization', type: 'apiKey' },
10299
+ { scheme: 'bearer', type: 'http' }
10300
+ ],
10301
+ url: '/api/marketplace-offering-users/{uuid}/posix_allocations/',
10302
+ ...options
10303
+ });
10304
+ /**
10305
+ * List project group GIDs an offering user belongs to
10306
+ *
10307
+ * Returns the project group GIDs (shared GIDs that appear in the user's GLAuth otherGroups) for this offering user.
10308
+ */
10309
+ export const marketplaceOfferingUsersPosixGroupsList = (options) => (options.client ?? client).get({
10310
+ security: [
10311
+ { name: 'Authorization', type: 'apiKey' },
10312
+ { scheme: 'bearer', type: 'http' }
10313
+ ],
10314
+ url: '/api/marketplace-offering-users/{uuid}/posix_groups/',
10315
+ ...options
10316
+ });
10156
10317
  /**
10157
10318
  * Request deletion of an offering user
10158
10319
  *
@@ -10265,6 +10426,23 @@ export const marketplaceOfferingUsersSetPendingAdditionalValidation = (options)
10265
10426
  ...options.headers
10266
10427
  }
10267
10428
  });
10429
+ /**
10430
+ * Set POSIX attributes for an offering user
10431
+ *
10432
+ * Override the login shell, home directory, UID and/or primary GID for a single offering user, taking precedence over the offering-level defaults / the range allocator. UID and primary GID re-point the allocation ledger; values outside every active range are accepted but reported in the response 'warnings'.
10433
+ */
10434
+ export const marketplaceOfferingUsersSetPosixAttributes = (options) => (options.client ?? client).post({
10435
+ security: [
10436
+ { name: 'Authorization', type: 'apiKey' },
10437
+ { scheme: 'bearer', type: 'http' }
10438
+ ],
10439
+ url: '/api/marketplace-offering-users/{uuid}/set_posix_attributes/',
10440
+ ...options,
10441
+ headers: {
10442
+ 'Content-Type': 'application/json',
10443
+ ...options.headers
10444
+ }
10445
+ });
10268
10446
  /**
10269
10447
  * Set state to Validation Complete
10270
10448
  *
@@ -10366,6 +10544,32 @@ export const marketplaceOfferingUsersChecklistTemplateCount = (options) => (opti
10366
10544
  url: '/api/marketplace-offering-users/checklist-template/',
10367
10545
  ...options
10368
10546
  });
10547
+ /**
10548
+ * List a user's POSIX identities across all their offerings
10549
+ *
10550
+ * Consolidated view of one user's POSIX identifiers (UID, primary GID and project group GIDs) across every offering they have an account on, each with the range it was allocated from. Scoped to the offering users the requester is allowed to see.
10551
+ */
10552
+ export const marketplaceOfferingUsersPosixIdentitiesList = (options) => (options.client ?? client).get({
10553
+ security: [
10554
+ { name: 'Authorization', type: 'apiKey' },
10555
+ { scheme: 'bearer', type: 'http' }
10556
+ ],
10557
+ url: '/api/marketplace-offering-users/posix_identities/',
10558
+ ...options
10559
+ });
10560
+ /**
10561
+ * List a user's POSIX identities across all their offerings
10562
+ *
10563
+ * Get number of items in the collection matching the request parameters.
10564
+ */
10565
+ export const marketplaceOfferingUsersPosixIdentitiesCount = (options) => (options.client ?? client).head({
10566
+ security: [
10567
+ { name: 'Authorization', type: 'apiKey' },
10568
+ { scheme: 'bearer', type: 'http' }
10569
+ ],
10570
+ url: '/api/marketplace-offering-users/posix_identities/',
10571
+ ...options
10572
+ });
10369
10573
  /**
10370
10574
  * Get profile field warnings
10371
10575
  *
@@ -10392,6 +10596,25 @@ export const marketplaceOfferingUsersProfileFieldWarningsCount = (options) => (o
10392
10596
  url: '/api/marketplace-offering-users/profile_field_warnings/',
10393
10597
  ...options
10394
10598
  });
10599
+ export const marketplaceOpenstackDuplicateOfferingsList = (options) => (options?.client ?? client).get({
10600
+ security: [
10601
+ { name: 'Authorization', type: 'apiKey' },
10602
+ { scheme: 'bearer', type: 'http' }
10603
+ ],
10604
+ url: '/api/marketplace-openstack-duplicate-offerings/',
10605
+ ...options
10606
+ });
10607
+ /**
10608
+ * Get number of items in the collection matching the request parameters.
10609
+ */
10610
+ export const marketplaceOpenstackDuplicateOfferingsCount = (options) => (options?.client ?? client).head({
10611
+ security: [
10612
+ { name: 'Authorization', type: 'apiKey' },
10613
+ { scheme: 'bearer', type: 'http' }
10614
+ ],
10615
+ url: '/api/marketplace-openstack-duplicate-offerings/',
10616
+ ...options
10617
+ });
10395
10618
  /**
10396
10619
  * List orders
10397
10620
  *
@@ -11050,6 +11273,115 @@ export const marketplacePlansUsageStatsCount = (options) => (options?.client ??
11050
11273
  *
11051
11274
  */
11052
11275
  export const marketplacePluginsList = (options) => (options?.client ?? client).get({ url: '/api/marketplace-plugins/', ...options });
11276
+ export const marketplacePosixIdPoolsList = (options) => (options?.client ?? client).get({
11277
+ security: [
11278
+ { name: 'Authorization', type: 'apiKey' },
11279
+ { scheme: 'bearer', type: 'http' }
11280
+ ],
11281
+ url: '/api/marketplace-posix-id-pools/',
11282
+ ...options
11283
+ });
11284
+ /**
11285
+ * Get number of items in the collection matching the request parameters.
11286
+ */
11287
+ export const marketplacePosixIdPoolsCount = (options) => (options?.client ?? client).head({
11288
+ security: [
11289
+ { name: 'Authorization', type: 'apiKey' },
11290
+ { scheme: 'bearer', type: 'http' }
11291
+ ],
11292
+ url: '/api/marketplace-posix-id-pools/',
11293
+ ...options
11294
+ });
11295
+ export const marketplacePosixIdPoolsCreate = (options) => (options?.client ?? client).post({
11296
+ security: [
11297
+ { name: 'Authorization', type: 'apiKey' },
11298
+ { scheme: 'bearer', type: 'http' }
11299
+ ],
11300
+ url: '/api/marketplace-posix-id-pools/',
11301
+ ...options,
11302
+ headers: {
11303
+ 'Content-Type': 'application/json',
11304
+ ...options?.headers
11305
+ }
11306
+ });
11307
+ export const marketplacePosixIdPoolsDestroy = (options) => (options.client ?? client).delete({
11308
+ security: [
11309
+ { name: 'Authorization', type: 'apiKey' },
11310
+ { scheme: 'bearer', type: 'http' }
11311
+ ],
11312
+ url: '/api/marketplace-posix-id-pools/{uuid}/',
11313
+ ...options
11314
+ });
11315
+ export const marketplacePosixIdPoolsRetrieve = (options) => (options.client ?? client).get({
11316
+ security: [
11317
+ { name: 'Authorization', type: 'apiKey' },
11318
+ { scheme: 'bearer', type: 'http' }
11319
+ ],
11320
+ url: '/api/marketplace-posix-id-pools/{uuid}/',
11321
+ ...options
11322
+ });
11323
+ export const marketplacePosixIdPoolsPartialUpdate = (options) => (options.client ?? client).patch({
11324
+ security: [
11325
+ { name: 'Authorization', type: 'apiKey' },
11326
+ { scheme: 'bearer', type: 'http' }
11327
+ ],
11328
+ url: '/api/marketplace-posix-id-pools/{uuid}/',
11329
+ ...options,
11330
+ headers: {
11331
+ 'Content-Type': 'application/json',
11332
+ ...options.headers
11333
+ }
11334
+ });
11335
+ export const marketplacePosixIdPoolsUpdate = (options) => (options.client ?? client).put({
11336
+ security: [
11337
+ { name: 'Authorization', type: 'apiKey' },
11338
+ { scheme: 'bearer', type: 'http' }
11339
+ ],
11340
+ url: '/api/marketplace-posix-id-pools/{uuid}/',
11341
+ ...options,
11342
+ headers: {
11343
+ 'Content-Type': 'application/json',
11344
+ ...options.headers
11345
+ }
11346
+ });
11347
+ /**
11348
+ * Pool utilization statistics
11349
+ */
11350
+ export const marketplacePosixIdPoolsStatsRetrieve = (options) => (options.client ?? client).get({
11351
+ security: [
11352
+ { name: 'Authorization', type: 'apiKey' },
11353
+ { scheme: 'bearer', type: 'http' }
11354
+ ],
11355
+ url: '/api/marketplace-posix-id-pools/{uuid}/stats/',
11356
+ ...options
11357
+ });
11358
+ export const marketplacePosixIdentitiesList = (options) => (options?.client ?? client).get({
11359
+ security: [
11360
+ { name: 'Authorization', type: 'apiKey' },
11361
+ { scheme: 'bearer', type: 'http' }
11362
+ ],
11363
+ url: '/api/marketplace-posix-identities/',
11364
+ ...options
11365
+ });
11366
+ /**
11367
+ * Get number of items in the collection matching the request parameters.
11368
+ */
11369
+ export const marketplacePosixIdentitiesCount = (options) => (options?.client ?? client).head({
11370
+ security: [
11371
+ { name: 'Authorization', type: 'apiKey' },
11372
+ { scheme: 'bearer', type: 'http' }
11373
+ ],
11374
+ url: '/api/marketplace-posix-identities/',
11375
+ ...options
11376
+ });
11377
+ export const marketplacePosixIdentitiesRetrieve = (options) => (options.client ?? client).get({
11378
+ security: [
11379
+ { name: 'Authorization', type: 'apiKey' },
11380
+ { scheme: 'bearer', type: 'http' }
11381
+ ],
11382
+ url: '/api/marketplace-posix-identities/{uuid}/',
11383
+ ...options
11384
+ });
11053
11385
  export const marketplaceProjectEstimatedCostPoliciesList = (options) => (options?.client ?? client).get({
11054
11386
  security: [
11055
11387
  { name: 'Authorization', type: 'apiKey' },
@@ -11211,6 +11543,32 @@ export const marketplaceProjectOrderAutoApprovalsUpdate = (options) => (options.
11211
11543
  ...options.headers
11212
11544
  }
11213
11545
  });
11546
+ /**
11547
+ * List POSIX group GIDs assigned to a project
11548
+ *
11549
+ * Returns every POSIX group GID a project has been assigned, across all offerings: project-mapped groups (project_group_gid) and resource / resource-project role groups (role_group_gid). The project_uuid query parameter is required.
11550
+ */
11551
+ export const marketplaceProjectPosixGroupsList = (options) => (options.client ?? client).get({
11552
+ security: [
11553
+ { name: 'Authorization', type: 'apiKey' },
11554
+ { scheme: 'bearer', type: 'http' }
11555
+ ],
11556
+ url: '/api/marketplace-project-posix-groups/',
11557
+ ...options
11558
+ });
11559
+ /**
11560
+ * List POSIX group GIDs assigned to a project
11561
+ *
11562
+ * Get number of items in the collection matching the request parameters.
11563
+ */
11564
+ export const marketplaceProjectPosixGroupsCount = (options) => (options.client ?? client).head({
11565
+ security: [
11566
+ { name: 'Authorization', type: 'apiKey' },
11567
+ { scheme: 'bearer', type: 'http' }
11568
+ ],
11569
+ url: '/api/marketplace-project-posix-groups/',
11570
+ ...options
11571
+ });
11214
11572
  /**
11215
11573
  * List service accounts
11216
11574
  */
@@ -11750,6 +12108,19 @@ export const marketplaceProviderOfferingsDraft = (options) => (options.client ??
11750
12108
  url: '/api/marketplace-provider-offerings/{uuid}/draft/',
11751
12109
  ...options
11752
12110
  });
12111
+ /**
12112
+ * Effective POSIX ID pool
12113
+ *
12114
+ * The POSIX ID pool that governs this offering: its own override pool if present, otherwise the service provider's default pool. Returns null when no pool is configured.
12115
+ */
12116
+ export const marketplaceProviderOfferingsEffectivePosixIdPoolRetrieve = (options) => (options.client ?? client).get({
12117
+ security: [
12118
+ { name: 'Authorization', type: 'apiKey' },
12119
+ { scheme: 'bearer', type: 'http' }
12120
+ ],
12121
+ url: '/api/marketplace-provider-offerings/{uuid}/effective_posix_id_pool/',
12122
+ ...options
12123
+ });
11753
12124
  /**
11754
12125
  * Export offering data
11755
12126
  *
@@ -30966,7 +31337,7 @@ export const userPermissionRequestsReject = (options) => (options.client ?? clie
30966
31337
  /**
30967
31338
  * List user permissions
30968
31339
  *
30969
- * Get a list of all permissions for the current user. Staff and support users can view all user permissions. The list can be filtered by user, scope, role, etc.
31340
+ * Get a list of all permissions for the current user. Staff and support users can view all user permissions. The list can be filtered by user, scope, role, etc. By default only active grants are returned; staff and support can pass show_inactive=true to include revoked grants (the full history).
30970
31341
  */
30971
31342
  export const userPermissionsList = (options) => (options?.client ?? client).get({
30972
31343
  security: [
@@ -31002,6 +31373,40 @@ export const userPermissionsRetrieve = (options) => (options.client ?? client).g
31002
31373
  url: '/api/user-permissions/{uuid}/',
31003
31374
  ...options
31004
31375
  });
31376
+ /**
31377
+ * Restore a revoked user role
31378
+ *
31379
+ * Restores a previously revoked user role grant, reinstating the associated permissions immediately. Restoring a role whose scope (e.g. a project) has been soft-deleted is not allowed.
31380
+ */
31381
+ export const userPermissionsRestore = (options) => (options.client ?? client).post({
31382
+ security: [
31383
+ { name: 'Authorization', type: 'apiKey' },
31384
+ { scheme: 'bearer', type: 'http' }
31385
+ ],
31386
+ url: '/api/user-permissions/{uuid}/restore/',
31387
+ ...options,
31388
+ headers: {
31389
+ 'Content-Type': 'application/json',
31390
+ ...options.headers
31391
+ }
31392
+ });
31393
+ /**
31394
+ * Revoke a user role
31395
+ *
31396
+ * Revokes a specific user role grant, deactivating the associated permissions immediately.
31397
+ */
31398
+ export const userPermissionsRevoke = (options) => (options.client ?? client).post({
31399
+ security: [
31400
+ { name: 'Authorization', type: 'apiKey' },
31401
+ { scheme: 'bearer', type: 'http' }
31402
+ ],
31403
+ url: '/api/user-permissions/{uuid}/revoke/',
31404
+ ...options,
31405
+ headers: {
31406
+ 'Content-Type': 'application/json',
31407
+ ...options.headers
31408
+ }
31409
+ });
31005
31410
  export const usersList = (options) => (options?.client ?? client).get({
31006
31411
  security: [
31007
31412
  { name: 'Authorization', type: 'apiKey' },