okta/okta-sdk-nodejs

DeviceApi is missing in sdk client

julron opened this issue · 10 comments

Describe the feature request?

DeviceApi (ObjectDeviceApi) is missing in list of Client object apis

New or Affected Resource(s)

7.0.0

Provide a documentation link

export declare class ObjectDeviceApi {

Additional Information?

Is it possible to add deviceApi to the client as well?
Thank you

Thanks for submitting this issue. deviceApi should be added to client.
Internal ref: OKTA-602351

I still can't see it in version 7.0.1 which is the latest version?

Yes, 7.0.1 is the latest version.
Device Api should be available

import { Client, Device } from '@okta/okta-sdk-nodejs';
const client = new Client(...);
const collection = await client.deviceApi.listDevices({
  limit: 1
});
const { value: device } = await collection.next(); // access the first item of the collect
console.log(device);

@denysoblohin-okta I am happy to show you that it is not available.

If you download your source code from this repo as of 7.0.1 tag it is NOT included:
https://github.com/okta/okta-sdk-nodejs/releases/tag/okta-sdk-nodejs-7.0.1

You can also see it in the github tree here, DevicesApi is not imported. It is present on master, but NOT in 7.0.1

https://github.com/okta/okta-sdk-nodejs/blob/okta-sdk-nodejs-7.0.1/src/client.js#L55

Sorry, you're correct.
New version 7.1.0 should be released, it will contain DeviceApi

@denysoblohin-okta do you have an ETA for this?

sutru commented

this fix appears to still be missing a listDeviceUsers method

@az-nextsec
Please update to 7.1.0