waldur-js-client 8.0.8-dev.25 → 8.0.8-dev.27

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
@@ -7385,6 +7385,217 @@ export const chatSessionsCurrentRetrieve = (options) => {
7385
7385
  ...options
7386
7386
  });
7387
7387
  };
7388
+ export const chatSystemPromptsList = (options) => {
7389
+ return (options?.client ?? _heyApiClient).get({
7390
+ security: [
7391
+ {
7392
+ name: 'Authorization',
7393
+ type: 'apiKey'
7394
+ },
7395
+ {
7396
+ scheme: 'bearer',
7397
+ type: 'http'
7398
+ },
7399
+ {
7400
+ scheme: 'bearer',
7401
+ type: 'http'
7402
+ }
7403
+ ],
7404
+ url: '/api/chat-system-prompts/',
7405
+ ...options
7406
+ });
7407
+ };
7408
+ /**
7409
+ * Get number of items in the collection matching the request parameters.
7410
+ */
7411
+ export const chatSystemPromptsCount = (options) => {
7412
+ return (options?.client ?? _heyApiClient).head({
7413
+ security: [
7414
+ {
7415
+ name: 'Authorization',
7416
+ type: 'apiKey'
7417
+ },
7418
+ {
7419
+ scheme: 'bearer',
7420
+ type: 'http'
7421
+ },
7422
+ {
7423
+ scheme: 'bearer',
7424
+ type: 'http'
7425
+ }
7426
+ ],
7427
+ url: '/api/chat-system-prompts/',
7428
+ ...options
7429
+ });
7430
+ };
7431
+ export const chatSystemPromptsCreate = (options) => {
7432
+ return (options.client ?? _heyApiClient).post({
7433
+ security: [
7434
+ {
7435
+ name: 'Authorization',
7436
+ type: 'apiKey'
7437
+ },
7438
+ {
7439
+ scheme: 'bearer',
7440
+ type: 'http'
7441
+ },
7442
+ {
7443
+ scheme: 'bearer',
7444
+ type: 'http'
7445
+ }
7446
+ ],
7447
+ url: '/api/chat-system-prompts/',
7448
+ ...options,
7449
+ headers: {
7450
+ 'Content-Type': 'application/json',
7451
+ ...options.headers
7452
+ }
7453
+ });
7454
+ };
7455
+ export const chatSystemPromptsDestroy = (options) => {
7456
+ return (options.client ?? _heyApiClient).delete({
7457
+ security: [
7458
+ {
7459
+ name: 'Authorization',
7460
+ type: 'apiKey'
7461
+ },
7462
+ {
7463
+ scheme: 'bearer',
7464
+ type: 'http'
7465
+ },
7466
+ {
7467
+ scheme: 'bearer',
7468
+ type: 'http'
7469
+ }
7470
+ ],
7471
+ url: '/api/chat-system-prompts/{uuid}/',
7472
+ ...options
7473
+ });
7474
+ };
7475
+ export const chatSystemPromptsRetrieve = (options) => {
7476
+ return (options.client ?? _heyApiClient).get({
7477
+ security: [
7478
+ {
7479
+ name: 'Authorization',
7480
+ type: 'apiKey'
7481
+ },
7482
+ {
7483
+ scheme: 'bearer',
7484
+ type: 'http'
7485
+ },
7486
+ {
7487
+ scheme: 'bearer',
7488
+ type: 'http'
7489
+ }
7490
+ ],
7491
+ url: '/api/chat-system-prompts/{uuid}/',
7492
+ ...options
7493
+ });
7494
+ };
7495
+ export const chatSystemPromptsPartialUpdate = (options) => {
7496
+ return (options.client ?? _heyApiClient).patch({
7497
+ security: [
7498
+ {
7499
+ name: 'Authorization',
7500
+ type: 'apiKey'
7501
+ },
7502
+ {
7503
+ scheme: 'bearer',
7504
+ type: 'http'
7505
+ },
7506
+ {
7507
+ scheme: 'bearer',
7508
+ type: 'http'
7509
+ }
7510
+ ],
7511
+ url: '/api/chat-system-prompts/{uuid}/',
7512
+ ...options,
7513
+ headers: {
7514
+ 'Content-Type': 'application/json',
7515
+ ...options.headers
7516
+ }
7517
+ });
7518
+ };
7519
+ export const chatSystemPromptsUpdate = (options) => {
7520
+ return (options.client ?? _heyApiClient).put({
7521
+ security: [
7522
+ {
7523
+ name: 'Authorization',
7524
+ type: 'apiKey'
7525
+ },
7526
+ {
7527
+ scheme: 'bearer',
7528
+ type: 'http'
7529
+ },
7530
+ {
7531
+ scheme: 'bearer',
7532
+ type: 'http'
7533
+ }
7534
+ ],
7535
+ url: '/api/chat-system-prompts/{uuid}/',
7536
+ ...options,
7537
+ headers: {
7538
+ 'Content-Type': 'application/json',
7539
+ ...options.headers
7540
+ }
7541
+ });
7542
+ };
7543
+ /**
7544
+ * Activate a system prompt
7545
+ * Set this prompt as the active one. Deactivates any currently active prompt.
7546
+ */
7547
+ export const chatSystemPromptsActivate = (options) => {
7548
+ return (options.client ?? _heyApiClient).post({
7549
+ security: [
7550
+ {
7551
+ name: 'Authorization',
7552
+ type: 'apiKey'
7553
+ },
7554
+ {
7555
+ scheme: 'bearer',
7556
+ type: 'http'
7557
+ },
7558
+ {
7559
+ scheme: 'bearer',
7560
+ type: 'http'
7561
+ }
7562
+ ],
7563
+ url: '/api/chat-system-prompts/{uuid}/activate/',
7564
+ ...options,
7565
+ headers: {
7566
+ 'Content-Type': 'application/json',
7567
+ ...options.headers
7568
+ }
7569
+ });
7570
+ };
7571
+ /**
7572
+ * Deactivate the active system prompt
7573
+ * Deactivate this prompt. The system will fall back to Constance overrides or built-in defaults.
7574
+ */
7575
+ export const chatSystemPromptsDeactivate = (options) => {
7576
+ return (options.client ?? _heyApiClient).post({
7577
+ security: [
7578
+ {
7579
+ name: 'Authorization',
7580
+ type: 'apiKey'
7581
+ },
7582
+ {
7583
+ scheme: 'bearer',
7584
+ type: 'http'
7585
+ },
7586
+ {
7587
+ scheme: 'bearer',
7588
+ type: 'http'
7589
+ }
7590
+ ],
7591
+ url: '/api/chat-system-prompts/{uuid}/deactivate/',
7592
+ ...options,
7593
+ headers: {
7594
+ 'Content-Type': 'application/json',
7595
+ ...options.headers
7596
+ }
7597
+ });
7598
+ };
7388
7599
  export const chatThreadsList = (options) => {
7389
7600
  return (options?.client ?? _heyApiClient).get({
7390
7601
  security: [
@@ -4593,6 +4593,7 @@ export type ConstanceSettings = {
4593
4593
  AI_ASSISTANT_HISTORY_LIMIT?: number;
4594
4594
  AI_ASSISTANT_INJECTION_ALLOWLIST?: string;
4595
4595
  AI_ASSISTANT_NAME?: string;
4596
+ AI_ASSISTANT_SYSTEM_PROMPT_CUSTOM_INSTRUCTIONS?: string;
4596
4597
  SOFTWARE_CATALOG_EESSI_UPDATE_ENABLED?: boolean;
4597
4598
  SOFTWARE_CATALOG_EESSI_VERSION?: string;
4598
4599
  SOFTWARE_CATALOG_EESSI_API_URL?: string;
@@ -4849,6 +4850,7 @@ export type ConstanceSettingsRequest = {
4849
4850
  AI_ASSISTANT_HISTORY_LIMIT?: number;
4850
4851
  AI_ASSISTANT_INJECTION_ALLOWLIST?: string;
4851
4852
  AI_ASSISTANT_NAME?: string;
4853
+ AI_ASSISTANT_SYSTEM_PROMPT_CUSTOM_INSTRUCTIONS?: string;
4852
4854
  SOFTWARE_CATALOG_EESSI_UPDATE_ENABLED?: boolean;
4853
4855
  SOFTWARE_CATALOG_EESSI_VERSION?: string;
4854
4856
  SOFTWARE_CATALOG_EESSI_API_URL?: string;
@@ -7668,6 +7670,8 @@ export type HypervisorSummary = {
7668
7670
  total_local_gb: number;
7669
7671
  used_local_gb: number;
7670
7672
  total_running_vms: number;
7673
+ cpu_allocation_ratio: number;
7674
+ effective_vcpus: number;
7671
7675
  };
7672
7676
  export type IpMapping = {
7673
7677
  /**
@@ -9036,7 +9040,7 @@ export type MaintenanceAnnouncementTemplate = {
9036
9040
  * Service provider announcing the maintenance
9037
9041
  */
9038
9042
  service_provider: string;
9039
- readonly affected_offerings: Array<MaintenanceAnnouncementOffering>;
9043
+ readonly affected_offerings: Array<MaintenanceAnnouncementOfferingTemplate>;
9040
9044
  };
9041
9045
  export type MaintenanceAnnouncementTemplateRequest = {
9042
9046
  name: string;
@@ -17347,6 +17351,14 @@ export type PatchedSoftwarePackageRequest = {
17347
17351
  */
17348
17352
  is_extension?: boolean;
17349
17353
  };
17354
+ export type PatchedSystemPromptRequest = {
17355
+ name?: string;
17356
+ description?: string;
17357
+ /**
17358
+ * Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
17359
+ */
17360
+ custom_instructions?: string;
17361
+ };
17350
17362
  export type PatchedTagRequest = {
17351
17363
  name?: string;
17352
17364
  description?: string;
@@ -24219,6 +24231,29 @@ export type SystemLogStatsResponse = {
24219
24231
  readonly total_size_bytes: number;
24220
24232
  readonly total_size_mb: number;
24221
24233
  };
24234
+ export type SystemPrompt = {
24235
+ readonly uuid: string;
24236
+ name: string;
24237
+ description?: string;
24238
+ /**
24239
+ * Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
24240
+ */
24241
+ custom_instructions?: string;
24242
+ /**
24243
+ * Whether this prompt is currently used by the AI Assistant. Only one prompt can be active.
24244
+ */
24245
+ readonly is_active: boolean;
24246
+ readonly created: string;
24247
+ readonly modified: string;
24248
+ };
24249
+ export type SystemPromptRequest = {
24250
+ name: string;
24251
+ description?: string;
24252
+ /**
24253
+ * Additional instructions injected into the system prompt. Use this for organisation-specific context, terminology, FAQ content, or behavioural guidelines. Supports {assistant_name} and {organization} placeholders.
24254
+ */
24255
+ custom_instructions?: string;
24256
+ };
24222
24257
  export type TableGrowthAlert = {
24223
24258
  /**
24224
24259
  * Name of the table triggering the alert
@@ -27186,6 +27221,7 @@ export type ConstanceSettingsRequestForm = {
27186
27221
  AI_ASSISTANT_HISTORY_LIMIT?: number;
27187
27222
  AI_ASSISTANT_INJECTION_ALLOWLIST?: string;
27188
27223
  AI_ASSISTANT_NAME?: string;
27224
+ AI_ASSISTANT_SYSTEM_PROMPT_CUSTOM_INSTRUCTIONS?: string;
27189
27225
  SOFTWARE_CATALOG_EESSI_UPDATE_ENABLED?: boolean;
27190
27226
  SOFTWARE_CATALOG_EESSI_VERSION?: string;
27191
27227
  SOFTWARE_CATALOG_EESSI_API_URL?: string;
@@ -27442,6 +27478,7 @@ export type ConstanceSettingsRequestMultipart = {
27442
27478
  AI_ASSISTANT_HISTORY_LIMIT?: number;
27443
27479
  AI_ASSISTANT_INJECTION_ALLOWLIST?: string;
27444
27480
  AI_ASSISTANT_NAME?: string;
27481
+ AI_ASSISTANT_SYSTEM_PROMPT_CUSTOM_INSTRUCTIONS?: string;
27445
27482
  SOFTWARE_CATALOG_EESSI_UPDATE_ENABLED?: boolean;
27446
27483
  SOFTWARE_CATALOG_EESSI_VERSION?: string;
27447
27484
  SOFTWARE_CATALOG_EESSI_API_URL?: string;
@@ -34709,6 +34746,131 @@ export type ChatSessionsCurrentRetrieveResponses = {
34709
34746
  200: ChatSession;
34710
34747
  };
34711
34748
  export type ChatSessionsCurrentRetrieveResponse = ChatSessionsCurrentRetrieveResponses[keyof ChatSessionsCurrentRetrieveResponses];
34749
+ export type ChatSystemPromptsListData = {
34750
+ body?: never;
34751
+ path?: never;
34752
+ query?: {
34753
+ /**
34754
+ * A page number within the paginated result set.
34755
+ */
34756
+ page?: number;
34757
+ /**
34758
+ * Number of results to return per page.
34759
+ */
34760
+ page_size?: number;
34761
+ };
34762
+ url: '/api/chat-system-prompts/';
34763
+ };
34764
+ export type ChatSystemPromptsListResponses = {
34765
+ 200: Array<SystemPrompt>;
34766
+ };
34767
+ export type ChatSystemPromptsListResponse = ChatSystemPromptsListResponses[keyof ChatSystemPromptsListResponses];
34768
+ export type ChatSystemPromptsCountData = {
34769
+ body?: never;
34770
+ path?: never;
34771
+ query?: {
34772
+ /**
34773
+ * A page number within the paginated result set.
34774
+ */
34775
+ page?: number;
34776
+ /**
34777
+ * Number of results to return per page.
34778
+ */
34779
+ page_size?: number;
34780
+ };
34781
+ url: '/api/chat-system-prompts/';
34782
+ };
34783
+ export type ChatSystemPromptsCountResponses = {
34784
+ /**
34785
+ * No response body
34786
+ */
34787
+ 200: unknown;
34788
+ };
34789
+ export type ChatSystemPromptsCreateData = {
34790
+ body: SystemPromptRequest;
34791
+ path?: never;
34792
+ query?: never;
34793
+ url: '/api/chat-system-prompts/';
34794
+ };
34795
+ export type ChatSystemPromptsCreateResponses = {
34796
+ 201: SystemPrompt;
34797
+ };
34798
+ export type ChatSystemPromptsCreateResponse = ChatSystemPromptsCreateResponses[keyof ChatSystemPromptsCreateResponses];
34799
+ export type ChatSystemPromptsDestroyData = {
34800
+ body?: never;
34801
+ path: {
34802
+ uuid: string;
34803
+ };
34804
+ query?: never;
34805
+ url: '/api/chat-system-prompts/{uuid}/';
34806
+ };
34807
+ export type ChatSystemPromptsDestroyResponses = {
34808
+ /**
34809
+ * No response body
34810
+ */
34811
+ 204: void;
34812
+ };
34813
+ export type ChatSystemPromptsDestroyResponse = ChatSystemPromptsDestroyResponses[keyof ChatSystemPromptsDestroyResponses];
34814
+ export type ChatSystemPromptsRetrieveData = {
34815
+ body?: never;
34816
+ path: {
34817
+ uuid: string;
34818
+ };
34819
+ query?: never;
34820
+ url: '/api/chat-system-prompts/{uuid}/';
34821
+ };
34822
+ export type ChatSystemPromptsRetrieveResponses = {
34823
+ 200: SystemPrompt;
34824
+ };
34825
+ export type ChatSystemPromptsRetrieveResponse = ChatSystemPromptsRetrieveResponses[keyof ChatSystemPromptsRetrieveResponses];
34826
+ export type ChatSystemPromptsPartialUpdateData = {
34827
+ body?: PatchedSystemPromptRequest;
34828
+ path: {
34829
+ uuid: string;
34830
+ };
34831
+ query?: never;
34832
+ url: '/api/chat-system-prompts/{uuid}/';
34833
+ };
34834
+ export type ChatSystemPromptsPartialUpdateResponses = {
34835
+ 200: SystemPrompt;
34836
+ };
34837
+ export type ChatSystemPromptsPartialUpdateResponse = ChatSystemPromptsPartialUpdateResponses[keyof ChatSystemPromptsPartialUpdateResponses];
34838
+ export type ChatSystemPromptsUpdateData = {
34839
+ body: SystemPromptRequest;
34840
+ path: {
34841
+ uuid: string;
34842
+ };
34843
+ query?: never;
34844
+ url: '/api/chat-system-prompts/{uuid}/';
34845
+ };
34846
+ export type ChatSystemPromptsUpdateResponses = {
34847
+ 200: SystemPrompt;
34848
+ };
34849
+ export type ChatSystemPromptsUpdateResponse = ChatSystemPromptsUpdateResponses[keyof ChatSystemPromptsUpdateResponses];
34850
+ export type ChatSystemPromptsActivateData = {
34851
+ body: SystemPromptRequest;
34852
+ path: {
34853
+ uuid: string;
34854
+ };
34855
+ query?: never;
34856
+ url: '/api/chat-system-prompts/{uuid}/activate/';
34857
+ };
34858
+ export type ChatSystemPromptsActivateResponses = {
34859
+ 200: SystemPrompt;
34860
+ };
34861
+ export type ChatSystemPromptsActivateResponse = ChatSystemPromptsActivateResponses[keyof ChatSystemPromptsActivateResponses];
34862
+ export type ChatSystemPromptsDeactivateData = {
34863
+ body: SystemPromptRequest;
34864
+ path: {
34865
+ uuid: string;
34866
+ };
34867
+ query?: never;
34868
+ url: '/api/chat-system-prompts/{uuid}/deactivate/';
34869
+ };
34870
+ export type ChatSystemPromptsDeactivateResponses = {
34871
+ 200: SystemPrompt;
34872
+ };
34873
+ export type ChatSystemPromptsDeactivateResponse = ChatSystemPromptsDeactivateResponses[keyof ChatSystemPromptsDeactivateResponses];
34712
34874
  export type ChatThreadsListData = {
34713
34875
  body?: never;
34714
34876
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.8-dev.25",
3
+ "version": "8.0.8-dev.27",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",