Skip to content

Commit

Permalink
chore: Publish pr-feature-media-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 14, 2024
1 parent 5939966 commit 0234b55
Show file tree
Hide file tree
Showing 41 changed files with 258 additions and 74 deletions.
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Accessibility/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Accessibility 1.3.0-feature-media-metrics.0
Version Accessibility 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Account/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Account 1.3.0-feature-media-metrics.0
Version Account 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Advertising/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Advertising 1.3.0-feature-media-metrics.0
Version Advertising 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Authentication/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Authentication 1.3.0-feature-media-metrics.0
Version Authentication 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Capabilities/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Capabilities 1.3.0-feature-media-metrics.0
Version Capabilities 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Device/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Device 1.3.0-feature-media-metrics.0
Version Device 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Discovery/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Discovery 1.3.0-feature-media-metrics.0
Version Discovery 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Internal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Internal 1.3.0-feature-media-metrics.0
Version Internal 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Keyboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Keyboard 1.3.0-feature-media-metrics.0
Version Keyboard 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Lifecycle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Lifecycle 1.3.0-feature-media-metrics.0
Version Lifecycle 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Localization/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Localization 1.3.0-feature-media-metrics.0
Version Localization 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
73 changes: 72 additions & 1 deletion apis/pr-feature-media-metrics/core/Metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Metrics 1.3.0-feature-media-metrics.0
Version Metrics 1.3.1-feature-media-metrics.0

## Table of Contents

