@stack-spot/portal-network 0.195.0 → 0.196.0-beta.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/api/agent-tools.d.ts +135 -148
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js +41 -4
  5. package/dist/api/agent-tools.js.map +1 -1
  6. package/dist/api/agent.d.ts +55 -55
  7. package/dist/api/agent.d.ts.map +1 -1
  8. package/dist/api/ai.d.ts +377 -103
  9. package/dist/api/ai.d.ts.map +1 -1
  10. package/dist/api/ai.js +383 -156
  11. package/dist/api/ai.js.map +1 -1
  12. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  13. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  14. package/dist/api/cloudPlatformHorizon.js +69 -1
  15. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  16. package/dist/api/codeShift.d.ts +315 -62
  17. package/dist/api/codeShift.d.ts.map +1 -1
  18. package/dist/api/codeShift.js +153 -12
  19. package/dist/api/codeShift.js.map +1 -1
  20. package/dist/api/discover.d.ts +23 -12
  21. package/dist/api/discover.d.ts.map +1 -1
  22. package/dist/api/discover.js +10 -0
  23. package/dist/api/discover.js.map +1 -1
  24. package/dist/api-addresses.d.ts.map +1 -1
  25. package/dist/client/account.d.ts +233 -233
  26. package/dist/client/account.d.ts.map +1 -1
  27. package/dist/client/agent-tools.d.ts +152 -126
  28. package/dist/client/agent-tools.d.ts.map +1 -1
  29. package/dist/client/agent-tools.js +29 -2
  30. package/dist/client/agent-tools.js.map +1 -1
  31. package/dist/client/agent.d.ts +46 -46
  32. package/dist/client/agent.d.ts.map +1 -1
  33. package/dist/client/ai.d.ts +120 -81
  34. package/dist/client/ai.d.ts.map +1 -1
  35. package/dist/client/ai.js +29 -2
  36. package/dist/client/ai.js.map +1 -1
  37. package/dist/client/api-management.d.ts +2 -2
  38. package/dist/client/cloud-account.d.ts +13 -13
  39. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  40. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  41. package/dist/client/cloud-platform-horizon.js +19 -1
  42. package/dist/client/cloud-platform-horizon.js.map +1 -1
  43. package/dist/client/cloud-platform.d.ts +50 -50
  44. package/dist/client/cloud-runtimes.d.ts +4 -4
  45. package/dist/client/cloud-services.d.ts +17 -17
  46. package/dist/client/cloud-services.d.ts.map +1 -1
  47. package/dist/client/code-shift.d.ts +349 -258
  48. package/dist/client/code-shift.d.ts.map +1 -1
  49. package/dist/client/code-shift.js +82 -1
  50. package/dist/client/code-shift.js.map +1 -1
  51. package/dist/client/content.d.ts +127 -132
  52. package/dist/client/content.d.ts.map +1 -1
  53. package/dist/client/data-integration.d.ts +55 -55
  54. package/dist/client/data-integration.d.ts.map +1 -1
  55. package/dist/client/discover.d.ts +15 -9
  56. package/dist/client/discover.d.ts.map +1 -1
  57. package/dist/client/discover.js +208 -0
  58. package/dist/client/discover.js.map +1 -1
  59. package/dist/client/event-bus.d.ts.map +1 -1
  60. package/dist/client/gen-ai-inference.d.ts +20 -20
  61. package/dist/client/insights.d.ts +7 -7
  62. package/dist/client/notification.d.ts +10 -10
  63. package/dist/client/runtime-manager.d.ts +8 -8
  64. package/dist/client/types.d.ts +14 -0
  65. package/dist/client/types.d.ts.map +1 -1
  66. package/dist/client/workflow.d.ts +10 -10
  67. package/dist/client/workspace-ai.d.ts +53 -53
  68. package/dist/client/workspace-manager.d.ts +77 -77
  69. package/dist/client/workspace-search.d.ts +2 -2
  70. package/dist/client/workspace.d.ts +58 -105
  71. package/dist/client/workspace.d.ts.map +1 -1
  72. package/dist/error/dictionary/cloud-platform.d.ts +6 -0
  73. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  74. package/dist/error/dictionary/cloud-platform.js +6 -0
  75. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  76. package/dist/utils/StreamedJson.d.ts.map +1 -1
  77. package/dist/utils/StreamedJson.js +9 -1
  78. package/dist/utils/StreamedJson.js.map +1 -1
  79. package/package.json +2 -2
  80. package/src/api/agent-tools.ts +182 -150
  81. package/src/api/ai.ts +733 -185
  82. package/src/api/cloudPlatformHorizon.ts +412 -9
  83. package/src/api/codeShift.ts +607 -69
  84. package/src/api/discover.ts +35 -12
  85. package/src/client/agent-tools.ts +20 -2
  86. package/src/client/ai.ts +25 -10
  87. package/src/client/cloud-platform-horizon.ts +12 -4
  88. package/src/client/code-shift.ts +50 -1
  89. package/src/client/discover.ts +220 -3
  90. package/src/client/types.ts +17 -2
  91. package/src/error/dictionary/cloud-platform.ts +6 -0
  92. package/src/utils/StreamedJson.tsx +9 -2
