Skip to content

Commit 6427150

Browse files
authored
Merge branch 'main' into chore/renovateBaseBranch
2 parents 938104d + 4786807 commit 6427150

File tree

41 files changed

+2545
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2545
-67
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"csharp": {},
3+
"dart": {},
4+
"go": {},
5+
"java": {},
6+
"javascript": {},
7+
"kotlin": {},
8+
"php": {},
9+
"python": {},
10+
"ruby": {},
11+
"scala": {},
12+
"swift": {}
13+
}

scripts/common.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ export const GENERATORS = Object.entries(clientsConfig).reduce(
6969

7070
export const LANGUAGES = [...new Set(Object.values(GENERATORS).map((gen) => gen.language))];
7171

72-
export const CLIENTS = [...new Set(Object.values(GENERATORS).map((gen) => gen.client)), 'crawler'];
72+
// `crawler` and `ai-personalization` are manually added so we can still bundled and validate the specs
73+
// the entry can be removed once at least one client is generated
74+
export const CLIENTS = [
75+
...new Set(Object.values(GENERATORS).map((gen) => gen.client)),
76+
'crawler',
77+
'ai-personalization',
78+
];
7379

7480
export async function run(command: string, { errorMessage, cwd, language }: RunOptions = {}): Promise<string> {
7581
const realCwd = path.resolve(ROOT_DIR, cwd ?? '.');
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
errorCodes:
2+
title: errorCodes
3+
type: string
4+
enum:
5+
- blocked
6+
- deleted
7+
- no_perso_access
8+
- all_attr_value_filtered
9+
- missing_index
10+
- no_events_last_30_days
11+
- pending_pipelines
12+
- invalid_config
13+
14+
status:
15+
title: status
16+
type: string
17+
enum: [pending, active, paused]
18+
19+
sourceType:
20+
title: type
21+
type: string
22+
enum: [insights]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Bad request.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
type: object
2+
properties:
3+
status:
4+
type: integer
5+
description: HTTP status code.
6+
message:
7+
type: string
8+
description: Details about the response, such as error messages.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Configuration not found.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Internal server error.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Invalid user ID format.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: Not authorized to access this resource.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
description: User not found.
2+
content:
3+
application/json:
4+
schema:
5+
$ref: './BaseResponse.yml'

0 commit comments

Comments
 (0)