@sasjs/api 0.33.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/build/browser.js +2452 -50
  2. package/build/cjs/corpus/viya/operations.js +647 -0
  3. package/build/cjs/index.js +60 -40
  4. package/build/cjs/viya/compute.js +223 -0
  5. package/build/cjs/viya/dispatch.js +141 -0
  6. package/build/cjs/viya/files.js +199 -0
  7. package/build/cjs/viya/ids.js +60 -0
  8. package/build/cjs/viya/overlay.js +79 -0
  9. package/build/cjs/viya/ports.js +5 -0
  10. package/build/cjs/viya/seed.js +120 -0
  11. package/build/cjs/viya/service.js +283 -0
  12. package/build/cjs/viya/sessions.js +114 -0
  13. package/build/cjs/viya/surface.js +1 -49
  14. package/build/cjs/viya/table.js +805 -0
  15. package/build/cjs/viya/unrecorded.js +58 -0
  16. package/build/cjs/viya/version.js +43 -0
  17. package/build/esm/corpus/viya/operations.d.ts +28 -0
  18. package/build/esm/corpus/viya/operations.d.ts.map +1 -0
  19. package/build/esm/corpus/viya/operations.js +644 -0
  20. package/build/esm/host/dispatch.d.ts +10 -0
  21. package/build/esm/host/dispatch.d.ts.map +1 -1
  22. package/build/esm/index.d.ts +12 -0
  23. package/build/esm/index.d.ts.map +1 -1
  24. package/build/esm/index.js +7 -0
  25. package/build/esm/viya/compute.d.ts +39 -0
  26. package/build/esm/viya/compute.d.ts.map +1 -0
  27. package/build/esm/viya/compute.js +219 -0
  28. package/build/esm/viya/dispatch.d.ts +35 -0
  29. package/build/esm/viya/dispatch.d.ts.map +1 -0
  30. package/build/esm/viya/dispatch.js +136 -0
  31. package/build/esm/viya/files.d.ts +33 -0
  32. package/build/esm/viya/files.d.ts.map +1 -0
  33. package/build/esm/viya/files.js +196 -0
  34. package/build/esm/viya/ids.d.ts +35 -0
  35. package/build/esm/viya/ids.d.ts.map +1 -0
  36. package/build/esm/viya/ids.js +55 -0
  37. package/build/esm/viya/overlay.d.ts +25 -0
  38. package/build/esm/viya/overlay.d.ts.map +1 -0
  39. package/build/esm/viya/overlay.js +75 -0
  40. package/build/esm/viya/ports.d.ts +12 -0
  41. package/build/esm/viya/ports.d.ts.map +1 -0
  42. package/build/esm/viya/ports.js +1 -0
  43. package/build/esm/viya/seed.d.ts +60 -0
  44. package/build/esm/viya/seed.d.ts.map +1 -0
  45. package/build/esm/viya/seed.js +111 -0
  46. package/build/esm/viya/service.d.ts +28 -0
  47. package/build/esm/viya/service.d.ts.map +1 -0
  48. package/build/esm/viya/service.js +280 -0
  49. package/build/esm/viya/sessions.d.ts +63 -0
  50. package/build/esm/viya/sessions.d.ts.map +1 -0
  51. package/build/esm/viya/sessions.js +108 -0
  52. package/build/esm/viya/surface.d.ts.map +1 -1
  53. package/build/esm/viya/surface.js +1 -49
  54. package/build/esm/viya/table.d.ts +39 -0
  55. package/build/esm/viya/table.d.ts.map +1 -0
  56. package/build/esm/viya/table.js +802 -0
  57. package/build/esm/viya/unrecorded.d.ts +24 -0
  58. package/build/esm/viya/unrecorded.d.ts.map +1 -0
  59. package/build/esm/viya/unrecorded.js +55 -0
  60. package/build/esm/viya/version.d.ts +37 -0
  61. package/build/esm/viya/version.d.ts.map +1 -0
  62. package/build/esm/viya/version.js +39 -0
  63. package/package.json +5 -2