@@ -1,7 +1,7 @@
1
1
  import { HttpError } from '@oazapfts/runtime';
2
2
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
3
3
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
4
- export declare const isAgentDefault: (agentSlug?: string) => boolean;
4
+ export declare const isAgentDefault: (agentSlug?: string) => agentSlug is "stk_code_buddy";
5
5
  declare class AgentClient extends ReactQueryNetworkClient {
6
6
  constructor();
7
7
  protected buildStackSpotError(error: HttpError): StackspotAPIError;
@@ -15,36 +15,36 @@ declare class AgentClient extends ReactQueryNetworkClient {
15
15
  id: string;
16
16
  name: string;
17
17
  slug: string;
18
- description?: string | undefined;
19
- avatar?: string | undefined;
18
+ description?: string;
19
+ avatar?: string;
20
20
  system_prompt: string;
21
21
  type: string;
22
- llm_config?: import("../api/agent.js").LlmConfigResponse | undefined;
23
- suggested_prompts?: string[] | undefined;
24
- knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse | undefined;
22
+ llm_config?: import("../api/agent.js").LlmConfigResponse;
23
+ suggested_prompts?: string[];
24
+ knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
25
25
  visibility_level: import("../api/agent.js").VisibilityLevel;
26
26
  use_only: boolean;
27
27
  creator_name: string;
28
28
  created_by: string;
29
- created_at: string;
30
- updated_by?: string | undefined;
31
- updated_at?: string | undefined;
32
- toolkits?: import("../api/agent.js").ToolkitsInAgentResponse | undefined;
33
- detail_mode?: boolean | undefined;
34
- model_id?: string | undefined;
35
- model_name?: string | undefined;
29
+ created_at: import("../api/agent.js").ZonedDateTime;
30
+ updated_by?: string;
31
+ updated_at?: import("../api/agent.js").ZonedDateTime;
32
+ toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
33
+ detail_mode?: boolean;
34
+ model_id?: string;
35
+ model_name?: string;
36
36
  structured_output?: {
37
37
  [key: string]: any;
38
- } | null | undefined;
38
+ } | null;
39
39
  llm_settings?: {
40
40
  [key: string]: any;
41
- } | null | undefined;
41
+ } | null;
42
42
  }>, "isAllowed" | "useAllowed" | "getPermissionKey">;
43
43
  /**
44
44
  * List commons agents
45
45
  */
46
46
  agents: import("../network/types.js").QueryObject<{
47
- visibility?: import("../api/agent.js").VisibilityLevel | undefined;
47
+ visibility?: import("../api/agent.js").VisibilityLevel;
48
48
  }, import("../api/agent.js").AgentResponse[]>;
49
49
  /**
50
50
  * Gets a common agent by id
@@ -55,36 +55,36 @@ declare class AgentClient extends ReactQueryNetworkClient {
55
55
  id: string;
56
56
  name: string;
57
57
  slug: string;
58
- description?: string | undefined;
59
- avatar?: string | undefined;
58
+ description?: string;
59
+ avatar?: string;
60
60
  system_prompt: string;
61
61
  type: string;
62
- llm_config?: import("../api/agent.js").LlmConfigResponse | undefined;
63
- suggested_prompts?: string[] | undefined;
64
- knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse | undefined;
62
+ llm_config?: import("../api/agent.js").LlmConfigResponse;
63
+ suggested_prompts?: string[];
64
+ knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
65
65
  visibility_level: import("../api/agent.js").VisibilityLevel;
66
66
  use_only: boolean;
67
67
  creator_name: string;
68
68
  created_by: string;
69
- created_at: string;
70
- updated_by?: string | undefined;
71
- updated_at?: string | undefined;
72
- toolkits?: import("../api/agent.js").ToolkitsInAgentResponse | undefined;
73
- detail_mode?: boolean | undefined;
74
- model_id?: string | undefined;
75
- model_name?: string | undefined;
69
+ created_at: import("../api/agent.js").ZonedDateTime;
70
+ updated_by?: string;
71
+ updated_at?: import("../api/agent.js").ZonedDateTime;
72
+ toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
73
+ detail_mode?: boolean;
74
+ model_id?: string;
75
+ model_name?: string;
76
76
  structured_output?: {
77
77
  [key: string]: any;
78
- } | null | undefined;
78
+ } | null;
79
79
  llm_settings?: {
80
80
  [key: string]: any;
81
- } | null | undefined;
81
+ } | null;
82
82
  }>;
83
83
  /**
84
84
  * List all public agents (built-in)
85
85
  */
86
86
  publicAgents: import("../network/types.js").QueryObject<{
87
- visibility?: import("../api/agent.js").VisibilityLevel | undefined;
87
+ visibility?: import("../api/agent.js").VisibilityLevel;
88
88
  }, import("../api/agent.js").AgentResponse[]>;
