@stack-spot/portal-network 0.192.1 → 0.193.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.
- package/CHANGELOG.md +170 -0
- package/dist/api/account.d.ts +4 -116
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +9 -95
- package/dist/api/account.js.map +1 -1
- package/dist/api/ai.d.ts +189 -86
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +238 -142
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +73 -126
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +82 -66
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/codeShift.d.ts +171 -40
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +80 -10
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +23 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +10 -0
- package/dist/api/discover.js.map +1 -1
- package/dist/client/account.d.ts +4 -0
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +10 -1
- package/dist/client/account.js.map +1 -1
- package/dist/client/ai.d.ts +46 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +140 -15
- package/dist/client/ai.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +155 -51
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +146 -47
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/code-shift.d.ts +53 -3
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/discover.d.ts +7 -1
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +208 -0
- package/dist/client/discover.js.map +1 -1
- package/dist/client/types.d.ts +39 -5
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +6 -0
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +6 -0
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +9 -1
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +2 -1
- package/src/api/account.ts +21 -192
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +364 -157
- package/src/api/cloudPlatform.ts +147 -204
- package/src/api/codeShift.ts +284 -45
- package/src/api/discover.ts +35 -12
- package/src/api/notification.ts +2 -0
- package/src/client/account.ts +5 -0
- package/src/client/ai.ts +136 -13
- package/src/client/cloud-platform.ts +84 -29
- package/src/client/code-shift.ts +30 -1
- package/src/client/discover.ts +220 -3
- package/src/client/types.ts +43 -7
- package/src/error/dictionary/cloud-platform.ts +6 -0
- package/src/utils/StreamedJson.tsx +9 -2
package/src/api/codeShift.ts
CHANGED
|
@@ -12,7 +12,7 @@ export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {};
|
|
15
|
-
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics" | "account-discovery-repos";
|
|
15
|
+
export type CodeShiftRole = "list-applications" | "create-application" | "list-repository" | "create-repository" | "delete-repository" | "dispatch-module" | "create-module" | "account-settings" | "list-integration" | "create-integration" | "delete-integration" | "list-program-group" | "create-program-group" | "delete-program-group" | "view-analytics" | "account-discovery-repos" | "account-validate-repos";
|
|
16
16
|
export type RolesResponse = {
|
|
17
17
|
result: boolean;
|
|
18
18
|
};
|
|
@@ -24,6 +24,36 @@ export type ValidationError = {
|
|
|
24
24
|
export type HttpValidationError = {
|
|
25
25
|
detail?: ValidationError[];
|
|
26
26
|
};
|
|
27
|
+
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_0005_CONFLICT" | "CODE_SHIFT_API_0006_INVALID_REPO_URL" | "CODE_SHIFT_API_0007_FORBIDDEN" | "CODE_SHIFT_API_0008_DEFAULT_BRANCH" | "CODE_SHIFT_API_0009_INVALID_SPREADSHEET" | "CODE_SHIFT_API_0010_PR_LINK_NOT_EXISTS" | "CODE_SHIFT_API_0011_EMPTY_SPREADSHEET" | "CODE_SHIFT_API_0012_REPOSITORY_NOT_EXISTS_IN_SCM" | "CODE_SHIFT_API_0013_SCM_BRANCH_NOT_EXISTS_EXCEPTION" | "CODE_SHIFT_API_0014_ACCOUNT_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0015_INVALID_WORKFLOW_URL_EXCEPTION" | "CODE_SHIFT_API_0016_INVALID_ACTION_YAML_EXCEPTION" | "CODE_SHIFT_API_0017_FAIL_READING_ACTION_INPUTS_EXCEPTION" | "CODE_SHIFT_API_0018_MODULE_DISPATCHER_GENERIC_EXCEPTION" | "CODE_SHIFT_API_0019_GITHUB_DISPATCH_WORKFLOW_UNAUTHORIZED_EXCEPTION" | "CODE_SHIFT_API_0020_GITHUB_SAML_EXCEPTION" | "CODE_SHIFT_API_0021_GITHUB_AUTHORIZATION_ENCODING_EXCEPTION" | "CODE_SHIFT_API_0022_GITHUB_DISPATCH_WORKFLOW_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0023_GENERIC_FAILURE_SEARCHING_REPOSITORY_EXCEPTION" | "CODE_SHIFT_API_0024_COMPONENTS_MAX_SIZE_ALLOWED_EXCEPTION" | "CODE_SHIFT_API_0025_INVALID_SEARCH_REPOSITORY_STATUS_SAVE_EXCEPTION" | "CODE_SHIFT_API_0026_SEARCH_REPO_EMPTY_RESULT_EXCEPTION" | "CODE_SHIFT_API_0027_ACCOUNT_SCM_CONFIG_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0028_USER_SCM_CONFIG_NOT_FOUND_EXCEPTION" | "CODE_SHIFT_API_0029_USER_CUSTOMER_RATING_CREATION_FORBIDDEN" | "CODE_SHIFT_API_0030_BROKEN_STACKSPOT_WORKFLOW_SCM_SETUP_BY_INVALID_TRIGGER_EXCEPTION" | "CODE_SHIFT_API_0031_GITHUB_SECONDARY_INDEX" | "CODE_SHIFT_API_0032_GITHUB_MISSING_PAT_SCOPE" | "CODE_SHIFT_API_0033_FEATURE_NOT_IMPLEMENTED_TO_SCM_YET" | "CODE_SHIFT_API_3000_WORKFLOW_API_DISPATCH_FAILURE" | "CODE_SHIFT_API_3001_WORKFLOW_API_DISPATCH_FORBIDDEN" | "CODE_SHIFT_API_3009_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_3100_SCM_GET_REPOSITORIES_FAILURE" | "CODE_SHIFT_API_3101_SCM_GET_REPOSITORIES_NOT_FOUND" | "CODE_SHIFT_API_3102_SCM_GET_REPOSITORIES_UNAUTHORIZED" | "CODE_SHIFT_API_3103_SCM_GET_REPOSITORIES_FORBIDDEN" | "CODE_SHIFT_API_3104_SCM_GET_REPOSITORIES_SAML_ERROR" | "CODE_SHIFT_API_3110_SCM_GET_PULL_REQUEST_FAILURE" | "CODE_SHIFT_API_3111_SCM_GET_PULL_REQUEST_NOT_FOUND" | "CODE_SHIFT_API_3112_SCM_GET_PULL_REQUEST_UNAUTHORIZED" | "CODE_SHIFT_API_3113_SCM_GET_PULL_REQUEST_FORBIDDEN" | "CODE_SHIFT_API_3114_SCM_GET_PULL_REQUEST_SAML_ERROR" | "CODE_SHIFT_API_3120_SCM_GET_BRANCHES_FAILURE" | "CODE_SHIFT_API_3121_SCM_GET_BRANCHES_NOT_FOUND" | "CODE_SHIFT_API_3122_SCM_GET_BRANCHES_UNAUTHORIZED" | "CODE_SHIFT_API_3123_SCM_GET_BRANCHES_FORBIDDEN" | "CODE_SHIFT_API_3124_SCM_GET_BRANCHES_SAML_ERROR" | "CODE_SHIFT_API_3130_SCM_GET_SCM_REPOSITORY_FETCH_FAILURE" | "CODE_SHIFT_API_3131_SCM_REPOSITORY_NOT_FOUND" | "CODE_SHIFT_API_3132_SCM_REPOSITORY_UNAUTHORIZED" | "CODE_SHIFT_API_3133_SCM_REPOSITORY_FORBIDDEN" | "CODE_SHIFT_API_3134_SCM_REPOSITORY_SAML_ERROR" | "CODE_SHIFT_API_3140_SCM_GET_BRANCH_FAILURE" | "CODE_SHIFT_API_3142_SCM_GET_BRANCH_NOT_FOUND" | "CODE_SHIFT_API_3143_SCM_GET_BRANCH_UNAUTHORIZED" | "CODE_SHIFT_API_3144_SCM_GET_BRANCH_FORBIDDEN" | "CODE_SHIFT_API_3145_SCM_GET_BRANCH_SAML_ERROR" | "CODE_SHIFT_API_3150_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3151_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3152_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3153_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3154_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_3160_SCM_GET_REPOSITORY_FILE_FAILURE" | "CODE_SHIFT_API_3161_SCM_GET_REPOSITORY_FILE_NOT_FOUND" | "CODE_SHIFT_API_3162_SCM_GET_REPOSITORY_FILE_UNAUTHORIZED" | "CODE_SHIFT_API_3163_SCM_GET_REPOSITORY_FILE_FORBIDDEN" | "CODE_SHIFT_API_3164_SCM_GET_REPOSITORY_FILE_SAML_ERROR" | "CODE_SHIFT_API_3170_SCM_GET_OWNER_FAILURE" | "CODE_SHIFT_API_3172_SCM_GET_OWNER_NOT_FOUND" | "CODE_SHIFT_API_3173_SCM_GET_OWNER_UNAUTHORIZED" | "CODE_SHIFT_API_3174_SCM_GET_OWNER_FORBIDDEN" | "CODE_SHIFT_API_3175_SCM_GET_OWNER_SAML_ERROR" | "CODE_SHIFT_API_3500_CONTENT_API_GET_WORKFLOW_VERSION_FAILURE" | "CODE_SHIFT_API_3501_CONTENT_API_GET_WORKFLOW_VERSION_NOT_FOUND" | "CODE_SHIFT_API_3502_CONTENT_API_GET_WORKFLOW_VERSION_FORBIDDEN" | "CODE_SHIFT_API_3503_CONTENT_API_GET_WORKFLOW_VERSION_UNAUTHORIZED" | "CODE_SHIFT_API_3510_CONTENT_API_GET_WORKFLOW_FAILURE" | "CODE_SHIFT_API_3511_CONTENT_API_GET_WORKFLOW_NOT_FOUND" | "CODE_SHIFT_API_3512_CONTENT_API_GET_WORKFLOW_FORBIDDEN" | "CODE_SHIFT_API_3513_CONTENT_API_GET_WORKFLOW_UNAUTHORIZED" | "CODE_SHIFT_API_3520_CONTENT_API_GET_WORKFLOW_INPUTS_FAILURE" | "CODE_SHIFT_API_3521_CONTENT_API_GET_WORKFLOW_INPUTS_NOT_FOUND" | "CODE_SHIFT_API_3522_CONTENT_API_GET_WORKFLOW_INPUTS_FORBIDDEN" | "CODE_SHIFT_API_3523_CONTENT_API_GET_WORKFLOW_INPUTS_UNAUTHORIZED" | "CODE_SHIFT_API_4010_GET_SCM_CREDENTIALS_FAILURE" | "CODE_SHIFT_API_4011_GET_SCM_CREDENTIALS_FORBIDDEN" | "CODE_SHIFT_API_4012_GET_SCM_CREDENTIALS_NOT_FOUND" | "CODE_SHIFT_API_4019_GET_SCM_CREDENTIALS_PARSE_ERROR" | "CODE_SHIFT_API_6000_IAM_GENERATE_TOKEN_FAILURE" | "CODE_SHIFT_API_6000_IAM_INTROSPECT_TOKEN_FAILURE";
|
|
28
|
+
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";
|
|
29
|
+
export type InvalidPayloadDetails = {
|
|
30
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
31
|
+
field: string | null;
|
|
32
|
+
message?: string | null;
|
|
33
|
+
};
|
|
34
|
+
export type SuggestedMessage = {
|
|
35
|
+
ptBr: string | null;
|
|
36
|
+
enUs: string | null;
|
|
37
|
+
};
|
|
38
|
+
export type InvalidPayloadDetailsRead = {
|
|
39
|
+
code: BadRequestExceptionTypes | ExceptionType;
|
|
40
|
+
field: string | null;
|
|
41
|
+
message?: string | null;
|
|
42
|
+
suggestedMessages: SuggestedMessage | null;
|
|
43
|
+
};
|
|
44
|
+
export type HttpErrorResponse = {
|
|
45
|
+
status: string;
|
|
46
|
+
code: ExceptionType;
|
|
47
|
+
details: string;
|
|
48
|
+
validationDetails?: InvalidPayloadDetails[] | null;
|
|
49
|
+
};
|
|
50
|
+
export type HttpErrorResponseRead = {
|
|
51
|
+
status: string;
|
|
52
|
+
code: ExceptionType;
|
|
53
|
+
details: string;
|
|
54
|
+
validationDetails?: InvalidPayloadDetailsRead[] | null;
|
|
55
|
+
suggestedMessages: SuggestedMessage | null;
|
|
56
|
+
};
|
|
27
57
|
export type ModuleType = "repository" | "program_group";
|
|
28
58
|
export type InputRequest = {
|
|
29
59
|
name: string;
|
|
@@ -35,6 +65,14 @@ export type GitAction = {
|
|
|
35
65
|
branch: string;
|
|
36
66
|
directory: string;
|
|
37
67
|
};
|
|
68
|
+
export type ModuleVisibility = "Personal" | "Account";
|
|
69
|
+
export type ModulePermission = "read" | "write";
|
|
70
|
+
export type SharedUserRequest = {
|
|
71
|
+
/** Email of user to share with */
|
|
72
|
+
email: string;
|
|
73
|
+
/** Permission to grant: 'read' or 'write' */
|
|
74
|
+
permission: ModulePermission;
|
|
75
|
+
};
|
|
38
76
|
export type CreateModuleRequest = {
|
|
39
77
|
/** Module name */
|
|
40
78
|
name: string;
|
|
@@ -51,7 +89,7 @@ export type CreateModuleRequest = {
|
|
|
51
89
|
/** Module tags */
|
|
52
90
|
tags: string[];
|
|
53
91
|
/** Inputs of module */
|
|
54
|
-
inputs
|
|
92
|
+
inputs?: InputRequest[] | null;
|
|
55
93
|
/** Module studio */
|
|
56
94
|
studio?: string | null;
|
|
57
95
|
/** Module studio */
|
|
@@ -59,36 +97,10 @@ export type CreateModuleRequest = {
|
|
|
59
97
|
[key: string]: any;
|
|
60
98
|
} | null;
|
|
61
99
|
gitAction?: GitAction | null;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
code: BadRequestExceptionTypes | ExceptionType;
|
|
67
|
-
field: string | null;
|
|
68
|
-
message?: string | null;
|
|
69
|
-
};
|
|
70
|
-
export type SuggestedMessage = {
|
|
71
|
-
ptBr: string | null;
|
|
72
|
-
enUs: string | null;
|
|
73
|
-
};
|
|
74
|
-
export type InvalidPayloadDetailsRead = {
|
|
75
|
-
code: BadRequestExceptionTypes | ExceptionType;
|
|
76
|
-
field: string | null;
|
|
77
|
-
message?: string | null;
|
|
78
|
-
suggestedMessages: SuggestedMessage | null;
|
|
79
|
-
};
|
|
80
|
-
export type HttpErrorResponse = {
|
|
81
|
-
status: string;
|
|
82
|
-
code: ExceptionType;
|
|
83
|
-
details: string;
|
|
84
|
-
validationDetails?: InvalidPayloadDetails[] | null;
|
|
85
|
-
};
|
|
86
|
-
export type HttpErrorResponseRead = {
|
|
87
|
-
status: string;
|
|
88
|
-
code: ExceptionType;
|
|
89
|
-
details: string;
|
|
90
|
-
validationDetails?: InvalidPayloadDetailsRead[] | null;
|
|
91
|
-
suggestedMessages: SuggestedMessage | null;
|
|
100
|
+
/** Module visibility */
|
|
101
|
+
visibility?: ModuleVisibility;
|
|
102
|
+
/** List of users to share the module with */
|
|
103
|
+
sharedWith?: SharedUserRequest[] | null;
|
|
92
104
|
};
|
|
93
105
|
export type InputResponse = {
|
|
94
106
|
name: string;
|
|
@@ -121,11 +133,17 @@ export type ModuleResponse = {
|
|
|
121
133
|
tags: string[];
|
|
122
134
|
/** Module inputs */
|
|
123
135
|
inputs: InputResponse[];
|
|
136
|
+
/** Flag to internal developed modules */
|
|
137
|
+
stackspotInternal: boolean;
|
|
124
138
|
/** Module studio */
|
|
125
139
|
constants?: {
|
|
126
140
|
[key: string]: any;
|
|
127
141
|
} | null;
|
|
142
|
+
/** Module visibility */
|
|
143
|
+
visibility: ModuleVisibility;
|
|
128
144
|
gitAction?: GitAction2 | null;
|
|
145
|
+
/** Flag to favor modules */
|
|
146
|
+
isFavorite: boolean;
|
|
129
147
|
};
|
|
130
148
|
export type ListModuleResponse = {
|
|
131
149
|
/** List of modules */
|
|
@@ -159,6 +177,18 @@ export type PutModuleRequest = {
|
|
|
159
177
|
[key: string]: any;
|
|
160
178
|
} | null;
|
|
161
179
|
gitAction?: GitAction | null;
|
|
180
|
+
/** Module visibility */
|
|
181
|
+
visibility?: ModuleVisibility | null;
|
|
182
|
+
/** List of users to share the module with */
|
|
183
|
+
sharedWith?: SharedUserRequest[] | null;
|
|
184
|
+
};
|
|
185
|
+
export type SharedPermissionResponse = {
|
|
186
|
+
/** User ID */
|
|
187
|
+
userId: string;
|
|
188
|
+
/** User email */
|
|
189
|
+
email: string;
|
|
190
|
+
/** Permission type: 'read' (view/execute) or 'write' (edit/manage) */
|
|
191
|
+
permission: ModulePermission;
|
|
162
192
|
};
|
|
163
193
|
export type GetModuleResponse = {
|
|
164
194
|
/** Module ID */
|
|
@@ -182,6 +212,20 @@ export type GetModuleResponse = {
|
|
|
182
212
|
[key: string]: any;
|
|
183
213
|
} | null;
|
|
184
214
|
gitAction?: GitAction2 | null;
|
|
215
|
+
/** Module tags */
|
|
216
|
+
tags?: string[] | null;
|
|
217
|
+
/** Flag to internal developed modules */
|
|
218
|
+
stackspotInternal: boolean;
|
|
219
|
+
/** Module visibility */
|
|
220
|
+
visibility: ModuleVisibility;
|
|
221
|
+
/** List of users to share the module with */
|
|
222
|
+
sharedWith?: SharedPermissionResponse[] | null;
|
|
223
|
+
/** Flag to favor modules */
|
|
224
|
+
isFavorite: boolean;
|
|
225
|
+
/** Module usage */
|
|
226
|
+
totalUsage: number;
|
|
227
|
+
/** Module users */
|
|
228
|
+
totalUsers: number;
|
|
185
229
|
};
|
|
186
230
|
export type ExternalItemsModel = {
|
|
187
231
|
source: string;
|
|
@@ -1110,6 +1154,50 @@ export type ResponseSearchRepoByIdResponseRead = {
|
|
|
1110
1154
|
exceptions: HttpErrorResponseRead[];
|
|
1111
1155
|
items?: SearchRepoByIdResponse[];
|
|
1112
1156
|
};
|
|
1157
|
+
export type BodyCreateReposBatchServiceV2ReposBatchPost = {
|
|
1158
|
+
file: Blob;
|
|
1159
|
+
};
|
|
1160
|
+
export type CreateRepoBatchResponse = {
|
|
1161
|
+
id: string;
|
|
1162
|
+
};
|
|
1163
|
+
export type ImportStatus = "COMPLETED" | "PENDING";
|
|
1164
|
+
export type ValidateRepositoryStatus = "PENDING" | "SUCCESS" | "FAILURE";
|
|
1165
|
+
export type BatchRepositoryResponse = {
|
|
1166
|
+
repositoryId: string | null;
|
|
1167
|
+
repositoryUrl: string;
|
|
1168
|
+
repositoryBranch: string;
|
|
1169
|
+
repositoryTags: string[];
|
|
1170
|
+
status: ValidateRepositoryStatus;
|
|
1171
|
+
line: number;
|
|
1172
|
+
repositoryName: string | null;
|
|
1173
|
+
repositoryArchived: boolean | null;
|
|
1174
|
+
repositoryPushedAt: string | null;
|
|
1175
|
+
repositoryVisibility: string | null;
|
|
1176
|
+
exceptions: HttpErrorResponse[];
|
|
1177
|
+
};
|
|
1178
|
+
export type BatchRepositoryResponseRead = {
|
|
1179
|
+
repositoryId: string | null;
|
|
1180
|
+
repositoryUrl: string;
|
|
1181
|
+
repositoryBranch: string;
|
|
1182
|
+
repositoryTags: string[];
|
|
1183
|
+
status: ValidateRepositoryStatus;
|
|
1184
|
+
line: number;
|
|
1185
|
+
repositoryName: string | null;
|
|
1186
|
+
repositoryArchived: boolean | null;
|
|
1187
|
+
repositoryPushedAt: string | null;
|
|
1188
|
+
repositoryVisibility: string | null;
|
|
1189
|
+
exceptions: HttpErrorResponseRead[];
|
|
1190
|
+
};
|
|
1191
|
+
export type GetImportResultResponse = {
|
|
1192
|
+
status: ImportStatus;
|
|
1193
|
+
totalItems: number;
|
|
1194
|
+
items: BatchRepositoryResponse[];
|
|
1195
|
+
};
|
|
1196
|
+
export type GetImportResultResponseRead = {
|
|
1197
|
+
status: ImportStatus;
|
|
1198
|
+
totalItems: number;
|
|
1199
|
+
items: BatchRepositoryResponseRead[];
|
|
1200
|
+
};
|
|
1113
1201
|
/**
|
|
1114
1202
|
* Check Role Route
|
|
1115
1203
|
*/
|
|
@@ -1130,6 +1218,76 @@ export function checkRoleRouteV1RolesRoleGet({ role, authorization }: {
|
|
|
1130
1218
|
})
|
|
1131
1219
|
}));
|
|
1132
1220
|
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Module Favorite Service Add
|
|
1223
|
+
*/
|
|
1224
|
+
export function moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost({ moduleId, authorization }: {
|
|
1225
|
+
moduleId: string;
|
|
1226
|
+
authorization: string;
|
|
1227
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1228
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1229
|
+
status: 200;
|
|
1230
|
+
data: any;
|
|
1231
|
+
} | {
|
|
1232
|
+
status: 400;
|
|
1233
|
+
data: HttpErrorResponseRead;
|
|
1234
|
+
} | {
|
|
1235
|
+
status: 401;
|
|
1236
|
+
data: HttpErrorResponseRead;
|
|
1237
|
+
} | {
|
|
1238
|
+
status: 404;
|
|
1239
|
+
data: HttpErrorResponseRead;
|
|
1240
|
+
} | {
|
|
1241
|
+
status: 422;
|
|
1242
|
+
} | {
|
|
1243
|
+
status: 500;
|
|
1244
|
+
data: HttpErrorResponseRead;
|
|
1245
|
+
} | {
|
|
1246
|
+
status: 503;
|
|
1247
|
+
data: HttpErrorResponseRead;
|
|
1248
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1249
|
+
...opts,
|
|
1250
|
+
method: "POST",
|
|
1251
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1252
|
+
authorization
|
|
1253
|
+
})
|
|
1254
|
+
}));
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Module Favorite Service Delete
|
|
1258
|
+
*/
|
|
1259
|
+
export function moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete({ moduleId, authorization }: {
|
|
1260
|
+
moduleId: string;
|
|
1261
|
+
authorization: string;
|
|
1262
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1263
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1264
|
+
status: 200;
|
|
1265
|
+
data: any;
|
|
1266
|
+
} | {
|
|
1267
|
+
status: 400;
|
|
1268
|
+
data: HttpErrorResponseRead;
|
|
1269
|
+
} | {
|
|
1270
|
+
status: 401;
|
|
1271
|
+
data: HttpErrorResponseRead;
|
|
1272
|
+
} | {
|
|
1273
|
+
status: 404;
|
|
1274
|
+
data: HttpErrorResponseRead;
|
|
1275
|
+
} | {
|
|
1276
|
+
status: 422;
|
|
1277
|
+
} | {
|
|
1278
|
+
status: 500;
|
|
1279
|
+
data: HttpErrorResponseRead;
|
|
1280
|
+
} | {
|
|
1281
|
+
status: 503;
|
|
1282
|
+
data: HttpErrorResponseRead;
|
|
1283
|
+
}>(`/v1/modules/${encodeURIComponent(moduleId)}/favorites`, {
|
|
1284
|
+
...opts,
|
|
1285
|
+
method: "DELETE",
|
|
1286
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1287
|
+
authorization
|
|
1288
|
+
})
|
|
1289
|
+
}));
|
|
1290
|
+
}
|
|
1133
1291
|
/**
|
|
1134
1292
|
* Create Module Service
|
|
1135
1293
|
*/
|
|
@@ -1171,11 +1329,16 @@ export function createModuleServiceV1ModulesPost({ authorization, xAccountSlug,
|
|
|
1171
1329
|
/**
|
|
1172
1330
|
* List Modules Service
|
|
1173
1331
|
*/
|
|
1174
|
-
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, xAccountSlug, authorization }: {
|
|
1332
|
+
export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, lastEvaluatedKey, sharedWith, createdBy, visibility, name, tags, xAccountSlug, authorization }: {
|
|
1175
1333
|
pageSize?: number;
|
|
1176
1334
|
moduleType?: ModuleType | null;
|
|
1177
1335
|
page?: number;
|
|
1178
1336
|
lastEvaluatedKey?: string;
|
|
1337
|
+
sharedWith?: string | null;
|
|
1338
|
+
createdBy?: string | null;
|
|
1339
|
+
visibility?: ModuleVisibility | null;
|
|
1340
|
+
name?: string | null;
|
|
1341
|
+
tags?: string[] | null;
|
|
1179
1342
|
xAccountSlug?: string;
|
|
1180
1343
|
authorization: string;
|
|
1181
1344
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -1203,7 +1366,12 @@ export function listModulesServiceV1ModulesGet({ pageSize, moduleType, page, las
|
|
|
1203
1366
|
pageSize,
|
|
1204
1367
|
moduleType,
|
|
1205
1368
|
page,
|
|
1206
|
-
lastEvaluatedKey
|
|
1369
|
+
lastEvaluatedKey,
|
|
1370
|
+
sharedWith,
|
|
1371
|
+
createdBy,
|
|
1372
|
+
visibility,
|
|
1373
|
+
name,
|
|
1374
|
+
tags
|
|
1207
1375
|
}))}`, {
|
|
1208
1376
|
...opts,
|
|
1209
1377
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1680,10 +1848,10 @@ export function listRepositoryReportV1ReposRepositoryIdReportsGet({ repositoryId
|
|
|
1680
1848
|
/**
|
|
1681
1849
|
* Create Repos Batch Service
|
|
1682
1850
|
*/
|
|
1683
|
-
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization,
|
|
1851
|
+
export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost }: {
|
|
1684
1852
|
tags?: string[] | null;
|
|
1685
1853
|
authorization: string;
|
|
1686
|
-
|
|
1854
|
+
fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost: BodyCreateReposBatchServiceV1ReposBatchPost;
|
|
1687
1855
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1688
1856
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1689
1857
|
status: 200;
|
|
@@ -1713,7 +1881,7 @@ export function createReposBatchServiceV1ReposBatchPost({ tags, authorization, b
|
|
|
1713
1881
|
}))}`, oazapfts.multipart({
|
|
1714
1882
|
...opts,
|
|
1715
1883
|
method: "POST",
|
|
1716
|
-
body:
|
|
1884
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV1ReposBatchPost,
|
|
1717
1885
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1718
1886
|
authorization
|
|
1719
1887
|
})
|
|
@@ -2193,12 +2361,12 @@ export function deleteIntegrationServiceV1IntegrationsIntegrationIdDelete({ inte
|
|
|
2193
2361
|
/**
|
|
2194
2362
|
* Create Program Group Service
|
|
2195
2363
|
*/
|
|
2196
|
-
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization,
|
|
2364
|
+
export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integrationId, authorization, fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost }: {
|
|
2197
2365
|
name: string;
|
|
2198
2366
|
tags?: string[] | null;
|
|
2199
2367
|
integrationId?: string;
|
|
2200
2368
|
authorization: string;
|
|
2201
|
-
|
|
2369
|
+
fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost?: BodyCreateProgramGroupServiceV1ProgramGroupsPost;
|
|
2202
2370
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2203
2371
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2204
2372
|
status: 200;
|
|
@@ -2213,7 +2381,7 @@ export function createProgramGroupServiceV1ProgramGroupsPost({ name, tags, integ
|
|
|
2213
2381
|
}))}`, oazapfts.multipart({
|
|
2214
2382
|
...opts,
|
|
2215
2383
|
method: "POST",
|
|
2216
|
-
body:
|
|
2384
|
+
body: fastapiCompatV2BodyCreateProgramGroupServiceV1ProgramGroupsPost,
|
|
2217
2385
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2218
2386
|
authorization
|
|
2219
2387
|
})
|
|
@@ -2320,13 +2488,13 @@ export function getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet({ pro
|
|
|
2320
2488
|
/**
|
|
2321
2489
|
* Update Program Group Service
|
|
2322
2490
|
*/
|
|
2323
|
-
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization,
|
|
2491
|
+
export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ programGroupId, name, tags, integrationId, authorization, fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut }: {
|
|
2324
2492
|
programGroupId: string;
|
|
2325
2493
|
name?: string | null;
|
|
2326
2494
|
tags?: string[] | null;
|
|
2327
2495
|
integrationId?: string | null;
|
|
2328
2496
|
authorization: string;
|
|
2329
|
-
|
|
2497
|
+
fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut?: BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut;
|
|
2330
2498
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2331
2499
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2332
2500
|
status: 200;
|
|
@@ -2341,7 +2509,7 @@ export function updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut({ prog
|
|
|
2341
2509
|
}))}`, oazapfts.multipart({
|
|
2342
2510
|
...opts,
|
|
2343
2511
|
method: "PUT",
|
|
2344
|
-
body:
|
|
2512
|
+
body: fastapiCompatV2BodyUpdateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
2345
2513
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2346
2514
|
authorization
|
|
2347
2515
|
})
|
|
@@ -2421,8 +2589,9 @@ export function listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReport
|
|
|
2421
2589
|
/**
|
|
2422
2590
|
* List Tags Service
|
|
2423
2591
|
*/
|
|
2424
|
-
export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
2592
|
+
export function listTagsServiceV1TagsGet({ name, $type, authorization }: {
|
|
2425
2593
|
name?: string | null;
|
|
2594
|
+
$type?: "Repository" | "Module";
|
|
2426
2595
|
authorization: string;
|
|
2427
2596
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2428
2597
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2432,7 +2601,8 @@ export function listTagsServiceV1TagsGet({ name, authorization }: {
|
|
|
2432
2601
|
status: 422;
|
|
2433
2602
|
data: HttpValidationError;
|
|
2434
2603
|
}>(`/v1/tags${QS.query(QS.explode({
|
|
2435
|
-
name
|
|
2604
|
+
name,
|
|
2605
|
+
"type": $type
|
|
2436
2606
|
}))}`, {
|
|
2437
2607
|
...opts,
|
|
2438
2608
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -3618,3 +3788,72 @@ export function downloadSearchReposScmV2V2ReposSearchScmSearchIdDownloadGet({ se
|
|
|
3618
3788
|
})
|
|
3619
3789
|
}));
|
|
3620
3790
|
}
|
|
3791
|
+
/**
|
|
3792
|
+
* Create Repos Batch Service
|
|
3793
|
+
*/
|
|
3794
|
+
export function createReposBatchServiceV2ReposBatchPost({ tags, authorization, fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost }: {
|
|
3795
|
+
tags?: string[] | null;
|
|
3796
|
+
authorization: string;
|
|
3797
|
+
fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost: BodyCreateReposBatchServiceV2ReposBatchPost;
|
|
3798
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3799
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3800
|
+
status: 200;
|
|
3801
|
+
data: CreateRepoBatchResponse;
|
|
3802
|
+
} | {
|
|
3803
|
+
status: 422;
|
|
3804
|
+
data: HttpValidationError;
|
|
3805
|
+
}>(`/v2/repos/batch${QS.query(QS.explode({
|
|
3806
|
+
tags
|
|
3807
|
+
}))}`, oazapfts.multipart({
|
|
3808
|
+
...opts,
|
|
3809
|
+
method: "POST",
|
|
3810
|
+
body: fastapiCompatV2BodyCreateReposBatchServiceV2ReposBatchPost,
|
|
3811
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3812
|
+
authorization
|
|
3813
|
+
})
|
|
3814
|
+
})));
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Get Import Result
|
|
3818
|
+
*/
|
|
3819
|
+
export function getImportResultV2ReposBatchImportIdGet({ importId, pageSize, page, authorization }: {
|
|
3820
|
+
importId: string;
|
|
3821
|
+
pageSize?: number;
|
|
3822
|
+
page?: number;
|
|
3823
|
+
authorization: string;
|
|
3824
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3825
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3826
|
+
status: 200;
|
|
3827
|
+
data: GetImportResultResponseRead;
|
|
3828
|
+
} | {
|
|
3829
|
+
status: 422;
|
|
3830
|
+
data: HttpValidationError;
|
|
3831
|
+
}>(`/v2/repos/batch/${encodeURIComponent(importId)}${QS.query(QS.explode({
|
|
3832
|
+
pageSize,
|
|
3833
|
+
page
|
|
3834
|
+
}))}`, {
|
|
3835
|
+
...opts,
|
|
3836
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3837
|
+
authorization
|
|
3838
|
+
})
|
|
3839
|
+
}));
|
|
3840
|
+
}
|
|
3841
|
+
/**
|
|
3842
|
+
* Pat Health Check
|
|
3843
|
+
*/
|
|
3844
|
+
export function patHealthCheckV1ScmPatHealthCheckGet({ authorization }: {
|
|
3845
|
+
authorization: string;
|
|
3846
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3847
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3848
|
+
status: 200;
|
|
3849
|
+
data: boolean;
|
|
3850
|
+
} | {
|
|
3851
|
+
status: 422;
|
|
3852
|
+
data: HttpValidationError;
|
|
3853
|
+
}>("/v1/scm/pat/health-check", {
|
|
3854
|
+
...opts,
|
|
3855
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3856
|
+
authorization
|
|
3857
|
+
})
|
|
3858
|
+
}));
|
|
3859
|
+
}
|
package/src/api/discover.ts
CHANGED
|
@@ -28,7 +28,7 @@ export type GetOpportunityResponse = {
|
|
|
28
28
|
hypotheses: GetOpportunityResponseHypothesisResponse[];
|
|
29
29
|
updatedBy?: string;
|
|
30
30
|
updatedAt?: string;
|
|
31
|
-
chatId
|
|
31
|
+
chatId: string;
|
|
32
32
|
};
|
|
33
33
|
export type UpdateOpportunityRequest = {
|
|
34
34
|
title?: string;
|
|
@@ -42,7 +42,7 @@ export type UpdateOpportunityResponse = {
|
|
|
42
42
|
createdAt?: string;
|
|
43
43
|
updatedBy?: string;
|
|
44
44
|
updatedAt?: string;
|
|
45
|
-
chatId
|
|
45
|
+
chatId: string;
|
|
46
46
|
};
|
|
47
47
|
export type GetHypothesisResponseDocumentResponse = {
|
|
48
48
|
id: string;
|
|
@@ -59,7 +59,7 @@ export type GetHypothesisResponse = {
|
|
|
59
59
|
createdAt?: string;
|
|
60
60
|
updatedBy?: string;
|
|
61
61
|
updatedAt?: string;
|
|
62
|
-
chatId
|
|
62
|
+
chatId: string;
|
|
63
63
|
};
|
|
64
64
|
export type UpdateHypothesisRequest = {
|
|
65
65
|
title?: string;
|
|
@@ -74,7 +74,7 @@ export type UpdateHypothesisResponse = {
|
|
|
74
74
|
createdAt?: string;
|
|
75
75
|
updatedBy?: string;
|
|
76
76
|
updatedAt?: string;
|
|
77
|
-
chatId
|
|
77
|
+
chatId: string;
|
|
78
78
|
};
|
|
79
79
|
export type GetDocumentResponse = {
|
|
80
80
|
id: string;
|
|
@@ -85,7 +85,7 @@ export type GetDocumentResponse = {
|
|
|
85
85
|
createdAt?: string;
|
|
86
86
|
updatedBy?: string;
|
|
87
87
|
updatedAt?: string;
|
|
88
|
-
chatId
|
|
88
|
+
chatId: string;
|
|
89
89
|
};
|
|
90
90
|
export type UpdateDocumentRequest = {
|
|
91
91
|
title?: string;
|
|
@@ -101,7 +101,7 @@ export type UpdateDocumentResponse = {
|
|
|
101
101
|
createdAt?: string;
|
|
102
102
|
updatedBy?: string;
|
|
103
103
|
updatedAt?: string;
|
|
104
|
-
chatId
|
|
104
|
+
chatId: string;
|
|
105
105
|
};
|
|
106
106
|
export type SortResponse = {
|
|
107
107
|
direction: string;
|
|
@@ -134,7 +134,7 @@ export type PageResponseGetOpportunityResponse = {
|
|
|
134
134
|
export type CreateOpportunityRequest = {
|
|
135
135
|
title?: string;
|
|
136
136
|
description?: string;
|
|
137
|
-
chatId
|
|
137
|
+
chatId: string;
|
|
138
138
|
};
|
|
139
139
|
export type CreateOpportunityResponse = {
|
|
140
140
|
id: string;
|
|
@@ -144,13 +144,13 @@ export type CreateOpportunityResponse = {
|
|
|
144
144
|
createdAt?: string;
|
|
145
145
|
updatedBy?: string;
|
|
146
146
|
updatedAt?: string;
|
|
147
|
-
chatId
|
|
147
|
+
chatId: string;
|
|
148
148
|
};
|
|
149
149
|
export type CreateHypothesisRequest = {
|
|
150
150
|
opportunityId?: string;
|
|
151
151
|
title?: string;
|
|
152
152
|
description?: string;
|
|
153
|
-
chatId
|
|
153
|
+
chatId: string;
|
|
154
154
|
};
|
|
155
155
|
export type CreateHypothesisResponse = {
|
|
156
156
|
id: string;
|
|
@@ -161,14 +161,14 @@ export type CreateHypothesisResponse = {
|
|
|
161
161
|
createdAt?: string;
|
|
162
162
|
updatedBy?: string;
|
|
163
163
|
updatedAt?: string;
|
|
164
|
-
chatId
|
|
164
|
+
chatId: string;
|
|
165
165
|
};
|
|
166
166
|
export type CreateDocumentRequest = {
|
|
167
167
|
hypothesisId?: string;
|
|
168
168
|
title?: string;
|
|
169
169
|
description?: string;
|
|
170
170
|
content?: string;
|
|
171
|
-
chatId
|
|
171
|
+
chatId: string;
|
|
172
172
|
};
|
|
173
173
|
export type CreateDocumentResponse = {
|
|
174
174
|
id: string;
|
|
@@ -179,7 +179,14 @@ export type CreateDocumentResponse = {
|
|
|
179
179
|
createdAt?: string;
|
|
180
180
|
updatedBy?: string;
|
|
181
181
|
updatedAt?: string;
|
|
182
|
-
chatId
|
|
182
|
+
chatId: string;
|
|
183
|
+
};
|
|
184
|
+
export type MessageRequest = {
|
|
185
|
+
prompt: string;
|
|
186
|
+
conversationId: string;
|
|
187
|
+
};
|
|
188
|
+
export type SseEmitter = {
|
|
189
|
+
timeout?: number;
|
|
183
190
|
};
|
|
184
191
|
export type GetArtifactResponse = {
|
|
185
192
|
"type": "OPPORTUNITY" | "HYPOTHESIS" | "DOCUMENT";
|
|
@@ -405,6 +412,22 @@ export function create2({ createDocumentRequest }: {
|
|
|
405
412
|
body: createDocumentRequest
|
|
406
413
|
})));
|
|
407
414
|
}
|
|
415
|
+
export function chat({ authorization, messageRequest }: {
|
|
416
|
+
authorization: string;
|
|
417
|
+
messageRequest: MessageRequest;
|
|
418
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
419
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
420
|
+
status: 200;
|
|
421
|
+
data: SseEmitter;
|
|
422
|
+
}>("/v2/ai/chat", oazapfts.json({
|
|
423
|
+
...opts,
|
|
424
|
+
method: "POST",
|
|
425
|
+
body: messageRequest,
|
|
426
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
427
|
+
Authorization: authorization
|
|
428
|
+
})
|
|
429
|
+
})));
|
|
430
|
+
}
|
|
408
431
|
/**
|
|
409
432
|
* Get specific Document content
|
|
410
433
|
*/
|
package/src/api/notification.ts
CHANGED
package/src/client/account.ts
CHANGED
|
@@ -108,6 +108,7 @@ import {
|
|
|
108
108
|
listScmCredentials1,
|
|
109
109
|
listScmCredentials2, partialUpdateSso, personalAccessTokenAuthorization,
|
|
110
110
|
personalContact,
|
|
111
|
+
reactivateTrialAccount,
|
|
111
112
|
removeRoleFromMember,
|
|
112
113
|
removeTrialAccount,
|
|
113
114
|
resetOtp,
|
|
@@ -919,6 +920,10 @@ class AccountClient extends ReactQueryNetworkClient {
|
|
|
919
920
|
* Get expiration data
|
|
920
921
|
*/
|
|
921
922
|
getExpirationData = this.query(getPersonalAccountExpirationData)
|
|
923
|
+
/**
|
|
924
|
+
* Reactive trial account
|
|
925
|
+
*/
|
|
926
|
+
reactivateTrialAccount = this.mutation(reactivateTrialAccount)
|
|
922
927
|
}
|
|
923
928
|
|
|
924
929
|
export const accountClient = new AccountClient()
|