@@ -0,0 +1,283 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIYA_HANDLERS = void 0;
4
+ const types_js_1 = require("../types.js");
5
+ const ports_js_1 = require("./ports.js");
6
+ const compute_js_1 = require("./compute.js");
7
+ const files_js_1 = require("./files.js");
8
+ const ids_js_1 = require("./ids.js");
9
+ const linksFor = (uri, collection = false) => {
10
+ const self = {
11
+ href: uri,
12
+ uri,
13
+ rel: 'self',
14
+ method: 'GET',
15
+ type: 'application/vnd.sas.folder'
16
+ };
17
+ const members = {
18
+ href: `${uri}/members`,
19
+ uri: `${uri}/members`,
20
+ rel: 'members',
21
+ method: 'GET',
22
+ type: 'application/vnd.sas.collection',
23
+ itemType: 'folder'
24
+ };
25
+ // a collection answer leads with the collection link, which carries the
26
+ // itemType its capture recorded
27
+ return collection ? [members, self] : [self, members];
28
+ };
29
+ const folderBody = async (drive, path) => {
30
+ const listing = await drive.list(path);
31
+ const id = (0, ids_js_1.idFor)(path);
32
+ const name = path.split('/').filter(Boolean).pop() ?? '';
33
+ const parent = path.split('/').slice(0, -1).join('/') || '/';
34
+ return {
35
+ id,
36
+ name,
37
+ description: '',
38
+ type: 'folder',
39
+ version: 1,
40
+ createdBy: ids_js_1.EMULATED_USER.id,
41
+ modifiedBy: ids_js_1.EMULATED_USER.id,
42
+ creationTimeStamp: ids_js_1.EMULATED_NOW,
43
+ modifiedTimeStamp: ids_js_1.EMULATED_NOW,
44
+ memberCount: listing.files.length + listing.folders.length,
45
+ parentFolderUri: `/folders/folders/${(0, ids_js_1.idFor)(parent)}`,
46
+ links: linksFor(`/folders/folders/${id}`)
47
+ };
48
+ };
49
+ const recycleBin = () => {
50
+ const path = '@myRecycleBin';
51
+ const id = (0, ids_js_1.idFor)(path);
52
+ return {
53
+ id,
54
+ name: 'Recycle Bin',
55
+ description: 'Recycle Bin',
56
+ type: 'trashFolder',
57
+ version: 1,
58
+ createdBy: ids_js_1.EMULATED_USER.id,
59
+ modifiedBy: ids_js_1.EMULATED_USER.id,
60
+ creationTimeStamp: ids_js_1.EMULATED_NOW,
61
+ modifiedTimeStamp: ids_js_1.EMULATED_NOW,
62
+ memberCount: 0,
63
+ parentFolderUri: '',
64
+ properties: { allowMove: 'false' },
65
+ links: linksFor(`/folders/folders/${id}`)
66
+ };
67
+ };
68
+ const pathFromQuery = (request) => {
69
+ const path = request.query?.path;
70
+ if (!path)
71
+ throw new types_js_1.ApiError(400, 'The path parameter is required.');
72
+ return (0, ids_js_1.normalisePath)(path);
73
+ };
74
+ /** The recycle-bin alias the emulator answers, which is also a valid parent. */
75
+ const RECYCLE_BIN_ALIAS = '/folders/folders/@myRecycleBin';
76
+ const isRecycleBin = (uri) => !!uri &&
77
+ (uri === RECYCLE_BIN_ALIAS || uri.endsWith(`/${(0, ids_js_1.idFor)('@myRecycleBin')}`));
78
+ /**
79
+ * The path a folder id stands for, found by walking the drive.
80
+ *
81
+ * An id is derived from a path, so the drive is the index: a map would be a
82
+ * second source of truth that goes stale the moment a folder is renamed or
83
+ * moved - and would answer 404 for every id after a restart, which is the
84
+ * opposite of "a client stores an id and asks for it later".
85
+ */
86
+ const pathForId = async (drive, id) => {
87
+ const walk = (node) => {
88
+ if (node.isFolder && (0, ids_js_1.idFor)(node.relativePath) === id)
89
+ return node.relativePath;
90
+ for (const child of node.children) {
91
+ const hit = walk(child);
92
+ if (hit)
93
+ return hit;
94
+ }
95
+ return undefined;
96
+ };
97
+ const { tree } = await drive.tree('/');
98
+ const path = walk(tree);
99
+ if (!path)
100
+ throw new types_js_1.ApiError(404, `No folder matches the id ${id}. Ids are derived from paths, so an id that names no folder is one no folder ever had.`);
101
+ return path;
102
+ };
103
+ /** The handlers, keyed by the operation id the table states. */
104
+ exports.VIYA_HANDLERS = {
105
+ 'GET /identities/users/@currentUser': async ({ services, request }) => {
106
+ const subject = request.subject ??
107
+ (await services.identity?.authenticate(request.token));
108
+ const id = subject?.userId ?? ids_js_1.EMULATED_USER.id;
109
+ return {
110
+ status: 200,
111
+ body: {
112
+ id,
113
+ name: subject?.userId ?? ids_js_1.EMULATED_USER.name,
114
+ providerId: 'sas',
115
+ state: 'active',
116
+ version: 1,
117
+ addresses: [],
118
+ emailAddresses: [],
119
+ links: [
120
+ {
121
+ href: `/identities/users/${id}`,
122
+ uri: `/identities/users/${id}`,
123
+ rel: 'self',
124
+ method: 'GET',
125
+ type: 'application/vnd.sas.identity.user'
126
+ }
127
+ ]
128
+ }
129
+ };
130
+ },
131
+ 'GET /types/types': async () => ({
132
+ status: 200,
133
+ body: {
134
+ count: 1,
135
+ items: [
136
+ {
137
+ name: 'file',
138
+ type: 'typeDef',
139
+ version: 1,
140
+ links: [{ href: '/types/types/file', rel: 'self', method: 'GET' }]
141
+ }
142
+ ]
143
+ }
144
+ }),
145
+ 'GET /folders/folders/@item': async ({ services, request }) => ({
146
+ status: 200,
147
+ body: await folderBody((0, ports_js_1.requireDrive)(services), pathFromQuery(request))
148
+ }),
149
+ 'GET /folders/folders/@myRecycleBin': async () => ({
150
+ status: 200,
151
+ body: recycleBin()
152
+ }),
153
+ 'GET /folders/folders/{}': async ({ services, params }) => {
154
+ // the bin is addressed by id too, and it is not in the drive's tree
155
+ if (params.id === (0, ids_js_1.idFor)('@myRecycleBin'))
156
+ return { status: 200, body: recycleBin() };
157
+ const drive = (0, ports_js_1.requireDrive)(services);
158
+ return {
159
+ status: 200,
160
+ body: await folderBody(drive, await pathForId(drive, params.id))
161
+ };
162
+ },
163
+ 'GET /folders/folders/{}/members': async ({ services, params, request }) => {
164
+ const drive = (0, ports_js_1.requireDrive)(services);
165
+ const limit = Number(request.query?.limit ?? 0) || 0;
166
+ // the bin is not a folder in the drive, and its own body advertises this
167
+ // link - so a client following the answer it just received must not 404
168
+ if (params.id === (0, ids_js_1.idFor)('@myRecycleBin'))
169
+ return {
170
+ status: 200,
171
+ body: {
172
+ accept: 'application/json',
173
+ name: 'members',
174
+ start: 0,
175
+ // the query value is echoed as the sibling branch echoes it: a caller
176
+ // that asked for five and is told zero cannot tell what happened
177
+ limit,
178
+ count: 0,
179
+ version: 2,
180
+ items: [],
181
+ links: linksFor(`/folders/folders/${(0, ids_js_1.idFor)('@myRecycleBin')}`, true)
182
+ }
183
+ };
184
+ const path = await pathForId(drive, params.id);
185
+ const listing = await drive.list(path);
186
+ const items = [
187
+ ...listing.folders.map((name) => ({
188
+ id: (0, ids_js_1.idFor)(`${path}/${name}`.replace(/\/{2,}/g, '/')),
189
+ name,
190
+ type: 'folder',
191
+ version: 1,
192
+ createdBy: ids_js_1.EMULATED_USER.id,
193
+ modifiedBy: ids_js_1.EMULATED_USER.id,
194
+ creationTimeStamp: ids_js_1.EMULATED_NOW,
195
+ modifiedTimeStamp: ids_js_1.EMULATED_NOW,
196
+ parentFolderUri: `/folders/folders/${(0, ids_js_1.idFor)(path)}`,
197
+ uri: `${path}/${name}`.replace(/\/{2,}/g, '/'),
198
+ links: linksFor(`/folders/folders/${(0, ids_js_1.idFor)(`${path}/${name}`.replace(/\/{2,}/g, '/'))}`)
199
+ })),
200
+ ...listing.files.map((name) => ({
201
+ id: (0, ids_js_1.idFor)(`${path}/${name}`.replace(/\/{2,}/g, '/'), 'file'),
202
+ name,
203
+ type: 'file',
204
+ version: 1,
205
+ contentType: 'text/plain',
206
+ createdBy: ids_js_1.EMULATED_USER.id,
207
+ modifiedBy: ids_js_1.EMULATED_USER.id,
208
+ creationTimeStamp: ids_js_1.EMULATED_NOW,
209
+ modifiedTimeStamp: ids_js_1.EMULATED_NOW,
210
+ parentFolderUri: `/folders/folders/${(0, ids_js_1.idFor)(path)}`,
211
+ added: ids_js_1.EMULATED_NOW,
212
+ uri: `${path}/${name}`.replace(/\/{2,}/g, '/'),
213
+ links: linksFor(`/files/files/${(0, ids_js_1.idFor)(`${path}/${name}`.replace(/\/{2,}/g, '/'), 'file')}`)
214
+ }))
215
+ ];
216
+ const page = limit > 0 ? items.slice(0, limit) : items;
217
+ // the envelope is what the capture recorded, including the paging fields a
218
+ // client reads to decide whether to ask for more
219
+ return {
220
+ status: 200,
221
+ body: {
222
+ accept: 'application/json',
223
+ name: 'members',
224
+ start: 0,
225
+ limit: limit || page.length,
226
+ count: page.length,
227
+ version: 2,
228
+ items: page,
229
+ links: linksFor(`/folders/folders/${(0, ids_js_1.idFor)(path)}`, true)
230
+ }
231
+ };
232
+ },
233
+ 'POST /folders/folders': async ({ services, request }) => {
234
+ const drive = (0, ports_js_1.requireDrive)(services);
235
+ const body = (request.body ?? {});
236
+ if (!body.name)
237
+ throw new types_js_1.ApiError(400, 'A folder name is required.');
238
+ // the capture records the parent as a QUERY parameter, with the name in the
239
+ // body: a handler that read the body alone put every folder at the root
240
+ const parentUri = request.query?.parentFolderUri ?? body.parentFolderUri;
241
+ const parent = parentUri
242
+ ? await pathForId(drive, String(parentUri).split('/').pop())
243
+ : '/';
244
+ const path = (0, ids_js_1.normalisePath)(`${parent}/${body.name}`);
245
+ await drive.mkdir(path);
246
+ return { status: 201, body: await folderBody(drive, path) };
247
+ },
248
+ 'PATCH /folders/folders/{}': async ({ services, request, params }) => {
249
+ const drive = (0, ports_js_1.requireDrive)(services);
250
+ if (params.id === (0, ids_js_1.idFor)('@myRecycleBin'))
251
+ throw new types_js_1.ApiError(400, 'The recycle bin cannot be moved or renamed.');
252
+ const path = await pathForId(drive, params.id);
253
+ const body = (request.body ?? {});
254
+ // the adapter removes a folder by moving it to the recycle bin, which is the
255
+ // shape the capture recorded for this verb. Both spellings arrive: the bin's
256
+ // id, and the alias the emulator itself answers with
257
+ if (isRecycleBin(body.parentFolderUri)) {
258
+ const removed = await folderBody(drive, path);
259
+ await drive.rmdir(path);
260
+ // the answer describes the folder that was moved, not the drive root -
261
+ // a client reads the id and parent from it
262
+ return {
263
+ status: 200,
264
+ body: { ...removed, parentFolderUri: String(body.parentFolderUri) }
265
+ };
266
+ }
267
+ // a move and a rename can arrive together, and an empty parent means the
268
+ // root - the same value means the root on create, so reading it as "no
269
+ // change" here was a second meaning for one string
270
+ const name = body.name ?? path.split('/').pop();
271
+ const parent = body.parentFolderUri === undefined
272
+ ? path.split('/').slice(0, -1).join('/') || '/'
273
+ : body.parentFolderUri === ''
274
+ ? '/'
275
+ : await pathForId(drive, body.parentFolderUri.split('/').pop());
276
+ const target = (0, ids_js_1.normalisePath)(`${parent}/${name}`);
277
+ if (target !== path)
278
+ await drive.rename(path, target);
279
+ return { status: 200, body: await folderBody(drive, target) };
280
+ },
281
+ ...compute_js_1.COMPUTE_HANDLERS,
282
+ ...files_js_1.FILE_HANDLERS
283
+ };
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.estateFor = exports.EmulatedEstate = exports.logFor = void 0;
4
+ /**
5
+ * The emulated compute estate: sessions, jobs and the logs generated for them.
6
+ *
7
+ * A session is a handle a client keeps and asks about later, so it lives in the
8
+ * process that issued it - the way a real compute server's does - and it survives
9
+ * as long as the emulator does. Ids are a function of the seed and a counter
10
+ * rather than a random uuid: a session id that changes between runs would break
11
+ * every fixture that names one, which is the same rule as a folder id.
12
+ *
13
+ * Nothing here executes SAS. The engine is not present, and a log that claimed to
14
+ * be output would be a lie the first time somebody read it. The log echoes what
15
+ * was submitted and states, in the log itself, that it is generated - so a client
16
+ * that parses for NOTEs still gets a well-formed log, and a person reading it is
17
+ * not misled about what ran.
18
+ */
19
+ const seed_js_1 = require("./seed.js");
20
+ /**
21
+ * The generated log for one program.
22
+ *
23
+ * Deterministic in (seed, code): the same program on the same estate answers the
24
+ * same lines, so a test can assert a log and a screenshot stays true. The numbers
25
+ * are drawn rather than fixed so that two estates do not look identical, and the
26
+ * generator is re-seeded from the code for each job so that one job's log does not
27
+ * depend on how many jobs ran before it.
28
+ */
29
+ const logFor = (seed, program) => {
30
+ const code = Array.isArray(program) ? program.join('\n') : program;
31
+ // seeded from the program's TEXT, not its length: two programs of the same
32
+ // length are two programs, and a fixture that names the numbers would be
33
+ // right for both of them otherwise
34
+ const next = (0, seed_js_1.generator)(seed ^ (0, seed_js_1.hash)(`code:${code}`));
35
+ const rows = (0, seed_js_1.drawInt)(next, 900) + 100;
36
+ const seconds = ((0, seed_js_1.drawInt)(next, 90) + 10) / 100;
37
+ const lines = code
38
+ .split('\n')
39
+ .map((line, index) => `${String(index + 1).padStart(3, ' ')} ${line}`);
40
+ return [
41
+ 'NOTE: Emulated compute engine - this log is generated, not produced by SAS.',
42
+ 'NOTE: No library was touched: the emulated engine has none.',
43
+ ...lines,
44
+ `NOTE: The data set WORK.EMULATED has ${rows} observations and 3 variables.`,
45
+ `NOTE: DATA statement used (Total process time):`,
46
+ `NOTE: real time ${seconds.toFixed(2)} seconds`,
47
+ `NOTE: user cpu time ${(seconds / 2).toFixed(2)} seconds`,
48
+ `NOTE: ${(0, seed_js_1.drawFrom)(next, ['The emulated run completed.', 'Emulation complete - no SAS was executed.'])}`
49
+ ];
50
+ };
51
+ exports.logFor = logFor;
52
+ /**
53
+ * The sessions one estate holds.
54
+ *
55
+ * Keyed by seed, so two emulated estates in one process - a test that runs two
56
+ * targets - do not share a session namespace.
57
+ */
58
+ class EmulatedEstate {
59
+ constructor(seed) {
60
+ this.seed = seed;
61
+ this.sessions = new Map();
62
+ this.created = 0;
63
+ }
64
+ /** A new session: deterministic id, no jobs. */
65
+ create() {
66
+ const session = {
67
+ id: `emulated-${this.seed.toString(16)}-ses${String(this.created++).padStart(4, '0')}`,
68
+ createdAt: new Date().toISOString(),
69
+ jobs: new Map(),
70
+ submitted: 0
71
+ };
72
+ this.sessions.set(session.id, session);
73
+ return session;
74
+ }
75
+ session(id) {
76
+ return this.sessions.get(id);
77
+ }
78
+ remove(id) {
79
+ return this.sessions.delete(id);
80
+ }
81
+ /** A job accepted into a session, with the log the emulator generated for it. */
82
+ submit(session, job) {
83
+ const id = `${session.id}-job${String(session.submitted++).padStart(4, '0')}`;
84
+ const code = job.code ?? '';
85
+ const submitted = {
86
+ id,
87
+ name: job.name ?? id,
88
+ // the log is a function of the seed and the program alone, so the same
89
+ // program answers the same lines whatever session it was submitted in
90
+ log: (0, exports.logFor)(this.seed, code),
91
+ state: 'completed',
92
+ // the real clock, unlike a folder's: a client computes a session's age
93
+ // from this stamp and expires it, so a fixed instant in the past is a
94
+ // session that is born expired
95
+ creationTimeStamp: new Date().toISOString(),
96
+ completedTimeStamp: new Date().toISOString(),
97
+ sessionId: session.id
98
+ };
99
+ session.jobs.set(id, submitted);
100
+ return submitted;
101
+ }
102
+ }
103
+ exports.EmulatedEstate = EmulatedEstate;
104
+ /** One estate per seed, for the life of the process. */
105
+ const estates = new Map();
106
+ const estateFor = (seed) => {
107
+ const existing = estates.get(seed);
108
+ if (existing)
109
+ return existing;
110
+ const estate = new EmulatedEstate(seed);
111
+ estates.set(seed, estate);
112
+ return estate;
113
+ };
114
+ exports.estateFor = estateFor;
@@ -18,35 +18,11 @@ exports.SURFACE = exports.SURFACE_ADAPTER_VERSION = void 0;
18
18
  exports.SURFACE_ADAPTER_VERSION = '6.0.2';
