@stack-spot/portal-network 0.98.0 → 0.99.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.
@@ -16,14 +16,10 @@ export type ModuleResponse = {
16
16
  id: string;
17
17
  name: string;
18
18
  };
19
- export type ApplicationResponse = {
20
- id: string;
21
- name: string;
22
- };
23
19
  export type ExecutionResponse = {
24
20
  id: string;
25
- started_at: string | null;
26
- completed_at: string | null;
21
+ startedAt: string | null;
22
+ completedAt: string | null;
27
23
  status: string | null;
28
24
  conclusion: string | null;
29
25
  };
@@ -36,7 +32,6 @@ export type UserResponse = {
36
32
  export type ReportResponse = {
37
33
  id: string;
38
34
  "module": ModuleResponse;
39
- application: ApplicationResponse;
40
35
  execution: ExecutionResponse;
41
36
  mode: string;
42
37
  sourceBranch: string;
@@ -44,17 +39,17 @@ export type ReportResponse = {
44
39
  createdBy: UserResponse;
45
40
  createdAt: string;
46
41
  updatedAt: string;
47
- files_count: number | null;
48
- issues_count: number | null;
42
+ filesCount: number | null;
43
+ issuesCount: number | null;
49
44
  pullRequestLink?: string | null;
50
45
  };
51
46
  export type ListApplicationReportResponse = {
52
47
  /** List of reports */
53
48
  items: ReportResponse[];
54
49
  /** Number of reports */
55
- items_count: number;
50
+ itemsCount: number;
56
51
  /** Last evaluated key */
57
- last_evaluated_key: string | null;
52
+ lastEvaluatedKey: string | null;
58
53
  };
59
54
  export type ExceptionType = "CODE_SHIFT_API_0000_UNEXPECTED_ERROR" | "CODE_SHIFT_API_0001_INVALID_VALUE" | "CODE_SHIFT_API_0002_NOT_IMPLEMENTED" | "CODE_SHIFT_API_0003_NOT_FOUND" | "CODE_SHIFT_API_0004_VALIDATION_ERROR" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3002_WORKFLOW_API_DISPATCH_PARSE_ERROR" | "CODE_SHIFT_API_3010_AWS_SECRET_MANAGER_GET_SECRET_FAILURE" | "CODE_SHIFT_API_3011_AWS_SECRET_MANAGER_PARSE_SECRET_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE";
60
55
  export type BadRequestExceptionTypes = "CODE_SHIFT_API_1001_DECODE_JWT_ERROR" | "CODE_SHIFT_API_2001_BAD_REQUEST_REQUIRED_FIELD" | "CODE_SHIFT_API_2002_BAD_REQUEST_EMPTY_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2003_BAD_REQUEST_TYPE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2004_BAD_REQUEST_VALUE_FIELD_NOT_ALLOWED" | "CODE_SHIFT_API_2005_BAD_REQUEST_VALUE_FIELD_MAX_LENGTH" | "CODE_SHIFT_API_2006_BAD_REQUEST_VALUE_FIELD_MIN_LENGTH" | "CODE_SHIFT_API_2007_BAD_REQUEST_VALUE_REGEX_DOESNT_MATCH" | "CODE_SHIFT_API_2008_BAD_REQUEST_VALUE_FIELD_NUMBER_NOT_LT" | "CODE_SHIFT_API_2100_CREATE_BODY_REPO_AND_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2101_CREATE_BODY_NOT_REPO_AND_NOT_REPO_CREATE_ACTION" | "CODE_SHIFT_API_2102_BAD_REQUEST_DATE_MAX_INTERVAL" | "CODE_SHIFT_API_2103_BAD_REQUEST_INVALID_PAGE" | "CODE_SHIFT_API_2104_BAD_REQUEST_DUPLICATED_ALIAS" | "CODE_SHIFT_API_2105_BAD_REQUEST_INVALID_REPO_URL" | "CODE_SHIFT_API_2110_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_WITHOUT_CONCLUSION" | "CODE_SHIFT_API_2112_BAD_REQUEST_PUT_STEP_STATUS_NOT_COMPLETED_AND_CONCLUSION_DEFINED" | "CODE_SHIFT_API_2113_BAD_REQUEST_PUT_STEP_STATUS_COMPLETED_AND_COMPLETED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2114_BAD_REQUEST_PUT_STEP_STATUS_IN_PROGRESS_AND_STARTED_AT_NOT_DEFINED" | "CODE_SHIFT_API_2115_BAD_REQUEST_PUT_STEP_COMPLETED_AT_DEFINED_AND_STATUS_NOT_COMPLETED" | "CODE_SHIFT_API_2116_BAD_REQUEST_PUT_STEP_STARTED_AT_DEFINED_AND_STATUS_PENDING" | "CODE_SHIFT_API_2117_BAD_REQUEST_PUT_STEP_LOG_DEFINED_AND_CONCLUSION_IS_NOT_FAILURE" | "CODE_SHIFT_API_2120_BAD_REQUEST_MULTIPLE_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_INTEGRATION" | "CODE_SHIFT_API_2121_BAD_REQUEST_EMPTY_TARGET" | "CODE_SHIFT_API_2121_BAD_REQUEST_FILLED_TARGET" | "CODE_SHIFT_API_2999_BAD_REQUEST_UNMAPPED";
@@ -83,27 +78,27 @@ export type CreateApplicationRequest = {
83
78
  };
84
79
  export type RepositoryResponse = {
85
80
  url: string;
86
- default_branch: string;
81
+ defaultBranch: string;
87
82
  };
88
- export type ApplicationResponse2 = {
83
+ export type ApplicationResponse = {
89
84
  /** Application ID */
90
85
  id: string;
91
86
  /** Application name */
92
87
  name: string;
93
88
  /** Application creation date */
94
- created_at?: string | null;
89
+ createdAt?: string | null;
95
90
  /** Application creation user */
96
- created_by?: string | null;
91
+ createdBy?: string | null;
97
92
  /** Repository */
98
93
  repository: RepositoryResponse;
99
94
  };
100
95
  export type ListApplicationResponse = {
101
96
  /** List of applications */
102
- items: ApplicationResponse2[];
97
+ items: ApplicationResponse[];
103
98
  /** Number of applications */
104
- items_count: number;
99
+ itemsCount: number;
105
100
  /** Last evaluated key */
106
- last_evaluated_key: string | null;
101
+ lastEvaluatedKey: string | null;
107
102
  };
108
103
  export type PutApplicationRequest = {
109
104
  /** Application name */
@@ -133,7 +128,7 @@ export type ModuleResponse2 = {
133
128
  /** Module description */
134
129
  description: string;
135
130
  /** Workflow name */
136
- workflow_name: string;
131
+ workflowName: string;
137
132
  /** Studio */
138
133
  studio: string;
139
134
  /** Module modes */
@@ -147,9 +142,9 @@ export type ListModuleResponse = {
147
142
  /** List of modules */
148
143
  items: ModuleResponse2[];
149
144
  /** Number of modules */
150
- items_count: number;
145
+ itemsCount: number;
151
146
  /** Last evaluated key */
152
- last_evaluated_key: string | null;
147
+ lastEvaluatedKey: string | null;
153
148
  };
154
149
  export type PutModuleRequest = {
155
150
  /** Module name */
@@ -182,6 +177,7 @@ export type DependsOnRequest = {
182
177
  };
183
178
  export type IssuesRequest = {
184
179
  ref: string;
180
+ line: number;
185
181
  description: string;
186
182
  };
187
183
  export type TargetFilesRequest = {
@@ -189,7 +185,6 @@ export type TargetFilesRequest = {
189
185
  filePath: string;
190
186
  dependsOn: DependsOnRequest[];
191
187
  issues: IssuesRequest[];
192
- diffs: string[];
193
188
  };
194
189
  export type PutReportRequest = {
195
190
  filesCount: number;
@@ -201,10 +196,6 @@ export type ModuleResponse3 = {
201
196
  id: string;
202
197
  name: string;
203
198
  };
204
- export type ApplicationResponse3 = {
205
- id: string;
206
- name: string;
207
- };
208
199
  export type DependsOnResponse = {
209
200
  sourceRef: string;
210
201
  targetRef: string;
@@ -212,6 +203,7 @@ export type DependsOnResponse = {
212
203
  };
213
204
  export type IssuesResponse = {
214
205
  ref: string;
206
+ line: number;
215
207
  description: string;
216
208
  };
217
209
  export type TargetFilesResponse = {
@@ -219,21 +211,20 @@ export type TargetFilesResponse = {
219
211
  filePath: string;
220
212
  dependsOn: DependsOnResponse[];
221
213
  issues: IssuesResponse[];
222
- diffs: string[];
223
214
  };
224
215
  export type GetReportResponse = {
225
216
  id: string;
217
+ applicationId: string;
226
218
  "module": ModuleResponse3;
227
- application: ApplicationResponse3;
228
219
  execution: ExecutionResponse;
229
220
  mode: string;
230
- source_branch: string;
231
- target_branch?: string | null;
221
+ sourceBranch: string;
222
+ targetBranch?: string | null;
232
223
  createdBy: UserResponse;
233
224
  createdAt: string;
234
225
  updatedAt: string;
235
- filesCount: number;
236
- issuesCount: number;
226
+ filesCount: number | null;
227
+ issuesCount: number | null;
237
228
  pullRequestLink?: string | null;
238
229
  targetFiles: TargetFilesResponse[];
239
230
  };
@@ -403,7 +394,7 @@ export function getApplicationByIdServiceV1ApplicationsApplicationIdGet({ applic
403
394
  }, opts?: Oazapfts.RequestOpts) {
404
395
  return oazapfts.ok(oazapfts.fetchJson<{
405
396
  status: 200;
406
- data: ApplicationResponse2;
397
+ data: ApplicationResponse;
407
398
  } | {
408
399
  status: 400;
409
400
  data: HttpErrorResponse;
@@ -680,7 +671,6 @@ export function dispatchModuleServiceV1ModulesDispatchesPost({ authorization, bo
680
671
  })
681
672
  })));
682
673
  }
683
-
684
674
  /**
685
675
  * Put Report
686
676
  */
package/src/apis.json CHANGED
@@ -189,13 +189,5 @@
189
189
  "prd": "https://code-shift-code-shift-api.stackspot.com"
190
190
  },
191
191
  "docs": "/openapi.json"
192
- },
193
- "codeBuddy":{
194
- "url":{
195
- "dev": "https://genai-code-buddy-api.dev.stackspot.com",
196
- "stg": "https://genai-code-buddy-api.stg.stackspot.com",
197
- "prd": "https://genai-code-buddy-api.stackspot.com"
198
- },
199
- "docs": "/openapi.json"
200
192
  }
201
193
  }
package/src/client/ai.ts CHANGED
@@ -1,15 +1,18 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
2
  import {
3
+ addFavoriteV1FavoritesPost,
3
4
  ChatResponse3,
4
5
  conversationHistoryV1ConversationsConversationIdGet,
5
6
  defaults,
6
7
  deleteConversationV1ConversationsConversationIdDelete,
8
+ deleteFavoriteV1FavoritesDelete,
7
9
  downloadConversationV1ConversationsConversationIdDownloadGet,
8
10
  findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet,
9
11
  findKnowledgeSourceV1KnowledgeSourcesSlugGet,
10
12
  formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost,
11
13
  formatResultV1QuickCommandsSlugResultFormatPost,
12
14
  getContentDependenciesV1ContentContentTypeContentIdDependenciesGet,
15
+ getFavoritesByTypeV1FavoritesGet,
13
16
  getQuickCommandV1QuickCommandsSlugGet,
14
17
  HttpValidationError,
15
18
  listAiStacksV1AiStacksGet,
@@ -65,6 +68,18 @@ class AIClient extends ReactQueryNetworkClient {
65
68
  fetchStepOfQuickCommand = this.mutation(removeAuthorizationParam(formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost))
66
69
  llmStepOfQuickCommand = this.mutation(removeAuthorizationParam(quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost))
67
70
  formatResultOfQuickCommand = this.mutation(removeAuthorizationParam(formatResultV1QuickCommandsSlugResultFormatPost))
71
+ /**
72
+ * List of favorites by type
73
+ */
74
+ listFavoritesByType = this.query(removeAuthorizationParam(getFavoritesByTypeV1FavoritesGet))
75
+ /**
76
+ * Remove favorite from list
77
+ */
78
+ removeFavorite = this.mutation(removeAuthorizationParam(deleteFavoriteV1FavoritesDelete))
79
+ /**
80
+ * Add favorite to list
81
+ */
82
+ addFavorite = this.mutation(removeAuthorizationParam(addFavoriteV1FavoritesPost))
68
83
 
69
84
  sendChatMessage(request: FixedChatRequest, minChangeIntervalMS?: number): StreamedJson<ChatResponse3> {
70
85
  const abortController = new AbortController()
package/src/index.ts CHANGED
@@ -9,7 +9,6 @@ export { cloudPlatformHorizonClient } from './client/cloud-platform-horizon'
9
9
  export { cloudRuntimesClient } from './client/cloud-runtimes'
10
10
  export { cloudServicesClient } from './client/cloud-services'
11
11
  export { codeShiftClient } from './client/code-shift'
12
- export { codeBuddyClient } from './client/code-buddy'
13
12
  export { contentClient } from './client/content'
14
13
  export { eventBusClient } from './client/event-bus'
15
14
  export { insightsClient } from './client/insights'