waldur-js-client 8.0.8 → 8.0.9-dev.1

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
@@ -9830,30 +9830,6 @@ export const customersAddUser = (options) => {
9830
9830
  }
9831
9831
  });
9832
9832
  };
9833
- /**
9834
- * Get customer resource usage statistics broken down per offering
9835
- * Returns one row per (offering, component type, billing type) for all non-terminated resources within the customer. Each row's `usage` and `limit_usage` are aggregated using the offering's own `limit_period`, so quarterly offerings report quarter-to-date, yearly report year-to-date, total report lifetime, and monthly report current month. Each row also includes the resolved current period bounds (`current_period_label`, `current_period_start`, `current_period_end`).
9836
- */
9837
- export const customersComponentsUsageRetrieve = (options) => {
9838
- return (options.client ?? _heyApiClient).get({
9839
- security: [
9840
- {
9841
- name: 'Authorization',
9842
- type: 'apiKey'
9843
- },
9844
- {
9845
- scheme: 'bearer',
9846
- type: 'http'
9847
- },
9848
- {
9849
- scheme: 'bearer',
9850
- type: 'http'
9851
- }
9852
- ],
9853
- url: '/api/customers/{uuid}/components-usage/',
9854
- ...options
9855
- });
9856
- };
9857
9833
  /**
9858
9834
  * Update customer contact details
9859
9835
  * Update organization contact information. Requires CUSTOMER_CONTACT_UPDATE or CUSTOMER.UPDATE permission.
@@ -10138,6 +10114,34 @@ export const customersUpdateProjectDigestConfigUpdate = (options) => {
10138
10114
  }
10139
10115
  });
10140
10116
  };
10117
+ /**
10118
+ * Update default affiliations for an organization
10119
+ * Replaces the organization's default affiliation list. Project creators in the organization will be limited to choosing from this list when affiliating a project. Staff-only.
10120
+ */
10121
+ export const customersUpdateDefaultAffiliations = (options) => {
10122
+ return (options.client ?? _heyApiClient).post({
10123
+ security: [
10124
+ {
10125
+ name: 'Authorization',
10126
+ type: 'apiKey'
10127
+ },
10128
+ {
10129
+ scheme: 'bearer',
10130
+ type: 'http'
10131
+ },
10132
+ {
10133
+ scheme: 'bearer',
10134
+ type: 'http'
10135
+ }
10136
+ ],
10137
+ url: '/api/customers/{uuid}/update_default_affiliations/',
10138
+ ...options,
10139
+ headers: {
10140
+ 'Content-Type': 'application/json',
10141
+ ...options.headers
10142
+ }
10143
+ });
10144
+ };
10141
10145
  /**
10142
10146
  * Update organization groups for a customer
10143
10147
  * Assigns a customer to one or more organization groups. This action is restricted to staff users.
@@ -17842,6 +17846,78 @@ export const marketplaceCustomerServiceAccountsRotateApiKey = (options) => {
17842
17846
  ...options
17843
17847
  });
17844
17848
  };
17849
+ /**
17850
+ * Get resource usage statistics broken down per offering
17851
+ * Returns one row per (offering, component type, billing type) for all non-terminated resources within the scope. Each row's `usage` and `limit_usage` are aggregated using the offering's own `limit_period`.
17852
+ */
17853
+ export const marketplaceCustomerUsageComponentsUsageRetrieve = (options) => {
17854
+ return (options.client ?? _heyApiClient).get({
17855
+ security: [
17856
+ {
17857
+ name: 'Authorization',
17858
+ type: 'apiKey'
17859
+ },
17860
+ {
17861
+ scheme: 'bearer',
17862
+ type: 'http'
17863
+ },
17864
+ {
17865
+ scheme: 'bearer',
17866
+ type: 'http'
17867
+ }
17868
+ ],
17869
+ url: '/api/marketplace-customer-usage/{uuid}/components-usage/',
17870
+ ...options
17871
+ });
17872
+ };
17873
+ /**
17874
+ * Get per-project usage breakdown for a single offering
17875
+ * Returns the customer's usage of one offering broken down by project. Each project entry includes an in-period total `usage` and a monthly `buckets` array. Projects are sorted by usage descending.
17876
+ */
17877
+ export const marketplaceCustomerUsageComponentsUsageByProjectRetrieve = (options) => {
17878
+ return (options.client ?? _heyApiClient).get({
17879
+ security: [
17880
+ {
17881
+ name: 'Authorization',
17882
+ type: 'apiKey'
17883
+ },
17884
+ {
17885
+ scheme: 'bearer',
17886
+ type: 'http'
17887
+ },
17888
+ {
17889
+ scheme: 'bearer',
17890
+ type: 'http'
17891
+ }
17892
+ ],
17893
+ url: '/api/marketplace-customer-usage/{uuid}/components-usage-by-project/',
17894
+ ...options
17895
+ });
17896
+ };
17897
+ /**
17898
+ * Get monthly usage buckets for a single offering
17899
+ * Returns a per-month timeseries of `ComponentUsage` for one offering, restricted to that offering's current `limit_period`. Buckets are keyed by `billing_period` (always month-start). `period_offset` shifts the window backward by N periods.
17900
+ */
17901
+ export const marketplaceCustomerUsageComponentsUsageTimeseriesRetrieve = (options) => {
17902
+ return (options.client ?? _heyApiClient).get({
17903
+ security: [
17904
+ {
17905
+ name: 'Authorization',
17906
+ type: 'apiKey'
17907
+ },
17908
+ {
17909
+ scheme: 'bearer',
17910
+ type: 'http'
17911
+ },
17912
+ {
17913
+ scheme: 'bearer',
17914
+ type: 'http'
17915
+ }
17916
+ ],
17917
+ url: '/api/marketplace-customer-usage/{uuid}/components-usage-timeseries/',
17918
+ ...options
17919
+ });
17920
+ };
17845
17921
  /**
17846
17922
  * Get demo preset details
17847
17923
  * Returns detailed information about a specific demo preset. Staff access only.
@@ -21738,6 +21814,54 @@ export const marketplaceProjectUpdateRequestsReject = (options) => {
21738
21814
  }
21739
21815
  });
21740
21816
  };
21817
+ /**
21818
+ * Get resource usage statistics broken down per offering
21819
+ * Returns one row per (offering, component type, billing type) for all non-terminated resources within the scope. Each row's `usage` and `limit_usage` are aggregated using the offering's own `limit_period`.
21820
+ */
21821
+ export const marketplaceProjectUsageComponentsUsageRetrieve = (options) => {
21822
+ return (options.client ?? _heyApiClient).get({
21823
+ security: [
21824
+ {
21825
+ name: 'Authorization',
21826
+ type: 'apiKey'
21827
+ },
21828
+ {
21829
+ scheme: 'bearer',
21830
+ type: 'http'
21831
+ },
21832
+ {
21833
+ scheme: 'bearer',
21834
+ type: 'http'
21835
+ }
21836
+ ],
21837
+ url: '/api/marketplace-project-usage/{uuid}/components-usage/',
21838
+ ...options
21839
+ });
21840
+ };
21841
+ /**
21842
+ * Get monthly usage buckets for a single offering
21843
+ * Returns a per-month timeseries of `ComponentUsage` for one offering, restricted to that offering's current `limit_period`. Buckets are keyed by `billing_period` (always month-start). `period_offset` shifts the window backward by N periods.
21844
+ */
21845
+ export const marketplaceProjectUsageComponentsUsageTimeseriesRetrieve = (options) => {
21846
+ return (options.client ?? _heyApiClient).get({
21847
+ security: [
21848
+ {
21849
+ name: 'Authorization',
21850
+ type: 'apiKey'
21851
+ },
21852
+ {
21853
+ scheme: 'bearer',
21854
+ type: 'http'
21855
+ },
21856
+ {
21857
+ scheme: 'bearer',
21858
+ type: 'http'
21859
+ }
21860
+ ],
21861
+ url: '/api/marketplace-project-usage/{uuid}/components-usage-timeseries/',
21862
+ ...options
21863
+ });
21864
+ };
21741
21865
  /**
21742
21866
  * List provider offerings
21743
21867
  * Returns a paginated list of offerings for the provider.
@@ -35889,30 +36013,6 @@ export const openportalUnmanagedProjectsCompletionStatusRetrieve = (options) =>
35889
36013
  ...options
35890
36014
  });
35891
36015
  };
35892
- /**
35893
- * Get project resource usage statistics broken down per offering
35894
- * Returns one row per (offering, component type, billing type) for all non-terminated resources within the project. Each row's `usage` and `limit_usage` are aggregated using the offering's own `limit_period`, so quarterly offerings report quarter-to-date, yearly report year-to-date, total report lifetime, and monthly report current month. Each row also includes the resolved current period bounds (`current_period_label`, `current_period_start`, `current_period_end`).
35895
- */
35896
- export const openportalUnmanagedProjectsComponentsUsageRetrieve = (options) => {
35897
- return (options.client ?? _heyApiClient).get({
35898
- security: [
35899
- {
35900
- name: 'Authorization',
35901
- type: 'apiKey'
35902
- },
35903
- {
35904
- scheme: 'bearer',
35905
- type: 'http'
35906
- },
35907
- {
35908
- scheme: 'bearer',
35909
- type: 'http'
35910
- }
35911
- ],
35912
- url: '/api/openportal-unmanaged-projects/{uuid}/components-usage/',
35913
- ...options
35914
- });
35915
- };
35916
36016
  /**
35917
36017
  * Revoke a role from a user
35918
36018
  * Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
@@ -36073,10 +36173,10 @@ export const openportalUnmanagedProjectsSubmitAnswers = (options) => {
36073
36173
  });
36074
36174
  };
36075
36175
  /**
36076
- * Update affiliated organizations for a project
36077
- * Assigns a project to one or more affiliated organizations. Replaces the current set.
36176
+ * Update affiliation for a project
36177
+ * Assigns the project to a single affiliation (or clears it when null).
36078
36178
  */
