@kkbox/kkbox-js-sdk
Version:
KKBOX Open API developer SDK for JavaScript. Use it to easily access KKBOX open API to get various metadata about KKBOX's tracks, albums, artists, playlists and stations.
2,008 lines (2,007 loc) • 51.6 kB
JSON
{
"type": "File",
"start": 0,
"end": 736,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 736,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 59,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 59
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 28
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 28
},
"identifierName": "ClientCredentialsFlow"
},
"name": "ClientCredentialsFlow"
}
}
],
"source": {
"type": "StringLiteral",
"start": 34,
"end": 59,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 59
}
},
"extra": {
"rawValue": "./ClientCredentialsFlow",
"raw": "'./ClientCredentialsFlow'"
},
"value": "./ClientCredentialsFlow"
}
},
{
"type": "ImportDeclaration",
"start": 60,
"end": 101,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
},
"identifierName": "TokenFetcher"
},
"name": "TokenFetcher"
}
}
],
"source": {
"type": "StringLiteral",
"start": 85,
"end": 101,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 41
}
},
"extra": {
"rawValue": "./TokenFetcher",
"raw": "'./TokenFetcher'"
},
"value": "./TokenFetcher",
"leadingComments": null,
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ",
"start": 103,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 170,
"end": 736,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 26,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 185,
"end": 736,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 26,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 191,
"end": 195,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 25
},
"identifierName": "Auth"
},
"name": "Auth",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 196,
"end": 736,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 26,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 414,
"end": 734,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 414,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 426,
"end": 435,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 25
},
"identifierName": "client_id"
},
"name": "client_id"
},
{
"type": "Identifier",
"start": 437,
"end": 450,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 40
},
"identifierName": "client_secret"
},
"name": "client_secret"
}
],
"body": {
"type": "BlockStatement",
"start": 452,
"end": 734,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 518,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 70
}
},
"expression": {
"type": "AssignmentExpression",
"start": 518,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 70
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 518,
"end": 535,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 518,
"end": 522,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 523,
"end": 535,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 25
},
"identifierName": "tokenFetcher"
},
"name": "tokenFetcher"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 538,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 28
},
"end": {
"line": 19,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 542,
"end": 554,
"loc": {
"start": {
"line": 19,
"column": 32
},
"end": {
"line": 19,
"column": 44
},
"identifierName": "TokenFetcher"
},
"name": "TokenFetcher"
},
"arguments": [
{
"type": "Identifier",
"start": 555,
"end": 564,
"loc": {
"start": {
"line": 19,
"column": 45
},
"end": {
"line": 19,
"column": 54
},
"identifierName": "client_id"
},
"name": "client_id"
},
{
"type": "Identifier",
"start": 566,
"end": 579,
"loc": {
"start": {
"line": 19,
"column": 56
},
"end": {
"line": 19,
"column": 69
},
"identifierName": "client_secret"
},
"name": "client_secret"
}
],
"trailingComments": null
},
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @type {TokenFetcher}\n ",
"start": 462,
"end": 509,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 18,
"column": 11
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @type {ClientCredentialsFlow}\n ",
"start": 590,
"end": 646,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 655,
"end": 728,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 81
}
},
"expression": {
"type": "AssignmentExpression",
"start": 655,
"end": 728,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 81
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 655,
"end": 681,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 655,
"end": 659,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 660,
"end": 681,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 34
},
"identifierName": "clientCredentialsFlow"
},
"name": "clientCredentialsFlow"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 684,
"end": 728,
"loc": {
"start": {
"line": 24,
"column": 37
},
"end": {
"line": 24,
"column": 81
}
},
"callee": {
"type": "Identifier",
"start": 688,
"end": 709,
"loc": {
"start": {
"line": 24,
"column": 41
},
"end": {
"line": 24,
"column": 62
},
"identifierName": "ClientCredentialsFlow"
},
"name": "ClientCredentialsFlow"
},
"arguments": [
{
"type": "MemberExpression",
"start": 710,
"end": 727,
"loc": {
"start": {
"line": 24,
"column": 63
},
"end": {
"line": 24,
"column": 80
}
},
"object": {
"type": "ThisExpression",
"start": 710,
"end": 714,
"loc": {
"start": {
"line": 24,
"column": 63
},
"end": {
"line": 24,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"start": 715,
"end": 727,
"loc": {
"start": {
"line": 24,
"column": 68
},
"end": {
"line": 24,
"column": 80
},
"identifierName": "tokenFetcher"
},
"name": "tokenFetcher"
},
"computed": false
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @type {ClientCredentialsFlow}\n ",
"start": 590,
"end": 646,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Initialize the Auth object with client id and client secret.\n *\n * @param {string} client_id\n * @param {string} client_secret\n * @example new Auth(client_id, client_secret)\n ",
"start": 202,
"end": 409,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ",
"start": 103,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ",
"start": 103,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ",
"start": 103,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Initialize the Auth object with client id and client secret.\n *\n * @param {string} client_id\n * @param {string} client_secret\n * @example new Auth(client_id, client_secret)\n ",
"start": 202,
"end": 409,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @type {TokenFetcher}\n ",
"start": 462,
"end": 509,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 18,
"column": 11
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @type {ClientCredentialsFlow}\n ",
"start": 590,
"end": 646,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ClientCredentialsFlow",
"start": 7,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 29,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 33
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./ClientCredentialsFlow",
"start": 34,
"end": 59,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 59
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 60,
"end": 66,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "TokenFetcher",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 80,
"end": 84,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./TokenFetcher",
"start": 85,
"end": 101,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 41
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ",
"start": 103,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 6,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 170,
"end": 176,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 177,
"end": 184,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 14
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 185,
"end": 190,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Auth",
"start": 191,
"end": 195,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 196,
"end": 197,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Initialize the Auth object with client id and client secret.\n *\n * @param {string} client_id\n * @param {string} client_secret\n * @example new Auth(client_id, client_secret)\n ",
"start": 202,
"end": 409,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 414,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "client_id",
"start": 426,
"end": 435,
"loc": {
"start": {
"line": 15,
"column": 16
},
"end": {
"line": 15,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 435,
"end": 436,
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "client_secret",
"start": 437,
"end": 450,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 450,
"end": 451,
"loc": {
"start": {
"line": 15,
"column": 40
},
"end": {
"line": 15,
"column": 41
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 452,
"end": 453,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 15,
"column": 43
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @type {TokenFetcher}\n ",
"start": 462,
"end": 509,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 18,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 518,
"end": 522,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 522,
"end": 523,
"loc": {
"start": {
"line": 19,
"column": 12
},
"end": {
"line": 19,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tokenFetcher",
"start": 523,
"end": 535,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 536,
"end": 537,
"loc": {
"start": {
"line": 19,
"column": 26
},
"end": {
"line": 19,
"column": 27
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 538,
"end": 541,
"loc": {
"start": {
"line": 19,
"column": 28
},
"end": {
"line": 19,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "TokenFetcher",
"start": 542,
"end": 554,
"loc": {
"start": {
"line": 19,
"column": 32
},
"end": {
"line": 19,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 554,
"end": 555,
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "client_id",
"start": 555,
"end": 564,
"loc": {
"start": {
"line": 19,
"column": 45
},
"end": {
"line": 19,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 564,
"end": 565,
"loc": {
"start": {
"line": 19,
"column": 54
},
"end": {
"line": 19,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "client_secret",
"start": 566,
"end": 579,
"loc": {
"start": {
"line": 19,
"column": 56
},
"end": {
"line": 19,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 579,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 69
},
"end": {
"line": 19,
"column": 70
}
}
},
{
"type": "CommentBlock",
"value": "*\n * @type {ClientCredentialsFlow}\n ",
"start": 590,
"end": 646,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 655,
"end": 659,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 659,
"end": 660,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clientCredentialsFlow",
"start": 660,
"end": 681,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 34
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 682,
"end": 683,
"loc": {
"start": {
"line": 24,
"column": 35
},
"end": {
"line": 24,
"column": 36
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 684,
"end": 687,
"loc": {
"start": {
"line": 24,
"column": 37
},
"end": {
"line": 24,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ClientCredentialsFlow",
"start": 688,
"end": 709,
"loc": {
"start": {
"line": 24,
"column": 41
},
"end": {
"line": 24,
"column": 62
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 709,
"end": 710,
"loc": {
"start": {
"line": 24,
"column": 62
},
"end": {
"line": 24,
"column": 63
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 710,
"end": 714,
"loc": {
"start": {
"line": 24,
"column": 63
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 714,
"end": 715,
"loc": {
"start": {
"line": 24,
"column": 67
},
"end": {
"line": 24,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tokenFetcher",
"start": 715,
"end": 727,
"loc": {
"start": {
"line": 24,
"column": 68
},
"end": {
"line": 24,
"column": 80
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 727,
"end": 728,
"loc": {
"start": {
"line": 24,