waldur-js-client 8.0.9-dev.2 → 8.0.9-dev.21

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
@@ -165,6 +165,34 @@ export const apiAuthTaraInitRetrieve = (options) => {
165
165
  ...options
166
166
  });
167
167
  };
168
+ /**
169
+ * Exchange code for token
170
+ * Exchanges a short-lived one-time code for an authentication token.
171
+ */
172
+ export const apiAuthTokenExchange = (options) => {
173
+ return (options.client ?? _heyApiClient).post({
174
+ security: [
175
+ {
176
+ name: 'Authorization',
177
+ type: 'apiKey'
178
+ },
179
+ {
180
+ scheme: 'bearer',
181
+ type: 'http'
182
+ },
183
+ {
184
+ scheme: 'bearer',
185
+ type: 'http'
186
+ }
187
+ ],
188
+ url: '/api-auth/token-exchange/',
189
+ ...options,
190
+ headers: {
191
+ 'Content-Type': 'application/json',
192
+ ...options.headers
193
+ }
194
+ });
195
+ };
168
196
  /**
169
197
  * List access subnets
170
198
  * Retrieve a list of access subnets. Staff and support users can see all subnets, while other users can only see subnets associated with customers they have a role in.
@@ -3224,6 +3252,34 @@ export const autoprovisioningRulesUpdate = (options) => {
3224
3252
  }
3225
3253
  });
3226
3254
  };
3255
+ /**
3256
+ * Dry-run rule evaluation against a target user.
3257
+ * Evaluate this rule against the given user without provisioning. Returns per-filter outcomes, the customer-lookup verdict (when the rule uses use_user_organization_as_customer_name) and a top-line would_provision flag together with a human-readable block_reason.
3258
+ */
3259
+ export const autoprovisioningRulesTestMatch = (options) => {
3260
+ return (options.client ?? _heyApiClient).post({
3261
+ security: [
3262
+ {
3263
+ name: 'Authorization',
3264
+ type: 'apiKey'
3265
+ },
3266
+ {
3267
+ scheme: 'bearer',
3268
+ type: 'http'
3269
+ },
3270
+ {
3271
+ scheme: 'bearer',
3272
+ type: 'http'
3273
+ }
3274
+ ],
3275
+ url: '/api/autoprovisioning-rules/{uuid}/test-match/',
3276
+ ...options,
3277
+ headers: {
3278
+ 'Content-Type': 'application/json',
3279
+ ...options.headers
3280
+ }
3281
+ });
3282
+ };
3227
3283
  export const awsImagesList = (options) => {
3228
3284
  return (options?.client ?? _heyApiClient).get({
3229
3285
  security: [
@@ -18452,6 +18508,161 @@ export const marketplaceOfferingFilesRetrieve = (options) => {
18452
18508
  ...options
18453
18509
  });
18454
18510
  };
18511
+ export const marketplaceOfferingGroupsList = (options) => {
18512
+ return (options?.client ?? _heyApiClient).get({
18513
+ security: [
18514
+ {
18515
+ name: 'Authorization',
18516
+ type: 'apiKey'
18517
+ },
18518
+ {
18519
+ scheme: 'bearer',
18520
+ type: 'http'
18521
+ },
18522
+ {
18523
+ scheme: 'bearer',
18524
+ type: 'http'
18525
+ }
18526
+ ],
18527
+ url: '/api/marketplace-offering-groups/',
18528
+ ...options
18529
+ });
18530
+ };
18531
+ /**
18532
+ * Get number of items in the collection matching the request parameters.
18533
+ */
18534
+ export const marketplaceOfferingGroupsCount = (options) => {
18535
+ return (options?.client ?? _heyApiClient).head({
18536
+ security: [
18537
+ {
18538
+ name: 'Authorization',
18539
+ type: 'apiKey'
18540
+ },
18541
+ {
18542
+ scheme: 'bearer',
18543
+ type: 'http'
18544
+ },
18545
+ {
18546
+ scheme: 'bearer',
18547
+ type: 'http'
18548
+ }
18549
+ ],
18550
+ url: '/api/marketplace-offering-groups/',
18551
+ ...options
18552
+ });
18553
+ };
18554
+ export const marketplaceOfferingGroupsCreate = (options) => {
18555
+ return (options.client ?? _heyApiClient).post({
18556
+ security: [
18557
+ {
18558
+ name: 'Authorization',
18559
+ type: 'apiKey'
18560
+ },
18561
+ {
18562
+ scheme: 'bearer',
18563
+ type: 'http'
18564
+ },
18565
+ {
18566
+ scheme: 'bearer',
18567
+ type: 'http'
18568
+ }
18569
+ ],
18570
+ url: '/api/marketplace-offering-groups/',
18571
+ ...options,
18572
+ headers: {
18573
+ 'Content-Type': 'application/json',
18574
+ ...options.headers
18575
+ }
18576
+ });
18577
+ };
18578
+ export const marketplaceOfferingGroupsDestroy = (options) => {
18579
+ return (options.client ?? _heyApiClient).delete({
18580
+ security: [
18581
+ {
18582
+ name: 'Authorization',
18583
+ type: 'apiKey'
18584
+ },
18585
+ {
18586
+ scheme: 'bearer',
18587
+ type: 'http'
18588
+ },
18589
+ {
18590
+ scheme: 'bearer',
18591
+ type: 'http'
18592
+ }
18593
+ ],
18594
+ url: '/api/marketplace-offering-groups/{uuid}/',
18595
+ ...options
18596
+ });
18597
+ };
18598
+ export const marketplaceOfferingGroupsRetrieve = (options) => {
18599
+ return (options.client ?? _heyApiClient).get({
18600
+ security: [
18601
+ {
18602
+ name: 'Authorization',
18603
+ type: 'apiKey'
18604
+ },
18605
+ {
18606
+ scheme: 'bearer',
18607
+ type: 'http'
18608
+ },
18609
+ {
18610
+ scheme: 'bearer',
18611
+ type: 'http'
18612
+ }
18613
+ ],
18614
+ url: '/api/marketplace-offering-groups/{uuid}/',
18615
+ ...options
18616
+ });
18617
+ };
18618
+ export const marketplaceOfferingGroupsPartialUpdate = (options) => {
18619
+ return (options.client ?? _heyApiClient).patch({
18620
+ security: [
18621
+ {
18622
+ name: 'Authorization',
18623
+ type: 'apiKey'
18624
+ },
18625
+ {
18626
+ scheme: 'bearer',
18627
+ type: 'http'
18628
+ },
18629
+ {
18630
+ scheme: 'bearer',
18631
+ type: 'http'
18632
+ }
18633
+ ],
18634
+ url: '/api/marketplace-offering-groups/{uuid}/',
18635
+ ...options,
18636
+ headers: {
18637
+ 'Content-Type': 'application/json',
18638
+ ...options.headers
18639
+ }
18640
+ });
18641
+ };
18642
+ export const marketplaceOfferingGroupsUpdate = (options) => {
18643
+ return (options.client ?? _heyApiClient).put({
18644
+ security: [
18645
+ {
18646
+ name: 'Authorization',
18647
+ type: 'apiKey'
18648
+ },
18649
+ {
18650
+ scheme: 'bearer',
18651
+ type: 'http'
18652
+ },
18653
+ {
18654
+ scheme: 'bearer',
18655
+ type: 'http'
18656
+ }
18657
+ ],
18658
+ url: '/api/marketplace-offering-groups/{uuid}/',
18659
+ ...options,
18660
+ headers: {
18661
+ 'Content-Type': 'application/json',
18662
+ ...options.headers
18663
+ }
18664
+ });
18665
+ };
18455
18666
  export const marketplaceOfferingPermissionsList = (options) => {
18456
18667
  return (options?.client ?? _heyApiClient).get({
18457
18668
  security: [
@@ -21497,6 +21708,161 @@ export const marketplaceProjectEstimatedCostPoliciesActionsCount = (options) =>
21497
21708
  ...options
21498
21709
  });
21499
21710
  };
21711
+ export const marketplaceProjectOrderAutoApprovalsList = (options) => {
21712
+ return (options?.client ?? _heyApiClient).get({
21713
+ security: [
21714
+ {
21715
+ name: 'Authorization',
21716
+ type: 'apiKey'
21717
+ },
21718
+ {
21719
+ scheme: 'bearer',
21720
+ type: 'http'
21721
+ },
21722
+ {
21723
+ scheme: 'bearer',
21724
+ type: 'http'
21725
+ }
21726
+ ],
21727
+ url: '/api/marketplace-project-order-auto-approvals/',
21728
+ ...options
21729
+ });
21730
+ };
21731
+ /**
21732
+ * Get number of items in the collection matching the request parameters.
21733
+ */
21734
+ export const marketplaceProjectOrderAutoApprovalsCount = (options) => {
21735
+ return (options?.client ?? _heyApiClient).head({
21736
+ security: [
21737
+ {
21738
+ name: 'Authorization',
21739
+ type: 'apiKey'
21740
+ },
21741
+ {
21742
+ scheme: 'bearer',
21743
+ type: 'http'
21744
+ },
21745
+ {
21746
+ scheme: 'bearer',
21747
+ type: 'http'
21748
+ }
21749
+ ],
21750
+ url: '/api/marketplace-project-order-auto-approvals/',
21751
+ ...options
21752
+ });
21753
+ };
21754
+ export const marketplaceProjectOrderAutoApprovalsCreate = (options) => {
21755
+ return (options.client ?? _heyApiClient).post({
21756
+ security: [
21757
+ {
21758
+ name: 'Authorization',
21759
+ type: 'apiKey'
21760
+ },
21761
+ {
21762
+ scheme: 'bearer',
21763
+ type: 'http'
21764
+ },
21765
+ {
21766
+ scheme: 'bearer',
21767
+ type: 'http'
21768
+ }
21769
+ ],
21770
+ url: '/api/marketplace-project-order-auto-approvals/',
21771
+ ...options,
21772
+ headers: {
21773
+ 'Content-Type': 'application/json',
21774
+ ...options.headers
21775
+ }
21776
+ });
21777
+ };
21778
+ export const marketplaceProjectOrderAutoApprovalsDestroy = (options) => {
21779
+ return (options.client ?? _heyApiClient).delete({
21780
+ security: [
21781
+ {
21782
+ name: 'Authorization',
21783
+ type: 'apiKey'
21784
+ },
21785
+ {
21786
+ scheme: 'bearer',
21787
+ type: 'http'
21788
+ },
21789
+ {
21790
+ scheme: 'bearer',
21791
+ type: 'http'
21792
+ }
21793
+ ],
21794
+ url: '/api/marketplace-project-order-auto-approvals/{uuid}/',
21795
+ ...options
21796
+ });
21797
+ };
21798
+ export const marketplaceProjectOrderAutoApprovalsRetrieve = (options) => {
21799
+ return (options.client ?? _heyApiClient).get({
21800
+ security: [
21801
+ {
21802
+ name: 'Authorization',
21803
+ type: 'apiKey'
21804
+ },
21805
+ {
21806
+ scheme: 'bearer',
21807
+ type: 'http'
21808
+ },
21809
+ {
21810
+ scheme: 'bearer',
21811
+ type: 'http'
21812
+ }
21813
+ ],
21814
+ url: '/api/marketplace-project-order-auto-approvals/{uuid}/',
21815
+ ...options
21816
+ });
21817
+ };
21818
+ export const marketplaceProjectOrderAutoApprovalsPartialUpdate = (options) => {
21819
+ return (options.client ?? _heyApiClient).patch({
21820
+ security: [
21821
+ {
21822
+ name: 'Authorization',
21823
+ type: 'apiKey'
21824
+ },
21825
+ {
21826
+ scheme: 'bearer',
21827
+ type: 'http'
21828
+ },
21829
+ {
21830
+ scheme: 'bearer',
21831
+ type: 'http'
21832
+ }
21833
+ ],
21834
+ url: '/api/marketplace-project-order-auto-approvals/{uuid}/',
21835
+ ...options,
21836
+ headers: {
21837
+ 'Content-Type': 'application/json',
21838
+ ...options.headers
21839
+ }
21840
+ });
21841
+ };
21842
+ export const marketplaceProjectOrderAutoApprovalsUpdate = (options) => {
21843
+ return (options.client ?? _heyApiClient).put({
21844
+ security: [
21845
+ {
21846
+ name: 'Authorization',
21847
+ type: 'apiKey'
21848
+ },
21849
+ {
21850
+ scheme: 'bearer',
21851
+ type: 'http'
21852
+ },
21853
+ {
21854
+ scheme: 'bearer',
21855
+ type: 'http'
21856
+ }
21857
+ ],
21858
+ url: '/api/marketplace-project-order-auto-approvals/{uuid}/',
21859
+ ...options,
21860
+ headers: {
21861
+ 'Content-Type': 'application/json',
21862
+ ...options.headers
21863
+ }
21864
+ });
21865
+ };
21500
21866
  /**
21501
21867
  * List service accounts
21502
21868
  */
@@ -23074,6 +23440,34 @@ export const marketplaceProviderOfferingsSetBackendMetadata = (options) => {
23074
23440
  }
23075
23441
  });
23076
23442
  };