36079
- export const openportalUnmanagedProjectsUpdateAffiliatedOrganizations = (options) => {
36179
+ export const openportalUnmanagedProjectsUpdateAffiliation = (options) => {
36080
36180
  return (options.client ?? _heyApiClient).post({
36081
36181
  security: [
36082
36182
  {
@@ -36092,7 +36192,7 @@ export const openportalUnmanagedProjectsUpdateAffiliatedOrganizations = (options
36092
36192
  type: 'http'
36093
36193
  }
36094
36194
  ],
36095
- url: '/api/openportal-unmanaged-projects/{uuid}/update_affiliated_organizations/',
36195
+ url: '/api/openportal-unmanaged-projects/{uuid}/update_affiliation/',
36096
36196
  ...options,
36097
36197
  headers: {
36098
36198
  'Content-Type': 'application/json',
@@ -45139,30 +45239,6 @@ export const projectsCompletionStatusRetrieve = (options) => {
45139
45239
  ...options
45140
45240
  });
45141
45241
  };
45142
- /**
45143
- * Get project resource usage statistics broken down per offering
45144
- * Returns one row per (offering, component type, billing type) for all non-terminated resources within the project. Each row's `usage` and `limit_usage` are aggregated using the offering's own `limit_period`, so quarterly offerings report quarter-to-date, yearly report year-to-date, total report lifetime, and monthly report current month. Each row also includes the resolved current period bounds (`current_period_label`, `current_period_start`, `current_period_end`).
45145
- */
45146
- export const projectsComponentsUsageRetrieve = (options) => {
45147
- return (options.client ?? _heyApiClient).get({
45148
- security: [
45149
- {
45150
- name: 'Authorization',
45151
- type: 'apiKey'
45152
- },
45153
- {
45154
- scheme: 'bearer',
45155
- type: 'http'
45156
- },
45157
- {
45158
- scheme: 'bearer',
45159
- type: 'http'
45160
- }
45161
- ],
45162
- url: '/api/projects/{uuid}/components-usage/',
45163
- ...options
45164
- });
45165
- };
45166
45242
  /**
45167
45243
  * Revoke a role from a user
45168
45244
  * Removes a specific role from a user within the current scope. This effectively revokes their permissions associated with that role.
@@ -45346,10 +45422,10 @@ export const projectsSyncUserRoles = (options) => {
45346
45422
  });
45347
45423
  };
45348
45424
  /**
45349
- * Update affiliated organizations for a project
45350
- * Assigns a project to one or more affiliated organizations. Replaces the current set.
45425
+ * Update affiliation for a project
45426
+ * Assigns the project to a single affiliation (or clears it when null).
45351
45427
  */
45352
- export const projectsUpdateAffiliatedOrganizations = (options) => {
45428
+ export const projectsUpdateAffiliation = (options) => {
45353
45429
  return (options.client ?? _heyApiClient).post({
45354
45430
  security: [
45355
45431
  {
@@ -45365,7 +45441,7 @@ export const projectsUpdateAffiliatedOrganizations = (options) => {
45365
45441
  type: 'http'
45366
45442
  }
45367
45443
  ],
45368
- url: '/api/projects/{uuid}/update_affiliated_organizations/',
45444
+ url: '/api/projects/{uuid}/update_affiliation/',
45369
45445
  ...options,
45370
45446
  headers: {
45371
45447
  'Content-Type': 'application/json',