Skip to content

Commit 0ec478c

Browse files
api-clients-generation-pipeline[bot]skarimoci.datadog-api-spec
authored
Bump datadog-api-client-generator version (#2141)
* remove old files * regen * lint * yarn.lock * Regenerate client from commit 69a9e246362f5e5e140103104e2fcf4a08359d25 of spec repo --------- Co-authored-by: Sherzod Karimov <sherzod.karimov@datadoghq.com> Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent d5ce8da commit 0ec478c

File tree

105 files changed

+383
-318
lines changed

Some content is hidden

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

105 files changed

+383
-318
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-03 18:18:29.713122",
8-
"spec_repo_commit": "13d1130"
7+
"regenerated": "2025-04-07 12:56:57.799408",
8+
"spec_repo_commit": "69a9e24"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-03 18:18:29.728290",
13-
"spec_repo_commit": "13d1130"
12+
"regenerated": "2025-04-07 12:56:57.815260",
13+
"spec_repo_commit": "69a9e24"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ components:
654654
type: string
655655
ResourceID:
656656
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
657-
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
658-
`app-builder-app`, `connection`, `connection-group`.'
657+
`dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`,
658+
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.'
659659
example: dashboard:abc-def-ghi
660660
in: path
661661
name: resource_id
@@ -2864,13 +2864,13 @@ components:
28642864
enum:
28652865
- attack_attempt
28662866
- business_logic
2867-
- security_responses
2867+
- security_response
28682868
example: business_logic
28692869
type: string
28702870
x-enum-varnames:
28712871
- ATTACK_ATTEMPT
28722872
- BUSINESS_LOGIC
2873-
- SECURITY_RESPONSES
2873+
- SECURITY_RESPONSE
28742874
ApplicationSecurityWafCustomRuleType:
28752875
default: custom_rule
28762876
description: The type of the resource. The value should always be `custom_rule`.
@@ -45734,6 +45734,10 @@ paths:
4573445734

4573545735
- Dashboards: `dashboard`
4573645736

45737+
- Integration Accounts: `integration-account`
45738+
45739+
- Integration Webhooks: `integration-webhook`
45740+
4573745741
- Notebooks: `notebook`
4573845742

4573945743
- Powerpacks: `powerpack`
@@ -45769,6 +45773,10 @@ paths:
4576945773

4577045774
Dashboards | `viewer`, `editor`
4577145775

45776+
Integration Accounts | `viewer`, `editor`
45777+
45778+
Integration Webhooks | `viewer`, `editor`
45779+
4577245780
Notebooks | `viewer`, `editor`
4577345781

4577445782
Powerpacks | `viewer`, `editor`

features/v2/action_connection.feature

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Action Connection
2424
@team:DataDog/workflow-automation-dev
2525
Scenario: Create a new Action Connection returns "Successfully created Action Connection" response
2626
Given new "CreateActionConnection" request
27-
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection DELETE_ME","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
27+
And body with value {"data":{"type":"action_connection","attributes":{"name":"Cassette Connection {{ unique_lower_alnum }}","integration":{"type":"AWS","credentials":{"type":"AWSAssumeRole","role":"MyRoleUpdated","account_id":"123456789123"}}}}}
2828
When the request is sent
2929
Then the response status is 201 Successfully created Action Connection
3030

@@ -36,20 +36,13 @@ Feature: Action Connection
3636
Then the response status is 404 Not Found
3737

3838
@team:DataDog/workflow-automation-dev
39-
Scenario: Delete an existing Action Connection returns "Successfully deleted Action Connection" response
39+
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
4040
Given there is a valid "action_connection" in the system
4141
And new "DeleteActionConnection" request
4242
And request contains "connection_id" parameter from "action_connection.data.id"
4343
When the request is sent
4444
Then the response status is 204 The resource was deleted successfully.
4545

46-
@generated @skip @team:DataDog/workflow-automation-dev
47-
Scenario: Delete an existing Action Connection returns "The resource was deleted successfully." response
48-
Given new "DeleteActionConnection" request
49-
And request contains "connection_id" parameter from "REPLACE.ME"
50-
When the request is sent
51-
Then the response status is 204 The resource was deleted successfully.
52-
5346
@team:DataDog/workflow-automation-dev
5447
Scenario: Get an existing Action Connection returns "Bad Request" response
5548
Given new "GetActionConnection" request

features/v2/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": [
44
{
55
"name": "body",
6-
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection DELETE\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
6+
"value": "{\n \"data\": {\n \"type\": \"action_connection\",\n \"attributes\": {\n \"name\": \"Cassette Connection {{ unique_lower_alnum }}\",\n \"integration\": {\n \"type\": \"AWS\",\n \"credentials\": {\n \"type\": \"AWSAssumeRole\",\n \"role\": \"MyRole\",\n \"account_id\": \"123456789123\"\n }\n }\n }\n }\n}"
77
}
88
],
99
"step": "there is a valid \"action_connection\" in the system",