19
19
  exports.SURFACE = [
20
20
  // sas9
21
- {
22
- path: '/Public/example/deleteThis',
23
- family: 'sas9',
24
- decision: 'declined',
25
- reason: 'a path in a doc example or a default config value, not a call'
26
- },
27
- {
28
- path: '/Public/example/myFolder',
29
- family: 'sas9',
30
- decision: 'declined',
31
- reason: 'a path in a doc example or a default config value, not a call'
32
- },
33
- {
34
- path: '/Public/newDestination',
35
- family: 'sas9',
36
- decision: 'declined',
37
- reason: 'a path in a doc example or a default config value, not a call'
38
- },
39
- {
40
- path: '/Public/newDestination/myFolder',
41
- family: 'sas9',
42
- decision: 'declined',
43
- reason: 'a path in a doc example or a default config value, not a call'
44
- },
45
21
  {
46
22
  path: '/Public/seedapp',
47
23
  family: 'sas9',
48
24
  decision: 'declined',
49
- reason: 'a path in a doc example or a default config value, not a call'
25
+ reason: 'a default config value the client falls back to, not a call'
50
26
  },
51
27
  {
52
28
  path: '/SASJobExecution',
@@ -61,12 +37,6 @@ exports.SURFACE = [
61
37
  decision: 'in',
62
38
  reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
63
39
  },
64
- {
65
- path: '/SASLogon/home',
66
- family: 'viya-auth',
67
- decision: 'in',
68
- reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
69
- },
70
40
  {
71
41
  path: '/SASLogon/login',
72
42
  family: 'viya-auth',
@@ -129,12 +99,6 @@ exports.SURFACE = [
129
99
  decision: 'declined',
130
100
  reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
131
101
  },
132
- {
133
- path: '/SASjsApi/{}',
134
- family: 'sasjs-api',
135
- decision: 'declined',
136
- reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
137
- },
138
102
  // sas9
139
103
  {
140
104
  path: '/User Folders/{}/My Folder/sasjs/runner',
@@ -143,18 +107,6 @@ exports.SURFACE = [
143
107
  reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
144
108
  },
145
109
  // sasjs-api
146
- {
147
- path: '/api',
148
- family: 'sasjs-api',
149
- decision: 'declined',
150
- reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
151
- },
152
- {
153
- path: '/api/stp/execute',
154
- family: 'sasjs-api',
155
- decision: 'declined',
156
- reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
157
- },
158
110
  {
159
111
  path: '/auth/refresh',
160
112
  family: 'sasjs-api',