UNPKG

@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,020 lines (2,019 loc) 53.4 kB
{ "type": "File", "start": 0, "end": 684, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 27, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 684, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 27, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 60, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 60 } }, "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": 61, "end": 103, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 68, "end": 80, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 19 } }, "local": { "type": "Identifier", "start": 68, "end": 80, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 19 }, "identifierName": "TokenFetcher" }, "name": "TokenFetcher" } } ], "source": { "type": "StringLiteral", "start": 86, "end": 102, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 41 } }, "extra": { "rawValue": "./TokenFetcher", "raw": "'./TokenFetcher'" }, "value": "./TokenFetcher" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ", "start": 105, "end": 171, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 3 } } } ] }, { "type": "ExportDefaultDeclaration", "start": 172, "end": 683, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 26, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 187, "end": 683, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 26, "column": 1 } }, "id": { "type": "Identifier", "start": 193, "end": 197, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 25 }, "identifierName": "Auth" }, "name": "Auth", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 198, "end": 683, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 26, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 397, "end": 681, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 25, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 397, "end": 408, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 13 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 409, "end": 417, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 22 }, "identifierName": "clientID" }, "name": "clientID" }, { "type": "Identifier", "start": 419, "end": 431, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 36 }, "identifierName": "clientSecret" }, "name": "clientSecret" } ], "body": { "type": "BlockStatement", "start": 433, "end": 681, "loc": { "start": { "line": 15, "column": 38 }, "end": { "line": 25, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 483, "end": 544, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 65 } }, "expression": { "type": "AssignmentExpression", "start": 483, "end": 543, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 64 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 483, "end": 500, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 21 } }, "object": { "type": "ThisExpression", "start": 483, "end": 487, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 8 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 488, "end": 500, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 21 }, "identifierName": "tokenFetcher" }, "name": "tokenFetcher" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 503, "end": 543, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 64 } }, "callee": { "type": "Identifier", "start": 507, "end": 519, "loc": { "start": { "line": 19, "column": 28 }, "end": { "line": 19, "column": 40 }, "identifierName": "TokenFetcher" }, "name": "TokenFetcher" }, "arguments": [ { "type": "Identifier", "start": 520, "end": 528, "loc": { "start": { "line": 19, "column": 41 }, "end": { "line": 19, "column": 49 }, "identifierName": "clientID" }, "name": "clientID" }, { "type": "Identifier", "start": 530, "end": 542, "loc": { "start": { "line": 19, "column": 51 }, "end": { "line": 19, "column": 63 }, "identifierName": "clientSecret" }, "name": "clientSecret" } ] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @type {TokenFetcher}\n ", "start": 439, "end": 478, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * @type {ClientCredentialsFlow}\n ", "start": 550, "end": 598, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 23, "column": 7 } } } ] }, { "type": "ExpressionStatement", "start": 603, "end": 677, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 78 } }, "expression": { "type": "AssignmentExpression", "start": 603, "end": 676, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 77 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 603, "end": 629, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 30 } }, "object": { "type": "ThisExpression", "start": 603, "end": 607, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 8 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 608, "end": 629, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 30 }, "identifierName": "clientCredentialsFlow" }, "name": "clientCredentialsFlow" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 632, "end": 676, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 77 } }, "callee": { "type": "Identifier", "start": 636, "end": 657, "loc": { "start": { "line": 24, "column": 37 }, "end": { "line": 24, "column": 58 }, "identifierName": "ClientCredentialsFlow" }, "name": "ClientCredentialsFlow" }, "arguments": [ { "type": "MemberExpression", "start": 658, "end": 675, "loc": { "start": { "line": 24, "column": 59 }, "end": { "line": 24, "column": 76 } }, "object": { "type": "ThisExpression", "start": 658, "end": 662, "loc": { "start": { "line": 24, "column": 59 }, "end": { "line": 24, "column": 63 } } }, "property": { "type": "Identifier", "start": 663, "end": 675, "loc": { "start": { "line": 24, "column": 64 }, "end": { "line": 24, "column": 76 }, "identifierName": "tokenFetcher" }, "name": "tokenFetcher" }, "computed": false } ] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @type {ClientCredentialsFlow}\n ", "start": 550, "end": 598, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 23, "column": 7 } } } ] } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Initialize the Auth object with client id and client secret.\n *\n * @param {string} clientID\n * @param {string} clientSecret\n * @example new Auth(clientID, clientSecret);\n ", "start": 202, "end": 394, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 14, "column": 5 } } } ] } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ", "start": 105, "end": 171, "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": 105, "end": 171, "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": 105, "end": 171, "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} clientID\n * @param {string} clientSecret\n * @example new Auth(clientID, clientSecret);\n ", "start": 202, "end": 394, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 14, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * @type {TokenFetcher}\n ", "start": 439, "end": 478, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 7 } } }, { "type": "CommentBlock", "value": "*\n * @type {ClientCredentialsFlow}\n ", "start": 550, "end": 598, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 23, "column": 7 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "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": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 59, "end": 60, "loc": { "start": { "line": 1, "column": 59 }, "end": { "line": 1, "column": 60 } } }, { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 61, "end": 67, "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": 68, "end": 80, "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": 81, "end": 85, "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": 86, "end": 102, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 41 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 102, "end": 103, "loc": { "start": { "line": 2, "column": 41 }, "end": { "line": 2, "column": 42 } } }, { "type": "CommentBlock", "value": "*\n * Implements various KKBOX OAuth 2.0 authorization flows.\n ", "start": 105, "end": 171, "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": 172, "end": 178, "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": 179, "end": 186, "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": 187, "end": 192, "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": 193, "end": 197, "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": 198, "end": 199, "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} clientID\n * @param {string} clientSecret\n * @example new Auth(clientID, clientSecret);\n ", "start": 202, "end": 394, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 14, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 397, "end": 408, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 408, "end": 409, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clientID", "start": 409, "end": 417, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 417, "end": 418, "loc": { "start": { "line": 15, "column": 22 }, "end": { "line": 15, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clientSecret", "start": 419, "end": 431, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 431, "end": 432, "loc": { "start": { "line": 15, "column": 36 }, "end": { "line": 15, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 433, "end": 434, "loc": { "start": { "line": 15, "column": 38 }, "end": { "line": 15, "column": 39 } } }, { "type": "CommentBlock", "value": "*\n * @type {TokenFetcher}\n ", "start": 439, "end": 478, "loc": { "start": { "line": 16, "column": 4 }, "end": { "line": 18, "column": 7 } } }, { "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": 483, "end": 487, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 487, "end": 488, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "tokenFetcher", "start": 488, "end": 500, "loc": { "start": { "line": 19, "column": 9 }, "end": { "line": 19, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 501, "end": 502, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 23 } } }, { "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": 503, "end": 506, "loc": { "start": { "line": 19, "column": 24 }, "end": { "line": 19, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "TokenFetcher", "start": 507, "end": 519, "loc": { "start": { "line": 19, "column": 28 }, "end": { "line": 19, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 519, "end": 520, "loc": { "start": { "line": 19, "column": 40 }, "end": { "line": 19, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clientID", "start": 520, "end": 528, "loc": { "start": { "line": 19, "column": 41 }, "end": { "line": 19, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 528, "end": 529, "loc": { "start": { "line": 19, "column": 49 }, "end": { "line": 19, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clientSecret", "start": 530, "end": 542, "loc": { "start": { "line": 19, "column": 51 }, "end": { "line": 19, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 542, "end": 543, "loc": { "start": { "line": 19, "column": 63 }, "end": { "line": 19, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 543, "end": 544, "loc": { "start": { "line": 19, "column": 64 }, "end": { "line": 19, "column": 65 } } }, { "type": "CommentBlock", "value": "*\n * @type {ClientCredentialsFlow}\n ", "start": 550, "end": 598, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 23, "column": 7 } } }, { "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": 603, "end": 607, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 607, "end": 608, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "clientCredentialsFlow", "start": 608, "end": 629, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 630, "end": 631, "loc": { "start": { "line": 24, "column": 31 }, "end": { "line": 24, "column": 32 } } }, { "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": 632, "end": 635, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ClientCredentialsFlow", "start": 636, "end": 657, "loc": { "start": { "line": 24, "column": 37 }, "end": { "line": 24, "column": 58 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 657, "end": 658, "loc": { "start": { "line": 24, "column": 58 }, "end": { "line": 24, "column": 59 } } }, { "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": 658, "end": 662, "loc": { "start": { "line": 24, "column": 59 }, "end": { "line": 24, "column": 63 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false,