package.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"name": "@datadog/datadog-api-client",
2+
"name": "datadog-api-client-typescript",
33
"description": "",
44
"author": "",
55
"keywords": [
66
"api",
77
"fetch",
88
"typescript"
99
],
10-
"files": [
11-
"dist/**/*"
12-
],
1310
"license": "Apache-2.0",
1411
"licenses": [
1512
{
@@ -21,25 +18,18 @@
2118
"type": "git",
2219
"url": "https://github.com/DataDog/datadog-api-client-typescript.git"
2320
},
24-
"main": "./dist/index.js",
25-
"typings": "./dist/index.d.ts",
21+
"private": true,
22+
"workspaces": [
23+
"services/*",
24+
"packages/*"
25+
],
2626
"scripts": {
27-
"build": "tsc",
27+
"build": "yarn workspaces run build",
28+
"test": "yarn workspaces run test",
2829
"lint": "yarn install --ignore-scripts; eslint --ext .ts src",
2930
"lint:fix": "yarn install --ignore-scripts; yarn lint --fix",
3031
"format": "yarn install --ignore-scripts; prettier --write --ignore-unknown '**.{js,ts}'"
3132
},
32-
"dependencies": {
33-
"@types/buffer-from": "^1.1.0",
34-
"@types/node": "*",
35-
"@types/pako": "^1.0.3",
36-
"buffer-from": "^1.1.2",
37-
"cross-fetch": "^3.1.5",
38-
"es6-promise": "^4.2.8",
39-
"form-data": "^4.0.0",
40-
"loglevel": "^1.8.1",
41-
"pako": "^2.0.4"
42-
},
4333
"devDependencies": {
4434
"@eslint/js": "^9.23.0",
4535
"eslint": "^9.23.0",

packages/datadog-api-client/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "@datadog/datadog-api-client",
3+
"description": "",
4+
"author": "",
5+
"keywords": [
6+
"api",
7+
"fetch",
8+
"typescript"
9+
],
10+
"license": "Apache-2.0",
11+
"licenses": [
12+
{
13+
"type": "Apache-2.0",
14+
"url": "http://www.apache.org/licenses/LICENSE-2.0"
15+
}
16+
],
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/DataDog/datadog-api-client-typescript.git"
20+
},
21+
"files": [
22+
"dist/**/*"
23+
],
24+
"main": "./dist/index.js",
25+
"typings": "./dist/index.d.ts",
26+
"scripts": {
27+
"build": "tsc"
28+
},
29+
"dependencies": {
30+
"@types/buffer-from": "^1.1.0",
31+
"@types/node": "*",
32+
"@types/pako": "^1.0.3",
33+
"buffer-from": "^1.1.2",
34+
"cross-fetch": "^3.1.5",
35+
"es6-promise": "^4.2.8",
36+
"form-data": "^4.0.0",
37+
"loglevel": "^1.8.1",
38+
"pako": "^2.0.4"
39+
},
40+
"devDependencies": {
41+
"typescript": "4.8.4"
42+
},
43+
"engines": {
44+
"node": ">=18.0.0"
45+
},
46+
"version": "0.0.1",
47+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
48+
}

src/baseapi.ts renamed to packages/datadog-api-client/src/baseapi.ts

File renamed without changes.

src/configuration.ts renamed to packages/datadog-api-client/src/configuration.ts

File renamed without changes.

0 commit comments

Comments
 (0)