waldur-js-client 8.0.9-dev.12 → 8.0.9-dev.14
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.d.ts +16 -3
- package/dist/sdk.gen.js +76 -2
- package/dist/types.gen.d.ts +147 -1
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -3224,6 +3224,34 @@ export const autoprovisioningRulesUpdate = (options) => {
|
|
|
3224
3224
|
}
|
|
3225
3225
|
});
|
|
3226
3226
|
};
|
|
3227
|
+
/**
|
|
3228
|
+
* Dry-run rule evaluation against a target user.
|
|
3229
|
+
* 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.
|
|
3230
|
+
*/
|
|
3231
|
+
export const autoprovisioningRulesTestMatch = (options) => {
|
|
3232
|
+
return (options.client ?? _heyApiClient).post({
|
|
3233
|
+
security: [
|
|
3234
|
+
{
|
|
3235
|
+
name: 'Authorization',
|
|
3236
|
+
type: 'apiKey'
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
scheme: 'bearer',
|
|
3240
|
+
type: 'http'
|
|
3241
|
+
},
|
|
3242
|
+
{
|
|
3243
|
+
scheme: 'bearer',
|
|
3244
|
+
type: 'http'
|
|
3245
|
+
}
|
|
3246
|
+
],
|
|
3247
|
+
url: '/api/autoprovisioning-rules/{uuid}/test-match/',
|
|
3248
|
+
...options,
|
|
3249
|
+
headers: {
|
|
3250
|
+
'Content-Type': 'application/json',
|
|
3251
|
+
...options.headers
|
|
3252
|
+
}
|
|
3253
|
+
});
|
|
3254
|
+
};
|
|
3227
3255
|
export const awsImagesList = (options) => {
|
|
3228
3256
|
return (options?.client ?? _heyApiClient).get({
|
|
3229
3257
|
security: [
|
|
@@ -32531,6 +32559,52 @@ export const marketplaceStatsUserAffiliationCountCount = (options) => {
|
|
|
32531
32559
|
...options
|
|
32532
32560
|
});
|
|
32533
32561
|
};
|
|
32562
|
+
/**
|
|
32563
|
+
* 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.
|
|
32564
|
+
*/
|
|
32565
|
+
export const marketplaceStatsUserAffiliationDetailsList = (options) => {
|
|
32566
|
+
return (options?.client ?? _heyApiClient).get({
|
|
32567
|
+
security: [
|
|
32568
|
+
{
|
|
32569
|
+
name: 'Authorization',
|
|
32570
|
+
type: 'apiKey'
|
|
32571
|
+
},
|
|
32572
|
+
{
|
|
32573
|
+
scheme: 'bearer',
|
|
32574
|
+
type: 'http'
|
|
32575
|
+
},
|
|
32576
|
+
{
|
|
32577
|
+
scheme: 'bearer',
|
|
32578
|
+
type: 'http'
|
|
32579
|
+
}
|
|
32580
|
+
],
|
|
32581
|
+
url: '/api/marketplace-stats/user_affiliation_details/',
|
|
32582
|
+
...options
|
|
32583
|
+
});
|
|
32584
|
+
};
|
|
32585
|
+
/**
|
|
32586
|
+
* Get number of items in the collection matching the request parameters.
|
|
32587
|
+
*/
|
|
32588
|
+
export const marketplaceStatsUserAffiliationDetailsCount = (options) => {
|
|
32589
|
+
return (options?.client ?? _heyApiClient).head({
|
|
32590
|
+
security: [
|
|
32591
|
+
{
|
|
32592
|
+
name: 'Authorization',
|
|
32593
|
+
type: 'apiKey'
|
|
32594
|
+
},
|
|
32595
|
+
{
|
|
32596
|
+
scheme: 'bearer',
|
|
32597
|
+
type: 'http'
|
|
32598
|
+
},
|
|
32599
|
+
{
|
|
32600
|
+
scheme: 'bearer',
|
|
32601
|
+
type: 'http'
|
|
32602
|
+
}
|
|
32603
|
+
],
|
|
32604
|
+
url: '/api/marketplace-stats/user_affiliation_details/',
|
|
32605
|
+
...options
|
|
32606
|
+
});
|
|
32607
|
+
};
|
|
32534
32608
|
/**
|
|
32535
32609
|
* Return user count grouped by authentication method.
|
|
32536
32610
|
*/
|
|
@@ -49050,7 +49124,7 @@ export const publicMaintenanceAnnouncementsRetrieve = (options) => {
|
|
|
49050
49124
|
};
|
|
49051
49125
|
/**
|
|
49052
49126
|
* Execute read-only SQL query
|
|
49053
|
-
* 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
|
|
49127
|
+
* 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.
|
|
49054
49128
|
*/
|
|
49055
49129
|
export const query = (options) => {
|
|
49056
49130
|
return (options.client ?? _heyApiClient).post({
|
|
@@ -55165,7 +55239,7 @@ export const statsDatabaseRetrieve = (options) => {
|
|
|
55165
55239
|
};
|
|
55166
55240
|
/**
|
|
55167
55241
|
* Execute read-only SQL query
|
|
55168
|
-
* 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
|
|
55242
|
+
* 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.
|
|
55169
55243
|
*/
|
|
55170
55244
|
export const statsQuery = (options) => {
|
|
55171
55245
|
return (options.client ?? _heyApiClient).post({
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -5889,6 +5889,12 @@ export type CustomerBillingSummaryResponse = {
|
|
|
5889
5889
|
recent_consumption_records: Array<CustomerBillingSummaryConsumptionRecord>;
|
|
5890
5890
|
recent_billing_syncs: Array<CustomerBillingSummaryBillingSync>;
|
|
5891
5891
|
};
|
|
5892
|
+
export type CustomerCandidate = {
|
|
5893
|
+
readonly uuid: string;
|
|
5894
|
+
name: string;
|
|
5895
|
+
abbreviation?: string;
|
|
5896
|
+
readonly url: string | null;
|
|
5897
|
+
};
|
|
5892
5898
|
export type CustomerComponentUsagePolicy = {
|
|
5893
5899
|
readonly uuid: string;
|
|
5894
5900
|
readonly url: string;
|
|
@@ -7543,6 +7549,14 @@ export type FetchLicenseInfoResponse = {
|
|
|
7543
7549
|
[key: string]: unknown;
|
|
7544
7550
|
};
|
|
7545
7551
|
};
|
|
7552
|
+
export type FilterCheckResult = {
|
|
7553
|
+
name: string;
|
|
7554
|
+
configured: boolean;
|
|
7555
|
+
matched: boolean;
|
|
7556
|
+
user_value?: unknown;
|
|
7557
|
+
rule_value?: unknown;
|
|
7558
|
+
reason: string;
|
|
7559
|
+
};
|
|
7546
7560
|
export type FinancialReport = {
|
|
7547
7561
|
name: string;
|
|
7548
7562
|
readonly uuid: string;
|
|
@@ -23638,6 +23652,28 @@ export type RuleRequest = {
|
|
|
23638
23652
|
[key: string]: unknown;
|
|
23639
23653
|
};
|
|
23640
23654
|
};
|
|
23655
|
+
export type RuleTestMatchRequestRequest = {
|
|
23656
|
+
/**
|
|
23657
|
+
* UUID of the user to evaluate this rule against.
|
|
23658
|
+
*/
|
|
23659
|
+
user_uuid: string;
|
|
23660
|
+
};
|
|
23661
|
+
export type RuleTestMatchResponse = {
|
|
23662
|
+
would_provision: boolean;
|
|
23663
|
+
block_reason: string;
|
|
23664
|
+
user_username: string;
|
|
23665
|
+
user_email: string;
|
|
23666
|
+
user_organization: string;
|
|
23667
|
+
user_registration_method: string;
|
|
23668
|
+
user_identity_source: string;
|
|
23669
|
+
user_affiliations: Array<string>;
|
|
23670
|
+
user_is_protected: boolean;
|
|
23671
|
+
filter_results: Array<FilterCheckResult>;
|
|
23672
|
+
customer_lookup_performed: boolean;
|
|
23673
|
+
customer_candidates: Array<CustomerCandidate>;
|
|
23674
|
+
customer_lookup_ambiguous: boolean;
|
|
23675
|
+
resolved_project_name: string | null;
|
|
23676
|
+
};
|
|
23641
23677
|
export type RuntimeStates = {
|
|
23642
23678
|
/**
|
|
23643
23679
|
* Value of the runtime state
|
|
@@ -25650,6 +25686,7 @@ export type User = {
|
|
|
25650
25686
|
* Indicates what identity provider was used.
|
|
25651
25687
|
*/
|
|
25652
25688
|
readonly identity_source?: string;
|
|
25689
|
+
readonly should_protect_user_details?: boolean;
|
|
25653
25690
|
readonly has_active_session?: boolean;
|
|
25654
25691
|
readonly has_usable_password?: boolean;
|
|
25655
25692
|
readonly ip_address?: string | null;
|
|
@@ -25786,6 +25823,23 @@ export type UserAffiliationCount = {
|
|
|
25786
25823
|
*/
|
|
25787
25824
|
count: number;
|
|
25788
25825
|
};
|
|
25826
|
+
export type UserAffiliationDetail = {
|
|
25827
|
+
/**
|
|
25828
|
+
* Raw affiliation URN
|
|
25829
|
+
*/
|
|
25830
|
+
affiliation: string;
|
|
25831
|
+
organization: string | null;
|
|
25832
|
+
/**
|
|
25833
|
+
* ISO country code
|
|
25834
|
+
*/
|
|
25835
|
+
country: string | null;
|
|
25836
|
+
category: string;
|
|
25837
|
+
identifier: string | null;
|
|
25838
|
+
/**
|
|
25839
|
+
* Number of users
|
|
25840
|
+
*/
|
|
25841
|
+
count: number;
|
|
25842
|
+
};
|
|
25789
25843
|
export type UserAgreement = {
|
|
25790
25844
|
readonly url: string;
|
|
25791
25845
|
readonly uuid: string;
|
|
@@ -28920,7 +28974,7 @@ export type ProviderOfferingDetailsFieldEnum = 'access_url' | 'attributes' | 'ba
|
|
|
28920
28974
|
export type ProviderOfferingDetailsOEnum = '-created' | '-name' | '-state' | '-total_cost' | '-total_cost_estimated' | '-total_customers' | '-type' | 'created' | 'name' | 'state' | 'total_cost' | 'total_cost_estimated' | 'total_customers' | 'type';
|
|
28921
28975
|
export type ProviderOfferingCustomerFieldEnum = 'abbreviation' | 'email' | 'name' | 'phone_number' | 'slug' | 'uuid';
|
|
28922
28976
|
export type ProjectFieldEnum = 'affiliation' | 'affiliation_code' | 'affiliation_name' | 'affiliation_uuid' | 'backend_id' | 'billing_price_estimate' | 'created' | 'customer' | 'customer_abbreviation' | 'customer_display_billing_info_in_projects' | 'customer_grace_period_days' | 'customer_name' | 'customer_native_name' | 'customer_slug' | 'customer_uuid' | 'description' | 'effective_end_date' | 'end_date' | 'end_date_requested_by' | 'end_date_updated_at' | 'grace_period_days' | 'image' | 'is_in_grace_period' | 'is_industry' | 'is_removed' | 'kind' | 'marketplace_resource_count' | 'max_service_accounts' | 'name' | 'oecd_fos_2007_code' | 'oecd_fos_2007_label' | 'project_credit' | 'resources_count' | 'science_domain_code' | 'science_domain_name' | 'science_domain_uuid' | 'science_sub_domain' | 'science_sub_domain_code' | 'science_sub_domain_name' | 'slug' | 'staff_notes' | 'start_date' | 'termination_metadata' | 'type' | 'type_name' | 'type_uuid' | 'url' | 'user_affiliations' | 'user_email_patterns' | 'user_identity_sources' | 'uuid';
|
|
28923
|
-
export type UserFieldEnum = 'active_isds' | 'address' | 'affiliations' | 'agree_with_policy' | 'agreement_date' | 'attribute_sources' | 'birth_date' | 'civil_number' | 'country_of_residence' | 'date_joined' | 'deactivation_reason' | 'description' | 'eduperson_assurance' | 'email' | 'first_name' | 'full_name' | 'gender' | 'has_active_session' | 'has_usable_password' | 'identity_provider_fields' | 'identity_provider_label' | 'identity_provider_management_url' | 'identity_provider_name' | 'identity_source' | 'image' | 'ip_address' | 'is_active' | 'is_identity_manager' | 'is_staff' | 'is_support' | 'job_title' | 'last_name' | 'managed_isds' | 'nationalities' | 'nationality' | 'native_name' | 'notifications_enabled' | 'organization' | 'organization_country' | 'organization_registry_code' | 'organization_type' | 'permissions' | 'personal_title' | 'phone_number' | 'place_of_birth' | 'preferred_language' | 'registration_method' | 'requested_email' | 'slug' | 'token' | 'token_expires_at' | 'token_lifetime' | 'url' | 'username' | 'uuid';
|
|
28977
|
+
export type UserFieldEnum = 'active_isds' | 'address' | 'affiliations' | 'agree_with_policy' | 'agreement_date' | 'attribute_sources' | 'birth_date' | 'civil_number' | 'country_of_residence' | 'date_joined' | 'deactivation_reason' | 'description' | 'eduperson_assurance' | 'email' | 'first_name' | 'full_name' | 'gender' | 'has_active_session' | 'has_usable_password' | 'identity_provider_fields' | 'identity_provider_label' | 'identity_provider_management_url' | 'identity_provider_name' | 'identity_source' | 'image' | 'ip_address' | 'is_active' | 'is_identity_manager' | 'is_staff' | 'is_support' | 'job_title' | 'last_name' | 'managed_isds' | 'nationalities' | 'nationality' | 'native_name' | 'notifications_enabled' | 'organization' | 'organization_country' | 'organization_registry_code' | 'organization_type' | 'permissions' | 'personal_title' | 'phone_number' | 'place_of_birth' | 'preferred_language' | 'registration_method' | 'requested_email' | 'should_protect_user_details' | 'slug' | 'token' | 'token_expires_at' | 'token_lifetime' | 'url' | 'username' | 'uuid';
|
|
28924
28978
|
export type ResourceOEnum = '-created' | '-end_date' | '-name' | '-project_name' | '-state' | 'created' | 'end_date' | 'name' | 'project_name' | 'state';
|
|
28925
28979
|
export type PublicOfferingDetailsFieldEnum = 'access_url' | 'attributes' | 'backend_id' | 'backend_metadata' | 'billable' | 'billing_type_classification' | 'category' | 'category_title' | 'category_uuid' | 'citation_count' | 'compliance_checklist' | 'components' | 'country' | 'created' | 'customer' | 'customer_name' | 'customer_uuid' | 'datacite_doi' | 'description' | 'documentation_url' | 'effective_available_limits' | 'endpoints' | 'files' | 'full_description' | 'getting_started' | 'google_calendar_is_public' | 'google_calendar_link' | 'has_compliance_requirements' | 'helpdesk_url' | 'image' | 'integration_guide' | 'is_accessible' | 'latitude' | 'longitude' | 'name' | 'offering_group' | 'offering_group_title' | 'offering_group_uuid' | 'options' | 'order_count' | 'organization_groups' | 'parent_description' | 'parent_name' | 'parent_uuid' | 'partitions' | 'paused_reason' | 'plans' | 'plugin_options' | 'privacy_policy_link' | 'profile_name' | 'profile_uuid' | 'project' | 'project_name' | 'project_uuid' | 'promotion_campaigns' | 'quotas' | 'resource_options' | 'scope' | 'scope_error_message' | 'scope_name' | 'scope_state' | 'scope_uuid' | 'screenshots' | 'secret_options' | 'service_attributes' | 'shared' | 'slug' | 'software_catalogs' | 'state' | 'tags' | 'thumbnail' | 'total_cost' | 'total_cost_estimated' | 'total_customers' | 'type' | 'url' | 'user_has_consent' | 'uuid' | 'vendor_details';
|
|
28926
28980
|
export type RobotAccountDetailsFieldEnum = 'backend_id' | 'created' | 'customer_name' | 'customer_uuid' | 'description' | 'error_message' | 'error_traceback' | 'fingerprints' | 'keys' | 'modified' | 'offering_plugin_options' | 'project_name' | 'project_uuid' | 'provider_name' | 'provider_uuid' | 'resource' | 'resource_name' | 'resource_uuid' | 'responsible_user' | 'state' | 'type' | 'url' | 'user_keys' | 'username' | 'users' | 'uuid';
|
|
@@ -31442,6 +31496,18 @@ export type AutoprovisioningRulesUpdateResponses = {
|
|
|
31442
31496
|
200: Rule;
|
|
31443
31497
|
};
|
|
31444
31498
|
export type AutoprovisioningRulesUpdateResponse = AutoprovisioningRulesUpdateResponses[keyof AutoprovisioningRulesUpdateResponses];
|
|
31499
|
+
export type AutoprovisioningRulesTestMatchData = {
|
|
31500
|
+
body: RuleTestMatchRequestRequest;
|
|
31501
|
+
path: {
|
|
31502
|
+
uuid: string;
|
|
31503
|
+
};
|
|
31504
|
+
query?: never;
|
|
31505
|
+
url: '/api/autoprovisioning-rules/{uuid}/test-match/';
|
|
31506
|
+
};
|
|
31507
|
+
export type AutoprovisioningRulesTestMatchResponses = {
|
|
31508
|
+
200: RuleTestMatchResponse;
|
|
31509
|
+
};
|
|
31510
|
+
export type AutoprovisioningRulesTestMatchResponse = AutoprovisioningRulesTestMatchResponses[keyof AutoprovisioningRulesTestMatchResponses];
|
|
31445
31511
|
export type AwsImagesListData = {
|
|
31446
31512
|
body?: never;
|
|
31447
31513
|
path?: never;
|
|
@@ -60576,6 +60642,86 @@ export type MarketplaceStatsUserAffiliationCountCountResponses = {
|
|
|
60576
60642
|
*/
|
|
60577
60643
|
200: unknown;
|
|
60578
60644
|
};
|
|
60645
|
+
export type MarketplaceStatsUserAffiliationDetailsListData = {
|
|
60646
|
+
body?: never;
|
|
60647
|
+
path?: never;
|
|
60648
|
+
query?: {
|
|
60649
|
+
/**
|
|
60650
|
+
* One of: home-organization, personal-identifier, organization-type, user-status, eduperson, other.
|
|
60651
|
+
*/
|
|
60652
|
+
category?: string;
|
|
60653
|
+
/**
|
|
60654
|
+
* ISO country code (case-insensitive).
|
|
60655
|
+
*/
|
|
60656
|
+
country?: string;
|
|
60657
|
+
/**
|
|
60658
|
+
* Ordering field; prefix with - for descending. Allowed: count, organization, country, category, affiliation. Defaults to -count.
|
|
60659
|
+
*/
|
|
60660
|
+
o?: string;
|
|
60661
|
+
/**
|
|
60662
|
+
* Exact organization domain match.
|
|
60663
|
+
*/
|
|
60664
|
+
organization?: string;
|
|
60665
|
+
/**
|
|
60666
|
+
* A page number within the paginated result set.
|
|
60667
|
+
*/
|
|
60668
|
+
page?: number;
|
|
60669
|
+
/**
|
|
60670
|
+
* Number of results to return per page.
|
|
60671
|
+
*/
|
|
60672
|
+
page_size?: number;
|
|
60673
|
+
/**
|
|
60674
|
+
* Substring match against raw URN or organization.
|
|
60675
|
+
*/
|
|
60676
|
+
search?: string;
|
|
60677
|
+
};
|
|
60678
|
+
url: '/api/marketplace-stats/user_affiliation_details/';
|
|
60679
|
+
};
|
|
60680
|
+
export type MarketplaceStatsUserAffiliationDetailsListResponses = {
|
|
60681
|
+
200: Array<UserAffiliationDetail>;
|
|
60682
|
+
};
|
|
60683
|
+
export type MarketplaceStatsUserAffiliationDetailsListResponse = MarketplaceStatsUserAffiliationDetailsListResponses[keyof MarketplaceStatsUserAffiliationDetailsListResponses];
|
|
60684
|
+
export type MarketplaceStatsUserAffiliationDetailsCountData = {
|
|
60685
|
+
body?: never;
|
|
60686
|
+
path?: never;
|
|
60687
|
+
query?: {
|
|
60688
|
+
/**
|
|
60689
|
+
* One of: home-organization, personal-identifier, organization-type, user-status, eduperson, other.
|
|
60690
|
+
*/
|
|
60691
|
+
category?: string;
|
|
60692
|
+
/**
|
|
60693
|
+
* ISO country code (case-insensitive).
|
|
60694
|
+
*/
|
|
60695
|
+
country?: string;
|
|
60696
|
+
/**
|
|
60697
|
+
* Ordering field; prefix with - for descending. Allowed: count, organization, country, category, affiliation. Defaults to -count.
|
|
60698
|
+
*/
|
|
60699
|
+
o?: string;
|
|
60700
|
+
/**
|
|
60701
|
+
* Exact organization domain match.
|
|
60702
|
+
*/
|
|
60703
|
+
organization?: string;
|
|
60704
|
+
/**
|
|
60705
|
+
* A page number within the paginated result set.
|
|
60706
|
+
*/
|
|
60707
|
+
page?: number;
|
|
60708
|
+
/**
|
|
60709
|
+
* Number of results to return per page.
|
|
60710
|
+
*/
|
|
60711
|
+
page_size?: number;
|
|
60712
|
+
/**
|
|
60713
|
+
* Substring match against raw URN or organization.
|
|
60714
|
+
*/
|
|
60715
|
+
search?: string;
|
|
60716
|
+
};
|
|
60717
|
+
url: '/api/marketplace-stats/user_affiliation_details/';
|
|
60718
|
+
};
|
|
60719
|
+
export type MarketplaceStatsUserAffiliationDetailsCountResponses = {
|
|
60720
|
+
/**
|
|
60721
|
+
* No response body
|
|
60722
|
+
*/
|
|
60723
|
+
200: unknown;
|
|
60724
|
+
};
|
|
60579
60725
|
export type MarketplaceStatsUserAuthMethodCountListData = {
|
|
60580
60726
|
body?: never;
|
|
60581
60727
|
path?: never;
|