89
89
  /**
90
90
  * Gets a public agent by id (built-in)
@@ -95,30 +95,30 @@ declare class AgentClient extends ReactQueryNetworkClient {
95
95
  id: string;
96
96
  name: string;
97
97
  slug: string;
98
- description?: string | undefined;
99
- avatar?: string | undefined;
98
+ description?: string;
99
+ avatar?: string;
100
100
  system_prompt: string;
101
101
  type: string;
102
- llm_config?: import("../api/agent.js").LlmConfigResponse | undefined;
103
- suggested_prompts?: string[] | undefined;
104
- knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse | undefined;
102
+ llm_config?: import("../api/agent.js").LlmConfigResponse;
103
+ suggested_prompts?: string[];
104
+ knowledge_sources_config?: import("../api/agent.js").KnowledgeSourceResponse;
105
105
  visibility_level: import("../api/agent.js").VisibilityLevel;
106
106
  use_only: boolean;
107
107
  creator_name: string;
108
108
  created_by: string;
109
- created_at: string;
110
- updated_by?: string | undefined;
111
- updated_at?: string | undefined;
112
- toolkits?: import("../api/agent.js").ToolkitsInAgentResponse | undefined;
113
- detail_mode?: boolean | undefined;
114
- model_id?: string | undefined;
115
- model_name?: string | undefined;
109
+ created_at: import("../api/agent.js").ZonedDateTime;
110
+ updated_by?: string;
111
+ updated_at?: import("../api/agent.js").ZonedDateTime;
112
+ toolkits?: import("../api/agent.js").ToolkitsInAgentResponse;
113
+ detail_mode?: boolean;
114
+ model_id?: string;
115
+ model_name?: string;
116
116
  structured_output?: {
117
117
  [key: string]: any;
118
- } | null | undefined;
118
+ } | null;
119
119
  llm_settings?: {
120
120
  [key: string]: any;
121
- } | null | undefined;
121
+ } | null;
122
122
  }>;
123
123
  /**
124
124
  * Adds the resource of type Agent to the list of favorites.
@@ -137,7 +137,7 @@ declare class AgentClient extends ReactQueryNetworkClient {
137
137
  */
138
138
  updateAgent: import("../network/types.js").MutationObject<{
139
139
  agentId: string;
140
- modifiedAgentRequest?: import("../api/agent.js").ModifiedAgentRequest | undefined;
140
+ modifiedAgentRequest?: import("../api/agent.js").ModifiedAgentRequest;
141
141
  }, unknown>;
142
142
  }
