feat: Add Be and tbd skill, also added Roadmap file

This commit is contained in:
2026-05-10 16:32:12 -04:00
parent 3500ade13f
commit 0bb8885802
29587 changed files with 10611695 additions and 0 deletions

View File

@@ -0,0 +1,346 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Account extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Account.Types.ClientConfiguration)
config: Config & Account.Types.ClientConfiguration;
/**
* Checks if email already exists in system.
*/
checkEmail(params: Account.Types.EmailRequest, callback?: (err: AWSError, data: Account.Types.CheckEmailResponse) => void): Request<Account.Types.CheckEmailResponse, AWSError>;
/**
* Checks if email already exists in system.
*/
checkEmail(callback?: (err: AWSError, data: Account.Types.CheckEmailResponse) => void): Request<Account.Types.CheckEmailResponse, AWSError>;
/**
* Creates new account. Doesn't require authentication.
*/
create(params: Account.Types.CreateRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Creates new account. Doesn't require authentication.
*/
create(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Logs account in and returns full account details with accessKeyId/secretAccessKey. Doesn't require authentication.
*/
login(params: Account.Types.LoginRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Logs account in and returns full account details with accessKeyId/secretAccessKey. Doesn't require authentication.
*/
login(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Searches for occurencies of query in firstName/lastName/email.
*/
search(params: Account.Types.SearchRequest, callback?: (err: AWSError, data: Account.Types.AccountList) => void): Request<Account.Types.AccountList, AWSError>;
/**
* Searches for occurencies of query in firstName/lastName/email.
*/
search(callback?: (err: AWSError, data: Account.Types.AccountList) => void): Request<Account.Types.AccountList, AWSError>;
/**
* Regenerates new pair of accessKeyId/secretAccessKey making previous values invalid.
*/
resetKeys(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Gets account details for multiple accounts.
*/
get(params: Account.Types.IdsRequestOptional, callback?: (err: AWSError, data: Account.Types.AccountList) => void): Request<Account.Types.AccountList, AWSError>;
/**
* Gets account details for multiple accounts.
*/
get(callback?: (err: AWSError, data: Account.Types.AccountList) => void): Request<Account.Types.AccountList, AWSError>;
/**
* Updates account.
*/
update(params: Account.Types.UpdateRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Updates account.
*/
update(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Removes account.
*/
remove(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Activates account by code provided in e-mail. Doesn't require authentication.
*/
activateByCode(params: Account.Types.ActivationRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Activates account by code provided in e-mail. Doesn't require authentication.
*/
activateByCode(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Resends activation code to account e-mail. Doesn't require authentication.
*/
resendActivationCode(params: Account.Types.EmailRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Resends activation code to account e-mail. Doesn't require authentication.
*/
resendActivationCode(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Changes account password.
*/
changePassword(params: Account.Types.ChangePasswordRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Changes account password.
*/
changePassword(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Changes account email.
*/
changeEmail(params: Account.Types.ChangeEmailRequest, callback?: (err: AWSError, data: Account.Types.IdStruct) => void): Request<Account.Types.IdStruct, AWSError>;
/**
* Changes account email.
*/
changeEmail(callback?: (err: AWSError, data: Account.Types.IdStruct) => void): Request<Account.Types.IdStruct, AWSError>;
/**
* Changes account email.
*/
confirmEmailReset(params: Account.Types.ConfirmEmailResetRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Changes account email.
*/
confirmEmailReset(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Sends password reset instructions to specified e-mail. Doesn't require authentication.
*/
sendPasswordReset(params: Account.Types.EmailRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Sends password reset instructions to specified e-mail. Doesn't require authentication.
*/
sendPasswordReset(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Sets user password if provided password reset code is correct. Doesn't require authentication.
*/
passwordResetByCode(params: Account.Types.PasswordResetRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Sets user password if provided password reset code is correct. Doesn't require authentication.
*/
passwordResetByCode(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Adds or updates account photo.
*/
updatePhoto(params: Account.Types.UpdatePhotoRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Adds or updates account photo.
*/
updatePhoto(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Removes account photo.
*/
removePhoto(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Sends verification code via SMS.
*/
sendPhoneVerificationCode(params: Account.Types.PhoneNumberRequest, callback?: (err: AWSError, data: Account.Types.IdStruct) => void): Request<Account.Types.IdStruct, AWSError>;
/**
* Sends verification code via SMS.
*/
sendPhoneVerificationCode(callback?: (err: AWSError, data: Account.Types.IdStruct) => void): Request<Account.Types.IdStruct, AWSError>;
/**
* Makes phone number verified if provided correct code.
*/
verifyPhoneByCode(params: Account.Types.PhoneVerificationRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Makes phone number verified if provided correct code.
*/
verifyPhoneByCode(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Generates temporary access token.
*/
createAccessToken(params: Account.Types.TokenRequest, callback?: (err: AWSError, data: Account.Types.TokenContainer) => void): Request<Account.Types.TokenContainer, AWSError>;
/**
* Generates temporary access token.
*/
createAccessToken(callback?: (err: AWSError, data: Account.Types.TokenContainer) => void): Request<Account.Types.TokenContainer, AWSError>;
/**
* Retrieves account credentials by temporary access token.
*/
getAccountByAccessToken(params: Account.Types.TokenContainer, callback?: (err: AWSError, data: Account.Types.TokenResponse) => void): Request<Account.Types.TokenResponse, AWSError>;
/**
* Retrieves account credentials by temporary access token.
*/
getAccountByAccessToken(callback?: (err: AWSError, data: Account.Types.TokenResponse) => void): Request<Account.Types.TokenResponse, AWSError>;
/**
* Prepares an url to perform Facebook login. Intended for web client.
*/
facebookPrepareLogin(callback?: (err: AWSError, data: Account.Types.FacebookPrepareLoginResponse) => void): Request<Account.Types.FacebookPrepareLoginResponse, AWSError>;
/**
* Connects account to Facebook (exchanges temporary token to permanent one and ties it to account). Intended for web client.
*/
facebookConnect(params: Account.Types.FacebookConnectRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Connects account to Facebook (exchanges temporary token to permanent one and ties it to account). Intended for web client.
*/
facebookConnect(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Saved permanent Facebook token in account. Intended for mobile client.
*/
facebookMobileConnect(params: Account.Types.FacebookMobileConnectRequest, callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Saved permanent Facebook token in account. Intended for mobile client.
*/
facebookMobileConnect(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
/**
* Accepts terms and conditions that are currently applicable.
*/
acceptTerms(callback?: (err: AWSError, data: Account.Types.Account) => void): Request<Account.Types.Account, AWSError>;
}
declare namespace Account {
export type Id = string;
export type IdList = Id[];
export type Email = string;
export type Campaign = string;
export interface PhoneNumberRequest {
phoneNumber: undefined;
}
export type Password = string;
export type Query = string;
export type Code = string;
export type AccessToken = string;
export type TokenPayload = string;
export interface TokenRequest {
payload?: TokenPayload;
}
export interface TokenContainer {
token: AccessToken;
expires?: Timestamp;
}
export interface TokenResponse {
id?: Id;
accessKeyId: undefined;
secretAccessKey: undefined;
email?: Email;
friendlyId?: undefined;
payload?: TokenPayload;
}
export type Timestamp = number;
export interface EmailRequest {
email: Email;
campaign?: Campaign;
}
export interface IdStruct {
id: Id;
}
export interface IdsRequestOptional {
ids?: IdList;
}
export interface ActivationRequest {
code: undefined;
}
export interface SearchRequest {
query: Query;
}
export type Type = "ios"|"android"|string;
export type Gender = "male"|"female"|"other"|string;
export interface LoginRequest {
email: Email;
password: Password;
}
export type AccountRoles = undefined[];
export interface Account {
id: Id;
email: Email;
accessKeyId?: undefined;
secretAccessKey?: undefined;
lastName?: undefined;
firstName?: undefined;
gender?: Gender;
birthday?: Timestamp;
isActive?: undefined;
roles?: AccountRoles;
photoUrl?: undefined;
facebookConnected?: undefined;
termsAccepted?: Timestamp;
phoneNumber?: undefined;
messagingAllowed?: undefined;
}
export interface CheckEmailResponse {
exists: undefined;
}
export type AccountList = Account[];
export type InvitationCode = string;
export interface CreateRequest {
email: Email;
password: Password;
invitationCode?: InvitationCode;
firstName?: undefined;
lastName?: undefined;
gender?: Gender;
birthday?: undefined;
campaign?: Campaign;
messagingAllowed?: undefined;
roles?: AccountRoles;
termsAccepted?: Timestamp;
}
export type EmailOptional = string;
export interface UpdateRequest {
email?: EmailOptional;
password?: Password;
firstName?: undefined;
lastName?: undefined;
gender?: Gender;
birthday?: undefined;
messagingAllowed?: undefined;
}
export interface ChangePasswordRequest {
oldPassword: Password;
newPassword: Password;
}
export interface ConfirmEmailResetRequest {
code: Code;
}
export interface ChangeEmailRequest {
password: Password;
email: Email;
campaign?: Campaign;
}
export interface PasswordResetRequest {
code: Code;
password: Password;
}
export interface PhoneVerificationRequest {
code: undefined;
}
export type Stream = Buffer|Uint8Array|Blob|string;
export interface UpdatePhotoRequest {
body?: Stream;
}
export interface FacebookPrepareLoginResponse {
url: undefined;
client_id?: undefined;
scope?: undefined;
response_type?: undefined;
state?: AccessToken;
redirect_uri?: undefined;
}
export interface FacebookConnectRequest {
state: AccessToken;
token: undefined;
}
export interface FacebookMobileConnectRequest {
token: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-11-11"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Account client.
*/
export import Types = Account;
}
export = Account;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['account'] = {};
Jibo.Account = Service.defineService('account', ['2015-11-11']);
require('../lib/services/account');
Object.defineProperty(apiLoader.services['account'], '2015-11-11', {
get: function get() {
var model = require('../apis/account-2015-11-11.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Account;

View File

@@ -0,0 +1,79 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class AccountAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: AccountAdmin.Types.ClientConfiguration)
config: Config & AccountAdmin.Types.ClientConfiguration;
/**
* Manually activates specified account. Can only be called by administrator
*/
activateById(params: AccountAdmin.Types.IdRequest, callback?: (err: AWSError, data: AccountAdmin.Types.Account) => void): Request<AccountAdmin.Types.Account, AWSError>;
/**
* Manually activates specified account. Can only be called by administrator
*/
activateById(callback?: (err: AWSError, data: AccountAdmin.Types.Account) => void): Request<AccountAdmin.Types.Account, AWSError>;
/**
* Reset email of a user. Caller must verify an account belongs to a proper person. Can only be called by administrator
*/
resetEmail(params: AccountAdmin.Types.ResetEmailRequest, callback?: (err: AWSError, data: AccountAdmin.Types.IdRequest) => void): Request<AccountAdmin.Types.IdRequest, AWSError>;
/**
* Reset email of a user. Caller must verify an account belongs to a proper person. Can only be called by administrator
*/
resetEmail(callback?: (err: AWSError, data: AccountAdmin.Types.IdRequest) => void): Request<AccountAdmin.Types.IdRequest, AWSError>;
}
declare namespace AccountAdmin {
export type Id = string;
export type Email = string;
export type Timestamp = number;
export interface IdRequest {
id: Id;
}
export type Campaign = string;
export interface ResetEmailRequest {
id: Id;
email: Email;
campaign?: Campaign;
}
export type Gender = "male"|"female"|"other"|string;
export type AccountRoles = undefined[];
export interface Account {
id: Id;
email: Email;
accessKeyId?: undefined;
secretAccessKey?: undefined;
lastName?: undefined;
firstName?: undefined;
gender?: Gender;
birthday?: Timestamp;
isActive?: undefined;
roles?: AccountRoles;
photoUrl?: undefined;
facebookConnected?: undefined;
termsAccepted?: Timestamp;
phoneNumber?: undefined;
messagingAllowed?: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-11-11"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the AccountAdmin client.
*/
export import Types = AccountAdmin;
}
export = AccountAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['accountadmin'] = {};
Jibo.AccountAdmin = Service.defineService('accountadmin', ['2015-11-11']);
Object.defineProperty(apiLoader.services['accountadmin'], '2015-11-11', {
get: function get() {
var model = require('../apis/accountadmin-2015-11-11.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.AccountAdmin;

View File

@@ -0,0 +1,24 @@
export import Log = require('./log');
export import LogAdmin = require('./logadmin');
export import Push = require('./push');
export import Account = require('./account');
export import AccountAdmin = require('./accountadmin');
export import Backup = require('./backup');
export import Notification = require('./notification');
export import Update = require('./update');
export import UpdateAdmin = require('./updateadmin');
export import Robot = require('./robot');
export import RobotAdmin = require('./robotadmin');
export import Key = require('./key');
export import Loop = require('./loop');
export import Media = require('./media');
export import MediaAdmin = require('./mediaadmin');
export import Person = require('./person');
export import GQA = require('./gqa');
export import OOBE = require('./oobe');
export import NLP = require('./nlp');
export import Collision = require('./collision');
export import IFTTT = require('./ifttt');
export import OOBEAdmin = require('./oobeadmin');
export import ROM = require('./rom');
export import OauthClientsAdmin = require('./oauthclientsadmin');

View File

@@ -0,0 +1,29 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
module.exports = {
Log: require('./log'),
LogAdmin: require('./logadmin'),
Push: require('./push'),
Account: require('./account'),
AccountAdmin: require('./accountadmin'),
Backup: require('./backup'),
Notification: require('./notification'),
Update: require('./update'),
UpdateAdmin: require('./updateadmin'),
Robot: require('./robot'),
RobotAdmin: require('./robotadmin'),
Key: require('./key'),
Loop: require('./loop'),
Media: require('./media'),
MediaAdmin: require('./mediaadmin'),
Person: require('./person'),
GQA: require('./gqa'),
OOBE: require('./oobe'),
NLP: require('./nlp'),
Collision: require('./collision'),
IFTTT: require('./ifttt'),
OOBEAdmin: require('./oobeadmin'),
ROM: require('./rom'),
OauthClientsAdmin: require('./oauthclientsadmin')
};

View File

@@ -0,0 +1,69 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Backup extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Backup.Types.ClientConfiguration)
config: Config & Backup.Types.ClientConfiguration;
/**
* Get URL to upload backup binary to.
*/
new(params: Backup.Types.NewBackupRequest, callback?: (err: AWSError, data: Backup.Types.NewBackupResponse) => void): Request<Backup.Types.NewBackupResponse, AWSError>;
/**
* Get URL to upload backup binary to.
*/
new(callback?: (err: AWSError, data: Backup.Types.NewBackupResponse) => void): Request<Backup.Types.NewBackupResponse, AWSError>;
/**
* Get latest backup.
*/
list(params: Backup.Types.ListRequest, callback?: (err: AWSError, data: Backup.Types.ListResponse) => void): Request<Backup.Types.ListResponse, AWSError>;
/**
* Get latest backup.
*/
list(callback?: (err: AWSError, data: Backup.Types.ListResponse) => void): Request<Backup.Types.ListResponse, AWSError>;
}
declare namespace Backup {
export type Id = string;
export interface NewBackupRequest {
loopId: Id;
}
export interface NewBackupResponse {
uploadUrl: undefined;
}
export interface ListRequest {
loopId: Id;
}
export type ListResponse = BackupItem[];
export interface BackupItem {
modified?: undefined;
etag?: undefined;
size?: undefined;
location?: SignedUrl;
}
export interface SignedUrl {
expires?: undefined;
url?: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-02-22"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Backup client.
*/
export import Types = Backup;
}
export = Backup;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['backup'] = {};
Jibo.Backup = Service.defineService('backup', ['2017-02-22']);
require('../lib/services/backup');
Object.defineProperty(apiLoader.services['backup'], '2017-02-22', {
get: function get() {
var model = require('../apis/backup-2017-02-22.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Backup;

View File

@@ -0,0 +1,2 @@
export import Account = require('./account');
export import Loop = require('./loop');

View File

@@ -0,0 +1,7 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
module.exports = {
Account: require('./account'),
Loop: require('./loop')
};

View File

@@ -0,0 +1,52 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Collision extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Collision.Types.ClientConfiguration)
config: Config & Collision.Types.ClientConfiguration;
/**
* Matches name with existing ones.
*/
match(params: Collision.Types.MatchInput, callback?: (err: AWSError, data: Collision.Types.MatchOutput) => void): Request<Collision.Types.MatchOutput, AWSError>;
/**
* Matches name with existing ones.
*/
match(callback?: (err: AWSError, data: Collision.Types.MatchOutput) => void): Request<Collision.Types.MatchOutput, AWSError>;
}
declare namespace Collision {
export type Name = string;
export type ExistingNames = Name[];
export interface MatchInput {
name: Name;
existingNames: ExistingNames;
}
export interface MatchOutput {
success: undefined;
collision?: undefined;
closest_pair?: Name;
distance?: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-11-26"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Collision client.
*/
export import Types = Collision;
}
export = Collision;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['collision'] = {};
Jibo.Collision = Service.defineService('collision', ['2016-11-26']);
Object.defineProperty(apiLoader.services['collision'], '2016-11-26', {
get: function get() {
var model = require('../apis/collision-2016-11-26.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Collision;

View File

@@ -0,0 +1,96 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class GQA extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: GQA.Types.ClientConfiguration)
config: Config & GQA.Types.ClientConfiguration;
/**
* Asks general question.
*/
question(params: GQA.Types.QuestionRequest, callback?: (err: AWSError, data: GQA.Types.QuestionResponse) => void): Request<GQA.Types.QuestionResponse, AWSError>;
/**
* Asks general question.
*/
question(callback?: (err: AWSError, data: GQA.Types.QuestionResponse) => void): Request<GQA.Types.QuestionResponse, AWSError>;
/**
* Retrieves attribution data.
*/
listAttribution(params: GQA.Types.ListAttributionRequest, callback?: (err: AWSError, data: GQA.Types.ListAttributionResponse) => void): Request<GQA.Types.ListAttributionResponse, AWSError>;
/**
* Retrieves attribution data.
*/
listAttribution(callback?: (err: AWSError, data: GQA.Types.ListAttributionResponse) => void): Request<GQA.Types.ListAttributionResponse, AWSError>;
}
declare namespace GQA {
export interface QuestionRequest {
Input: undefined;
Intent?: undefined;
Latitude?: undefined;
Longitude?: undefined;
Country?: undefined;
HasKid?: undefined;
Timezone?: undefined;
}
export interface QuestionResponse {
success: undefined;
source?: undefined;
answer?: undefined;
message?: undefined;
type?: undefined;
timestamps?: GQATimestamps;
response?: undefined;
version?: undefined;
}
export interface GQATimestamps {
receive_request: Timestamp;
return_response?: Timestamp;
bing_request?: Timestamp;
bing_response?: Timestamp;
wiki_request?: Timestamp;
wiki_response?: Timestamp;
wolfram_request?: Timestamp;
wolfram_response?: Timestamp;
}
export type Timestamp = number;
export interface ListAttributionRequest {
ID: undefined;
Service?: undefined;
after?: Timestamp;
before?: Timestamp;
}
export interface ListAttributionResponse {
data: Attributions;
}
export type Attributions = Attribution[];
export interface Attribution {
service?: undefined;
query?: undefined;
url?: undefined;
image_url?: undefined;
robot_id?: undefined;
timestamp?: Timestamp;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-09-30"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the GQA client.
*/
export import Types = GQA;
}
export = GQA;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['gqa'] = {};
Jibo.GQA = Service.defineService('gqa', ['2016-09-30']);
Object.defineProperty(apiLoader.services['gqa'], '2016-09-30', {
get: function get() {
var model = require('../apis/gqa-2016-09-30.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.GQA;

View File

@@ -0,0 +1,144 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class IFTTT extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: IFTTT.Types.ClientConfiguration)
config: Config & IFTTT.Types.ClientConfiguration;
/**
* Create IFTTT trigger. To be called by robot.
*/
trigger(params: IFTTT.Types.TriggerRequest, callback?: (err: AWSError, data: IFTTT.Types.CommandResponse) => void): Request<IFTTT.Types.CommandResponse, AWSError>;
/**
* Create IFTTT trigger. To be called by robot.
*/
trigger(callback?: (err: AWSError, data: IFTTT.Types.CommandResponse) => void): Request<IFTTT.Types.CommandResponse, AWSError>;
/**
* Lists IFTTT triggers. To be called by owner.
*/
listTriggers(params: IFTTT.Types.ListTriggersRequest, callback?: (err: AWSError, data: IFTTT.Types.Triggers) => void): Request<IFTTT.Types.Triggers, AWSError>;
/**
* Lists IFTTT triggers. To be called by owner.
*/
listTriggers(callback?: (err: AWSError, data: IFTTT.Types.Triggers) => void): Request<IFTTT.Types.Triggers, AWSError>;
/**
* Lists IFTTT photo triggers. To be called by owner.
*/
listMedia(params: IFTTT.Types.ListMediaRequest, callback?: (err: AWSError, data: IFTTT.Types.MediaTriggers) => void): Request<IFTTT.Types.MediaTriggers, AWSError>;
/**
* Lists IFTTT photo triggers. To be called by owner.
*/
listMedia(callback?: (err: AWSError, data: IFTTT.Types.MediaTriggers) => void): Request<IFTTT.Types.MediaTriggers, AWSError>;
/**
* Marks IFTTT identity as deleted.
*/
deleteIdentity(params: IFTTT.Types.DeleteIdentityRequest, callback?: (err: AWSError, data: IFTTT.Types.CommandResponse) => void): Request<IFTTT.Types.CommandResponse, AWSError>;
/**
* Marks IFTTT identity as deleted.
*/
deleteIdentity(callback?: (err: AWSError, data: IFTTT.Types.CommandResponse) => void): Request<IFTTT.Types.CommandResponse, AWSError>;
/**
* Create IFTTT action. To be called by owner.
*/
action(params: IFTTT.Types.ActionRequest, callback?: (err: AWSError, data: IFTTT.Types.Actions) => void): Request<IFTTT.Types.Actions, AWSError>;
/**
* Create IFTTT action. To be called by owner.
*/
action(callback?: (err: AWSError, data: IFTTT.Types.Actions) => void): Request<IFTTT.Types.Actions, AWSError>;
/**
* Lists IFTTT actions. To be called by robot.
*/
listActions(params: IFTTT.Types.ListActionsRequest, callback?: (err: AWSError, data: IFTTT.Types.Actions) => void): Request<IFTTT.Types.Actions, AWSError>;
/**
* Lists IFTTT actions. To be called by robot.
*/
listActions(callback?: (err: AWSError, data: IFTTT.Types.Actions) => void): Request<IFTTT.Types.Actions, AWSError>;
/**
* Get basic user information.
*/
userInfo(callback?: (err: AWSError, data: IFTTT.Types.UserInfoResponse) => void): Request<IFTTT.Types.UserInfoResponse, AWSError>;
}
declare namespace IFTTT {
export type Id = string;
export type LoopId = string;
export type Text = string;
export type Identity = string;
export type Limit = number;
export interface TriggerRequest {
text: Text;
}
export interface ListTriggersRequest {
text?: Text;
identity?: Identity;
limit?: Limit;
}
export interface ListMediaRequest {
identity?: Identity;
limit?: Limit;
}
export interface DeleteIdentityRequest {
identity: Identity;
}
export type Timestamp = number;
export interface Trigger {
id: Id;
identity: Identity;
text: Text;
created: Timestamp;
}
export type Triggers = Trigger[];
export type Url = string;
export interface MediaTrigger {
id: Id;
identity: Identity;
encryptedUrl?: Url;
decryptedUrl: Url;
created: Timestamp;
}
export type MediaTriggers = MediaTrigger[];
export type Fields = {[key: string]: undefined};
export interface ActionRequest {
fields?: Fields;
}
export interface ListActionsRequest {
limit?: Limit;
}
export interface Action {
id: Id;
loopId: LoopId;
fields?: Fields;
created: Timestamp;
}
export type Actions = Action[];
export interface CommandResponse {
result: undefined;
}
export type UserId = string;
export type UserName = string;
export interface UserInfoResponse {
id: UserId;
name: UserName;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-02-07"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the IFTTT client.
*/
export import Types = IFTTT;
}
export = IFTTT;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['ifttt'] = {};
Jibo.IFTTT = Service.defineService('ifttt', ['2017-02-07']);
Object.defineProperty(apiLoader.services['ifttt'], '2017-02-07', {
get: function get() {
var model = require('../apis/ifttt-2017-02-07.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.IFTTT;

View File

@@ -0,0 +1,165 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Key extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Key.Types.ClientConfiguration)
config: Config & Key.Types.ClientConfiguration;
/**
* Gets request (possibly with encrypted symmetrical key).
*/
getRequest(params: Key.Types.GetRequest, callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Gets request (possibly with encrypted symmetrical key).
*/
getRequest(callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Request all loop members to share symmetrical key.
*/
createRequest(params: Key.Types.CreateRequest, callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Request all loop members to share symmetrical key.
*/
createRequest(callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Shares symmetrical key with requesting account.
*/
share(params: Key.Types.ShareRequest, callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Shares symmetrical key with requesting account.
*/
share(callback?: (err: AWSError, data: Key.Types.Request) => void): Request<Key.Types.Request, AWSError>;
/**
* Lists pending sharing requests for current account.
*/
listIncomingRequests(params: Key.Types.LoopIdRequest, callback?: (err: AWSError, data: Key.Types.Requests) => void): Request<Key.Types.Requests, AWSError>;
/**
* Lists pending sharing requests for current account.
*/
listIncomingRequests(callback?: (err: AWSError, data: Key.Types.Requests) => void): Request<Key.Types.Requests, AWSError>;
/**
* Detects if symmetrical key should be created.
*/
shouldCreate(params: Key.Types.LoopIdRequest, callback?: (err: AWSError, data: Key.Types.ShouldCreateResponse) => void): Request<Key.Types.ShouldCreateResponse, AWSError>;
/**
* Detects if symmetrical key should be created.
*/
shouldCreate(callback?: (err: AWSError, data: Key.Types.ShouldCreateResponse) => void): Request<Key.Types.ShouldCreateResponse, AWSError>;
/**
* Stores encrypted key.
*/
backup(params: Key.Types.BackupRequest, callback?: (err: AWSError, data: Key.Types.Backup) => void): Request<Key.Types.Backup, AWSError>;
/**
* Stores encrypted key.
*/
backup(callback?: (err: AWSError, data: Key.Types.Backup) => void): Request<Key.Types.Backup, AWSError>;
/**
* Retrieves encrypted key.
*/
restore(params: Key.Types.RestoreRequest, callback?: (err: AWSError, data: Key.Types.Backup) => void): Request<Key.Types.Backup, AWSError>;
/**
* Retrieves encrypted key.
*/
restore(callback?: (err: AWSError, data: Key.Types.Backup) => void): Request<Key.Types.Backup, AWSError>;
/**
* Lists pending binary decryption requests for current account.
*/
listBinaryRequests(params: Key.Types.LoopIdRequest, callback?: (err: AWSError, data: Key.Types.BinaryRequests) => void): Request<Key.Types.BinaryRequests, AWSError>;
/**
* Lists pending binary decryption requests for current account.
*/
listBinaryRequests(callback?: (err: AWSError, data: Key.Types.BinaryRequests) => void): Request<Key.Types.BinaryRequests, AWSError>;
/**
* Shares decrypted binary with requesting account.
*/
shareBinary(params: Key.Types.ShareBinaryRequest, callback?: (err: AWSError, data: Key.Types.BinaryRequest) => void): Request<Key.Types.BinaryRequest, AWSError>;
/**
* Shares decrypted binary with requesting account.
*/
shareBinary(callback?: (err: AWSError, data: Key.Types.BinaryRequest) => void): Request<Key.Types.BinaryRequest, AWSError>;
}
declare namespace Key {
export type Id = string;
export type LoopId = string;
export type AccountId = string;
export type PublicKey = string;
export interface ShareRequest {
id: Id;
encryptedKey: EncryptedKey;
keyHash?: KeyHash;
}
export interface CreateRequest {
loopId: LoopId;
publicKey: PublicKey;
}
export interface Request {
id: Id;
accountId: AccountId;
loopId: LoopId;
publicKey: PublicKey;
encryptedKey?: EncryptedKey;
}
export type Requests = Request[];
export interface GetRequest {
id: Id;
}
export interface LoopIdRequest {
loopId: LoopId;
}
export type EncryptedKey = string;
export type KeyHash = string;
export type PasswordHash = string;
export interface ShouldCreateResponse {
shouldCreate: undefined;
}
export interface BackupRequest {
loopId: LoopId;
encryptedKey: EncryptedKey;
passwordHash?: PasswordHash;
}
export interface RestoreRequest {
loopId: LoopId;
passwordHash?: PasswordHash;
}
export interface Backup {
loopId: LoopId;
accountId?: AccountId;
encryptedKey: EncryptedKey;
}
export type Url = string;
export interface BinaryRequest {
id: Id;
accountId: AccountId;
loopId: LoopId;
encryptedUrl: Url;
decryptedUrl?: Url;
}
export type BinaryRequests = BinaryRequest[];
export type Stream = Buffer|Uint8Array|Blob|string;
export interface ShareBinaryRequest {
body?: Stream;
id: Id;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-02-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Key client.
*/
export import Types = Key;
}
export = Key;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['key'] = {};
Jibo.Key = Service.defineService('key', ['2016-02-01']);
require('../lib/services/key');
Object.defineProperty(apiLoader.services['key'], '2016-02-01', {
get: function get() {
var model = require('../apis/key-2016-02-01.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Key;

View File

@@ -0,0 +1,132 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Log extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Log.Types.ClientConfiguration)
config: Config & Log.Types.ClientConfiguration;
/**
* Uploads a batch of log events to server.
*/
putEvents(params: Log.Types.PutEventsRequest, callback?: (err: AWSError, data: Log.Types.Response) => void): Request<Log.Types.Response, AWSError>;
/**
* Uploads a batch of log events to server.
*/
putEvents(callback?: (err: AWSError, data: Log.Types.Response) => void): Request<Log.Types.Response, AWSError>;
/**
* Gets uploadUrl to upload a RAW robot log file to S3.
*/
putEventsAsync(params: Log.Types.PutEventsAsyncRequest, callback?: (err: AWSError, data: Log.Types.PutEventsAsyncResponse) => void): Request<Log.Types.PutEventsAsyncResponse, AWSError>;
/**
* Gets uploadUrl to upload a RAW robot log file to S3.
*/
putEventsAsync(callback?: (err: AWSError, data: Log.Types.PutEventsAsyncResponse) => void): Request<Log.Types.PutEventsAsyncResponse, AWSError>;
/**
* Generates temporary credentials to upload logs to AWS Kinesis.
*/
newKinesisCredentials(params: Log.Types.NewKinesisCredentialsRequest, callback?: (err: AWSError, data: Log.Types.NewKinesisCredentialsResponse) => void): Request<Log.Types.NewKinesisCredentialsResponse, AWSError>;
/**
* Generates temporary credentials to upload logs to AWS Kinesis.
*/
newKinesisCredentials(callback?: (err: AWSError, data: Log.Types.NewKinesisCredentialsResponse) => void): Request<Log.Types.NewKinesisCredentialsResponse, AWSError>;
/**
* Uploads a binary that will be later associated with several log entries.
*/
putBinary(params: Log.Types.PutBinaryRequest, callback?: (err: AWSError, data: Log.Types.PutBinaryResponse) => void): Request<Log.Types.PutBinaryResponse, AWSError>;
/**
* Uploads a binary that will be later associated with several log entries.
*/
putBinary(callback?: (err: AWSError, data: Log.Types.PutBinaryResponse) => void): Request<Log.Types.PutBinaryResponse, AWSError>;
/**
* Gets uploadUrl to upload a binary that will be later associated with several log entries.
*/
putBinaryAsync(params: Log.Types.PutBinaryAsyncRequest, callback?: (err: AWSError, data: Log.Types.PutBinaryAsyncResponse) => void): Request<Log.Types.PutBinaryAsyncResponse, AWSError>;
/**
* Gets uploadUrl to upload a binary that will be later associated with several log entries.
*/
putBinaryAsync(callback?: (err: AWSError, data: Log.Types.PutBinaryAsyncResponse) => void): Request<Log.Types.PutBinaryAsyncResponse, AWSError>;
}
declare namespace Log {
export type Timestamp = number;
export type Payload = {[key: string]: any};
export type EventMessage = string;
export type Level = "error"|"warn"|"info"|"verbose"|"debug"|"silly"|string;
export type Kind = "LOG"|"HEALTH"|string;
export type Serial = string;
export type ContentEncoding = "gzip"|string;
export interface InputEvent {
created: Timestamp;
payload?: Payload;
message?: EventMessage;
level?: Level;
}
export type InputEvents = InputEvent[];
export type DeviceId = string;
export type TrackingId = string;
export interface PutEventsRequest {
trackingId?: TrackingId;
deviceId?: DeviceId;
events: InputEvents;
}
export type Response = string;
export type Stream = Buffer|Uint8Array|Blob|string;
export interface PutBinaryRequest {
trackingId?: TrackingId;
body?: Stream;
}
export interface PutBinaryResponse {
path?: undefined;
url: undefined;
}
export interface PutEventsAsyncRequest {
kind: Kind;
serial: Serial;
}
export interface PutEventsAsyncResponse {
contentEncoding: ContentEncoding;
uploadUrl: undefined;
}
export interface PutBinaryAsyncRequest {
trackingId?: TrackingId;
}
export interface PutBinaryAsyncResponse {
path?: undefined;
url: undefined;
uploadUrl: undefined;
}
export interface NewKinesisCredentialsRequest {
}
export interface NewKinesisCredentialsResponse {
credentials: StsCredentials;
region: undefined;
streamName: undefined;
}
export interface StsCredentials {
AccessKeyId: undefined;
Expiration: undefined;
SecretAccessKey: undefined;
SessionToken: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-03-09"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Log client.
*/
export import Types = Log;
}
export = Log;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['log'] = {};
Jibo.Log = Service.defineService('log', ['2015-03-09']);
Object.defineProperty(apiLoader.services['log'], '2015-03-09', {
get: function get() {
var model = require('../apis/log-2015-03-09.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Log;

View File

@@ -0,0 +1,55 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class LogAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: LogAdmin.Types.ClientConfiguration)
config: Config & LogAdmin.Types.ClientConfiguration;
/**
* Set verbosity level for robots.
*/
setLevel(params: LogAdmin.Types.SetLevelRequest, callback?: (err: AWSError, data: LogAdmin.Types.CommandResponse) => void): Request<LogAdmin.Types.CommandResponse, AWSError>;
/**
* Set verbosity level for robots.
*/
setLevel(callback?: (err: AWSError, data: LogAdmin.Types.CommandResponse) => void): Request<LogAdmin.Types.CommandResponse, AWSError>;
}
declare namespace LogAdmin {
export interface SetLevelRequest {
friendlyIds: FriendlyIds;
namespaces: Namespaces;
}
export type Namespaces = VerbosityLevel[];
export interface VerbosityLevel {
namespace?: undefined;
level?: Level;
}
export type FriendlyId = string;
export type FriendlyIds = FriendlyId[];
export type Level = "error"|"warn"|"info"|"verbose"|"debug"|"silly"|string;
export interface CommandResponse {
result: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-03-09"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the LogAdmin client.
*/
export import Types = LogAdmin;
}
export = LogAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['logadmin'] = {};
Jibo.LogAdmin = Service.defineService('logadmin', ['2015-03-09']);
Object.defineProperty(apiLoader.services['logadmin'], '2015-03-09', {
get: function get() {
var model = require('../apis/logadmin-2015-03-09.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.LogAdmin;

View File

@@ -0,0 +1,360 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Loop extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Loop.Types.ClientConfiguration)
config: Config & Loop.Types.ClientConfiguration;
/**
* Invites new member to loop.
*/
inviteMember(params: Loop.Types.InviteRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Invites new member to loop.
*/
inviteMember(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Accepts invitation.
*/
acceptInvitation(params: Loop.Types.LoopIdRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Accepts invitation.
*/
acceptInvitation(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Declines invitation.
*/
declineInvitation(params: Loop.Types.LoopIdRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Declines invitation.
*/
declineInvitation(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* List members and their membership status. Doesn't include Crew-only members.
*/
listMembers(params: Loop.Types.ListMembersRequest, callback?: (err: AWSError, data: Loop.Types.MemberList) => void): Request<Loop.Types.MemberList, AWSError>;
/**
* List members and their membership status. Doesn't include Crew-only members.
*/
listMembers(callback?: (err: AWSError, data: Loop.Types.MemberList) => void): Request<Loop.Types.MemberList, AWSError>;
/**
* Updates member.
*/
updateMember(params: Loop.Types.UpdateMemberRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Updates member.
*/
updateMember(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Mark member as removed from the loop.
*/
removeMember(params: Loop.Types.RemoveMemberRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Mark member as removed from the loop.
*/
removeMember(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Lists robots in loops user owns.
*/
listOwnerRobots(params: Loop.Types.AccountIdRequest, callback?: (err: AWSError, data: Loop.Types.RobotIdList) => void): Request<Loop.Types.RobotIdList, AWSError>;
/**
* Lists robots in loops user owns.
*/
listOwnerRobots(callback?: (err: AWSError, data: Loop.Types.RobotIdList) => void): Request<Loop.Types.RobotIdList, AWSError>;
/**
* Removes loop associated with robot. Can only be called by manufacturing account
*/
clearRobot(params: Loop.Types.RobotIdRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Removes loop associated with robot. Can only be called by manufacturing account
*/
clearRobot(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Retrieves robot credentials for specified loop.
*/
getRobot(params: Loop.Types.LoopIdRequest, callback?: (err: AWSError, data: Loop.Types.RobotAccount) => void): Request<Loop.Types.RobotAccount, AWSError>;
/**
* Retrieves robot credentials for specified loop.
*/
getRobot(callback?: (err: AWSError, data: Loop.Types.RobotAccount) => void): Request<Loop.Types.RobotAccount, AWSError>;
/**
* Creates loop.
*/
create(params: Loop.Types.CreateLoopRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Creates loop.
*/
create(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Updates loop.
*/
update(params: Loop.Types.UpdateLoopRequest, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates loop.
*/
update(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Lists loops for current account. You can request one specific loop by specifying it's id.
*/
list(params: Loop.Types.LoopIdRequestOptional, callback?: (err: AWSError, data: Loop.Types.LoopList) => void): Request<Loop.Types.LoopList, AWSError>;
/**
* Lists loops for current account. You can request one specific loop by specifying it's id.
*/
list(callback?: (err: AWSError, data: Loop.Types.LoopList) => void): Request<Loop.Types.LoopList, AWSError>;
/**
* Removes loop.
*/
remove(params: Loop.Types.LoopIdRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Removes loop.
*/
remove(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Sets face and voice enrollment status for a loop member.
*/
setEnrollment(params: Loop.Types.SetEnrollmentRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Sets face and voice enrollment status for a loop member.
*/
setEnrollment(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Finds loop owner id by id of loop member (owner id or member id).
*/
findOwner(params: Loop.Types.AccountIdRequest, callback?: (err: AWSError, data: Loop.Types.AccountId) => void): Request<Loop.Types.AccountId, AWSError>;
/**
* Finds loop owner id by id of loop member (owner id or member id).
*/
findOwner(callback?: (err: AWSError, data: Loop.Types.AccountId) => void): Request<Loop.Types.AccountId, AWSError>;
/**
* Set legal guardian for child member and sends out agreement to sign.
*/
setLegalGuardian(params: Loop.Types.LegalGuardian, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Set legal guardian for child member and sends out agreement to sign.
*/
setLegalGuardian(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates current status for agreement.
*/
updateAgreementStatus(params: Loop.Types.AgreementRequest, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates current status for agreement.
*/
updateAgreementStatus(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates nickname for loop member.
*/
updateNickname(params: Loop.Types.NicknameRequest, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates nickname for loop member.
*/
updateNickname(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates phonetic name for loop member.
*/
updatePhoneticName(params: Loop.Types.PhoneticNameRequest, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Updates phonetic name for loop member.
*/
updatePhoneticName(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Puts loop into suspended mode.
*/
suspendLoop(params: Loop.Types.LoopIdRequest, callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Puts loop into suspended mode.
*/
suspendLoop(callback?: (err: AWSError, data: Loop.Types.CommandResponse) => void): Request<Loop.Types.CommandResponse, AWSError>;
/**
* Adds or updates member photo.
*/
updateMemberPhoto(params: Loop.Types.UpdateMemberPhotoRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Adds or updates member photo.
*/
updateMemberPhoto(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Removes member photo.
*/
removeMemberPhoto(params: Loop.Types.RemoveMemberPhotoRequest, callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
/**
* Removes member photo.
*/
removeMemberPhoto(callback?: (err: AWSError, data: Loop.Types.Loop) => void): Request<Loop.Types.Loop, AWSError>;
}
declare namespace Loop {
export type Timestamp = number;
export type MemberId = string;
export type AccountId = string;
export interface AccountIdRequest {
accountId?: AccountId;
}
export type LoopId = string;
export interface LoopIdRequest {
loopId: LoopId;
}
export interface LoopIdRequestOptional {
loopId?: LoopId;
}
export type RobotId = string;
export interface RobotIdRequest {
robotId: RobotId;
}
export type RobotIdList = RobotId[];
export type Email = string;
export type Gender = "male"|"female"|"other"|string;
export type InvitationStatus = "invited"|"accepted"|"declined"|"removed"|string;
export type InvitationStatusList = InvitationStatus[];
export type InvitationType = "incoming"|"outgoing"|string;
export type InvitationTypeList = InvitationType[];
export interface InviteRequest {
loopId: LoopId;
email?: Email;
firstName?: undefined;
lastName?: undefined;
gender?: Gender;
birthday?: undefined;
asLegalGuardian?: undefined;
isChild?: undefined;
phoneNumber?: undefined;
}
export interface ListMembersRequest {
statusList?: InvitationStatusList;
typeList?: InvitationTypeList;
}
export interface RemoveMemberRequest {
loopId: LoopId;
id: MemberId;
}
export interface UpdateMemberRequest {
loopId: LoopId;
id: MemberId;
email?: Email;
firstName?: undefined;
lastName?: undefined;
gender?: Gender;
birthday?: undefined;
isChild?: undefined;
phoneNumber?: undefined;
}
export interface SetEnrollmentRequest {
loopId: LoopId;
id: MemberId;
face?: undefined;
voice?: undefined;
}
export interface Enrolled {
face?: undefined;
voice?: undefined;
}
export type FacebookToken = string;
export interface MemberAccount {
email?: Email;
firstName?: undefined;
lastName?: undefined;
gender?: Gender;
birthday?: undefined;
photoUrl?: undefined;
facebookAccessToken?: FacebookToken;
isChild?: undefined;
phoneNumber?: undefined;
messagingAllowed?: undefined;
}
export type AgreementId = string;
export interface Member {
id: MemberId;
loopId: LoopId;
accountId?: AccountId;
account?: MemberAccount;
enrolled?: Enrolled;
status: InvitationStatus;
type: InvitationType;
agreementId?: AgreementId;
nickname?: Nickname;
phoneticName?: PhoneticName;
legalGuardianId?: MemberId;
created?: Timestamp;
}
export type MemberList = Member[];
export interface Loop {
id?: LoopId;
name?: undefined;
owner: AccountId;
robot?: AccountId;
robotFriendlyId?: RobotId;
members?: MemberList;
isSuspended?: undefined;
created?: Timestamp;
updated?: Timestamp;
}
export type LoopList = Loop[];
export interface CreateLoopRequest {
robotId: undefined;
name: undefined;
}
export interface UpdateLoopRequest {
loopId: LoopId;
name: undefined;
}
export interface RobotAccount {
accessKeyId: undefined;
secretAccessKey: undefined;
friendlyId: RobotId;
}
export interface CommandResponse {
result: undefined;
}
export interface LegalGuardian {
loopId: LoopId;
childId: MemberId;
parentId: MemberId;
}
export interface AgreementRequest {
agreementId: AgreementId;
}
export type Nickname = string;
export interface NicknameRequest {
loopId: LoopId;
id: MemberId;
nickname?: Nickname;
}
export type PhoneticName = string;
export interface PhoneticNameRequest {
loopId: LoopId;
id: MemberId;
phoneticName?: PhoneticName;
}
export type Stream = Buffer|Uint8Array|Blob|string;
export interface UpdateMemberPhotoRequest {
body?: Stream;
loopId: LoopId;
id: MemberId;
}
export interface RemoveMemberPhotoRequest {
body?: Stream;
loopId: LoopId;
id: MemberId;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-03-24"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Loop client.
*/
export import Types = Loop;
}
export = Loop;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['loop'] = {};
Jibo.Loop = Service.defineService('loop', ['2016-03-24']);
require('../lib/services/loop');
Object.defineProperty(apiLoader.services['loop'], '2016-03-24', {
get: function get() {
var model = require('../apis/loop-2016-03-24.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Loop;

View File

@@ -0,0 +1,108 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Media extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Media.Types.ClientConfiguration)
config: Config & Media.Types.ClientConfiguration;
/**
* Creates new media.
*/
create(params: Media.Types.CreateRequest, callback?: (err: AWSError, data: Media.Types.Media) => void): Request<Media.Types.Media, AWSError>;
/**
* Creates new media.
*/
create(callback?: (err: AWSError, data: Media.Types.Media) => void): Request<Media.Types.Media, AWSError>;
/**
* Lists media.
*/
list(params: Media.Types.ListRequest, callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
/**
* Lists media.
*/
list(callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
/**
* Removes media.
*/
remove(params: Media.Types.PathsRequest, callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
/**
* Removes media.
*/
remove(callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
/**
* Gets media by paths.
*/
get(params: Media.Types.PathsRequest, callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
/**
* Gets media by paths.
*/
get(callback?: (err: AWSError, data: Media.Types.MediaList) => void): Request<Media.Types.MediaList, AWSError>;
}
declare namespace Media {
export type Id = string;
export type AccountId = string;
export type LoopId = string;
export type LoopIds = LoopId[];
export type Stream = Buffer|Uint8Array|Blob|string;
export type Path = string;
export type Paths = Path[];
export type Reference = string;
export type Type = "image"|"photo_booth"|"recording"|"thumb"|"thumb_robot"|"audio"|string;
export type Encrypted = boolean;
export type String = string;
export type Metadata = {[key: string]: String};
export interface CreateRequest {
body?: Stream;
loopId: LoopId;
path?: Path;
type?: Type;
reference?: Reference;
isEncrypted?: Encrypted;
meta?: Metadata;
}
export type Timestamp = number;
export interface ListRequest {
loopIds: LoopIds;
after?: Timestamp;
before?: Timestamp;
}
export type Url = string;
export interface Media {
path: Path;
type?: Type;
reference?: Reference;
accountId?: AccountId;
loopId?: LoopId;
url?: Url;
isEncrypted?: Encrypted;
isDeleted?: undefined;
meta?: Metadata;
created: Timestamp;
}
export type MediaList = Media[];
export interface PathsRequest {
paths: Paths;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-07-25"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Media client.
*/
export import Types = Media;
}
export = Media;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['media'] = {};
Jibo.Media = Service.defineService('media', ['2016-07-25']);
Object.defineProperty(apiLoader.services['media'], '2016-07-25', {
get: function get() {
var model = require('../apis/media-2016-07-25.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Media;

View File

@@ -0,0 +1,64 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class MediaAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: MediaAdmin.Types.ClientConfiguration)
config: Config & MediaAdmin.Types.ClientConfiguration;
/**
* Removes all media from loop. Requires admin or manufacturer credentials
*/
removeAllMediaFromLoop(params: MediaAdmin.Types.RemoveAllLoopMediaRequest, callback?: (err: AWSError, data: MediaAdmin.Types.MediaList) => void): Request<MediaAdmin.Types.MediaList, AWSError>;
/**
* Removes all media from loop. Requires admin or manufacturer credentials
*/
removeAllMediaFromLoop(callback?: (err: AWSError, data: MediaAdmin.Types.MediaList) => void): Request<MediaAdmin.Types.MediaList, AWSError>;
}
declare namespace MediaAdmin {
export type Id = string;
export type AccountId = string;
export type LoopId = string;
export type Path = string;
export type Reference = string;
export type Type = "image"|"photo_booth"|"recording"|"thumb"|"thumb_robot"|"audio"|string;
export type Encrypted = boolean;
export type Timestamp = number;
export type Url = string;
export interface Media {
path: Path;
type?: Type;
reference?: Reference;
accountId?: AccountId;
loopId?: LoopId;
url?: Url;
isEncrypted?: Encrypted;
isDeleted?: undefined;
created: Timestamp;
}
export type MediaList = Media[];
export interface RemoveAllLoopMediaRequest {
loopId: LoopId;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-07-25"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the MediaAdmin client.
*/
export import Types = MediaAdmin;
}
export = MediaAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['mediaadmin'] = {};
Jibo.MediaAdmin = Service.defineService('mediaadmin', ['2016-07-25']);
Object.defineProperty(apiLoader.services['mediaadmin'], '2016-07-25', {
get: function get() {
var model = require('../apis/mediaadmin-2016-07-25.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.MediaAdmin;

View File

@@ -0,0 +1,69 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class NLP extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: NLP.Types.ClientConfiguration)
config: Config & NLP.Types.ClientConfiguration;
/**
* Tags parts of speech.
*/
partOfSpeech(params: NLP.Types.QuestionRequest, callback?: (err: AWSError, data: NLP.Types.PartOfSpeechResponse) => void): Request<NLP.Types.PartOfSpeechResponse, AWSError>;
/**
* Tags parts of speech.
*/
partOfSpeech(callback?: (err: AWSError, data: NLP.Types.PartOfSpeechResponse) => void): Request<NLP.Types.PartOfSpeechResponse, AWSError>;
/**
*
*/
namedEntityRecognition(params: NLP.Types.QuestionRequest, callback?: (err: AWSError, data: NLP.Types.NamedEntitiesResponse) => void): Request<NLP.Types.NamedEntitiesResponse, AWSError>;
/**
*
*/
namedEntityRecognition(callback?: (err: AWSError, data: NLP.Types.NamedEntitiesResponse) => void): Request<NLP.Types.NamedEntitiesResponse, AWSError>;
}
declare namespace NLP {
export interface QuestionRequest {
Input: undefined;
}
export interface PartOfSpeech {
word?: undefined;
pos?: undefined;
}
export type PartsOfSpeech = PartOfSpeech[];
export interface PartOfSpeechResponse {
partsOfSpeech: PartsOfSpeech;
}
export interface NamedEntity {
start?: undefined;
end?: undefined;
label?: undefined;
text?: undefined;
}
export type NamedEntities = NamedEntity[];
export interface NamedEntitiesResponse {
namedEntities: NamedEntities;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-10-31"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the NLP client.
*/
export import Types = NLP;
}
export = NLP;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['nlp'] = {};
Jibo.NLP = Service.defineService('nlp', ['2016-10-31']);
Object.defineProperty(apiLoader.services['nlp'], '2016-10-31', {
get: function get() {
var model = require('../apis/nlp-2016-10-31.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.NLP;

View File

@@ -0,0 +1,64 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Notification extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Notification.Types.ClientConfiguration)
config: Config & Notification.Types.ClientConfiguration;
/**
* Creates New Robot Token used to establish WebSocket connection
*/
newRobotToken(params: Notification.Types.RobotTokenRequest, callback?: (err: AWSError, data: Notification.Types.Token) => void): Request<Notification.Types.Token, AWSError>;
/**
* Creates New Robot Token used to establish WebSocket connection
*/
newRobotToken(callback?: (err: AWSError, data: Notification.Types.Token) => void): Request<Notification.Types.Token, AWSError>;
/**
* Gets connected status for specified account.
*/
getStatus(params: Notification.Types.GetStatusRequest, callback?: (err: AWSError, data: Notification.Types.GetStatusResponse) => void): Request<Notification.Types.GetStatusResponse, AWSError>;
/**
* Gets connected status for specified account.
*/
getStatus(callback?: (err: AWSError, data: Notification.Types.GetStatusResponse) => void): Request<Notification.Types.GetStatusResponse, AWSError>;
}
declare namespace Notification {
export interface Id {
id: undefined;
}
export type DeviceId = string;
export interface RobotTokenRequest {
deviceId?: DeviceId;
}
export interface Token {
token: undefined;
}
export interface GetStatusRequest {
accountId: undefined;
}
export interface GetStatusResponse {
connected: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2015-05-05"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Notification client.
*/
export import Types = Notification;
}
export = Notification;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['notification'] = {};
Jibo.Notification = Service.defineService('notification', ['2015-05-05']);
require('../lib/services/notification');
Object.defineProperty(apiLoader.services['notification'], '2015-05-05', {
get: function get() {
var model = require('../apis/notification-2015-05-05.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Notification;

View File

@@ -0,0 +1,116 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class OauthClientsAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: OauthClientsAdmin.Types.ClientConfiguration)
config: Config & OauthClientsAdmin.Types.ClientConfiguration;
/**
* Get full list of OAuth clients.
*/
listClients(callback?: (err: AWSError, data: OauthClientsAdmin.Types.ClientsList) => void): Request<OauthClientsAdmin.Types.ClientsList, AWSError>;
/**
* Create new OAuth client.
*/
create(params: OauthClientsAdmin.Types.CreateRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
/**
* Create new OAuth client.
*/
create(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
/**
* Update OAuth client by id.
*/
update(params: OauthClientsAdmin.Types.UpdateRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
/**
* Update OAuth client by id.
*/
update(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
/**
* Remove OAuth client by id.
*/
remove(params: OauthClientsAdmin.Types.RemoveRequest, callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
/**
* Remove OAuth client by id.
*/
remove(callback?: (err: AWSError, data: OauthClientsAdmin.Types.Client) => void): Request<OauthClientsAdmin.Types.Client, AWSError>;
}
declare namespace OauthClientsAdmin {
export type Id = string;
export type Command = string;
export type Stream = string;
export interface Client {
id: Id;
aco?: ACO;
channelKey?: undefined;
clientId: undefined;
pkce?: undefined;
redirectUri?: undefined;
refresh?: undefined;
responseType?: undefined;
scope: undefined;
secret?: undefined;
}
export type ClientsList = Client[];
export interface ACO {
commandSet?: CommandSet;
streamSet?: StreamSet;
appConfig?: AppConfig;
keepAliveTimeout?: undefined;
recoveryTimeout?: undefined;
}
export type CommandSet = Command[];
export type StreamSet = Stream[];
export interface AppConfig {
speechConfig?: SpeechConfig;
}
export interface SpeechConfig {
maxNoSpeechTimeout?: undefined;
}
export interface CreateRequest {
aco?: ACO;
channelKey?: undefined;
clientId: undefined;
pkce?: undefined;
redirectUri: undefined;
refresh?: undefined;
responseType: undefined;
scope: undefined;
secret: undefined;
}
export interface UpdateRequest {
aco?: ACO;
channelKey?: undefined;
clientId?: undefined;
pkce?: undefined;
redirectUri?: undefined;
refresh?: undefined;
responseType?: undefined;
scope?: undefined;
secret?: undefined;
}
export interface RemoveRequest {
id: Id;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-11-08"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the OauthClientsAdmin client.
*/
export import Types = OauthClientsAdmin;
}
export = OauthClientsAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['oauthclientsadmin'] = {};
Jibo.OauthClientsAdmin = Service.defineService('oauthclientsadmin', ['2017-11-08']);
Object.defineProperty(apiLoader.services['oauthclientsadmin'], '2017-11-08', {
get: function get() {
var model = require('../apis/oauthclientsadmin-2017-11-08.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.OauthClientsAdmin;

View File

@@ -0,0 +1,95 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class OOBE extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: OOBE.Types.ClientConfiguration)
config: Config & OOBE.Types.ClientConfiguration;
/**
* Generates temporary setup token to be used by robot.
*/
prepareRobot(params: OOBE.Types.PrepareRobotRequest, callback?: (err: AWSError, data: OOBE.Types.TokenContainer) => void): Request<OOBE.Types.TokenContainer, AWSError>;
/**
* Generates temporary setup token to be used by robot.
*/
prepareRobot(callback?: (err: AWSError, data: OOBE.Types.TokenContainer) => void): Request<OOBE.Types.TokenContainer, AWSError>;
/**
* Retrieves status of robot setup.
*/
getStatus(params: OOBE.Types.TokenContainer, callback?: (err: AWSError, data: OOBE.Types.StatusContainer) => void): Request<OOBE.Types.StatusContainer, AWSError>;
/**
* Retrieves status of robot setup.
*/
getStatus(callback?: (err: AWSError, data: OOBE.Types.StatusContainer) => void): Request<OOBE.Types.StatusContainer, AWSError>;
/**
* Setups robot and retrieves credentials setup token.
*/
setupRobot(params: OOBE.Types.SetupRobotRequest, callback?: (err: AWSError, data: OOBE.Types.RobotCredentials) => void): Request<OOBE.Types.RobotCredentials, AWSError>;
/**
* Setups robot and retrieves credentials setup token.
*/
setupRobot(callback?: (err: AWSError, data: OOBE.Types.RobotCredentials) => void): Request<OOBE.Types.RobotCredentials, AWSError>;
/**
* Reconnects robot to network.
*/
reconnectRobot(params: OOBE.Types.ReconnectRobotRequest, callback?: (err: AWSError, data: OOBE.Types.CommandResponse) => void): Request<OOBE.Types.CommandResponse, AWSError>;
/**
* Reconnects robot to network.
*/
reconnectRobot(callback?: (err: AWSError, data: OOBE.Types.CommandResponse) => void): Request<OOBE.Types.CommandResponse, AWSError>;
}
declare namespace OOBE {
export type RobotId = string;
export type LoopId = string;
export interface SetupRobotRequest {
token: AccessToken;
id: RobotId;
}
export interface PrepareRobotRequest {
loopId?: LoopId;
}
export interface ReconnectRobotRequest {
token: AccessToken;
id?: RobotId;
}
export interface RobotCredentials {
accessKeyId: undefined;
secretAccessKey: undefined;
serviceMode?: undefined;
}
export type Timestamp = number;
export type AccessToken = string;
export interface TokenContainer {
token: AccessToken;
expires?: Timestamp;
}
export type Complete = boolean;
export interface StatusContainer {
complete: Complete;
}
export interface CommandResponse {
result: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-10-26"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the OOBE client.
*/
export import Types = OOBE;
}
export = OOBE;

View File

@@ -0,0 +1,18 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['oobe'] = {};
Jibo.OOBE = Service.defineService('oobe', ['2016-10-26']);
require('../lib/services/oobe');
Object.defineProperty(apiLoader.services['oobe'], '2016-10-26', {
get: function get() {
var model = require('../apis/oobe-2016-10-26.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.OOBE;

View File

@@ -0,0 +1,42 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class OOBEAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: OOBEAdmin.Types.ClientConfiguration)
config: Config & OOBEAdmin.Types.ClientConfiguration;
/**
* Generates temporary setup token to be used by service robot.
*/
getServiceToken(callback?: (err: AWSError, data: OOBEAdmin.Types.TokenContainer) => void): Request<OOBEAdmin.Types.TokenContainer, AWSError>;
}
declare namespace OOBEAdmin {
export type Timestamp = number;
export type AccessToken = string;
export interface TokenContainer {
token: AccessToken;
expires?: Timestamp;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-10-26"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the OOBEAdmin client.
*/
export import Types = OOBEAdmin;
}
export = OOBEAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['oobeadmin'] = {};
Jibo.OOBEAdmin = Service.defineService('oobeadmin', ['2016-10-26']);
Object.defineProperty(apiLoader.services['oobeadmin'], '2016-10-26', {
get: function get() {
var model = require('../apis/oobeadmin-2016-10-26.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.OOBEAdmin;

View File

@@ -0,0 +1,131 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Person extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Person.Types.ClientConfiguration)
config: Config & Person.Types.ClientConfiguration;
/**
* Lists questions.
*/
list(params: Person.Types.ListRequest, callback?: (err: AWSError, data: Person.Types.ListResponse) => void): Request<Person.Types.ListResponse, AWSError>;
/**
* Lists questions.
*/
list(callback?: (err: AWSError, data: Person.Types.ListResponse) => void): Request<Person.Types.ListResponse, AWSError>;
/**
* Logs answer.
*/
answer(params: Person.Types.AnswerObject, callback?: (err: AWSError, data: Person.Types.AnswerObject) => void): Request<Person.Types.AnswerObject, AWSError>;
/**
* Logs answer.
*/
answer(callback?: (err: AWSError, data: Person.Types.AnswerObject) => void): Request<Person.Types.AnswerObject, AWSError>;
/**
* Enables holidays in the loop
*/
enableHolidays(params: Person.Types.HolidayIdsRequest, callback?: (err: AWSError, data: Person.Types.EnableDisableResult) => void): Request<Person.Types.EnableDisableResult, AWSError>;
/**
* Enables holidays in the loop
*/
enableHolidays(callback?: (err: AWSError, data: Person.Types.EnableDisableResult) => void): Request<Person.Types.EnableDisableResult, AWSError>;
/**
* Lists holidays for the loop
*/
listHolidays(params: Person.Types.ListHolidaysRequest, callback?: (err: AWSError, data: Person.Types.Holidays) => void): Request<Person.Types.Holidays, AWSError>;
/**
* Lists holidays for the loop
*/
listHolidays(callback?: (err: AWSError, data: Person.Types.Holidays) => void): Request<Person.Types.Holidays, AWSError>;
/**
* Disables holidays in the loop
*/
disableHolidays(params: Person.Types.HolidayIdsRequest, callback?: (err: AWSError, data: Person.Types.EnableDisableResult) => void): Request<Person.Types.EnableDisableResult, AWSError>;
/**
* Disables holidays in the loop
*/
disableHolidays(callback?: (err: AWSError, data: Person.Types.EnableDisableResult) => void): Request<Person.Types.EnableDisableResult, AWSError>;
}
declare namespace Person {
export type MemberId = string;
export type LoopId = string;
export type Key = string;
export type OptionKey = string;
export type Image = string;
export type Question = string;
export type Answer = string;
export type Category = "app"|string;
export type Timestamp = number;
export interface ListRequest {
category: Category;
}
export interface OptionObject {
key: OptionKey;
answer?: Answer;
image?: Image;
}
export type OptionsList = OptionObject[];
export interface QuestionObject {
key: Key;
question: Question;
options?: OptionsList;
}
export type ListResponse = QuestionObject[];
export interface AnswerObject {
key: Key;
answer: Answer;
}
export type HolidayId = string;
export type HolidayEventId = string;
export type HolidayIds = HolidayId[];
export type HolidayName = string;
export type HolidayCategory = string;
export type HolidayDate = string;
export type IsEnabled = boolean;
export interface Holiday {
id: HolidayId;
eventId?: HolidayEventId;
name: HolidayName;
category: HolidayCategory;
subcategory?: HolidayCategory;
loopId: LoopId;
memberId?: MemberId;
isEnabled?: IsEnabled;
date?: HolidayDate;
endDate?: HolidayDate;
created?: Timestamp;
}
export type Holidays = Holiday[];
export interface HolidayIdsRequest {
ids: HolidayIds;
loopId: LoopId;
}
export interface ListHolidaysRequest {
loopId: LoopId;
}
export interface EnableDisableResult {
result: undefined;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-08-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Person client.
*/
export import Types = Person;
}
export = Person;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['person'] = {};
Jibo.Person = Service.defineService('person', ['2016-08-01']);
Object.defineProperty(apiLoader.services['person'], '2016-08-01', {
get: function get() {
var model = require('../apis/person-2016-08-01.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Person;

View File

@@ -0,0 +1,60 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Push extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Push.Types.ClientConfiguration)
config: Config & Push.Types.ClientConfiguration;
/**
* Adds device to account.
*/
createDevice(params: Push.Types.Device, callback?: (err: AWSError, data: Push.Types.Devices) => void): Request<Push.Types.Devices, AWSError>;
/**
* Adds device to account.
*/
createDevice(callback?: (err: AWSError, data: Push.Types.Devices) => void): Request<Push.Types.Devices, AWSError>;
/**
* Removes device from account.
*/
removeDevice(params: Push.Types.RemoveDeviceRequest, callback?: (err: AWSError, data: Push.Types.Devices) => void): Request<Push.Types.Devices, AWSError>;
/**
* Removes device from account.
*/
removeDevice(callback?: (err: AWSError, data: Push.Types.Devices) => void): Request<Push.Types.Devices, AWSError>;
}
declare namespace Push {
export type AccountId = string;
export type Name = string;
export interface RemoveDeviceRequest {
name: Name;
}
export type DeviceType = "ios"|"android"|string;
export interface Device {
name: Name;
pushToken: undefined;
type: DeviceType;
}
export type Devices = Device[];
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-07-29"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Push client.
*/
export import Types = Push;
}
export = Push;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['push'] = {};
Jibo.Push = Service.defineService('push', ['2016-07-29']);
Object.defineProperty(apiLoader.services['push'], '2016-07-29', {
get: function get() {
var model = require('../apis/push-2016-07-29.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Push;

View File

@@ -0,0 +1,123 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Robot extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Robot.Types.ClientConfiguration)
config: Config & Robot.Types.ClientConfiguration;
/**
* Gets friendly deviceIds for later robots creation.
*/
getFriendlyIds(params: Robot.Types.FriendlyIdsRequest, callback?: (err: AWSError, data: Robot.Types.IdPairs) => void): Request<Robot.Types.IdPairs, AWSError>;
/**
* Gets friendly deviceIds for later robots creation.
*/
getFriendlyIds(callback?: (err: AWSError, data: Robot.Types.IdPairs) => void): Request<Robot.Types.IdPairs, AWSError>;
/**
* Removes robot.
*/
removeRobot(params: Robot.Types.IdRequest, callback?: (err: AWSError, data: Robot.Types.CommandResponse) => void): Request<Robot.Types.CommandResponse, AWSError>;
/**
* Removes robot.
*/
removeRobot(callback?: (err: AWSError, data: Robot.Types.CommandResponse) => void): Request<Robot.Types.CommandResponse, AWSError>;
/**
* Updates robot. Can also be called by robot owner. Proposed account-defined properties are: connectedAt, timeZone.
*/
updateRobot(params: Robot.Types.UpdateRequest, callback?: (err: AWSError, data: Robot.Types.CommandResponse) => void): Request<Robot.Types.CommandResponse, AWSError>;
/**
* Updates robot. Can also be called by robot owner. Proposed account-defined properties are: connectedAt, timeZone.
*/
updateRobot(callback?: (err: AWSError, data: Robot.Types.CommandResponse) => void): Request<Robot.Types.CommandResponse, AWSError>;
/**
* Gets robot entity. If provided with serial number, it will validate it.
*/
getRobot(params: Robot.Types.IdRequest, callback?: (err: AWSError, data: Robot.Types.Robot) => void): Request<Robot.Types.Robot, AWSError>;
/**
* Gets robot entity. If provided with serial number, it will validate it.
*/
getRobot(callback?: (err: AWSError, data: Robot.Types.Robot) => void): Request<Robot.Types.Robot, AWSError>;
/**
* Get list of robot historical events. If provided with serial number, it will validate it.
*/
getRobotHistory(params: Robot.Types.IdRequest, callback?: (err: AWSError, data: Robot.Types.Events) => void): Request<Robot.Types.Events, AWSError>;
/**
* Get list of robot historical events. If provided with serial number, it will validate it.
*/
getRobotHistory(callback?: (err: AWSError, data: Robot.Types.Events) => void): Request<Robot.Types.Events, AWSError>;
/**
* Gets calibration data for robot by its id.
*/
getCalibrationData(params: Robot.Types.IdRequest, callback?: (err: AWSError, data: Robot.Types.CalibrationResponse) => void): Request<Robot.Types.CalibrationResponse, AWSError>;
/**
* Gets calibration data for robot by its id.
*/
getCalibrationData(callback?: (err: AWSError, data: Robot.Types.CalibrationResponse) => void): Request<Robot.Types.CalibrationResponse, AWSError>;
}
declare namespace Robot {
export type Id = string;
export type SerialNumber = string;
export interface IdPair {
id: Id;
}
export type IdPairs = IdPair[];
export type Name = string;
export type Payload = {[key: string]: any};
export type CalibrationPayload = {[key: string]: any};
export interface IdRequest {
id: Id;
serialNumber?: SerialNumber;
}
export type Timestamp = number;
export interface CommandResponse {
result: undefined;
}
export interface UpdateRequest {
id: Id;
payload: Payload;
}
export interface Robot {
id: Id;
payload: Payload;
calibrationPayload?: CalibrationPayload;
updated?: Timestamp;
created?: Timestamp;
}
export interface Event {
id: Id;
name: Name;
payload: Payload;
created?: Timestamp;
}
export type Events = Event[];
export type Count = number;
export interface FriendlyIdsRequest {
count: Count;
}
export interface CalibrationResponse {
id: Id;
calibrationPayload: CalibrationPayload;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-02-25"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Robot client.
*/
export import Types = Robot;
}
export = Robot;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['robot'] = {};
Jibo.Robot = Service.defineService('robot', ['2016-02-25']);
Object.defineProperty(apiLoader.services['robot'], '2016-02-25', {
get: function get() {
var model = require('../apis/robot-2016-02-25.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Robot;

View File

@@ -0,0 +1,76 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class RobotAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: RobotAdmin.Types.ClientConfiguration)
config: Config & RobotAdmin.Types.ClientConfiguration;
/**
* Creates new robot. Can only be called by manufacturing account
*/
createRobot(params: RobotAdmin.Types.CreateRequest, callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
/**
* Creates new robot. Can only be called by manufacturing account
*/
createRobot(callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
/**
* Creates new robots. Can only be called by manufacturing account
*/
createRobotBatch(params: RobotAdmin.Types.CreateRequests, callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
/**
* Creates new robots. Can only be called by manufacturing account
*/
createRobotBatch(callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
/**
* Calibrates robot. Can only be called by manufacturing account
*/
calibrateRobot(params: RobotAdmin.Types.CalibrateRequest, callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
/**
* Calibrates robot. Can only be called by manufacturing account
*/
calibrateRobot(callback?: (err: AWSError, data: RobotAdmin.Types.CommandResponse) => void): Request<RobotAdmin.Types.CommandResponse, AWSError>;
}
declare namespace RobotAdmin {
export type Id = string;
export type SerialNumber = string;
export type Payload = {[key: string]: any};
export type CalibrationPayload = {[key: string]: any};
export interface IdRequest {
id: Id;
serialNumber?: SerialNumber;
}
export interface CommandResponse {
result: undefined;
}
export interface CreateRequest {
id: Id;
payload: Payload;
}
export type CreateRequests = CreateRequest[];
export interface CalibrateRequest {
id: Id;
calibrationPayload: CalibrationPayload;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-02-25"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the RobotAdmin client.
*/
export import Types = RobotAdmin;
}
export = RobotAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['robotadmin'] = {};
Jibo.RobotAdmin = Service.defineService('robotadmin', ['2016-02-25']);
Object.defineProperty(apiLoader.services['robotadmin'], '2016-02-25', {
get: function get() {
var model = require('../apis/robotadmin-2016-02-25.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.RobotAdmin;

View File

@@ -0,0 +1,96 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class ROM extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: ROM.Types.ClientConfiguration)
config: Config & ROM.Types.ClientConfiguration;
/**
* Create new certificate pair. To be called by loop owner.
*/
create(params: ROM.Types.CreateRequest, callback?: (err: AWSError, data: ROM.Types.CreateResponse) => void): Request<ROM.Types.CreateResponse, AWSError>;
/**
* Create new certificate pair. To be called by loop owner.
*/
create(callback?: (err: AWSError, data: ROM.Types.CreateResponse) => void): Request<ROM.Types.CreateResponse, AWSError>;
/**
* Retrieves client certificate. To be called by loop owner.
*/
setupClient(params: ROM.Types.ClientRequest, callback?: (err: AWSError, data: ROM.Types.ClientResponse) => void): Request<ROM.Types.ClientResponse, AWSError>;
/**
* Retrieves client certificate. To be called by loop owner.
*/
setupClient(callback?: (err: AWSError, data: ROM.Types.ClientResponse) => void): Request<ROM.Types.ClientResponse, AWSError>;
/**
* Retrieves server certificate. To be called by robot.
*/
setupServer(params: ROM.Types.ServerRequest, callback?: (err: AWSError, data: ROM.Types.ServerResponse) => void): Request<ROM.Types.ServerResponse, AWSError>;
/**
* Retrieves server certificate. To be called by robot.
*/
setupServer(callback?: (err: AWSError, data: ROM.Types.ServerResponse) => void): Request<ROM.Types.ServerResponse, AWSError>;
}
declare namespace ROM {
export type FriendlyId = string;
export type Cert = string;
export type Private = string;
export type Public = string;
export type ClientFingerprint = string;
export type ServerFingerprint = string;
export type IpAddress = string;
export interface Payload {
ipAddress: IpAddress;
}
export type P12 = string;
export type Timestamp = number;
export interface CreateRequest {
friendlyId: FriendlyId;
}
export interface CreateResponse {
created: Timestamp;
}
export interface ClientRequest {
friendlyId: FriendlyId;
}
export interface ClientResponse {
cert: Cert;
public: Public;
private: Private;
p12?: P12;
fingerprint: ServerFingerprint;
payload: Payload;
created: Timestamp;
}
export interface ServerRequest {
ipAddress: IpAddress;
}
export interface ServerResponse {
cert: Cert;
public: Public;
private: Private;
fingerprint: ClientFingerprint;
created: Timestamp;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-10-11"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the ROM client.
*/
export import Types = ROM;
}
export = ROM;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['rom'] = {};
Jibo.ROM = Service.defineService('rom', ['2017-10-11']);
Object.defineProperty(apiLoader.services['rom'], '2017-10-11', {
get: function get() {
var model = require('../apis/rom-2017-10-11.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.ROM;

View File

@@ -0,0 +1,115 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Update extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Update.Types.ClientConfiguration)
config: Config & Update.Types.ClientConfiguration;
/**
* Lists all updates.
*/
listUpdates(params: Update.Types.ListRequest, callback?: (err: AWSError, data: Update.Types.UpdateList) => void): Request<Update.Types.UpdateList, AWSError>;
/**
* Lists all updates.
*/
listUpdates(callback?: (err: AWSError, data: Update.Types.UpdateList) => void): Request<Update.Types.UpdateList, AWSError>;
/**
* Lists updates from specified version.
*/
listUpdatesFrom(params: Update.Types.FromRequest, callback?: (err: AWSError, data: Update.Types.UpdateList) => void): Request<Update.Types.UpdateList, AWSError>;
/**
* Lists updates from specified version.
*/
listUpdatesFrom(callback?: (err: AWSError, data: Update.Types.UpdateList) => void): Request<Update.Types.UpdateList, AWSError>;
/**
* Gets optimal update from specified version.
*/
getUpdateFrom(params: Update.Types.FromRequest, callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
/**
* Gets optimal update from specified version.
*/
getUpdateFrom(callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
/**
* Creates new update. Can only be called by administrator
*/
createUpdate(params: Update.Types.UpdateRequest, callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
/**
* Creates new update. Can only be called by administrator
*/
createUpdate(callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
/**
* Removes update. Can only be called by creator (administrator)
*/
removeUpdate(params: Update.Types.Id, callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
/**
* Removes update. Can only be called by creator (administrator)
*/
removeUpdate(callback?: (err: AWSError, data: Update.Types.Update) => void): Request<Update.Types.Update, AWSError>;
}
declare namespace Update {
export type Stream = Buffer|Uint8Array|Blob|string;
export interface Id {
id: undefined;
}
export type Subsystem = string;
export type Filter = string;
export type String = string;
export type Dependencies = {[key: string]: String};
export type AccountId = string;
export type Timestamp = number;
export interface FromRequest {
fromVersion: undefined;
subsystem?: Subsystem;
filter?: Filter;
}
export interface ListRequest {
subsystem?: Subsystem;
filter?: Filter;
}
export interface UpdateRequest {
fromVersion: undefined;
toVersion: undefined;
changes: undefined;
body?: Stream;
subsystem?: Subsystem;
filter?: Filter;
dependencies?: Dependencies;
}
export interface Update {
_id: undefined;
created: Timestamp;
accountId: AccountId;
fromVersion: undefined;
toVersion: undefined;
changes: undefined;
url: undefined;
shaHash: undefined;
length?: undefined;
subsystem: Subsystem;
filter?: Filter;
dependencies?: Dependencies;
}
export type UpdateList = Update[];
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-03-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Update client.
*/
export import Types = Update;
}
export = Update;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['update'] = {};
Jibo.Update = Service.defineService('update', ['2016-03-01']);
Object.defineProperty(apiLoader.services['update'], '2016-03-01', {
get: function get() {
var model = require('../apis/update-2016-03-01.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.Update;

View File

@@ -0,0 +1,57 @@
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class UpdateAdmin extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: UpdateAdmin.Types.ClientConfiguration)
config: Config & UpdateAdmin.Types.ClientConfiguration;
/**
* Lists all available unique filters for updates.
*/
listUniqueFilters(callback?: (err: AWSError, data: UpdateAdmin.Types.UniqueFilterList) => void): Request<UpdateAdmin.Types.UniqueFilterList, AWSError>;
/**
* Creates mapping of serial to target.
*/
setTarget(params: UpdateAdmin.Types.SerialTarget, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Creates mapping of serial to target.
*/
setTarget(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
/**
* Lists mappings of serials to targets.
*/
listTargets(callback?: (err: AWSError, data: UpdateAdmin.Types.SerialTargetList) => void): Request<UpdateAdmin.Types.SerialTargetList, AWSError>;
}
declare namespace UpdateAdmin {
export type Filter = string;
export type UniqueFilterList = Filter[];
export type Serial = string;
export type Target = string;
export type SerialTargetList = SerialTarget[];
export interface SerialTarget {
serial: Serial;
target?: Target;
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2016-03-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the UpdateAdmin client.
*/
export import Types = UpdateAdmin;
}
export = UpdateAdmin;

View File

@@ -0,0 +1,17 @@
require('../lib/node_loader');
var Jibo = require('../lib/core');
var Service = require('../lib/service');
var apiLoader = require('../lib/api_loader');
apiLoader.services['updateadmin'] = {};
Jibo.UpdateAdmin = Service.defineService('updateadmin', ['2016-03-01']);
Object.defineProperty(apiLoader.services['updateadmin'], '2016-03-01', {
get: function get() {
var model = require('../apis/updateadmin-2016-03-01.min.json');
return model;
},
enumerable: true,
configurable: true
});
module.exports = Jibo.UpdateAdmin;