Skip to content

Commit 36b5af2

Browse files
author
github-actions
committed
feat: Update OpenAPI file replicated from Notehub commit 4f56e5c
1 parent 2865f32 commit 36b5af2

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

openapi.yaml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,19 @@ paths:
854854
parameters:
855855
- $ref: '#/components/parameters/projectOrProductUIDParam'
856856
- $ref: '#/components/parameters/deviceUIDParam'
857+
- $ref: '#/components/parameters/startDateParam'
858+
- $ref: '#/components/parameters/endDateParam'
859+
- name: log_type
860+
in: query
861+
description: Return only specified log types
862+
required: false
863+
schema:
864+
type: array
865+
items:
866+
enum:
867+
- boot
868+
- dfu_completed
869+
type: string
857870
responses:
858871
'200':
859872
description: Successful operation
@@ -1102,6 +1115,22 @@ paths:
11021115
- personalAccessToken: []
11031116
tags:
11041117
- device
1118+
'/v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans':
1119+
get:
1120+
operationId: getDevicePlans
1121+
description: 'Get Data Plans associated with the device, this include the primary sim, any external sim, as well as any satellite connections.'
1122+
responses:
1123+
'200':
1124+
$ref: '#/components/responses/DevicePlansResponse'
1125+
default:
1126+
$ref: '#/components/responses/ErrorResponse'
1127+
security:
1128+
- api_key: []
1129+
tags:
1130+
- device
1131+
parameters:
1132+
- $ref: '#/components/parameters/projectOrProductUIDParam'
1133+
- $ref: '#/components/parameters/deviceUIDParam'
11051134
'/v1/projects/{projectOrProductUID}/devices/{deviceUID}/provision':
11061135
post:
11071136
operationId: postProvisionProjectDevice
@@ -3332,6 +3361,40 @@ components:
33323361
properties:
33333362
body:
33343363
type: object
3364+
CellularPlan:
3365+
type: object
3366+
properties:
3367+
activated:
3368+
description: Unix timestamp of when the SIM was activated
3369+
type: integer
3370+
format: int64
3371+
example: 1656010061
3372+
data_usage:
3373+
$ref: '#/components/schemas/DataUsage'
3374+
expires_at:
3375+
type: integer
3376+
format: int64
3377+
iccid:
3378+
description: The Integrated Circuit Card Identifier of the SIM card
3379+
type: string
3380+
example: '345678432765434567890765746354465786'
3381+
imsi:
3382+
description: IMSI of the SIM card
3383+
type: string
3384+
example: '310170830688975'
3385+
last_updated:
3386+
description: Time this plan information was last updated
3387+
type: integer
3388+
format: int64
3389+
example: 1656010061
3390+
lifetime_used:
3391+
description: Total bytes used by this SIM
3392+
type: integer
3393+
format: int64
3394+
plan_type:
3395+
description: 'Description of the SIM plan type including data allowance, region, and validity period'
3396+
type: string
3397+
example: '500MB, North America, 10-year lifetime'
33353398
CellularUsage:
33363399
type: array
33373400
items:
@@ -3486,6 +3549,28 @@ components:
34863549
name:
34873550
description: The name of the field
34883551
type: string
3552+
DataUsage:
3553+
type: object
3554+
properties:
3555+
kb_remaining:
3556+
description: Kilobytes remaining in the plan
3557+
type: number
3558+
format: double
3559+
example: 372.55
3560+
kb_total:
3561+
description: Total Kilobytes included in the plan
3562+
type: number
3563+
format: double
3564+
example: 500
3565+
kb_used:
3566+
description: Kilobytes used to date
3567+
type: number
3568+
format: double
3569+
example: 127.45
3570+
required:
3571+
- kb_total
3572+
- kb_used
3573+
- kb_remaining
34893574
Device:
34903575
type: object
34913576
properties:
@@ -4650,6 +4735,35 @@ components:
46504735
url:
46514736
description: The URL of the route.
46524737
type: string
4738+
SatellitePlan:
4739+
type: object
4740+
properties:
4741+
activated:
4742+
description: Activation date of the satellite plan as Unix timestamp
4743+
type: integer
4744+
format: int64
4745+
example: 1609459200
4746+
billable_bytes:
4747+
$ref: '#/components/schemas/DataUsage'
4748+
last_updated:
4749+
description: Time this plan information was last updated
4750+
type: integer
4751+
format: int64
4752+
example: 1656010061
4753+
ntn_provider:
4754+
description: Non-Terrestrial Network provider name
4755+
type: string
4756+
example: Skylo
4757+
psid:
4758+
description: Provider-specific identifier for the satellite subscription
4759+
type: string
4760+
example: 'skylo:5746354465786'
4761+
nullable: true
4762+
required:
4763+
- ntn_provider
4764+
- psid
4765+
- activated
4766+
- cumulative_billable_bytes
46534767
SchemaProperty:
46544768
type: object
46554769
properties:
@@ -5665,6 +5779,18 @@ components:
56655779
required:
56665780
- alerts
56675781
- has_more
5782+
DevicePlansResponse:
5783+
description: Response body for /plans
5784+
content:
5785+
application/json:
5786+
schema:
5787+
type: object
5788+
properties:
5789+
cellular_plans:
5790+
type: array
5791+
items:
5792+
$ref: '#/components/schemas/CellularPlan'
5793+
nullable: true
56685794
DevicesResponse:
56695795
description: List of Devices
56705796
content:

0 commit comments

Comments
 (0)