143
143
  export declare const agentClient: AgentClient;
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,eAAO,MAAM,cAAc,eAAgB,MAAM,YAAmC,CAAA;AAQpF,cAAM,WAAY,SAAQ,uBAAuB;;IAK/C,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAalE;;OAEG;IACH,SAAS;iBAEiC,MAAM;iBAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAGhE;IAEF;;OAEG;IACH,MAAM;;+CAA0B;IAEhC;;OAEG;IACH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAkC;IAEvC;;OAEG;IACH,YAAY;;+CAAgC;IAE5C;;OAEG;IACH,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAwC;IAEnD;;OAEG;IACH,gBAAgB;;aAA8C;IAE9D;;OAEG;IACH,mBAAmB;;aAAgD;IACnE;;OAEG;IACH,WAAW;;;gBAAqC;CACjD;AAED,eAAO,MAAM,WAAW,aAAoB,CAAA"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/client/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,kCAAmC,CAAA;AAQpF,cAAM,WAAY,SAAQ,uBAAuB;;IAK/C,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAalE;;OAEG;IACH,SAAS;iBAEiC,MAAM;iBAAW,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAGhE;IAEF;;OAEG;IACH,MAAM;;+CAA0B;IAEhC;;OAEG;IACH,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAkC;IAEvC;;OAEG;IACH,YAAY;;+CAAgC;IAE5C;;OAEG;IACH,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAwC;IAEnD;;OAEG;IACH,gBAAgB;;aAA8C;IAE9D;;OAEG;IACH,mBAAmB;;aAAgD;IACnE;;OAEG;IACH,WAAW;;;gBAAqC;CACjD;AAED,eAAO,MAAM,WAAW,aAAoB,CAAA"}
@@ -12,8 +12,9 @@ declare class AIClient extends ReactQueryNetworkClient {
12
12
  */
13
13
  runQuickAction: import("../network/types.js").MutationObject<Omit<{
14
14
  authorization: string;
15
- xAccountId?: string | null | undefined;
16
- xMemberId?: string | null | undefined;
15
+ xAccountId?: string | null;
16
+ xMemberId?: string | null;
17
+ xUsername?: string | null;
17
18
  quickActionsRequest: import("../api/ai.js").QuickActionsRequest;
18
19
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").SimpleResponse>;
19
20
  /**
@@ -29,7 +30,7 @@ declare class AIClient extends ReactQueryNetworkClient {
29
30
  */
30
31
  deleteKnowledgeObjectsByStandalone: import("../network/types.js").MutationObject<Omit<{
31
32
  slug: string;
32
- standalone?: boolean | null | undefined;
33
+ standalone?: boolean | null;
33
34
  authorization: string;
34
35
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
35
36
  /**
@@ -45,36 +46,40 @@ declare class AIClient extends ReactQueryNetworkClient {
45
46
  vectorizeCustomKS: import("../network/types.js").MutationObject<Omit<{
46
47
  slug: string;
47
48
  authorization: string;
48
- xAccountId?: string | null | undefined;
49
- xMemberId?: string | null | undefined;
49
+ xAccountId?: string | null;
50
+ xMemberId?: string | null;
51
+ xUsername?: string | null;
50
52
  customKnowledgeSourceRequest: import("../api/ai.js").CustomKnowledgeSourceRequest;
51
53
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
52
54
  /**
53
55
  * Lists the AI Stacks according to their visibilities.
54
56
  */
55
57
  aiStacks: import("../network/types.js").QueryObject<Omit<{
56
- visibility?: import("../api/ai.js").VisibilityLevelEnum | undefined;
58
+ visibility?: import("../api/ai.js").VisibilityLevelEnum;
57
59
  authorization: string;
58
- xAccountId?: string | null | undefined;
59
- xMemberId?: string | null | undefined;
60
+ xAccountId?: string | null;
61
+ xMemberId?: string | null;
62
+ xUsername?: string | null;
60
63
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").GetAiStackResponse[]>;
61
64
  /**
62
65
  * Gets total tokens usage
63
66
  */
64
67
  totalTokensUsage: import("../network/types.js").QueryObject<Omit<{
65
68
  authorization: string;
66
- xAccountId?: string | null | undefined;
67
- xMemberId?: string | null | undefined;
69
+ xAccountId?: string | null;
70
+ xMemberId?: string | null;
71
+ xUsername?: string | null;
68
72
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
69
73
  /**
70
74
  * Gets current tokens usage
71
75
  */
72
76
  currentTokensUsage: import("../network/types.js").QueryObject<Omit<{
73
- year: number;
74
- month: number;
77
+ year?: number | null;
78
+ month?: number | null;
75
79
  authorization: string;
76
- xAccountId?: string | null | undefined;
77
- xMemberId?: string | null | undefined;
80
+ xAccountId?: string | null;
81
+ xMemberId?: string | null;
82
+ xUsername?: string | null;
78
83
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
79
84
  /**
80
85
  * Gets a workspace by its id.
@@ -82,73 +87,72 @@ declare class AIClient extends ReactQueryNetworkClient {
82
87
  workspace: import("../network/types.js").QueryObject<Omit<{
83
88
  workspaceId: string;
84
89
  authorization: string;
85
- xAccountId?: string | null | undefined;
86
- xMemberId?: string | null | undefined;
90
+ xAccountId?: string | null;
91
+ xMemberId?: string | null;
92
+ xUsername?: string | null;
87
93
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceResponse[]>;
88
94
  /**
89
95
  * @deprecated
90
96
  * Lists the quick commands according to filters passed as parameter (QC with secrets will not be returned).
91
97
  */
92
98
  quickCommands: import("../network/types.js").QueryObject<Omit<{
93
- visibility?: import("../api/ai.js").VisibilityLevelEnum | null | undefined;
94
- order?: import("../api/ai.js").OrderEnum | undefined;
95
- types?: import("../api/ai.js").QuickCommandTypeRequest[] | null | undefined;
99
+ visibility?: import("../api/ai.js").VisibilityLevelEnum | null;
100
+ order?: import("../api/ai.js").OrderEnum;
101
+ types?: import("../api/ai.js").QuickCommandTypeRequest[] | null;
96
102
  authorization: string;
97
- xAccountId?: string | null | undefined;
98
- xMemberId?: string | null | undefined;
103
+ xAccountId?: string | null;
104
+ xMemberId?: string | null;
105
+ xUsername?: string | null;
99
106
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
100
107
  /**
101
108
  * Lists all the quick commands according to filters passed as parameter (including QC with secrets).
102
109
  */
103
110
  allQuickCommands: import("../network/types.js").QueryObject<Omit<{
104
- visibility?: import("../api/ai.js").VisibilityLevelEnum | null | undefined;
105
- order?: import("../api/ai.js").OrderEnum | undefined;
106
- types?: import("../api/ai.js").QuickCommandTypeRequest[] | null | undefined;
111
+ visibility?: import("../api/ai.js").VisibilityLevelEnum | null;
112
+ order?: import("../api/ai.js").OrderEnum;
113
+ types?: import("../api/ai.js").QuickCommandTypeRequest[] | null;
107
114
  authorization: string;
108
- xAccountId?: string | null | undefined;
109
- xMemberId?: string | null | undefined;
115
+ xAccountId?: string | null;
116
+ xMemberId?: string | null;
117
+ xUsername?: string | null;
110
118
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
111
119
  /**
112
120
  * Gets a quick command by its slug.
113
121
  */
114
122
  quickCommand: import("../network/types.js").QueryObject<Omit<{
115
123
  slug: string;
116
- findAgents?: boolean | undefined;
124
+ findAgents?: boolean;
117
125
  authorization: string;
118
- xAccountId?: string | null | undefined;
119
- xMemberId?: string | null | undefined;
126
+ xAccountId?: string | null;
127
+ xMemberId?: string | null;
128
+ xUsername?: string | null;
120
129
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandResponse>;
121
130
  /**
122
131
  * Creates a new execution for a quick command by its slug.
123
132
  */
124
133
  quickCommandCreateExecution: import("../network/types.js").MutationObject<Omit<{
125
134
  slug: string;
126
- conversationId?: string | null | undefined;
127
- authorization: string;
128
- xAccountId?: string | null | undefined;
129
- xMemberId?: string | null | undefined;
130
- quickCommandCreateRequest?: import("../api/ai.js").QuickCommandCreateRequest | undefined;
135
+ conversationId?: string | null;
136
+ quickCommandCreateRequest?: import("../api/ai.js").QuickCommandCreateRequest;
131
137
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
132
138
  /**
133
139
  * Gets the execution status and result of a quick command by its execution ID.
134
140
  */
135
141
  quickCommandCallbackExecutionId: import("../network/types.js").QueryObject<Omit<{
136
142
  executionId: string;
137
- authorization: string;
138
- xAccountId?: string | null | undefined;
139
- xMemberId?: string | null | undefined;
140
143
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandExecutionResponse>;
141
144
  /**
142
145
  * Lists the knowledge sources according to filters passed as parameter.
143
146
  */
144
147
  knowledgeSources: import("../network/types.js").QueryObject<Omit<{
145
- visibility?: import("../api/ai.js").VisibilityLevelEnum | undefined;
146
- order?: import("../api/ai.js").OrderEnum | undefined;
147
- $default?: boolean | null | undefined;
148
- types?: import("../api/ai.js").KnowledgeSourceTypeEnum[] | null | undefined;
149
- authorization: string;
150
- xAccountId?: string | null | undefined;
151
- xMemberId?: string | null | undefined;
148
+ visibility?: import("../api/ai.js").VisibilityLevelEnum;
149
+ order?: import("../api/ai.js").OrderEnum;
150
+ $default?: boolean | null;
151
+ types?: import("../api/ai.js").KnowledgeSourceTypeEnum[] | null;
152
+ authorization: string;
153
+ xAccountId?: string | null;
154
+ xMemberId?: string | null;
155
+ xUsername?: string | null;
152
156
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceItemResponse[]>;
153
157
  /**
154
158
  * Gets a knowledge source by its slug.
@@ -176,11 +180,12 @@ declare class AIClient extends ReactQueryNetworkClient {
176
180
  * Gets the chat history. This is a paginated resource.
177
181
  */
178
182
  chats: import("../network/types.js").InfiniteQueryObject<Omit<{
179
- size?: number | undefined;
180
- page?: number | undefined;
183
+ size?: number;
184
+ page?: number;
181
185
  authorization: string;
182
- xAccountId?: string | null | undefined;
183
- xMemberId?: string | null | undefined;
186
+ xAccountId?: string | null;
187
+ xMemberId?: string | null;
188
+ xUsername?: string | null;
184
189
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse[], "">;
185
190
  /**
186
191
  * Gets a specific chat from the history according to its id.
@@ -188,8 +193,9 @@ declare class AIClient extends ReactQueryNetworkClient {
188
193
  chat: import("../network/types.js").QueryObject<Omit<{
189
194
  conversationId: string;
190
195
  authorization: string;
191
- xAccountId?: string | null | undefined;
192
- xMemberId?: string | null | undefined;
196
+ xAccountId?: string | null;
197
+ xMemberId?: string | null;
198
+ xUsername?: string | null;
193
199
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedConversationResponse>;
194
200
  /**
195
201
  * Deletes a chat from the chat history.
@@ -197,8 +203,9 @@ declare class AIClient extends ReactQueryNetworkClient {
197
203
  deleteChat: import("../network/types.js").MutationObject<Omit<{
198
204
  conversationId: string;
199
205
  authorization: string;
200
- xAccountId?: string | null | undefined;
201
- xMemberId?: string | null | undefined;
206
+ xAccountId?: string | null;
207
+ xMemberId?: string | null;
208
+ xUsername?: string | null;
202
209
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
203
210
  /**
204
211
  * Gets a plain text version of the chat with id passed as parameter.
@@ -206,8 +213,9 @@ declare class AIClient extends ReactQueryNetworkClient {
206
213
  downloadChat: import("../network/types.js").MutationObject<Omit<{
207
214
  conversationId: string;
208
215
  authorization: string;
209
- xAccountId?: string | null | undefined;
210
- xMemberId?: string | null | undefined;
216
+ xAccountId?: string | null;
217
+ xMemberId?: string | null;
218
+ xUsername?: string | null;
211
219
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
212
220
  /**
213
221
  * Renames a chat.
@@ -215,8 +223,9 @@ declare class AIClient extends ReactQueryNetworkClient {
215
223
  renameChat: import("../network/types.js").MutationObject<Omit<{
216
224
  conversationId: string;
217
225
  authorization: string;
218
- xAccountId?: string | null | undefined;
219
- xMemberId?: string | null | undefined;
226
+ xAccountId?: string | null;
227
+ xMemberId?: string | null;
228
+ xUsername?: string | null;
220
229
  conversationUpdateTitleRequest: import("../api/ai.js").ConversationUpdateTitleRequest;
221
230
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse>;
222
231
  /**
@@ -224,8 +233,9 @@ declare class AIClient extends ReactQueryNetworkClient {
224
233
  */
225
234
  createEvent: import("../network/types.js").MutationObject<Omit<{
226
235
  authorization: string;
227
- xAccountId?: string | null | undefined;
228
- xMemberId?: string | null | undefined;
236
+ xAccountId?: string | null;
237
+ xMemberId?: string | null;
238
+ xUsername?: string | null;
229
239
  body: import("../api/ai.js").GenericEventRequest[];
230
240
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
231
241
  /**
@@ -235,8 +245,9 @@ declare class AIClient extends ReactQueryNetworkClient {
235
245
  slug: string;
236
246
  stepSlug: string;
237
247
  authorization: string;
238
- xAccountId?: string | null | undefined;
239
- xMemberId?: string | null | undefined;
248
+ xAccountId?: string | null;
249
+ xMemberId?: string | null;
250
+ xUsername?: string | null;
240
251
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
241
252
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandStepFetchResponse>;
242
253
  /**
@@ -246,11 +257,12 @@ declare class AIClient extends ReactQueryNetworkClient {
246
257
  slug: string;
247
258
  stepSlug: string;
248
259
  authorization: string;
249
- xAccountId?: string | null | undefined;
250
- xMemberId?: string | null | undefined;
260
+ xAccountId?: string | null;
261
+ xMemberId?: string | null;
262
+ xUsername?: string | null;
251
263
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
252
264
  }, "authorization"> & {
253
- headers?: Record<string, any> | undefined;
265
+ headers?: Record<string, any>;
254
266
  }, import("../api/ai.js").QuickCommandStepFetchResponse>;
255
267
  /**
256
268
  * @deprecated This method does not use stream, only json. The json support has been removed
@@ -261,8 +273,9 @@ declare class AIClient extends ReactQueryNetworkClient {
261
273
  slug: string;
262
274
  stepSlug: string;
263
275
  authorization: string;
264
- xAccountId?: string | null | undefined;
265
- xMemberId?: string | null | undefined;
276
+ xAccountId?: string | null;
277
+ xMemberId?: string | null;
278
+ xUsername?: string | null;
266
279
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
267
280
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, string | QuickCommandPromptResponse2>;
268
281
  /**
@@ -272,8 +285,9 @@ declare class AIClient extends ReactQueryNetworkClient {
272
285
  slug: string;
273
286
  stepSlug: string;
274
287
  authorization: string;
275
- xAccountId?: string | null | undefined;
276
- xMemberId?: string | null | undefined;
288
+ xAccountId?: string | null;
289
+ xMemberId?: string | null;
290
+ xUsername?: string | null;
277
291
  quickCommandEvaluateStepRouterRequest: import("../api/ai.js").QuickCommandEvaluateStepRouterRequest;
278
292
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandEvaluateStepRouterResponse>;
279
293
  /**
@@ -286,8 +300,9 @@ declare class AIClient extends ReactQueryNetworkClient {
286
300
  formatResultOfQuickCommand: import("../network/types.js").MutationObject<Omit<{
287
301
  slug: string;
288
302
  authorization: string;
289
- xAccountId?: string | null | undefined;
290
- xMemberId?: string | null | undefined;
303
+ xAccountId?: string | null;
304
+ xMemberId?: string | null;
305
+ xUsername?: string | null;
291
306
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
292
307
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandFinalResultResponse>;
293
308
  /**
@@ -296,8 +311,9 @@ declare class AIClient extends ReactQueryNetworkClient {
296
311
  addFavoriteStackAi: import("../network/types.js").MutationObject<Omit<{
297
312
  stackId: string;
298
313
  authorization: string;
299
- xAccountId?: string | null | undefined;
300
- xMemberId?: string | null | undefined;
314
+ xAccountId?: string | null;
315
+ xMemberId?: string | null;
316
+ xUsername?: string | null;
301
317
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
302
318
  /**
303
319
  * Removes the resource of type Stack AI from the list of favorites.
@@ -305,8 +321,9 @@ declare class AIClient extends ReactQueryNetworkClient {
305
321
  removeFavoriteStackAi: import("../network/types.js").MutationObject<Omit<{
306
322
  stackId: string;
307
323
  authorization: string;
308
- xAccountId?: string | null | undefined;
309
- xMemberId?: string | null | undefined;
324
+ xAccountId?: string | null;
325
+ xMemberId?: string | null;
326
+ xUsername?: string | null;
310
327
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
311
328
  /**
312
329
  * Updates a Quick Command
@@ -314,8 +331,9 @@ declare class AIClient extends ReactQueryNetworkClient {
314
331
  updateQuickCommand: import("../network/types.js").MutationObject<Omit<{
315
332
  slug: string;
316
333
  authorization: string;
317
- xAccountId?: string | null | undefined;
318
- xMemberId?: string | null | undefined;
334
+ xAccountId?: string | null;
335
+ xMemberId?: string | null;
336
+ xUsername?: string | null;
319
337
  quickCommandsUpdateRequest: import("../api/ai.js").QuickCommandsUpdateRequest;
320
338
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
321
339
  /**
@@ -324,8 +342,9 @@ declare class AIClient extends ReactQueryNetworkClient {
324
342
  addFavoriteQuickCommand: import("../network/types.js").MutationObject<Omit<{
325
343
  slug: string;
326
344
  authorization: string;
327
- xAccountId?: string | null | undefined;
328
- xMemberId?: string | null | undefined;
345
+ xAccountId?: string | null;
346
+ xMemberId?: string | null;
347
+ xUsername?: string | null;
329
348
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
330
349
  /**
331
350
  * Removes the resource of type Quick Command from the list of favorites.
@@ -333,17 +352,37 @@ declare class AIClient extends ReactQueryNetworkClient {
333
352
  removeFavoriteQuickCommand: import("../network/types.js").MutationObject<Omit<{
334
353
  slug: string;
335
354
  authorization: string;
336
- xAccountId?: string | null | undefined;
337
- xMemberId?: string | null | undefined;
355
+ xAccountId?: string | null;
356
+ xMemberId?: string | null;
357
+ xUsername?: string | null;
338
358
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
359
+ /**
360
+ * Lists all the feature flags for this user.
361
+ */
362
+ flags: import("../network/types.js").QueryObject<void, import("../api/ai.js").FeatureFlagResponse[]>;
363
+ /**
364
+ * Starts the execution of a script step
365
+ */
366
+ startScriptStep: import("../network/types.js").MutationObject<Omit<{
367
+ slug: string;
368
+ stepSlug: string;
369
+ quickCommandStartScriptRequest: import("../api/ai.js").QuickCommandStartScriptRequest;
370
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandStartScriptResponse>;
371
+ /**
372
+ * Gets the status of the execution of a script step
373
+ */
374
+ getStatusScriptStep: import("../network/types.js").QueryObject<Omit<{
375
+ scriptExecutionId: string;
376
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandScriptExecutionResponse>;
339
377
  private static toolsOfAgent;
340
378
  sendChatMessage(request: FixedChatRequest, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
341
379
  contentDependencies: import("../network/types.js").QueryObject<Omit<{
342
380
  contentType: import("../api/ai.js").ContentDependencyType;
343
381
  contentId: string;
344
382
  authorization: string;
345
- xAccountId?: string | null | undefined;
346
- xMemberId?: string | null | undefined;
383
+ xAccountId?: string | null;
384
+ xMemberId?: string | null;
385
+ xUsername?: string | null;
347
386
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedDependencyResponse>;
348
387
  }
349
388
  export declare const aiClient: AIClient;
@@ -1 +1 @@
1
- {"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/client/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EA+BL,2BAA2B,EAC3B,6BAA6B,EAQ9B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,OAAO,EAEL,qBAAqB,E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,6BAA6B,EAAE,6BAA6B,EACtH,mBAAmB,CAAC,EAAE,MAAM,GAC5B,YAAY,CAAC,2BAA2B,CAAC;IAiB3C;;OAEG;IACH,0BAA0B;;;;;;;wHAA2F;IACrH;;MAEE;IACF,kBAAkB;;;;;;4EAAoF;IACtG;;OAEG;IACH,qBAAqB;;;;;;4EAAyF;IAC9G;;OAEG;IACH,kBAAkB;;;;;;;4EAAsF;IACxG;;OAEG;IACH,uBAAuB;;;;;;4EAAsF;IAC7G;;OAEG;IACH,0BAA0B;;;;;;4EAA2F;IACrH;;OAEG;IACH,KAAK,0FAAiC;IACtC;;OAEG;IACH,eAAe;;;;wHAA0G;IACzH;;OAEG;IACH,mBAAmB;;4HAAoH;mBAElH,YAAY;IAiBjC,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,qBAAqB,CAAC;IAmM7G,mBAAmB;;;;;;;4FAKjB;CACH;AAED,eAAO,MAAM,QAAQ,UAAiB,CAAA"}
package/dist/client/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { findLast, isArray, last } from 'lodash';
2
2
  import { getApiAddresses } from '../api-addresses.js';
3
- import { addFavoriteV1AiStacksStackIdFavoritePost, addFavoriteV1QuickCommandsSlugFavoritePost, calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost, callbackV1QuickCommandsCallbackExecutionIdGet, conversationHistoryV1ConversationsConversationIdGet, createExecutionV1QuickCommandsCreateExecutionSlugPost, currentV1TokensUsageCurrentGet, currentV1TokensUsageTotalGet, defaults, deleteConversationV1ConversationsConversationIdDelete, deleteFavoriteV1AiStacksStackIdFavoriteDelete, deleteFavoriteV1QuickCommandsSlugFavoriteDelete, deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete, downloadConversationV1ConversationsConversationIdDownloadGet, findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet, findKnowledgeSourceV1KnowledgeSourcesSlugGet, formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost, formatResultV1QuickCommandsSlugResultFormatPost, getContentDependenciesV1ContentContentTypeContentIdDependenciesGet, getQuickCommandV1QuickCommandsSlugGet, getUploadFormV1FileUploadFormPost, listAiStacksV1AiStacksGet, listAllV1QuickCommandsAllGet, listAllV2QuickCommandsAllGet, listAssociationV1WorkspaceWorkspaceIdGet, listConversationsV1ConversationsGet, listKnowledgeSourcesV1KnowledgeSourcesGet, postEventV1EventsPost, quickActionsV1QuickActionsPost, quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost, resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete, runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost, searchKnowledgeSourcesV1KnowledgeSourcesSearchPost, updateQuickCommandV1QuickCommandsSlugPatch, updateTitleV1ConversationsConversationIdPatch, vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost, } from '../api/ai.js';
3
+ import { addFavoriteV1AiStacksStackIdFavoritePost, addFavoriteV1QuickCommandsSlugFavoritePost, calculateNextStepV1QuickCommandsSlugStepsStepSlugCalculateNextStepPost, callbackV1QuickCommandsCallbackExecutionIdGet, conversationHistoryV1ConversationsConversationIdGet, createExecutionV1QuickCommandsCreateExecutionSlugPost, currentV1TokensUsageCurrentGet, defaults, deleteConversationV1ConversationsConversationIdDelete, deleteFavoriteV1AiStacksStackIdFavoriteDelete, deleteFavoriteV1QuickCommandsSlugFavoriteDelete, deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete, downloadConversationV1ConversationsConversationIdDownloadGet, findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet, findKnowledgeSourceV1KnowledgeSourcesSlugGet, formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost, formatResultV1QuickCommandsSlugResultFormatPost, getContentDependenciesV1ContentContentTypeContentIdDependenciesGet, getFlagsV1FlagsGet, getQuickCommandV1QuickCommandsSlugGet, getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet, getUploadFormV1FileUploadFormPost, listAiStacksV1AiStacksGet, listAllV1QuickCommandsAllGet, listAllV2QuickCommandsAllGet, listAssociationV1WorkspaceWorkspaceIdGet, listConversationsV1ConversationsGet, listKnowledgeSourcesV1KnowledgeSourcesGet, postEventV1EventsPost, quickActionsV1QuickActionsPost, quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost, resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete, runFetchStepV1QuickCommandsSlugStepsStepSlugFetchRunPost, searchKnowledgeSourcesV1KnowledgeSourcesSearchPost, startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost, totalV1TokensUsageTotalGet, updateQuickCommandV1QuickCommandsSlugPatch, updateTitleV1ConversationsConversationIdPatch, vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost, } from '../api/ai.js';
4
4
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
5
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
6
6
  import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
@@ -71,7 +71,7 @@ class AIClient extends ReactQueryNetworkClient {
71
71
  enumerable: true,
72
72
  configurable: true,
73
73
  writable: true,
74
- value: this.query(removeAuthorizationParam(currentV1TokensUsageTotalGet))
74
+ value: this.query(removeAuthorizationParam(totalV1TokensUsageTotalGet))
75
75
  });
76
76
  /**
77
77
  * Gets current tokens usage
@@ -326,6 +326,33 @@ class AIClient extends ReactQueryNetworkClient {
326
326
  writable: true,
327
327
  value: this.mutation(removeAuthorizationParam(deleteFavoriteV1QuickCommandsSlugFavoriteDelete))
328
328
  });
329
+ /**
330
+ * Lists all the feature flags for this user.
331
+ */
332
+ Object.defineProperty(this, "flags", {
333
+ enumerable: true,
334
+ configurable: true,
335
+ writable: true,
336
+ value: this.query(getFlagsV1FlagsGet)
337
+ });
338
+ /**
339
+ * Starts the execution of a script step
340
+ */
341
+ Object.defineProperty(this, "startScriptStep", {
342
+ enumerable: true,
343
+ configurable: true,
344
+ writable: true,
345
+ value: this.mutation(removeAuthorizationParam(startScriptStepV1QuickCommandsSlugStepsStepSlugStartScriptPost))
346
+ });
347
+ /**
348
+ * Gets the status of the execution of a script step
349
+ */
350
+ Object.defineProperty(this, "getStatusScriptStep", {
351
+ enumerable: true,
352
+ configurable: true,
353
+ writable: true,
354
+ value: this.query(removeAuthorizationParam(getScriptExecutionStatusV1QuickCommandsScriptExecutionsScriptExecutionIdGet))
355
+ });
329
356
  Object.defineProperty(this, "contentDependencies", {
330
357
  enumerable: true,
331
358
  configurable: true,