-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add User Type API (generated by swagger-codegen)
OKTA-453803 <<<Jenkins Check-In of Tested SHA: 42fcfb8 for eng_productivity_ci_bot_okta@okta.com>>> Artifact: okta-sdk-nodejs Files changed count: 41 PR Link: "#305"
- Loading branch information
1 parent
3b95fbd
commit 4bf219e
Showing
41 changed files
with
2,494 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tsc src/v3/**/*.ts --declaration | ||
rsync -r src/v3/**/*.d.ts src/types/v3 | ||
find src/v3/ -type f ! -name "*.js" -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// no js code for V2Configuration, it is only used as a type in TypeScript modules | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { defaultCacheMiddleware } from './default-cache-middleware'; | ||
import { RequestExecutor } from './request-executor'; | ||
|
||
export declare interface V2Configuration { | ||
orgUrl?: string, | ||
token?: string, | ||
clientId?: string, | ||
scopes?: string[], | ||
requestExecutor?: RequestExecutor, | ||
authorizationMode?: string, | ||
privateKey?: string | Record<string, unknown> | ||
cacheStore?: CacheStorage, | ||
cacheMiddleware?: typeof defaultCacheMiddleware | unknown | ||
defaultCacheMiddlewareResponseBufferSize?: number, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,3 @@ declare interface SecurePasswordStoreApplicationOptions { | |
export { | ||
SecurePasswordStoreApplicationOptions | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Okta API | ||
* Allows customers to easily access the Okta API | ||
* | ||
* OpenAPI spec version: 2.10.0 | ||
* Contact: devex-public@okta.com | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen.git | ||
* Do not edit the class manually. | ||
*/ | ||
export * from './apis/user-type-api'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
/** | ||
* Okta API | ||
* Allows customers to easily access the Okta API | ||
* | ||
* OpenAPI spec version: 2.10.0 | ||
* Contact: devex-public@okta.com | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
* https://github.com/swagger-api/swagger-codegen.git | ||
* Do not edit the class manually. | ||
*/ | ||
import { RequestArgs, BaseAPI } from '../base'; | ||
import { UserType } from '../models'; | ||
import { Response } from 'node-fetch'; | ||
import Http = require('../../http'); | ||
import { V2Configuration } from '../../configuration'; | ||
import { Configuration } from '../configuration'; | ||
/** | ||
* UserTypeApi - request parameter creator | ||
* @export | ||
*/ | ||
export declare const UserTypeApiRequestParamCreator: (configuration?: Configuration & V2Configuration) => { | ||
httpClient: any; | ||
/** | ||
* Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10. | ||
* @summary Create User Type | ||
* @param {UserType} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUserType: (body: UserType, options?: any) => Promise<RequestArgs>; | ||
/** | ||
* Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users | ||
* @summary Delete User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
deleteUserType: (typeId: string, options?: any) => Promise<RequestArgs>; | ||
/** | ||
* Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type. | ||
* @summary Get User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getUserType: (typeId: string, options?: any) => Promise<RequestArgs>; | ||
/** | ||
* Fetches all User Types in your org | ||
* @summary List User Types | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUserTypes: (options?: any) => Promise<RequestArgs>; | ||
/** | ||
* Replace an existing User Type | ||
* @summary Replace User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
replaceUserType: (body: UserType, typeId: string, options?: any) => Promise<RequestArgs>; | ||
/** | ||
* Updates an existing User Type | ||
* @summary Update User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
updateUserType: (body: UserType, typeId: string, options?: any) => Promise<RequestArgs>; | ||
}; | ||
/** | ||
* UserTypeApi - functional programming interface | ||
* @export | ||
*/ | ||
export declare const UserTypeApiFp: (configuration?: Configuration & V2Configuration) => { | ||
/** | ||
* Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10. | ||
* @summary Create User Type | ||
* @param {UserType} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUserType(body: UserType, options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<UserType>>; | ||
/** | ||
* Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users | ||
* @summary Delete User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
deleteUserType(typeId: string, options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<Response>>; | ||
/** | ||
* Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type. | ||
* @summary Get User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getUserType(typeId: string, options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<UserType>>; | ||
/** | ||
* Fetches all User Types in your org | ||
* @summary List User Types | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUserTypes(options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<Array<UserType>>>; | ||
/** | ||
* Replace an existing User Type | ||
* @summary Replace User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
replaceUserType(body: UserType, typeId: string, options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<UserType>>; | ||
/** | ||
* Updates an existing User Type | ||
* @summary Update User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
updateUserType(body: UserType, typeId: string, options?: any): Promise<(httpClient?: any, basePath?: string) => Promise<UserType>>; | ||
}; | ||
/** | ||
* UserTypeApi - factory interface | ||
* @export | ||
*/ | ||
export declare const UserTypeApiFactory: (configuration?: Configuration, basePath?: string, httpClient?: any) => { | ||
/** | ||
* Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10. | ||
* @summary Create User Type | ||
* @param {UserType} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
createUserType(body: UserType, options?: any): Promise<UserType>; | ||
/** | ||
* Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users | ||
* @summary Delete User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
deleteUserType(typeId: string, options?: any): Promise<Response>; | ||
/** | ||
* Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type. | ||
* @summary Get User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getUserType(typeId: string, options?: any): Promise<UserType>; | ||
/** | ||
* Fetches all User Types in your org | ||
* @summary List User Types | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
listUserTypes(options?: any): Promise<Array<UserType>>; | ||
/** | ||
* Replace an existing User Type | ||
* @summary Replace User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
replaceUserType(body: UserType, typeId: string, options?: any): Promise<UserType>; | ||
/** | ||
* Updates an existing User Type | ||
* @summary Update User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
updateUserType(body: UserType, typeId: string, options?: any): Promise<UserType>; | ||
}; | ||
/** | ||
* UserTypeApi - object-oriented interface | ||
* @export | ||
* @class UserTypeApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export declare class UserTypeApi extends BaseAPI { | ||
/** | ||
* Creates a new User Type. A default User Type is automatically created along with your org, and you may add another 9 User Types for a maximum of 10. | ||
* @summary Create User Type | ||
* @param {UserType} body | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
createUserType(body: UserType, options?: any): Promise<UserType>; | ||
/** | ||
* Deletes a User Type permanently. This operation is not permitted for the default type, nor for any User Type that has existing users | ||
* @summary Delete User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
deleteUserType(typeId: string, options?: any): Promise<Response>; | ||
/** | ||
* Fetches a User Type by ID. The special identifier `default` may be used to fetch the default User Type. | ||
* @summary Get User Type | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
getUserType(typeId: string, options?: any): Promise<UserType>; | ||
/** | ||
* Fetches all User Types in your org | ||
* @summary List User Types | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
listUserTypes(options?: any): Promise<UserType[]>; | ||
/** | ||
* Replace an existing User Type | ||
* @summary Replace User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
replaceUserType(body: UserType, typeId: string, options?: any): Promise<UserType>; | ||
/** | ||
* Updates an existing User Type | ||
* @summary Update User Type | ||
* @param {UserType} body | ||
* @param {string} typeId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof UserTypeApi | ||
*/ | ||
updateUserType(body: UserType, typeId: string, options?: any): Promise<UserType>; | ||
} |
Oops, something went wrong.