codecombat/app/schemas/subscriptions/app.coffee

46 lines
1.1 KiB
CoffeeScript
Raw Normal View History

module.exports =
2014-06-30 22:16:26 -04:00
'application: idle-changed':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'fbapi-loaded':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'logging-in-with-facebook':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'facebook-logged-in':
title: 'Facebook logged in'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when you successfully logged in with facebook'
type: 'object'
properties:
response:
2014-06-30 22:16:26 -04:00
type: 'object'
2014-05-21 15:35:37 -04:00
properties:
2014-06-30 22:16:26 -04:00
status: {type: 'string'}
2014-05-21 15:35:37 -04:00
authResponse:
2014-06-30 22:16:26 -04:00
type: 'object'
2014-05-21 15:35:37 -04:00
properties:
2014-06-30 22:16:26 -04:00
accessToken: {type: 'string'}
expiresIn: {type: 'number'}
signedRequest: {type: 'string'}
userID: {type: 'string'}
required: ['response']
'facebook-logged-out': {}
'linkedin-loaded': {}
'gapi-loaded':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'logging-in-with-gplus':
{} # TODO schema
2014-06-30 22:16:26 -04:00
'gplus-logged-in':
title: 'G+ logged in'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when you successfully logged in with G+'
type: 'object'
required: ['access_token']