Expand All @@ -19,6 +19,7 @@ Version Metrics 1.3.0-feature-media-metrics.0
- [Overview](#overview)
- [Methods](#methods)
- [action](#action)
- [appInfo](#appinfo)
- [error](#error)
- [mediaEnded](#mediaended)
- [mediaLoadStart](#medialoadstart)
Expand Down Expand Up @@ -132,6 +133,76 @@ Response:

---

### appInfo

Inform the platform about an app's build info.

```typescript
function appInfo(build: string): Promise<null>
```

Parameters:

| Param | Type | Required | Description |
| ------- | -------- | -------- | -------------------------------- |
| `build` | `string` | true | The build / version of this app. |

Promise resolution:

Capabilities:

| Role | Capability |
| ---- | --------------------------------------- |
| uses | xrn:firebolt:capability:metrics:general |

#### Examples

Send appInfo metric

JavaScript:

```javascript
import { Metrics } from '@firebolt-js/sdk'
let result = await Metrics.appInfo('1.2.2')
console.log(result)
```

Value of `result`:

```javascript
null
```

<details markdown="1" >
<summary>JSON-RPC:</summary>
Request:

```json
{
"jsonrpc": "2.0",
"id": 1,
"method": "Metrics.appInfo",
"params": {
"build": "1.2.2"
}
}
```

Response:

```json
{
"jsonrpc": "2.0",
"id": 1,
"result": null
}
```

</details>

---

### error

Inform the platform of an error that has occured in your app.
Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Parameters/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Parameters 1.3.0-feature-media-metrics.0
Version Parameters 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/Profile/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version Profile 1.3.0-feature-media-metrics.0
Version Profile 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/SecondScreen/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version SecondScreen 1.3.0-feature-media-metrics.0
Version SecondScreen 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/core/SecureStorage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: core

---

Version SecureStorage 1.3.0-feature-media-metrics.0
Version SecureStorage 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
8 changes: 8 additions & 0 deletions apis/pr-feature-media-metrics/core/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ version: pr-feature-media-metrics
layout: default
sdk: core
---
# 1.3.0 (https://github.com/rdkcentral/firebolt-apis/compare/v1.2.0...v1.3.0) (2024-08-12)

### Features

* Add Metrics.appInfo API ([#294](https://github.com/rdkcentral/firebolt-apis/issues/294)) ([47264b5](https://github.com/rdkcentral/firebolt-apis/commit/47264b5c5c71fd117a52ca50f2e57315932905ad))
* CPP App-Passthrough Logic ([#286](https://github.com/rdkcentral/firebolt-apis/issues/286)) ([4eb84ee](https://github.com/rdkcentral/firebolt-apis/commit/4eb84ee08c463915e3b13afec6603541ea0b1ae4))
* OpenRPC version upgraded to 3.1.0 ([#298](https://github.com/rdkcentral/firebolt-apis/issues/298)) ([16b3305](https://github.com/rdkcentral/firebolt-apis/commit/16b3305201624acf904c98d8c414b9756d42aaa7))

# 1.2.0 (https://github.com/rdkcentral/firebolt-apis/compare/v1.1.0...v1.2.0) (2024-06-14)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/discovery/Content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: discovery

---

Version Content 1.3.0-feature-media-metrics.0
Version Content 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 2 additions & 0 deletions apis/pr-feature-media-metrics/discovery/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ version: pr-feature-media-metrics
layout: default
sdk: discovery
---
# 1.3.0 (https://github.com/rdkcentral/firebolt-apis/compare/v1.2.0...v1.3.0) (2024-08-12)

# 1.2.0 (https://github.com/rdkcentral/firebolt-apis/compare/v1.1.0...v1.2.0) (2024-06-14)

### Features
Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ The schemas are used to generate SDK and Documentation artifacts.

| Uses |
| ---- |
| [Metrics.ready](./core/Metrics/#ready)<br/>[Metrics.signIn](./core/Metrics/#signin)<br/>[Metrics.signOut](./core/Metrics/#signout)<br/>[Metrics.startContent](./core/Metrics/#startcontent)<br/>[Metrics.stopContent](./core/Metrics/#stopcontent)<br/>[Metrics.page](./core/Metrics/#page)<br/>[Metrics.action](./core/Metrics/#action)<br/>[Metrics.error](./core/Metrics/#error) |
| [Metrics.ready](./core/Metrics/#ready)<br/>[Metrics.signIn](./core/Metrics/#signin)<br/>[Metrics.signOut](./core/Metrics/#signout)<br/>[Metrics.startContent](./core/Metrics/#startcontent)<br/>[Metrics.stopContent](./core/Metrics/#stopcontent)<br/>[Metrics.page](./core/Metrics/#page)<br/>[Metrics.action](./core/Metrics/#action)<br/>[Metrics.error](./core/Metrics/#error)<br/>[Metrics.appInfo](./core/Metrics/#appinfo) |


### `xrn:firebolt:capability:metrics:media`
Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/manage/Account/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version Account 1.3.0-feature-media-metrics.0
Version Account 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version AcknowledgeChallenge 1.3.0-feature-media-metrics.0
Version AcknowledgeChallenge 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down Expand Up @@ -348,12 +348,7 @@ Response:
The provider interface for the `xrn:firebolt:capability:usergrant:acknowledgechallenge` capability.

```typescript
interface ChallengeProvider {
challenge(
parameters: object,
session: FocusableProviderSession,
): Promise<GrantResult>
}

```

Usage:
Expand All @@ -371,7 +366,9 @@ import { AcknowledgeChallenge } from '@firebolt-js/manage-sdk'

class MyChallengeProvider {
async challenge(parameters, session) {
return null
return {
granted: true,
}
}
}

Expand Down Expand Up @@ -440,7 +437,9 @@ Request:
"method": "AcknowledgeChallenge.challengeResponse",
"params": {
"correlationId": undefined,
"result": null
"result": {
"granted": true
}
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/manage/Advertising/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version Advertising 1.3.0-feature-media-metrics.0
Version Advertising 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version AudioDescriptions 1.3.0-feature-media-metrics.0
Version AudioDescriptions 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version ClosedCaptions 1.3.0-feature-media-metrics.0
Version ClosedCaptions 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/manage/Device/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version Device 1.3.0-feature-media-metrics.0
Version Device 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/manage/Discovery/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version Discovery 1.3.0-feature-media-metrics.0
Version Discovery 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion apis/pr-feature-media-metrics/manage/HDMIInput/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sdk: manage

---

Version HDMIInput 1.3.0-feature-media-metrics.0
Version HDMIInput 1.3.1-feature-media-metrics.0

## Table of Contents

Expand Down
Loading

0 comments on commit 0234b55

Please sign in to comment.