23443
+ /**
23444
+ * Assign or clear the offering group
23445
+ * Sets the offering's ``offering_group`` FK. Pass ``offering_group: <uuid>`` to assign a group, or ``offering_group: null`` to clear it. The group must belong to the same customer as the offering.
23446
+ */
23447
+ export const marketplaceProviderOfferingsSetOfferingGroup = (options) => {
23448
+ return (options.client ?? _heyApiClient).post({
23449
+ security: [
23450
+ {
23451
+ name: 'Authorization',
23452
+ type: 'apiKey'
23453
+ },
23454
+ {
23455
+ scheme: 'bearer',
23456
+ type: 'http'
23457
+ },
23458
+ {
23459
+ scheme: 'bearer',
23460
+ type: 'http'
23461
+ }
23462
+ ],
23463
+ url: '/api/marketplace-provider-offerings/{uuid}/set_offering_group/',
23464
+ ...options,
23465
+ headers: {
23466
+ 'Content-Type': 'application/json',
23467
+ ...options.headers
23468
+ }
23469
+ });
23470
+ };
23077
23471
  /**
23078
23472
  * Bind / unbind offering to a service profile
23079
23473
  * Sets the offering's `profile` FK. Pass `profile: <uuid>` to bind, or `profile: null` to unbind. Requires UPDATE_OFFERING permission on the offering's customer (service-provider owners and staff). Triggers async reconciliation of RoleAvailability rows on this offering against the profile's role catalog (or wipes them on unbind).
@@ -23782,6 +24176,34 @@ export const marketplaceProviderOfferingsUpdateThumbnail = (options) => {
23782
24176
  }
23783
24177
  });
23784
24178
  };
24179
+ /**
24180
+ * Swap offering type
24181
+ * Changes the offering's `type` between Marketplace.Basic and the site-agent type (Marketplace.Slurm). Both plugins share the same data shape (the site-agent processors inherit from Basic and only delegate the send paths to the external agent), so the swap is safe in either direction. Refused if the offering's current type is not in the swappable set.
24182
+ */
24183
+ export const marketplaceProviderOfferingsUpdateType = (options) => {
24184
+ return (options.client ?? _heyApiClient).post({
24185
+ security: [
24186
+ {
24187
+ name: 'Authorization',
24188
+ type: 'apiKey'
24189
+ },
24190
+ {
24191
+ scheme: 'bearer',
24192
+ type: 'http'
24193
+ },
24194
+ {
24195
+ scheme: 'bearer',
24196
+ type: 'http'
24197
+ }
24198
+ ],
24199
+ url: '/api/marketplace-provider-offerings/{uuid}/update_type/',
24200
+ ...options,
24201
+ headers: {
24202
+ 'Content-Type': 'application/json',
24203
+ ...options.headers
24204
+ }
24205
+ });
24206
+ };
23785
24207
  /**
23786
24208
  * Update a user's role expiration
23787
24209
  * 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.
@@ -24377,6 +24799,34 @@ export const marketplaceProviderResourcesAddUser = (options) => {
24377
24799
  }
24378
24800
  });
24379
24801
  };
24802
+ /**
24803
+ * Adjust resource start and end dates (staff only)
24804
+ * Updates both the originating order's start_date and the resource's end_date in one atomic operation. Intended for helpdesk-style prepaid offerings where staff need to shift the service window forward. Does not regenerate invoices, issue credits, or send notifications.
24805
+ */
24806
+ export const marketplaceProviderResourcesAdjustDates = (options) => {
24807
+ return (options.client ?? _heyApiClient).post({
24808
+ security: [
24809
+ {
24810
+ name: 'Authorization',
24811
+ type: 'apiKey'
24812
+ },
24813
+ {
24814
+ scheme: 'bearer',
24815
+ type: 'http'
24816
+ },
24817
+ {
24818
+ scheme: 'bearer',
24819
+ type: 'http'
24820
+ }
24821
+ ],
24822
+ url: '/api/marketplace-provider-resources/{uuid}/adjust_dates/',
24823
+ ...options,
24824
+ headers: {
24825
+ 'Content-Type': 'application/json',
24826
+ ...options.headers
24827
+ }
24828
+ });
24829
+ };
24380
24830
  /**
24381
24831
  * Revoke a role from a user
24382
24832
  * Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
@@ -25657,6 +26107,174 @@ export const marketplaceRemoteSynchronisationsRunSynchronisation = (options) =>
25657
26107
  ...options
25658
26108
  });
25659
26109
  };
26110
+ export const marketplaceResourceLimitChangeRequestsList = (options) => {
26111
+ return (options?.client ?? _heyApiClient).get({
26112
+ security: [
26113
+ {
26114
+ name: 'Authorization',
26115
+ type: 'apiKey'
26116
+ },
26117
+ {
26118
+ scheme: 'bearer',
26119
+ type: 'http'
26120
+ },
26121
+ {
26122
+ scheme: 'bearer',
26123
+ type: 'http'
26124
+ }
26125
+ ],
26126
+ url: '/api/marketplace-resource-limit-change-requests/',
26127
+ ...options
26128
+ });
26129
+ };
26130
+ /**
26131
+ * Get number of items in the collection matching the request parameters.
26132
+ */
26133
+ export const marketplaceResourceLimitChangeRequestsCount = (options) => {
26134
+ return (options?.client ?? _heyApiClient).head({
26135
+ security: [
26136
+ {
26137
+ name: 'Authorization',
26138
+ type: 'apiKey'
26139
+ },
26140
+ {
26141
+ scheme: 'bearer',
26142
+ type: 'http'
26143
+ },
26144
+ {
26145
+ scheme: 'bearer',
26146
+ type: 'http'
26147
+ }
26148
+ ],
26149
+ url: '/api/marketplace-resource-limit-change-requests/',
26150
+ ...options
26151
+ });
26152
+ };
26153
+ export const marketplaceResourceLimitChangeRequestsCreate = (options) => {
26154
+ return (options.client ?? _heyApiClient).post({
26155
+ security: [
26156
+ {
26157
+ name: 'Authorization',
26158
+ type: 'apiKey'
26159
+ },
26160
+ {
26161
+ scheme: 'bearer',
26162
+ type: 'http'
26163
+ },
26164
+ {
26165
+ scheme: 'bearer',
26166
+ type: 'http'
26167
+ }
26168
+ ],
26169
+ url: '/api/marketplace-resource-limit-change-requests/',
26170
+ ...options,
26171
+ headers: {
26172
+ 'Content-Type': 'application/json',
26173
+ ...options.headers
26174
+ }
26175
+ });
26176
+ };
26177
+ export const marketplaceResourceLimitChangeRequestsRetrieve = (options) => {
26178
+ return (options.client ?? _heyApiClient).get({
26179
+ security: [
26180
+ {
26181
+ name: 'Authorization',
26182
+ type: 'apiKey'
26183
+ },
26184
+ {
26185
+ scheme: 'bearer',
26186
+ type: 'http'
26187
+ },
26188
+ {
26189
+ scheme: 'bearer',
26190
+ type: 'http'
26191
+ }
26192
+ ],
26193
+ url: '/api/marketplace-resource-limit-change-requests/{uuid}/',
26194
+ ...options
26195
+ });
26196
+ };
26197
+ /**
26198
+ * Approve resource limit change request and apply limits via marketplace order.
26199
+ */
26200
+ export const marketplaceResourceLimitChangeRequestsApprove = (options) => {
26201
+ return (options.client ?? _heyApiClient).post({
26202
+ security: [
26203
+ {
26204
+ name: 'Authorization',
26205
+ type: 'apiKey'
26206
+ },
26207
+ {
26208
+ scheme: 'bearer',
26209
+ type: 'http'
26210
+ },
26211
+ {
26212
+ scheme: 'bearer',
26213
+ type: 'http'
26214
+ }
26215
+ ],
26216
+ url: '/api/marketplace-resource-limit-change-requests/{uuid}/approve/',
26217
+ ...options,
26218
+ headers: {
26219
+ 'Content-Type': 'application/json',
26220
+ ...options.headers
26221
+ }
26222
+ });
26223
+ };
26224
+ /**
26225
+ * Cancel resource limit change request. Only the creator can cancel.
26226
+ */
26227
+ export const marketplaceResourceLimitChangeRequestsCancel = (options) => {
26228
+ return (options.client ?? _heyApiClient).post({
26229
+ security: [
26230
+ {
26231
+ name: 'Authorization',
26232
+ type: 'apiKey'
26233
+ },
26234
+ {
26235
+ scheme: 'bearer',
26236
+ type: 'http'
26237
+ },
26238
+ {
26239
+ scheme: 'bearer',
26240
+ type: 'http'
26241
+ }
26242
+ ],
26243
+ url: '/api/marketplace-resource-limit-change-requests/{uuid}/cancel/',
26244
+ ...options,
26245
+ headers: {
26246
+ 'Content-Type': 'application/json',
26247
+ ...options.headers
26248
+ }
26249
+ });
26250
+ };
26251
+ /**
26252
+ * Reject resource limit change request.
26253
+ */
26254
+ export const marketplaceResourceLimitChangeRequestsReject = (options) => {
26255
+ return (options.client ?? _heyApiClient).post({
26256
+ security: [
26257
+ {
26258
+ name: 'Authorization',
26259
+ type: 'apiKey'
26260
+ },
26261
+ {
26262
+ scheme: 'bearer',
26263
+ type: 'http'
26264
+ },
26265
+ {
26266
+ scheme: 'bearer',
26267
+ type: 'http'
26268
+ }
26269
+ ],
26270
+ url: '/api/marketplace-resource-limit-change-requests/{uuid}/reject/',
26271
+ ...options,
26272
+ headers: {
26273
+ 'Content-Type': 'application/json',
26274
+ ...options.headers
26275
+ }
26276
+ });
26277
+ };
25660
26278
  export const marketplaceResourceOfferingsList = (options) => {
25661
26279
  return (options.client ?? _heyApiClient).get({
25662
26280
  security: [
@@ -25912,6 +26530,34 @@ export const marketplaceResourceProjectsListUsersList = (options) => {
25912
26530
  ...options
25913
26531
  });
25914
26532
  };
26533
+ /**
26534
+ * Recover a soft-deleted resource project
26535
+ * Flips is_removed back to False on a previously soft-deleted resource project. Optionally restores the team members captured at soft-delete time, or sends them new invitations. Pass ?include_removed=true on the lookup so the soft-deleted row can be resolved.
26536
+ */
26537
+ export const marketplaceResourceProjectsRecover = (options) => {
26538
+ return (options.client ?? _heyApiClient).post({
26539
+ security: [
26540
+ {
26541
+ name: 'Authorization',
26542
+ type: 'apiKey'
26543
+ },
26544
+ {
26545
+ scheme: 'bearer',
26546
+ type: 'http'
26547
+ },
26548
+ {
26549
+ scheme: 'bearer',
26550
+ type: 'http'
26551
+ }
26552
+ ],
26553
+ url: '/api/marketplace-resource-projects/{uuid}/recover/',
26554
+ ...options,
26555
+ headers: {
26556
+ 'Content-Type': 'application/json',
26557
+ ...options.headers
26558
+ }
26559
+ });
26560
+ };
25915
26561
  /**
25916
26562
  * Update a user's role expiration
25917
26563
  * 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.
@@ -26096,6 +26742,34 @@ export const marketplaceResourcesAddUser = (options) => {
26096
26742
  }
26097
26743
  });
26098
26744
  };
26745
+ /**
26746
+ * Adjust resource start and end dates (staff only)
26747
+ * Updates both the originating order's start_date and the resource's end_date in one atomic operation. Intended for helpdesk-style prepaid offerings where staff need to shift the service window forward. Does not regenerate invoices, issue credits, or send notifications.
26748
+ */
26749
+ export const marketplaceResourcesAdjustDates = (options) => {
26750
+ return (options.client ?? _heyApiClient).post({
26751
+ security: [
26752
+ {
26753
+ name: 'Authorization',
26754
+ type: 'apiKey'
26755
+ },
26756
+ {
26757
+ scheme: 'bearer',
26758
+ type: 'http'
26759
+ },
26760
+ {
26761
+ scheme: 'bearer',
26762
+ type: 'http'
26763
+ }
26764
+ ],
26765
+ url: '/api/marketplace-resources/{uuid}/adjust_dates/',
26766
+ ...options,
26767
+ headers: {
26768
+ 'Content-Type': 'application/json',
26769
+ ...options.headers
26770
+ }
26771
+ });
26772
+ };
26099
26773
  /**
26100
26774
  * Revoke a role from a user
26101
26775
  * Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
@@ -27969,6 +28643,29 @@ export const marketplaceServiceProvidersOfferingsList = (options) => {
27969
28643
  ...options
27970
28644
  });
27971
28645
  };
28646
+ /**
28647
+ * List distinct offering types for a service provider
28648
+ */
28649
+ export const marketplaceServiceProvidersOfferingsTypesList = (options) => {
28650
+ return (options.client ?? _heyApiClient).get({
28651
+ security: [
28652
+ {
28653
+ name: 'Authorization',
28654
+ type: 'apiKey'
28655
+ },
28656
+ {
28657
+ scheme: 'bearer',
28658
+ type: 'http'
28659
+ },
28660
+ {
28661
+ scheme: 'bearer',
28662
+ type: 'http'
28663
+ }
28664
+ ],
28665
+ url: '/api/marketplace-service-providers/{service_provider_uuid}/offerings/types/',
28666
+ ...options
28667
+ });
28668
+ };
27972
28669
  /**
27973
28670
  * List project permissions of a service provider
27974
28671
  * Returns a paginated list of project permissions for all projects that have consumed resources from the specified service provider.
@@ -28761,6 +29458,77 @@ export const marketplaceSiteAgentIdentitiesCleanupOrphaned = (options) => {
28761
29458
  }
28762
29459
  });
28763
29460
  };
29461
+ export const marketplaceSiteAgentLogsList = (options) => {
29462
+ return (options?.client ?? _heyApiClient).get({
29463
+ security: [
29464
+ {
29465
+ name: 'Authorization',
29466
+ type: 'apiKey'
29467
+ },
29468
+ {
29469
+ scheme: 'bearer',
29470
+ type: 'http'
29471
+ },
29472
+ {
29473
+ scheme: 'bearer',
29474
+ type: 'http'
29475
+ }
29476
+ ],
29477
+ url: '/api/marketplace-site-agent-logs/',
29478
+ ...options
29479
+ });
29480
+ };
29481
+ /**
29482
+ * Get number of items in the collection matching the request parameters.
29483
+ */
29484
+ export const marketplaceSiteAgentLogsCount = (options) => {
29485
+ return (options?.client ?? _heyApiClient).head({
29486
+ security: [
29487
+ {
29488
+ name: 'Authorization',
29489
+ type: 'apiKey'
29490
+ },
29491
+ {
29492
+ scheme: 'bearer',
29493
+ type: 'http'
29494
+ },
29495
+ {
29496
+ scheme: 'bearer',
29497
+ type: 'http'
29498
+ }
29499
+ ],
29500
+ url: '/api/marketplace-site-agent-logs/',
29501
+ ...options
29502
+ });
29503
+ };
29504
+ /**
29505
+ * Push site agent logs
29506
+ * Receive a batch of log entries from a site agent. Send a list where each entry includes agent_identity_uuid.
29507
+ */
29508
+ export const marketplaceSiteAgentLogsCreate = (options) => {
29509
+ return (options.client ?? _heyApiClient).post({
29510
+ security: [
29511
+ {
29512
+ name: 'Authorization',
29513
+ type: 'apiKey'
29514
+ },
29515
+ {
29516
+ scheme: 'bearer',
29517
+ type: 'http'
29518
+ },
29519
+ {
29520
+ scheme: 'bearer',
29521
+ type: 'http'
29522
+ }
29523
+ ],
29524
+ url: '/api/marketplace-site-agent-logs/',
29525
+ ...options,
29526
+ headers: {
29527
+ 'Content-Type': 'application/json',
29528
+ ...options.headers
29529
+ }
29530
+ });
29531
+ };
28764
29532
  export const marketplaceSiteAgentProcessorsList = (options) => {
28765
29533
  return (options?.client ?? _heyApiClient).get({
28766
29534
  security: [
@@ -32165,6 +32933,52 @@ export const marketplaceStatsUserAffiliationCountCount = (options) => {
32165
32933
  ...options
32166
32934
  });
32167
32935
  };
32936
+ /**
32937
+ * Paginated affiliation rows with parsed organization, country, category and identifier fields. Drives the affiliation details table; the unparsed aggregate counts remain available via user_affiliation_count.
32938
+ */
32939
+ export const marketplaceStatsUserAffiliationDetailsList = (options) => {
32940
+ return (options?.client ?? _heyApiClient).get({
32941
+ security: [
32942
+ {
32943
+ name: 'Authorization',
32944
+ type: 'apiKey'
32945
+ },
32946
+ {
32947
+ scheme: 'bearer',
32948
+ type: 'http'
32949
+ },
32950
+ {
32951
+ scheme: 'bearer',
32952
+ type: 'http'
32953
+ }
32954
+ ],
32955
+ url: '/api/marketplace-stats/user_affiliation_details/',
32956
+ ...options
32957
+ });
32958
+ };
32959
+ /**
32960
+ * Get number of items in the collection matching the request parameters.
32961
+ */
32962
+ export const marketplaceStatsUserAffiliationDetailsCount = (options) => {
32963
+ return (options?.client ?? _heyApiClient).head({
32964
+ security: [
32965
+ {
32966
+ name: 'Authorization',
32967
+ type: 'apiKey'
32968
+ },
32969
+ {
32970
+ scheme: 'bearer',
32971
+ type: 'http'
32972
+ },
32973
+ {
32974
+ scheme: 'bearer',
32975
+ type: 'http'
32976
+ }
32977
+ ],
32978
+ url: '/api/marketplace-stats/user_affiliation_details/',
32979
+ ...options
32980
+ });
32981
+ };
32168
32982
  /**
32169
32983
  * Return user count grouped by authentication method.
32170
32984
  */
@@ -44368,7 +45182,7 @@ export const personalAccessTokensRetrieve = (options) => {
44368
45182
  };
44369
45183
  /**
44370
45184
  * Rotate a personal access token
44371
- * Atomically revoke the old token and create a new one with the same scopes.
45185
+ * Atomically revoke the old token and create a new one with the same scopes and bindings.
44372
45186
  */
44373
45187
  export const personalAccessTokensRotate = (options) => {
44374
45188
  return (options.client ?? _heyApiClient).post({
@@ -44390,6 +45204,60 @@ export const personalAccessTokensRotate = (options) => {
44390
45204
  ...options
44391
45205
  });
44392
45206
  };
45207
+ /**
45208
+ * List entity types the caller can bind each permission to
45209
+ * For each permission, which TYPE_MAP keys the caller could bind a PAT to.
45210
+ *
45211
+ * Drives the create-PAT frontend's type picker. For staff users every
45212
+ * type is offered for every permission (they bypass UserRole checks).
45213
+ * For other users we return only types where they hold an active role
45214
+ * granting the permission directly (the binding then inherits to
45215
+ * descendants at request time).
45216
+ */
45217
+ export const personalAccessTokensAvailableBindingTargetsList = (options) => {
45218
+ return (options?.client ?? _heyApiClient).get({
45219
+ security: [
45220
+ {
45221
+ name: 'Authorization',
45222
+ type: 'apiKey'
45223
+ },
45224
+ {
45225
+ scheme: 'bearer',
45226
+ type: 'http'
45227
+ },
45228
+ {
45229
+ scheme: 'bearer',
45230
+ type: 'http'
45231
+ }
45232
+ ],
45233
+ url: '/api/personal-access-tokens/available_binding_targets/',
45234
+ ...options
45235
+ });
45236
+ };
45237
+ /**
45238
+ * List entity types the caller can bind each permission to
45239
+ * Get number of items in the collection matching the request parameters.
45240
+ */
45241
+ export const personalAccessTokensAvailableBindingTargetsCount = (options) => {
45242
+ return (options?.client ?? _heyApiClient).head({
45243
+ security: [
45244
+ {
45245
+ name: 'Authorization',
45246
+ type: 'apiKey'
45247
+ },
45248
+ {
45249
+ scheme: 'bearer',
45250
+ type: 'http'
45251
+ },
45252
+ {
45253
+ scheme: 'bearer',
45254
+ type: 'http'
45255
+ }
45256
+ ],
45257
+ url: '/api/personal-access-tokens/available_binding_targets/',
45258
+ ...options
45259
+ });
45260
+ };
44393
45261
  /**
44394
45262
  * List available scopes for PAT creation
44395
45263
  * Return permissions the current user can delegate to a PAT.
@@ -47029,6 +47897,33 @@ export const proposalProtectedCallsDetectConflicts = (options) => {
47029
47897
  }
47030
47898
  });
47031
47899
  };
47900
+ /**
47901
+ * Duplicate a call. The new call inherits the source call's configuration (offerings, rounds, workflow steps, resource templates, role mappings, documents, and COI/matching/assignment/applicant-visibility settings) and starts in draft state. Proposals, reviews, team permissions, and reviewer-pool memberships are not copied.
47902
+ */
47903
+ export const proposalProtectedCallsDuplicate = (options) => {
47904
+ return (options.client ?? _heyApiClient).post({
47905
+ security: [
47906
+ {
47907
+ name: 'Authorization',
47908
+ type: 'apiKey'
47909
+ },
47910
+ {
47911
+ scheme: 'bearer',
47912
+ type: 'http'
47913
+ },
47914
+ {
47915
+ scheme: 'bearer',
47916
+ type: 'http'
47917
+ }
47918
+ ],
47919
+ url: '/api/proposal-protected-calls/{uuid}/duplicate/',
47920
+ ...options,
47921
+ headers: {
47922
+ 'Content-Type': 'application/json',
47923
+ ...options.headers
47924
+ }
47925
+ });
47926
+ };
47032
47927
  /**
47033
47928
  * Generate assignment batches for reviewers. Uses the affinity matrix and COI records to assign reviewers to proposals.
47034
47929
  */
@@ -47633,6 +48528,33 @@ export const proposalProtectedCallsRoundsSet = (options) => {
47633
48528
  }
47634
48529
  });
47635
48530
  };
48531
+ /**
48532
+ * Create multiple rounds on a call at a fixed cadence. Spacing is controlled by ``cadence`` (monthly/quarterly/biannual/yearly/custom). Each round's ``cutoff_time`` is derived as ``start_time + submission_window_days``. Fixed-date allocation is not supported in bulk mode.
48533
+ */
48534
+ export const proposalProtectedCallsRoundsBulkSet = (options) => {
48535
+ return (options.client ?? _heyApiClient).post({
48536
+ security: [
48537
+ {
48538
+ name: 'Authorization',
48539
+ type: 'apiKey'
48540
+ },
48541
+ {
48542
+ scheme: 'bearer',
48543
+ type: 'http'
48544
+ },
48545
+ {
48546
+ scheme: 'bearer',
48547
+ type: 'http'
48548
+ }
48549
+ ],
48550
+ url: '/api/proposal-protected-calls/{uuid}/rounds-bulk-set/',
48551
+ ...options,
48552
+ headers: {
48553
+ 'Content-Type': 'application/json',
48554
+ ...options.headers
48555
+ }
48556
+ });
48557
+ };
47636
48558
  export const proposalProtectedCallsRoundsDestroy = (options) => {
47637
48559
  return (options.client ?? _heyApiClient).delete({
47638
48560
  security: [
@@ -48630,7 +49552,7 @@ export const publicMaintenanceAnnouncementsRetrieve = (options) => {
48630
49552
  };
48631
49553
  /**
48632
49554
  * Execute read-only SQL query
48633
- * Execute a given SQL query against a read-only database replica. This is a powerful tool for diagnostics and reporting, but should be used with caution. Requires support user permissions.
49555
+ * Execute a given SQL query against a read-only database replica. This is a powerful tool for diagnostics and reporting, but should be used with caution. Requires staff user permissions.
48634
49556
  */
48635
49557
  export const query = (options) => {
48636
49558
  return (options.client ?? _heyApiClient).post({
@@ -54745,7 +55667,7 @@ export const statsDatabaseRetrieve = (options) => {
54745
55667
  };
54746
55668
  /**
54747
55669
  * Execute read-only SQL query
54748
- * Execute a given SQL query against a read-only database replica. This is a powerful tool for diagnostics and reporting, but should be used with caution. Requires support user permissions.
55670
+ * Execute a given SQL query against a read-only database replica. This is a powerful tool for diagnostics and reporting, but should be used with caution. Requires staff user permissions.
54749
55671
  */
54750
55672
  export const statsQuery = (options) => {
54751
55673
  return (options.client ?? _heyApiClient).post({
@@ -58591,6 +59513,30 @@ export const usersPullRemoteUser = (options) => {
58591
59513
  ...options
58592
59514
  });
58593
59515
  };
59516
+ /**
59517
+ * Pull SCIM attributes from external IdP for this user
59518
+ * Staff-only action that pulls the user's attributes from the configured external SCIM 2.0 directory (SCIM_PULL_API_URL). Pulled attributes are merged via the same source-aware policy as inbound SCIM and the Identity Bridge.
59519
+ */
59520
+ export const usersPullScimAttributes = (options) => {
59521
+ return (options.client ?? _heyApiClient).post({
59522
+ security: [
59523
+ {
59524
+ name: 'Authorization',
59525
+ type: 'apiKey'
59526
+ },
59527
+ {
59528
+ scheme: 'bearer',
59529
+ type: 'http'
59530
+ },
59531
+ {
59532
+ scheme: 'bearer',
59533
+ type: 'http'
59534
+ }
59535
+ ],
59536
+ url: '/api/users/{uuid}/pull_scim_attributes/',
59537
+ ...options
59538
+ });
59539
+ };
58594
59540
  /**
58595
59541
  * Refresh user auth token
58596
59542
  */