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

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
@@ -28761,6 +28761,77 @@ export const marketplaceSiteAgentIdentitiesCleanupOrphaned = (options) => {
28761
28761
  }
28762
28762
  });
28763
28763
  };
28764
+ export const marketplaceSiteAgentLogsList = (options) => {
28765
+ return (options?.client ?? _heyApiClient).get({
28766
+ security: [
28767
+ {
28768
+ name: 'Authorization',
28769
+ type: 'apiKey'
28770
+ },
28771
+ {
28772
+ scheme: 'bearer',
28773
+ type: 'http'
28774
+ },
28775
+ {
28776
+ scheme: 'bearer',
28777
+ type: 'http'
28778
+ }
28779
+ ],
28780
+ url: '/api/marketplace-site-agent-logs/',
28781
+ ...options
28782
+ });
28783
+ };
28784
+ /**
28785
+ * Get number of items in the collection matching the request parameters.
28786
+ */
28787
+ export const marketplaceSiteAgentLogsCount = (options) => {
28788
+ return (options?.client ?? _heyApiClient).head({
28789
+ security: [
28790
+ {
28791
+ name: 'Authorization',
28792
+ type: 'apiKey'
28793
+ },
28794
+ {
28795
+ scheme: 'bearer',
28796
+ type: 'http'
28797
+ },
28798
+ {
28799
+ scheme: 'bearer',
28800
+ type: 'http'
28801
+ }
28802
+ ],
28803
+ url: '/api/marketplace-site-agent-logs/',
28804
+ ...options
28805
+ });
28806
+ };
28807
+ /**
28808
+ * Push site agent logs
28809
+ * Receive a batch of log entries from a site agent. Send a list where each entry includes agent_identity_uuid.
28810
+ */
28811
+ export const marketplaceSiteAgentLogsCreate = (options) => {
28812
+ return (options.client ?? _heyApiClient).post({
28813
+ security: [
28814
+ {
28815
+ name: 'Authorization',
28816
+ type: 'apiKey'
28817
+ },
28818
+ {
28819
+ scheme: 'bearer',
28820
+ type: 'http'
28821
+ },
28822
+ {
28823
+ scheme: 'bearer',
28824
+ type: 'http'
28825
+ }
28826
+ ],
28827
+ url: '/api/marketplace-site-agent-logs/',
28828
+ ...options,
28829
+ headers: {
28830
+ 'Content-Type': 'application/json',
28831
+ ...options.headers
28832
+ }
28833
+ });
28834
+ };
28764
28835
  export const marketplaceSiteAgentProcessorsList = (options) => {
28765
28836
  return (options?.client ?? _heyApiClient).get({
28766
28837
  security: [
@@ -4989,6 +4989,7 @@ export type ConstanceSettings = {
4989
4989
  SSH_KEY_ALLOWED_TYPES?: Array<SshkeyallowedtypesEnum | BlankEnum>;
4990
4990
  SSH_KEY_MIN_RSA_KEY_SIZE?: number;
4991
4991
  ENABLED_REPORTING_SCREENS?: Array<EnabledreportingscreensEnum | BlankEnum>;
4992
+ SITE_AGENT_LOG_MAX_ROWS_PER_IDENTITY?: number;
4992
4993
  PAT_ENABLED?: boolean;
4993
4994
  PAT_MAX_LIFETIME_DAYS?: number;
4994
4995
  PAT_MAX_TOKENS_PER_USER?: number;
@@ -5258,6 +5259,7 @@ export type ConstanceSettingsRequest = {
5258
5259
  SSH_KEY_ALLOWED_TYPES?: Array<SshkeyallowedtypesEnum | BlankEnum>;
5259
5260
  SSH_KEY_MIN_RSA_KEY_SIZE?: number;
5260
5261
  ENABLED_REPORTING_SCREENS?: Array<EnabledreportingscreensEnum | BlankEnum>;
5262
+ SITE_AGENT_LOG_MAX_ROWS_PER_IDENTITY?: number;
5261
5263
  PAT_ENABLED?: boolean;
5262
5264
  PAT_MAX_LIFETIME_DAYS?: number;
5263
5265
  PAT_MAX_TOKENS_PER_USER?: number;
@@ -9178,6 +9180,7 @@ export type KeywordSearchModeEnum = 'expertise_only' | 'full_text';
9178
9180
  export type KindEnum = 'default' | 'course' | 'public';
9179
9181
  export type LoginpagelayoutEnum = 'split-screen' | 'centered-card' | 'minimal' | 'full-hero' | 'gradient' | 'stacked' | 'right-split' | 'glassmorphism' | 'neumorphism' | 'animated-gradient' | 'video-background' | 'bottom-sheet' | 'tabbed' | 'wizard' | 'stats' | 'news' | 'carousel' | 'logo-watermark' | 'brand-pattern' | 'duotone' | 'diagonal' | 'time-based' | 'seasonal' | 'weather';
9180
9182
  export type LbAlgorithmEnum = 'ROUND_ROBIN' | 'LEAST_CONNECTIONS' | 'SOURCE_IP' | 'SOURCE_IP_PORT';
9183
+ export type LevelEnum = 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'CRITICAL';
9181
9184
  export type LexisLink = {
9182
9185
  readonly url: string;
9183
9186
  readonly uuid: string;
@@ -18414,6 +18417,12 @@ export type Project = {
18414
18417
  */
18415
18418
  user_identity_sources?: unknown;
18416
18419
  affiliation?: AffiliatedOrganization;
18420
+ affiliation_uuid?: string | null;
18421
+ readonly affiliation_name?: string;
18422
+ /**
18423
+ * Unique short identifier, e.g. CERN, EMBL.
18424
+ */
18425
+ readonly affiliation_code?: string;
18417
18426
  science_sub_domain?: string | null;
18418
18427
  readonly science_sub_domain_name?: string;
18419
18428
  /**
@@ -23983,6 +23992,27 @@ export type SiteAgentConfigGenerationRequest = {
23983
23992
  */
23984
23993
  timezone?: string;
23985
23994
  };
23995
+ export type SiteAgentLog = {
23996
+ readonly uuid: string;
23997
+ readonly offering: string;
23998
+ readonly offering_uuid: string;
23999
+ readonly agent_identity_uuid: string;
24000
+ /**
24001
+ * Unix timestamp of the log entry
24002
+ */
24003
+ timestamp: number;
24004
+ level: LevelEnum;
24005
+ message: string;
24006
+ module: string;
24007
+ readonly created: string;
24008
+ };
24009
+ export type SiteAgentLogCreateRequest = {
24010
+ agent_identity_uuid: string;
24011
+ timestamp: number;
24012
+ level: LevelEnum;
24013
+ message: string;
24014
+ module: string;
24015
+ };
23986
24016
  export type SlurmAllocation = {
23987
24017
  readonly url?: string;
23988
24018
  readonly uuid?: string;
@@ -25689,7 +25719,7 @@ export type UserAuthToken = {
25689
25719
  };
25690
25720
  export type UserChecklistCompletion = {
25691
25721
  readonly uuid: string;
25692
- offering_user: OfferingUser;
25722
+ offering_user: UserChecklistCompletionOfferingUser | null;
25693
25723
  readonly offering_user_uuid: string | null;
25694
25724
  readonly offering_name: string | null;
25695
25725
  readonly offering_uuid: string | null;
@@ -25720,6 +25750,17 @@ export type UserChecklistCompletion = {
25720
25750
  readonly created: string;
25721
25751
  readonly modified: string;
25722
25752
  };
25753
+ export type UserChecklistCompletionOfferingUser = {
25754
+ readonly uuid: string;
25755
+ username?: string | null;
25756
+ readonly user_full_name: string;
25757
+ readonly user_email: string;
25758
+ readonly state: string;
25759
+ /**
25760
+ * Signal to service if the user account is restricted or not
25761
+ */
25762
+ is_restricted?: boolean;
25763
+ };
25723
25764
  export type UserConsentInfo = {
25724
25765
  readonly uuid: string;
25725
25766
  readonly version: string;
@@ -27938,6 +27979,7 @@ export type ConstanceSettingsRequestForm = {
27938
27979
  SSH_KEY_ALLOWED_TYPES?: Array<SshkeyallowedtypesEnum | BlankEnum>;
27939
27980
  SSH_KEY_MIN_RSA_KEY_SIZE?: number;
27940
27981
  ENABLED_REPORTING_SCREENS?: Array<EnabledreportingscreensEnum | BlankEnum>;
27982
+ SITE_AGENT_LOG_MAX_ROWS_PER_IDENTITY?: number;
27941
27983
  PAT_ENABLED?: boolean;
27942
27984
  PAT_MAX_LIFETIME_DAYS?: number;
27943
27985
  PAT_MAX_TOKENS_PER_USER?: number;
@@ -28207,6 +28249,7 @@ export type ConstanceSettingsRequestMultipart = {
28207
28249
  SSH_KEY_ALLOWED_TYPES?: Array<SshkeyallowedtypesEnum | BlankEnum>;
28208
28250
  SSH_KEY_MIN_RSA_KEY_SIZE?: number;
28209
28251
  ENABLED_REPORTING_SCREENS?: Array<EnabledreportingscreensEnum | BlankEnum>;
28252
+ SITE_AGENT_LOG_MAX_ROWS_PER_IDENTITY?: number;
28210
28253
  PAT_ENABLED?: boolean;
28211
28254
  PAT_MAX_LIFETIME_DAYS?: number;
28212
28255
  PAT_MAX_TOKENS_PER_USER?: number;
@@ -28720,7 +28763,7 @@ export type RemoteProjectUpdateRequestStateEnum = 'approved' | 'canceled' | 'dra
28720
28763
  export type ProviderOfferingDetailsFieldEnum = 'access_url' | 'attributes' | 'backend_id' | 'backend_id_rules' | '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' | 'integration_status' | 'latitude' | 'longitude' | 'name' | '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' | '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' | 'uuid' | 'vendor_details';
28721
28764
  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';
28722
28765
  export type ProviderOfferingCustomerFieldEnum = 'abbreviation' | 'email' | 'name' | 'phone_number' | 'slug' | 'uuid';
28723
- export type ProjectFieldEnum = 'affiliation' | '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';
28766
+ 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';
28724
28767
  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';
28725
28768
  export type ResourceOEnum = '-created' | '-end_date' | '-name' | '-project_name' | '-state' | 'created' | 'end_date' | 'name' | 'project_name' | 'state';
28726
28769
  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' | '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';
@@ -56866,6 +56909,80 @@ export type MarketplaceSiteAgentIdentitiesCleanupOrphanedResponses = {
56866
56909
  200: CleanupResponse;
56867
56910
  };
56868
56911
  export type MarketplaceSiteAgentIdentitiesCleanupOrphanedResponse = MarketplaceSiteAgentIdentitiesCleanupOrphanedResponses[keyof MarketplaceSiteAgentIdentitiesCleanupOrphanedResponses];
56912
+ export type MarketplaceSiteAgentLogsListData = {
56913
+ body?: never;
56914
+ path?: never;
56915
+ query?: {
56916
+ agent_identity_uuid?: string;
56917
+ level?: string;
56918
+ offering_uuid?: string;
56919
+ /**
56920
+ * A page number within the paginated result set.
56921
+ */
56922
+ page?: number;
56923
+ /**
56924
+ * Number of results to return per page.
56925
+ */
56926
+ page_size?: number;
56927
+ timestamp_from?: number;
56928
+ timestamp_to?: number;
56929
+ };
56930
+ url: '/api/marketplace-site-agent-logs/';
56931
+ };
56932
+ export type MarketplaceSiteAgentLogsListResponses = {
56933
+ 200: Array<SiteAgentLog>;
56934
+ };
56935
+ export type MarketplaceSiteAgentLogsListResponse = MarketplaceSiteAgentLogsListResponses[keyof MarketplaceSiteAgentLogsListResponses];
56936
+ export type MarketplaceSiteAgentLogsCountData = {
56937
+ body?: never;
56938
+ path?: never;
56939
+ query?: {
56940
+ agent_identity_uuid?: string;
56941
+ level?: string;
56942
+ offering_uuid?: string;
56943
+ /**
56944
+ * A page number within the paginated result set.
56945
+ */
56946
+ page?: number;
56947
+ /**
56948
+ * Number of results to return per page.
56949
+ */
56950
+ page_size?: number;
56951
+ timestamp_from?: number;
56952
+ timestamp_to?: number;
56953
+ };
56954
+ url: '/api/marketplace-site-agent-logs/';
56955
+ };
56956
+ export type MarketplaceSiteAgentLogsCountResponses = {
56957
+ /**
56958
+ * No response body
56959
+ */
56960
+ 200: unknown;
56961
+ };
56962
+ export type MarketplaceSiteAgentLogsCreateData = {
56963
+ body: Array<SiteAgentLogCreateRequest>;
56964
+ path?: never;
56965
+ query?: {
56966
+ agent_identity_uuid?: string;
56967
+ level?: string;
56968
+ offering_uuid?: string;
56969
+ /**
56970
+ * A page number within the paginated result set.
56971
+ */
56972
+ page?: number;
56973
+ /**
56974
+ * Number of results to return per page.
56975
+ */
56976
+ page_size?: number;
56977
+ timestamp_from?: number;
56978
+ timestamp_to?: number;
56979
+ };
56980
+ url: '/api/marketplace-site-agent-logs/';
56981
+ };
56982
+ export type MarketplaceSiteAgentLogsCreateResponses = {
56983
+ 201: Array<SiteAgentLog>;
56984
+ };
56985
+ export type MarketplaceSiteAgentLogsCreateResponse = MarketplaceSiteAgentLogsCreateResponses[keyof MarketplaceSiteAgentLogsCreateResponses];
56869
56986
  export type MarketplaceSiteAgentProcessorsListData = {
56870
56987
  body?: never;
56871
56988
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.9-dev.2",
3
+ "version": "8.0.9-dev.4",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",