Skip to content

Commit f006bac

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0f68111 of spec repo
1 parent c8a78e7 commit f006bac

55 files changed

Lines changed: 4131 additions & 0 deletions

Some content is hidden

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

.generator/schemas/v2/openapi.yaml

Lines changed: 789 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/rum_replay.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@endpoint(rum-replay) @endpoint(rum-replay-v2)
2+
Feature: Rum Replay
3+
Generate and retrieve AI-powered summaries of RUM replay sessions.
4+
5+
Background:
6+
Given a valid "apiKeyAuth" key in the system
7+
And a valid "appKeyAuth" key in the system
8+
And an instance of "RumReplay" API
9+
And operation "GenerateReplaySummary" enabled
10+
And new "GenerateReplaySummary" request
11+
And body with value {"data": {"type": "replay_summary_request"}}
12+
13+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
14+
Scenario: Generate replay summary returns "Bad Request" response
15+
Given request contains "session_id" parameter from "REPLACE.ME"
16+
And request contains "data_source" parameter from "REPLACE.ME"
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
21+
Scenario: Generate replay summary returns "Not Found" response
22+
Given request contains "session_id" parameter from "REPLACE.ME"
23+
And request contains "data_source" parameter from "REPLACE.ME"
24+
When the request is sent
25+
Then the response status is 404 Not Found
26+
27+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
28+
Scenario: Generate replay summary returns "OK" response
29+
Given request contains "session_id" parameter from "REPLACE.ME"
30+
And request contains "data_source" parameter from "REPLACE.ME"
31+
When the request is sent
32+
Then the response status is 200 OK
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
@endpoint(rum-replay-analysis) @endpoint(rum-replay-analysis-v2)
2+
Feature: Rum Replay Analysis
3+
Analyze RUM replay sessions to identify and investigate user-facing
4+
issues. Retrieve issues detected by AI analysis, get details for
5+
individual issues, and explore the sessions associated with each issue.
6+
7+
Background:
8+
Given a valid "apiKeyAuth" key in the system
9+
And a valid "appKeyAuth" key in the system
10+
And an instance of "RumReplayAnalysis" API
11+
12+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
13+
Scenario: Get replay analysis issue returns "Bad Request" response
14+
Given operation "GetReplayAnalysisIssue" enabled
15+
And new "GetReplayAnalysisIssue" request
16+
And request contains "issue_id" parameter from "REPLACE.ME"
17+
When the request is sent
18+
Then the response status is 400 Bad Request
19+
20+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
21+
Scenario: Get replay analysis issue returns "Not Found" response
22+
Given operation "GetReplayAnalysisIssue" enabled
23+
And new "GetReplayAnalysisIssue" request
24+
And request contains "issue_id" parameter from "REPLACE.ME"
25+
When the request is sent
26+
Then the response status is 404 Not Found
27+
28+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
29+
Scenario: Get replay analysis issue returns "OK" response
30+
Given operation "GetReplayAnalysisIssue" enabled
31+
And new "GetReplayAnalysisIssue" request
32+
And request contains "issue_id" parameter from "REPLACE.ME"
33+
When the request is sent
34+
Then the response status is 200 OK
35+
36+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
37+
Scenario: List replay analysis issue sessions returns "Bad Request" response
38+
Given operation "ListReplayAnalysisIssueSessions" enabled
39+
And new "ListReplayAnalysisIssueSessions" request
40+
And request contains "issue_id" parameter from "REPLACE.ME"
41+
When the request is sent
42+
Then the response status is 400 Bad Request
43+
44+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
45+
Scenario: List replay analysis issue sessions returns "Not Found" response
46+
Given operation "ListReplayAnalysisIssueSessions" enabled
47+
And new "ListReplayAnalysisIssueSessions" request
48+
And request contains "issue_id" parameter from "REPLACE.ME"
49+
When the request is sent
50+
Then the response status is 404 Not Found
51+
52+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
53+
Scenario: List replay analysis issue sessions returns "OK" response
54+
Given operation "ListReplayAnalysisIssueSessions" enabled
55+
And new "ListReplayAnalysisIssueSessions" request
56+
And request contains "issue_id" parameter from "REPLACE.ME"
57+
When the request is sent
58+
Then the response status is 200 OK
59+
60+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
61+
Scenario: List replay analysis issues returns "Bad Request" response
62+
Given operation "ListReplayAnalysisIssues" enabled
63+
And new "ListReplayAnalysisIssues" request
64+
When the request is sent
65+
Then the response status is 400 Bad Request
66+
67+
@generated @skip @team:DataDog/product-analytics-backend @team:DataDog/rum-backend @team:DataDog/session-replay-backend
68+
Scenario: List replay analysis issues returns "OK" response
69+
Given operation "ListReplayAnalysisIssues" enabled
70+
And new "ListReplayAnalysisIssues" request
71+
When the request is sent
72+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4786,6 +4786,24 @@
47864786
"type": "idempotent"
47874787
}
47884788
},
4789+
"ListReplayAnalysisIssues": {
4790+
"tag": "Rum Replay Analysis",
4791+
"undo": {
4792+
"type": "safe"
4793+
}
4794+
},
4795+
"GetReplayAnalysisIssue": {
4796+
"tag": "Rum Replay Analysis",
4797+
"undo": {
4798+
"type": "safe"
4799+
}
4800+
},
4801+
"ListReplayAnalysisIssueSessions": {
4802+
"tag": "Rum Replay Analysis",
4803+
"undo": {
4804+
"type": "safe"
4805+
}
4806+
},
47894807
"ListReplayHeatmapSnapshots": {
47904808
"tag": "Rum Replay Heatmaps",
47914809
"undo": {
@@ -4817,6 +4835,12 @@
48174835
"type": "idempotent"
48184836
}
48194837
},
4838+
"GenerateReplaySummary": {
4839+
"tag": "Rum Replay",
4840+
"undo": {
4841+
"type": "idempotent"
4842+
}
4843+
},
48204844
"DeleteRestrictionPolicy": {
48214845
"tag": "Restriction Policies",
48224846
"undo": {

packages/datadog-api-client/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ apiInstance
438438
| RUM | @datadog/datadog-api-client-rum | [README.md](../../services/rum/README.md) |
439439
| Rum Audience Management | @datadog/datadog-api-client-rum-audience-management | [README.md](../../services/rum-audience-management/README.md) |
440440
| Rum Metrics | @datadog/datadog-api-client-rum-metrics | [README.md](../../services/rum-metrics/README.md) |
441+
| Rum Replay | @datadog/datadog-api-client-rum-replay | [README.md](../../services/rum-replay/README.md) |
442+
| Rum Replay Analysis | @datadog/datadog-api-client-rum-replay-analysis | [README.md](../../services/rum-replay-analysis/README.md) |
441443
| Rum Replay Heatmaps | @datadog/datadog-api-client-rum-replay-heatmaps | [README.md](../../services/rum-replay-heatmaps/README.md) |
442444
| Rum Replay Playlists | @datadog/datadog-api-client-rum-replay-playlists | [README.md](../../services/rum-replay-playlists/README.md) |
443445
| Rum Replay Sessions | @datadog/datadog-api-client-rum-replay-sessions | [README.md](../../services/rum-replay-sessions/README.md) |

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10583,6 +10583,63 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
1058310583
},
1058410584
operationResponseType: "CloudWorkloadSecurityAgentRuleResponse",
1058510585
},
10586+
"RumReplayAnalysisApi.V2.ListReplayAnalysisIssues": {
10587+
filterApplicationId: {
10588+
type: "string",
10589+
format: "",
10590+
},
10591+
filterSeverity: {
10592+
type: "string",
10593+
format: "",
10594+
},
10595+
filterViewName: {
10596+
type: "string",
10597+
format: "",
10598+
},
10599+
filterIssueCategory: {
10600+
type: "string",
10601+
format: "",
10602+
},
10603+
sort: {
10604+
type: "string",
10605+
format: "",
10606+
},
10607+
pageNumber: {
10608+
type: "number",
10609+
format: "",
10610+
},
10611+
pageSize: {
10612+
type: "number",
10613+
format: "",
10614+
},
10615+
operationResponseType: "ReplayAnalysisIssuesResponse",
10616+
},
10617+
"RumReplayAnalysisApi.V2.GetReplayAnalysisIssue": {
10618+
issueId: {
10619+
type: "string",
10620+
format: "",
10621+
},
10622+
operationResponseType: "ReplayAnalysisIssueResponse",
10623+
},
10624+
"RumReplayAnalysisApi.V2.ListReplayAnalysisIssueSessions": {
10625+
issueId: {
10626+
type: "string",
10627+
format: "",
10628+
},
10629+
sort: {
10630+
type: "string",
10631+
format: "",
10632+
},
10633+
pageNumber: {
10634+
type: "number",
10635+
format: "",
10636+
},
10637+
pageSize: {
10638+
type: "number",
10639+
format: "",
10640+
},
10641+
operationResponseType: "ReplayAnalysisIssueSessionsResponse",
10642+
},
1058610643
"RumReplayHeatmapsApi.V2.ListReplayHeatmapSnapshots": {
1058710644
filterDeviceType: {
1058810645
type: "string",
@@ -10627,6 +10684,25 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
1062710684
},
1062810685
operationResponseType: "Snapshot",
1062910686
},
10687+
"RumReplayApi.V2.GenerateReplaySummary": {
10688+
sessionId: {
10689+
type: "string",
10690+
format: "",
10691+
},
10692+
dataSource: {
10693+
type: "string",
10694+
format: "",
10695+
},
10696+
ts: {
10697+
type: "number",
10698+
format: "int64",
10699+
},
10700+
body: {
10701+
type: "ReplaySummaryRequest",
10702+
format: "",
10703+
},
10704+
operationResponseType: "ReplaySummaryResponse",
10705+
},
1063010706
"RestrictionPoliciesApi.V2.GetRestrictionPolicy": {
1063110707
resourceId: {
1063210708
type: "string",

services/rum_replay/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

services/rum_replay/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# @datadog/datadog-api-client-rum-replay
2+
3+
## Description
4+
5+
Generate and retrieve AI-powered summaries of RUM replay sessions.
6+
7+
## Navigation
8+
9+
- [Installation](#installation)
10+
- [Getting Started](#getting-started)
11+
12+
## Installation
13+
14+
```sh
15+
# NPM
16+
npm install @datadog/datadog-api-client-rum-replay
17+
# Yarn
18+
yarn add @datadog/datadog-api-client-rum-replay
19+
```
20+
21+
## Getting Started
22+
```ts
23+
import { createConfiguration } from "@datadog/datadog-api-client";
24+
import { RumReplayApiV2 } from "@datadog/datadog-api-client-rum-replay";
25+
import { v2 } from "@datadog/datadog-api-client-rum-replay";
26+
27+
const configuration = createConfiguration();
28+
// Enable unstable operations
29+
const configurationOpts = {
30+
unstableOperations: {
31+
"RumReplayApi.v2.generateReplaySummary": true
32+
}
33+
}
34+
35+
const configuration = createConfiguration(configurationOpts);
36+
const apiInstance = new RumReplayApiV2(configuration);
37+
const params = {/* parameters */};
38+
39+
apiInstance.generateReplaySummary(params).then((data) => {
40+
console.log("API called successfully. Returned data: " + JSON.stringify(data));
41+
}).catch((error) => {
42+
console.error("Error calling API: " + error);
43+
});
44+
```

services/rum_replay/package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@datadog/datadog-api-client-rum-replay",
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+
"directory": "services/rum-replay"
21+
},
22+
"files": [
23+
"dist/**/*"
24+
],
25+
"main": "./dist/index.js",
26+
"typings": "./dist/index.d.ts",
27+
"scripts": {
28+
"prepack": "yarn workspace @datadog/datadog-api-client build && yarn build",
29+
"build": "yarn generate-version-files && tsc",
30+
"generate-version-files": "node -p \"'export const version = ' + JSON.stringify(require('./package.json').version)\" > src/version.ts"
31+
},
32+
"dependencies": {
33+
"@datadog/datadog-api-client": "^2.0.0-beta.2"
34+
},
35+
"devDependencies": {
36+
"typescript": "5.8.3"
37+
},
38+
"engines": {
39+
"node": ">=18.0.0"
40+
},
41+
"version": "0.0.1",
42+
"packageManager": "yarn@4.9.1"
43+
}

services/rum_replay/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * as v2 from "./v2";
2+
3+
export { RumReplayApi as RumReplayApiV2 } from "./v2/RumReplayApi";

0 commit comments

Comments
 (0)