@stack-spot/portal-network 0.204.2 → 0.205.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.205.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.204.2...portal-network@v0.205.0) (2025-12-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * qc paginated ([#1875](https://github.com/stack-spot/portal-commons/issues/1875)) ([684da17](https://github.com/stack-spot/portal-commons/commit/684da170add59225ee737c52d2b5c63e460056a5))
9
+ * rating ([#1869](https://github.com/stack-spot/portal-commons/issues/1869)) ([1635948](https://github.com/stack-spot/portal-commons/commit/1635948abc0c25fc97cfc5a479dd6e329736cbb2))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * add delete ([#1880](https://github.com/stack-spot/portal-commons/issues/1880)) ([da91fd7](https://github.com/stack-spot/portal-commons/commit/da91fd7833ee2d82e819225fd23f4c9e4f4f5806))
15
+
3
16
  ## [0.204.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.204.1...portal-network@v0.204.2) (2025-12-08)
4
17
 
5
18
 
package/dist/api/ai.d.ts CHANGED
@@ -411,6 +411,12 @@ export type QuickCommandsStepRouterRequest = {
411
411
  routes: RouterStepRoute[];
412
412
  max_executions: number;
413
413
  };
414
+ export type QuickCommandsStepScriptRequest = {
415
+ slug: string;
416
+ script: string;
417
+ use_uploaded_files: boolean;
418
+ next_step_slug?: string | null;
419
+ };
414
420
  export type CustomInputRequest = {
415
421
  slug: string;
416
422
  question: string;
@@ -422,7 +428,7 @@ export type QuickCommandsCreateRequest = {
422
428
  "type"?: QuickCommandTypeRequest;
423
429
  description: string;
424
430
  final_result: string;
425
- steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[];
431
+ steps: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest | QuickCommandsStepScriptRequest)[];
426
432
  return_type?: QuickCommandsReturnType | null;
427
433
  preserve_conversation?: boolean;
428
434
  custom_inputs?: CustomInputRequest[] | null;
@@ -434,7 +440,7 @@ export type QuickCommandsCreateRequest = {
434
440
  export type QuickCommandsUpdateRequest = {
435
441
  name?: string | null;
436
442
  description?: string | null;
437
- steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest)[] | null;
443
+ steps?: (QuickCommandsStepFetchRequest | QuickCommandsStepPromptRequest | QuickCommandsStepRouterRequest | QuickCommandsStepScriptRequest)[] | null;
438
444
  return_type?: QuickCommandsReturnType | null;
439
445
  knowledge_source_slugs?: string[] | null;
440
446
  final_result?: string | null;
@@ -447,7 +453,7 @@ export type QuickCommandsUpdateRequest = {
447
453
  use_only?: boolean | null;
448
454
  use_uploaded_files?: boolean | null;
449
455
  };
450
- export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER";
456
+ export type QuickCommandStepType = "LLM" | "FETCH" | "ROUTER" | "SCRIPT";
451
457
  export type Method2 = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
452
458
  export type QuickCommandStepFetchResponse = {
453
459
  slug: string;
@@ -530,6 +536,12 @@ export type QuickCommandsStepRouterResponse = {
530
536
  routes: RouterStepRoute2[];
531
537
  max_executions: number;
532
538
  };
539
+ export type QuickCommandsStepScriptResponse = {
540
+ slug: string;
541
+ "type": QuickCommandStepType;
542
+ script: string;
543
+ use_uploaded_files: boolean;
544
+ };
533
545
  export type CustomInputResponse = {
534
546
  slug: string;
535
547
  question: string;
@@ -543,7 +555,7 @@ export type QuickCommandResponse = {
543
555
  studio_id?: string | null;
544
556
  return_type?: QuickCommandsReturnType | null;
545
557
  final_result?: string | null;
546
- steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse)[] | null;
558
+ steps?: (QuickCommandStepFetchResponse | QuickCommandStepLlmResponse | QuickCommandsStepRouterResponse | QuickCommandsStepScriptResponse)[] | null;
547
559
  flow?: {
548
560
  [key: string]: any;
549
561
  } | null;
@@ -583,6 +595,16 @@ export type QuickCommandFetchResponseResult = {
583
595
  data?: string | null;
584
596
  status: number;
585
597
  };
598
+ export type QuickCommandStepScriptStatus = "queued" | "running" | "success" | "failure";
599
+ export type QuickCommandScriptExecutionResponse = {
600
+ status: QuickCommandStepScriptStatus;
601
+ duration?: number | null;
602
+ result?: {
603
+ [key: string]: any;
604
+ } | null;
605
+ logs?: string | null;
606
+ };
607
+ export type QuickCommandStepResult = QuickCommandPromptResponse | QuickCommandFetchResponseResult | QuickCommandScriptExecutionResponse;
586
608
  export type QuickCommandsExecutionRequest = {
587
609
  context?: {
588
610
  [key: string]: any;
@@ -591,7 +613,7 @@ export type QuickCommandsExecutionRequest = {
591
613
  code_selection?: string | null;
592
614
  input_data?: string | null;
593
615
  slugs_executions?: {
594
- [key: string]: string | QuickCommandPromptResponse | QuickCommandFetchResponseResult;
616
+ [key: string]: string | QuickCommandStepResult;
595
617
  } | null;
596
618
  qc_execution_id?: string | null;
597
619
  };
@@ -605,7 +627,7 @@ export type QuickCommandEvaluateStepRouterRequest = {
605
627
  } | null;
606
628
  selected_code?: string | null;
607
629
  slugs_executions: {
608
- [key: string]: QuickCommandPromptResponse | QuickCommandFetchResponseResult;
630
+ [key: string]: QuickCommandStepResult;
609
631
  } | null;
610
632
  };
611
633
  export type QuickCommandEvaluateStepRouterResponse = {
@@ -683,6 +705,21 @@ export type QuickCommandExecutionResponse = {
683
705
  steps?: Step[] | null;
684
706
  result?: string | null;
685
707
  };
708
+ export type QuickCommandStartScriptRequest = {
709
+ context?: {
710
+ [key: string]: any;
711
+ } | null;
712
+ input_data?: string | {
713
+ [key: string]: any;
714
+ } | null;
715
+ selected_code?: string | null;
716
+ slugs_executions: {
717
+ [key: string]: QuickCommandStepResult;
718
+ } | null;
719
+ };
720
+ export type QuickCommandStartScriptResponse = {
721
+ script_execution_id: string;
722
+ };
686
723
  export type ConversationHistoryAgentEnum = "AI" | "USER";
687
724
  export type ConversationHistoryResponse = {
688
725
  message_id: string;
@@ -693,6 +730,9 @@ export type ConversationHistoryResponse = {
693
730
  [key: string]: any;
694
731
  } | null;
695
732
  updated: string;
733
+ agent_info?: {
734
+ [key: string]: any;
735
+ } | null;
696
736
  };
697
737
  export type ConversationResponse = {
698
738
  id: string;
@@ -731,6 +771,70 @@ export type DependencyResponse = {
731
771
  delete_contents?: ContentDependencyResponse[] | null;
732
772
  missing_list?: ContentDependencyResponse[] | null;
733
773
  };
774
+ export type TokenTypeEnum = "prompt" | "embedding";
775
+ export type AnalyticsTokensDailyUsageResponseSeriesItem = {
776
+ day: number;
777
+ date: string;
778
+ total_tokens: number;
779
+ };
780
+ export type AnalyticsTokensDailyUsageResponse = {
781
+ year: number;
782
+ month: number;
783
+ series: AnalyticsTokensDailyUsageResponseSeriesItem[];
784
+ consumed_tokens: number;
785
+ consumed_tokens_over_last_month?: number | null;
786
+ purchased_token_limit?: number | null;
787
+ purchased_token_limit_over_last_month?: number | null;
788
+ available_tokens?: number | null;
789
+ available_tokens_over_last_month?: number | null;
790
+ limit_consumed?: number | null;
791
+ limit_consumed_over_last_month?: number | null;
792
+ };
793
+ export type AnalyticsTokensRankingUsersResponse = {
794
+ email: string;
795
+ rank: number;
796
+ total_tokens: number;
797
+ total_share: number;
798
+ overage_tokens: number;
799
+ overage_percentage: number;
800
+ };
801
+ export type AnalyticsTokensRankingUsersResponsePaginated = {
802
+ total_pages: number;
803
+ items: AnalyticsTokensRankingUsersResponse[];
804
+ };
805
+ export type SortDirection = "ASC" | "DESC";
806
+ export type ReviewAnswers = {
807
+ id: string;
808
+ memberId: string;
809
+ comment: string;
810
+ createdAt: string;
811
+ updatedAt?: string | null;
812
+ };
813
+ export type Review = {
814
+ id: string;
815
+ memberId: string;
816
+ rating: number;
817
+ comment: string;
818
+ resourceType: string;
819
+ resourceSlug: string;
820
+ createdAt: string;
821
+ updatedAt?: string | null;
822
+ reviewAnswers?: ReviewAnswers[];
823
+ };
824
+ export type ResourceReviewResponse = {
825
+ items: Review[];
826
+ totalElements: number;
827
+ page: number;
828
+ size: number;
829
+ totalPages: number;
830
+ };
831
+ export type ResourceReviewRequest = {
832
+ rating: number;
833
+ comment?: string | null;
834
+ };
835
+ export type ReviewAnswer = {
836
+ answer: string;
837
+ };
734
838
  export type SourceProjectFile2 = {
735
839
  "type": "project_file";
736
840
  path: string;
@@ -762,6 +866,25 @@ export type ChatResponse3 = {
762
866
  sources: (SourceStackAi | SourceKnowledgeSource | SourceProjectFile3)[];
763
867
  message_id: string | null;
764
868
  };
869
+ export type QuickCommandListResponseV3 = {
870
+ slug: string;
871
+ name: string;
872
+ "type": QuickCommandTypeRequest;
873
+ description: string;
874
+ studio_id?: string | null;
875
+ preserve_conversation: boolean;
876
+ use_selected_code: boolean;
877
+ return_type?: QuickCommandsReturnType | null;
878
+ creator: string | null;
879
+ visibility_level: string;
880
+ use_only: boolean;
881
+ share_context_between_steps?: boolean;
882
+ id: string;
883
+ };
884
+ export type PaginatedResponseQuickCommandListResponseV3 = {
885
+ total_pages: number;
886
+ items: QuickCommandListResponseV3[];
887
+ };
765
888
  /**
766
889
  * Metrics
767
890
  */
@@ -1442,9 +1565,9 @@ export declare function forkV1QuickCommandsSlugForkPost({ slug, authorization, x
1442
1565
  quickCommandsMakeACopyRequest: QuickCommandsMakeACopyRequest;
1443
1566
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
1444
1567
  /**
1445
- * Get Quick Command
1568
+ * Check Quick Command Exists
1446
1569
  */
1447
- export declare function getQuickCommandV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
1570
+ export declare function checkQuickCommandExistsV1QuickCommandsSlugExistsGet({ slug, authorization, xAccountId, xMemberId, xUsername }: {
1448
1571
  slug: string;
1449
1572
  authorization: string;
1450
1573
  xAccountId?: string | null;
@@ -1593,6 +1716,28 @@ export declare function runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost
1593
1716
  xUsername?: string | null;
1594
1717
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
1595
1718
  }, opts?: Oazapfts.RequestOpts): Promise<QuickCommandStepFetchResponse>;
1719
+ /**
1720
+ * Starts the execution of a step with a user defined script
1721
+ */
1722
+ export declare function startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost({ slug, stepSlug, authorization, xAccountId, xMemberId, xUsername, quickCommandStartScriptRequest }: {
1723
+ slug: string;
1724
+ stepSlug: string;
1725
+ authorization: string;
1726
+ xAccountId?: string | null;
1727
+ xMemberId?: string | null;
1728
+ xUsername?: string | null;
1729
+ quickCommandStartScriptRequest: QuickCommandStartScriptRequest;
1730
+ }, opts?: Oazapfts.RequestOpts): Promise<QuickCommandStartScriptResponse>;
1731
+ /**
1732
+ * Get the status of a script execution step
1733
+ */
1734
+ export declare function getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet({ scriptExecutionId, authorization, xAccountId, xMemberId, xUsername }: {
1735
+ scriptExecutionId: string;
1736
+ authorization: string;
1737
+ xAccountId?: string | null;
1738
+ xMemberId?: string | null;
1739
+ xUsername?: string | null;
1740
+ }, opts?: Oazapfts.RequestOpts): Promise<QuickCommandScriptExecutionResponse>;
1596
1741
  /**
1597
1742
  * List Conversations
1598
1743
  */
@@ -1695,19 +1840,120 @@ export declare function getContentDependenciesV1ContentContentTypeContentIdDepen
1695
1840
  /**
1696
1841
  * Tokens Daily Usage
1697
1842
  */
1698
- export declare function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, accountSlug }: {
1843
+ export declare function tokensDailyUsageV1AnalyticsTokensDailyUsageGet({ month, year, tokenType, authorization, xAccountId, xMemberId, xUsername }: {
1699
1844
  month: number;
1700
1845
  year: number;
1701
- accountSlug?: string;
1702
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
1846
+ tokenType: TokenTypeEnum;
1847
+ authorization: string;
1848
+ xAccountId?: string | null;
1849
+ xMemberId?: string | null;
1850
+ xUsername?: string | null;
1851
+ }, opts?: Oazapfts.RequestOpts): Promise<AnalyticsTokensDailyUsageResponse>;
1703
1852
  /**
1704
1853
  * Tokens By User
1705
1854
  */
1706
- export declare function tokensByUserV1AnalyticsTokensByUserGet({ month, year, page, pageSize }: {
1855
+ export declare function tokensByUserV1AnalyticsTokensByUserGet({ month, year, tokenType, page, pageSize, authorization, xAccountId, xMemberId, xUsername }: {
1707
1856
  month: number;
1708
1857
  year: number;
1858
+ tokenType: TokenTypeEnum;
1709
1859
  page?: number;
1710
1860
  pageSize?: number;
1861
+ authorization: string;
1862
+ xAccountId?: string | null;
1863
+ xMemberId?: string | null;
1864
+ xUsername?: string | null;
1865
+ }, opts?: Oazapfts.RequestOpts): Promise<AnalyticsTokensRankingUsersResponsePaginated>;
1866
+ /**
1867
+ * Get Reviews By Resource
1868
+ */
1869
+ export declare function getReviewsByResourceV1ResourcesResourceTypeSlugResourceSlugReviewsGet({ resourceSlug, resourceTypeSlug, size, page, sort, direction, authorization, xAccountId, xMemberId, xUsername }: {
1870
+ resourceSlug: string;
1871
+ resourceTypeSlug: string;
1872
+ size?: number | null;
1873
+ page?: number | null;
1874
+ sort?: string | null;
1875
+ direction?: SortDirection | null;
1876
+ authorization: string;
1877
+ xAccountId?: string | null;
1878
+ xMemberId?: string | null;
1879
+ xUsername?: string | null;
1880
+ }, opts?: Oazapfts.RequestOpts): Promise<ResourceReviewResponse>;
1881
+ /**
1882
+ * Create Resource Review
1883
+ */
1884
+ export declare function createResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsPost({ resourceSlug, resourceTypeSlug, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
1885
+ resourceSlug: string;
1886
+ resourceTypeSlug: string;
1887
+ authorization: string;
1888
+ xAccountId?: string | null;
1889
+ xMemberId?: string | null;
1890
+ xUsername?: string | null;
1891
+ resourceReviewRequest: ResourceReviewRequest;
1892
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
1893
+ /**
1894
+ * Create Answer For Review
1895
+ */
1896
+ export declare function createAnswerForReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersPost({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
1897
+ resourceSlug: string;
1898
+ resourceTypeSlug: string;
1899
+ reviewId: string;
1900
+ authorization: string;
1901
+ xAccountId?: string | null;
1902
+ xMemberId?: string | null;
1903
+ xUsername?: string | null;
1904
+ reviewAnswer: ReviewAnswer;
1905
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
1906
+ /**
1907
+ * Update Resource Review
1908
+ */
1909
+ export declare function updateResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdPatch({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername, resourceReviewRequest }: {
1910
+ resourceSlug: string;
1911
+ resourceTypeSlug: string;
1912
+ reviewId: string;
1913
+ authorization: string;
1914
+ xAccountId?: string | null;
1915
+ xMemberId?: string | null;
1916
+ xUsername?: string | null;
1917
+ resourceReviewRequest: ResourceReviewRequest;
1918
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
1919
+ /**
1920
+ * Delete Resource Review
1921
+ */
1922
+ export declare function deleteResourceReviewV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdDelete({ resourceSlug, resourceTypeSlug, reviewId, authorization, xAccountId, xMemberId, xUsername }: {
1923
+ resourceSlug: string;
1924
+ resourceTypeSlug: string;
1925
+ reviewId: string;
1926
+ authorization: string;
1927
+ xAccountId?: string | null;
1928
+ xMemberId?: string | null;
1929
+ xUsername?: string | null;
1930
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
1931
+ /**
1932
+ * Update Review Comment
1933
+ */
1934
+ export declare function updateReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdPatch({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername, reviewAnswer }: {
1935
+ resourceSlug: string;
1936
+ resourceTypeSlug: string;
1937
+ reviewId: string;
1938
+ answerId: string;
1939
+ authorization: string;
1940
+ xAccountId?: string | null;
1941
+ xMemberId?: string | null;
1942
+ xUsername?: string | null;
1943
+ reviewAnswer: ReviewAnswer;
1944
+ }, opts?: Oazapfts.RequestOpts): Promise<any>;
1945
+ /**
1946
+ * Delete Review Comment
1947
+ */
1948
+ export declare function deleteReviewCommentV1ResourcesResourceTypeSlugResourceSlugReviewsReviewIdAnswersAnswerIdDelete({ resourceSlug, resourceTypeSlug, reviewId, answerId, authorization, xAccountId, xMemberId, xUsername }: {
1949
+ resourceSlug: string;
1950
+ resourceTypeSlug: string;
1951
+ reviewId: string;
1952
+ answerId: string;
1953
+ authorization: string;
1954
+ xAccountId?: string | null;
1955
+ xMemberId?: string | null;
1956
+ xUsername?: string | null;
1711
1957
  }, opts?: Oazapfts.RequestOpts): Promise<any>;
1712
1958
  /**
1713
1959
  * Dev Assistant V2
@@ -1749,4 +1995,21 @@ export declare function devAssistantV3V3ChatPost({ authorization, xAccountId, xM
1749
1995
  xUsername?: string | null;
1750
1996
  chatRequest: ChatRequest;
1751
1997
  }, opts?: Oazapfts.RequestOpts): Promise<string | ChatResponse3>;
1998
+ /**
1999
+ * List All
2000
+ */
2001
+ export declare function listAllV3QuickCommandsGet({ name, slug, size, page, visibilityList, order, isRemote, types, authorization, xAccountId, xMemberId, xUsername }: {
2002
+ name?: string | null;
2003
+ slug?: string | null;
2004
+ size?: number;
2005
+ page?: number;
2006
+ visibilityList?: VisibilityLevelEnum[] | null;
2007
+ order?: OrderEnum | null;
2008
+ isRemote?: boolean;
2009
+ types?: QuickCommandTypeRequest[] | null;
2010
+ authorization: string;
2011
+ xAccountId?: string | null;
2012
+ xMemberId?: string | null;
2013
+ xUsername?: string | null;
2014
+ }, opts?: Oazapfts.RequestOpts): Promise<PaginatedResponseQuickCommandListResponseV3>;
1752
2015
  //# sourceMappingURL=ai.d.ts.map