@sasjs/api 0.32.0 → 0.33.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.
package/build/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @sasjs/api 0.32.0 - the SASjs Server API, for a service worker. https://github.com/sasjs/api */
1
+ /* @sasjs/api 0.33.0 - the SASjs Server API, for a service worker. https://github.com/sasjs/api */
2
2
  "use strict";
3
3
  var SASjsApi = (() => {
4
4
  var __defProp = Object.defineProperty;
@@ -66,6 +66,8 @@ var SASjsApi = (() => {
66
66
  RUNTIME_CORPUS: () => RUNTIME_CORPUS,
67
67
  SESSION_CORPUS: () => SESSION_CORPUS,
68
68
  STATIC_AUTHORIZED_ROUTES: () => STATIC_AUTHORIZED_ROUTES,
69
+ SURFACE: () => SURFACE,
70
+ SURFACE_ADAPTER_VERSION: () => SURFACE_ADAPTER_VERSION,
69
71
  TAG_CAPABILITIES: () => TAG_CAPABILITIES,
70
72
  TOP_LEVEL_ROUTES: () => TOP_LEVEL_ROUTES,
71
73
  appSummary: () => appSummary,
@@ -3203,6 +3205,365 @@ var SASjsApi = (() => {
3203
3205
  return void 0;
3204
3206
  };
3205
3207
 
3208
+ // src/viya/surface.ts
3209
+ var SURFACE_ADAPTER_VERSION = "6.0.2";
3210
+ var SURFACE = [
3211
+ // sas9
3212
+ {
3213
+ path: "/Public/example/deleteThis",
3214
+ family: "sas9",
3215
+ decision: "declined",
3216
+ reason: "a path in a doc example or a default config value, not a call"
3217
+ },
3218
+ {
3219
+ path: "/Public/example/myFolder",
3220
+ family: "sas9",
3221
+ decision: "declined",
3222
+ reason: "a path in a doc example or a default config value, not a call"
3223
+ },
3224
+ {
3225
+ path: "/Public/newDestination",
3226
+ family: "sas9",
3227
+ decision: "declined",
3228
+ reason: "a path in a doc example or a default config value, not a call"
3229
+ },
3230
+ {
3231
+ path: "/Public/newDestination/myFolder",
3232
+ family: "sas9",
3233
+ decision: "declined",
3234
+ reason: "a path in a doc example or a default config value, not a call"
3235
+ },
3236
+ {
3237
+ path: "/Public/seedapp",
3238
+ family: "sas9",
3239
+ decision: "declined",
3240
+ reason: "a path in a doc example or a default config value, not a call"
3241
+ },
3242
+ {
3243
+ path: "/SASJobExecution",
3244
+ family: "sas9",
3245
+ decision: "declined",
3246
+ reason: "SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment"
3247
+ },
3248
+ // viya-auth
3249
+ {
3250
+ path: "/SASLogon",
3251
+ family: "viya-auth",
3252
+ decision: "in",
3253
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3254
+ },
3255
+ {
3256
+ path: "/SASLogon/home",
3257
+ family: "viya-auth",
3258
+ decision: "in",
3259
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3260
+ },
3261
+ {
3262
+ path: "/SASLogon/login",
3263
+ family: "viya-auth",
3264
+ decision: "in",
3265
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3266
+ },
3267
+ {
3268
+ path: "/SASLogon/login.do",
3269
+ family: "viya-auth",
3270
+ decision: "in",
3271
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3272
+ },
3273
+ {
3274
+ path: "/SASLogon/logout",
3275
+ family: "viya-auth",
3276
+ decision: "in",
3277
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3278
+ },
3279
+ {
3280
+ path: "/SASLogon/logout.do",
3281
+ family: "viya-auth",
3282
+ decision: "in",
3283
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3284
+ },
3285
+ {
3286
+ path: "/SASLogon/oauth/authorize",
3287
+ family: "viya-auth",
3288
+ decision: "in",
3289
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3290
+ },
3291
+ {
3292
+ path: "/SASLogon/oauth/token",
3293
+ family: "viya-auth",
3294
+ decision: "in",
3295
+ reason: "the auth flow the client speaks, and the reason the emulated paths cannot be renamed"
3296
+ },
3297
+ // sas9
3298
+ {
3299
+ path: "/SASStoredProcess",
3300
+ family: "sas9",
3301
+ decision: "declined",
3302
+ reason: "SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment"
3303
+ },
3304
+ {
3305
+ path: "/SASStoredProcess/do",
3306
+ family: "sas9",
3307
+ decision: "declined",
3308
+ reason: "SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment"
3309
+ },
3310
+ {
3311
+ path: "/SASStoredProcess/j_spring_cas_security_check",
3312
+ family: "sas9",
3313
+ decision: "declined",
3314
+ reason: "SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment"
3315
+ },
3316
+ // sasjs-api
3317
+ {
3318
+ path: "/SASjsApi",
3319
+ family: "sasjs-api",
3320
+ decision: "declined",
3321
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3322
+ },
3323
+ {
3324
+ path: "/SASjsApi/{}",
3325
+ family: "sasjs-api",
3326
+ decision: "declined",
3327
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3328
+ },
3329
+ // sas9
3330
+ {
3331
+ path: "/User Folders/{}/My Folder/sasjs/runner",
3332
+ family: "sas9",
3333
+ decision: "declined",
3334
+ reason: "SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment"
3335
+ },
3336
+ // sasjs-api
3337
+ {
3338
+ path: "/api",
3339
+ family: "sasjs-api",
3340
+ decision: "declined",
3341
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3342
+ },
3343
+ {
3344
+ path: "/api/stp/execute",
3345
+ family: "sasjs-api",
3346
+ decision: "declined",
3347
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3348
+ },
3349
+ {
3350
+ path: "/auth/refresh",
3351
+ family: "sasjs-api",
3352
+ decision: "declined",
3353
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3354
+ },
3355
+ {
3356
+ path: "/auth/token",
3357
+ family: "sasjs-api",
3358
+ decision: "declined",
3359
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3360
+ },
3361
+ {
3362
+ path: "/code/execute",
3363
+ family: "sasjs-api",
3364
+ decision: "declined",
3365
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3366
+ },
3367
+ // viya-compute
3368
+ {
3369
+ path: "/compute/contexts",
3370
+ family: "viya-compute",
3371
+ decision: "in",
3372
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3373
+ },
3374
+ {
3375
+ path: "/compute/contexts/{}",
3376
+ family: "viya-compute",
3377
+ decision: "in",
3378
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3379
+ },
3380
+ {
3381
+ path: "/compute/contexts/{}/sessions",
3382
+ family: "viya-compute",
3383
+ decision: "in",
3384
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3385
+ },
3386
+ {
3387
+ path: "/compute/sessions/{}",
3388
+ family: "viya-compute",
3389
+ decision: "in",
3390
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3391
+ },
3392
+ {
3393
+ path: "/compute/sessions/{}/filerefs/_webout/content",
3394
+ family: "viya-compute",
3395
+ decision: "in",
3396
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3397
+ },
3398
+ {
3399
+ path: "/compute/sessions/{}/jobs",
3400
+ family: "viya-compute",
3401
+ decision: "in",
3402
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3403
+ },
3404
+ {
3405
+ path: "/compute/sessions/{}/jobs/{}",
3406
+ family: "viya-compute",
3407
+ decision: "in",
3408
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3409
+ },
3410
+ {
3411
+ path: "/compute/sessions/{}/variables/{}",
3412
+ family: "viya-compute",
3413
+ decision: "in",
3414
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3415
+ },
3416
+ // viya-files
3417
+ {
3418
+ path: "/content",
3419
+ family: "viya-files",
3420
+ decision: "declined",
3421
+ reason: "not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it"
3422
+ },
3423
+ // sasjs-api
3424
+ {
3425
+ path: "/drive/deploy",
3426
+ family: "sasjs-api",
3427
+ decision: "declined",
3428
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3429
+ },
3430
+ {
3431
+ path: "/drive/deploy/upload",
3432
+ family: "sasjs-api",
3433
+ decision: "declined",
3434
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3435
+ },
3436
+ // viya-files
3437
+ {
3438
+ path: "/files/files",
3439
+ family: "viya-files",
3440
+ decision: "in",
3441
+ reason: "file create, read and replace, which the emulator backs with DriveService"
3442
+ },
3443
+ {
3444
+ path: "/files/files/{}",
3445
+ family: "viya-files",
3446
+ decision: "in",
3447
+ reason: "file create, read and replace, which the emulator backs with DriveService"
3448
+ },
3449
+ // viya-folders
3450
+ {
3451
+ path: "/folders/folders",
3452
+ family: "viya-folders",
3453
+ decision: "in",
3454
+ reason: "content structure, which the emulator backs with DriveService"
3455
+ },
3456
+ {
3457
+ path: "/folders/folders/@item",
3458
+ family: "viya-folders",
3459
+ decision: "in",
3460
+ reason: "content structure, which the emulator backs with DriveService"
3461
+ },
3462
+ {
3463
+ path: "/folders/folders/@myRecycleBin",
3464
+ family: "viya-folders",
3465
+ decision: "in",
3466
+ reason: "content structure, which the emulator backs with DriveService"
3467
+ },
3468
+ {
3469
+ path: "/folders/folders/{}",
3470
+ family: "viya-folders",
3471
+ decision: "in",
3472
+ reason: "content structure, which the emulator backs with DriveService"
3473
+ },
3474
+ {
3475
+ path: "/folders/folders/{}/members",
3476
+ family: "viya-folders",
3477
+ decision: "in",
3478
+ reason: "content structure, which the emulator backs with DriveService"
3479
+ },
3480
+ // viya-identity
3481
+ {
3482
+ path: "/identities/users/@currentUser",
3483
+ family: "viya-identity",
3484
+ decision: "in",
3485
+ reason: "who the caller is; every session and folder answer is scoped to it"
3486
+ },
3487
+ // viya-jobs
3488
+ {
3489
+ path: "/jobDefinitions/definitions",
3490
+ family: "viya-jobs",
3491
+ decision: "in",
3492
+ reason: "the job path a deployed service runs through"
3493
+ },
3494
+ {
3495
+ path: "/jobExecution/jobs",
3496
+ family: "viya-jobs",
3497
+ decision: "in",
3498
+ reason: "the job path a deployed service runs through"
3499
+ },
3500
+ {
3501
+ path: "/jobExecution/jobs/{}",
3502
+ family: "viya-jobs",
3503
+ decision: "in",
3504
+ reason: "the job path a deployed service runs through"
3505
+ },
3506
+ // viya-compute
3507
+ {
3508
+ path: "/launcher/contexts",
3509
+ family: "viya-compute",
3510
+ decision: "in",
3511
+ reason: "contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService"
3512
+ },
3513
+ // viya-files
3514
+ {
3515
+ path: "/log",
3516
+ family: "viya-files",
3517
+ decision: "declined",
3518
+ reason: "not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it"
3519
+ },
3520
+ // viya-auth
3521
+ {
3522
+ path: "/oauth/clients/{}",
3523
+ family: "viya-auth",
3524
+ decision: "declined",
3525
+ reason: "client registration is an identity-provider admin action; the emulated estate accepts the public `sas.cli` client and mints its own tokens"
3526
+ },
3527
+ // sasjs-api
3528
+ {
3529
+ path: "/session/{}",
3530
+ family: "sasjs-api",
3531
+ decision: "declined",
3532
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3533
+ },
3534
+ {
3535
+ path: "/session/{}/log",
3536
+ family: "sasjs-api",
3537
+ decision: "declined",
3538
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3539
+ },
3540
+ {
3541
+ path: "/session/{}/state",
3542
+ family: "sasjs-api",
3543
+ decision: "declined",
3544
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3545
+ },
3546
+ {
3547
+ path: "/stp/execute",
3548
+ family: "sasjs-api",
3549
+ decision: "declined",
3550
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3551
+ },
3552
+ {
3553
+ path: "/stp/trigger",
3554
+ family: "sasjs-api",
3555
+ decision: "declined",
3556
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
3557
+ },
3558
+ // viya-files
3559
+ {
3560
+ path: "/types/types",
3561
+ family: "viya-files",
3562
+ decision: "in",
3563
+ reason: "read before every file create, to find the type definition for the extension"
3564
+ }
3565
+ ];
3566
+
3206
3567
  // src/appstream/identity.ts
3207
3568
  var normaliseAppLoc = (appLoc) => {
3208
3569
  if (typeof appLoc !== "string" || appLoc === "")
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.DEFAULT_IDENTITY = exports.MemoryIdentityStore = exports.createDirectoryService = exports.normaliseLogFiles = exports.normaliseDiagnostics = exports.logLines = exports.createAdminService = exports.checkLogFileName = exports.MAX_LOG_LINES = exports.DEFAULT_LOG_LINES = exports.normaliseAuthConfig = exports.createAuthConfigService = exports.normaliseInfo = exports.createInfoService = exports.BROWSER_INFO = exports.withBundleVersion = exports.createHomeService = exports.NO_WEB_BUILD = exports.BUNDLE_NAME = exports.HOME_CORPUS = exports.DIRECTORY_CORPUS = exports.AUTH_CONFIG_CORPUS = exports.ADMIN_CORPUS = exports.INFO_CORPUS = exports.CODE_CORPUS = exports.sanitiseDisplayName = exports.createRecordService = exports.createIdentityService = exports.HANDLED_ROUTES = exports.dispatch = exports.TAG_CAPABILITIES = exports.OVERLAY = exports.findRoute = exports.routeById = exports.ROUTES = exports.MemoryDriveStore = exports.measureDeployTree = exports.isDeployTree = exports.deployTree = exports.decodeBase64 = exports.checkDeployTree = exports.DEPLOY_SUCCESS = exports.DEPLOY_PAYLOAD_BYTES = exports.DEPLOY_LIMITS = exports.createDriveService = exports.isRoot = exports.basename = exports.dirname = exports.hasBlockedExtension = exports.normaliseDrivePath = void 0;
18
- exports.normaliseAppLoc = exports.newAppId = exports.isAppId = exports.escapeHtml = exports.createAppStreamWebService = exports.contentTypeFor = exports.cacheControlFor = exports.NO_SUCH_APP = exports.DEFAULT_APP_PATH = exports.createDriveAppStreamStore = exports.APP_STREAM_INDEX = exports.splitAppBundle = exports.publishRequestFor = exports.parseAppManifest = exports.APP_MANIFEST = exports.MemoryAppStreamStore = exports.defaultAppName = exports.createAppStreamService = exports.checkPublishRequest = exports.appSummary = exports.servicesFor = exports.runCase = exports.PROVIDER_MANAGED = exports.ADMIN_SIGNED_IN = exports.RECORD_CORPUS = exports.RUNTIME_CORPUS = exports.MemorySessionRunner = exports.runTimeOfPath = exports.resolveProgram = exports.programNotFound = exports.DOCUMENTED_RUN_TIMES = exports.createRuntimeService = exports.CODE_DEBUG = exports.MemorySessionHost = exports.DEFAULT_SESSIONS = exports.createSessionService = exports.SESSION_CORPUS = exports.APP_CORPUS = exports.DEPLOY_CORPUS = exports.IDENTITY_CORPUS = exports.DRIVE_CORPUS = exports.parseIdentity = exports.IDENTITY_FORMAT = void 0;
17
+ exports.createDirectoryService = exports.normaliseLogFiles = exports.normaliseDiagnostics = exports.logLines = exports.createAdminService = exports.checkLogFileName = exports.MAX_LOG_LINES = exports.DEFAULT_LOG_LINES = exports.normaliseAuthConfig = exports.createAuthConfigService = exports.normaliseInfo = exports.createInfoService = exports.BROWSER_INFO = exports.withBundleVersion = exports.createHomeService = exports.NO_WEB_BUILD = exports.BUNDLE_NAME = exports.HOME_CORPUS = exports.DIRECTORY_CORPUS = exports.AUTH_CONFIG_CORPUS = exports.ADMIN_CORPUS = exports.INFO_CORPUS = exports.CODE_CORPUS = exports.sanitiseDisplayName = exports.createRecordService = exports.createIdentityService = exports.HANDLED_ROUTES = exports.dispatch = exports.SURFACE_ADAPTER_VERSION = exports.SURFACE = exports.TAG_CAPABILITIES = exports.OVERLAY = exports.findRoute = exports.routeById = exports.ROUTES = exports.MemoryDriveStore = exports.measureDeployTree = exports.isDeployTree = exports.deployTree = exports.decodeBase64 = exports.checkDeployTree = exports.DEPLOY_SUCCESS = exports.DEPLOY_PAYLOAD_BYTES = exports.DEPLOY_LIMITS = exports.createDriveService = exports.isRoot = exports.basename = exports.dirname = exports.hasBlockedExtension = exports.normaliseDrivePath = void 0;
18
+ exports.normaliseAppLoc = exports.newAppId = exports.isAppId = exports.escapeHtml = exports.createAppStreamWebService = exports.contentTypeFor = exports.cacheControlFor = exports.NO_SUCH_APP = exports.DEFAULT_APP_PATH = exports.createDriveAppStreamStore = exports.APP_STREAM_INDEX = exports.splitAppBundle = exports.publishRequestFor = exports.parseAppManifest = exports.APP_MANIFEST = exports.MemoryAppStreamStore = exports.defaultAppName = exports.createAppStreamService = exports.checkPublishRequest = exports.appSummary = exports.servicesFor = exports.runCase = exports.PROVIDER_MANAGED = exports.ADMIN_SIGNED_IN = exports.RECORD_CORPUS = exports.RUNTIME_CORPUS = exports.MemorySessionRunner = exports.runTimeOfPath = exports.resolveProgram = exports.programNotFound = exports.DOCUMENTED_RUN_TIMES = exports.createRuntimeService = exports.CODE_DEBUG = exports.MemorySessionHost = exports.DEFAULT_SESSIONS = exports.createSessionService = exports.SESSION_CORPUS = exports.APP_CORPUS = exports.DEPLOY_CORPUS = exports.IDENTITY_CORPUS = exports.DRIVE_CORPUS = exports.parseIdentity = exports.IDENTITY_FORMAT = exports.DEFAULT_IDENTITY = exports.MemoryIdentityStore = void 0;
19
19
  /**
20
20
  * `@sasjs/api` - the SASjs Server API described once.
21
21
  *
@@ -58,6 +58,11 @@ Object.defineProperty(exports, "findRoute", { enumerable: true, get: function ()
58
58
  var overlay_js_1 = require("./routes/overlay.js");
59
59
  Object.defineProperty(exports, "OVERLAY", { enumerable: true, get: function () { return overlay_js_1.OVERLAY; } });
60
60
  Object.defineProperty(exports, "TAG_CAPABILITIES", { enumerable: true, get: function () { return overlay_js_1.TAG_CAPABILITIES; } });
61
+ // the client's call surface, and this package's decision about each entry: a
62
+ // host that refuses an out-of-scope path reads the same statement the guard does
63
+ var surface_js_1 = require("./viya/surface.js");
64
+ Object.defineProperty(exports, "SURFACE", { enumerable: true, get: function () { return surface_js_1.SURFACE; } });
65
+ Object.defineProperty(exports, "SURFACE_ADAPTER_VERSION", { enumerable: true, get: function () { return surface_js_1.SURFACE_ADAPTER_VERSION; } });
61
66
  var dispatch_js_1 = require("./host/dispatch.js");
62
67
  Object.defineProperty(exports, "dispatch", { enumerable: true, get: function () { return dispatch_js_1.dispatch; } });
63
68
  Object.defineProperty(exports, "HANDLED_ROUTES", { enumerable: true, get: function () { return dispatch_js_1.HANDLED_ROUTES; } });
@@ -0,0 +1,374 @@
1
+ "use strict";
2
+ /**
3
+ * The adapter's call surface, and what this package decides about each entry.
4
+ *
5
+ * Scope decision 3 of sasjs/server#665: the emulator answers the client's calls
6
+ * and nothing else. This file is that statement in a form a check can read,
7
+ * extracted from `@sasjs/adapter` 6.0.2 rather than from memory, and compared
8
+ * with the adapter again by `npm run check:scope` (extraction) and by
9
+ * `spec/viyaScope.spec.ts` (this file against the committed inventory).
10
+ *
11
+ * `decision: 'in'` means a host must answer it, and the table that lands next
12
+ * has to cover it. `declined` means it is out of scope, with the reason that
13
+ * goes into the 501 body if a client ever calls it here.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SURFACE = exports.SURFACE_ADAPTER_VERSION = void 0;
17
+ /** Pinned to the adapter the inventory was extracted from. */
18
+ exports.SURFACE_ADAPTER_VERSION = '6.0.2';
19
+ exports.SURFACE = [
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
+ {
46
+ path: '/Public/seedapp',
47
+ family: 'sas9',
48
+ decision: 'declined',
49
+ reason: 'a path in a doc example or a default config value, not a call'
50
+ },
51
+ {
52
+ path: '/SASJobExecution',
53
+ family: 'sas9',
54
+ decision: 'declined',
55
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
56
+ },
57
+ // viya-auth
58
+ {
59
+ path: '/SASLogon',
60
+ family: 'viya-auth',
61
+ decision: 'in',
62
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
63
+ },
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
+ {
71
+ path: '/SASLogon/login',
72
+ family: 'viya-auth',
73
+ decision: 'in',
74
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
75
+ },
76
+ {
77
+ path: '/SASLogon/login.do',
78
+ family: 'viya-auth',
79
+ decision: 'in',
80
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
81
+ },
82
+ {
83
+ path: '/SASLogon/logout',
84
+ family: 'viya-auth',
85
+ decision: 'in',
86
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
87
+ },
88
+ {
89
+ path: '/SASLogon/logout.do',
90
+ family: 'viya-auth',
91
+ decision: 'in',
92
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
93
+ },
94
+ {
95
+ path: '/SASLogon/oauth/authorize',
96
+ family: 'viya-auth',
97
+ decision: 'in',
98
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
99
+ },
100
+ {
101
+ path: '/SASLogon/oauth/token',
102
+ family: 'viya-auth',
103
+ decision: 'in',
104
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
105
+ },
106
+ // sas9
107
+ {
108
+ path: '/SASStoredProcess',
109
+ family: 'sas9',
110
+ decision: 'declined',
111
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
112
+ },
113
+ {
114
+ path: '/SASStoredProcess/do',
115
+ family: 'sas9',
116
+ decision: 'declined',
117
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
118
+ },
119
+ {
120
+ path: '/SASStoredProcess/j_spring_cas_security_check',
121
+ family: 'sas9',
122
+ decision: 'declined',
123
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
124
+ },
125
+ // sasjs-api
126
+ {
127
+ path: '/SASjsApi',
128
+ family: 'sasjs-api',
129
+ decision: 'declined',
130
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
131
+ },
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
+ // sas9
139
+ {
140
+ path: '/User Folders/{}/My Folder/sasjs/runner',
141
+ family: 'sas9',
142
+ decision: 'declined',
143
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
144
+ },
145
+ // 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
+ {
159
+ path: '/auth/refresh',
160
+ family: 'sasjs-api',
161
+ decision: 'declined',
162
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
163
+ },
164
+ {
165
+ path: '/auth/token',
166
+ family: 'sasjs-api',
167
+ decision: 'declined',
168
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
169
+ },
170
+ {
171
+ path: '/code/execute',
172
+ family: 'sasjs-api',
173
+ decision: 'declined',
174
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
175
+ },
176
+ // viya-compute
177
+ {
178
+ path: '/compute/contexts',
179
+ family: 'viya-compute',
180
+ decision: 'in',
181
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
182
+ },
183
+ {
184
+ path: '/compute/contexts/{}',
185
+ family: 'viya-compute',
186
+ decision: 'in',
187
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
188
+ },
189
+ {
190
+ path: '/compute/contexts/{}/sessions',
191
+ family: 'viya-compute',
192
+ decision: 'in',
193
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
194
+ },
195
+ {
196
+ path: '/compute/sessions/{}',
197
+ family: 'viya-compute',
198
+ decision: 'in',
199
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
200
+ },
201
+ {
202
+ path: '/compute/sessions/{}/filerefs/_webout/content',
203
+ family: 'viya-compute',
204
+ decision: 'in',
205
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
206
+ },
207
+ {
208
+ path: '/compute/sessions/{}/jobs',
209
+ family: 'viya-compute',
210
+ decision: 'in',
211
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
212
+ },
213
+ {
214
+ path: '/compute/sessions/{}/jobs/{}',
215
+ family: 'viya-compute',
216
+ decision: 'in',
217
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
218
+ },
219
+ {
220
+ path: '/compute/sessions/{}/variables/{}',
221
+ family: 'viya-compute',
222
+ decision: 'in',
223
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
224
+ },
225
+ // viya-files
226
+ {
227
+ path: '/content',
228
+ family: 'viya-files',
229
+ decision: 'declined',
230
+ reason: 'not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it'
231
+ },
232
+ // sasjs-api
233
+ {
234
+ path: '/drive/deploy',
235
+ family: 'sasjs-api',
236
+ decision: 'declined',
237
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
238
+ },
239
+ {
240
+ path: '/drive/deploy/upload',
241
+ family: 'sasjs-api',
242
+ decision: 'declined',
243
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
244
+ },
245
+ // viya-files
246
+ {
247
+ path: '/files/files',
248
+ family: 'viya-files',
249
+ decision: 'in',
250
+ reason: 'file create, read and replace, which the emulator backs with DriveService'
251
+ },
252
+ {
253
+ path: '/files/files/{}',
254
+ family: 'viya-files',
255
+ decision: 'in',
256
+ reason: 'file create, read and replace, which the emulator backs with DriveService'
257
+ },
258
+ // viya-folders
259
+ {
260
+ path: '/folders/folders',
261
+ family: 'viya-folders',
262
+ decision: 'in',
263
+ reason: 'content structure, which the emulator backs with DriveService'
264
+ },
265
+ {
266
+ path: '/folders/folders/@item',
267
+ family: 'viya-folders',
268
+ decision: 'in',
269
+ reason: 'content structure, which the emulator backs with DriveService'
270
+ },
271
+ {
272
+ path: '/folders/folders/@myRecycleBin',
273
+ family: 'viya-folders',
274
+ decision: 'in',
275
+ reason: 'content structure, which the emulator backs with DriveService'
276
+ },
277
+ {
278
+ path: '/folders/folders/{}',
279
+ family: 'viya-folders',
280
+ decision: 'in',
281
+ reason: 'content structure, which the emulator backs with DriveService'
282
+ },
283
+ {
284
+ path: '/folders/folders/{}/members',
285
+ family: 'viya-folders',
286
+ decision: 'in',
287
+ reason: 'content structure, which the emulator backs with DriveService'
288
+ },
289
+ // viya-identity
290
+ {
291
+ path: '/identities/users/@currentUser',
292
+ family: 'viya-identity',
293
+ decision: 'in',
294
+ reason: 'who the caller is; every session and folder answer is scoped to it'
295
+ },
296
+ // viya-jobs
297
+ {
298
+ path: '/jobDefinitions/definitions',
299
+ family: 'viya-jobs',
300
+ decision: 'in',
301
+ reason: 'the job path a deployed service runs through'
302
+ },
303
+ {
304
+ path: '/jobExecution/jobs',
305
+ family: 'viya-jobs',
306
+ decision: 'in',
307
+ reason: 'the job path a deployed service runs through'
308
+ },
309
+ {
310
+ path: '/jobExecution/jobs/{}',
311
+ family: 'viya-jobs',
312
+ decision: 'in',
313
+ reason: 'the job path a deployed service runs through'
314
+ },
315
+ // viya-compute
316
+ {
317
+ path: '/launcher/contexts',
318
+ family: 'viya-compute',
319
+ decision: 'in',
320
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
321
+ },
322
+ // viya-files
323
+ {
324
+ path: '/log',
325
+ family: 'viya-files',
326
+ decision: 'declined',
327
+ reason: 'not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it'
328
+ },
329
+ // viya-auth
330
+ {
331
+ path: '/oauth/clients/{}',
332
+ family: 'viya-auth',
333
+ decision: 'declined',
334
+ reason: 'client registration is an identity-provider admin action; the emulated estate accepts the public `sas.cli` client and mints its own tokens'
335
+ },
336
+ // sasjs-api
337
+ {
338
+ path: '/session/{}',
339
+ family: 'sasjs-api',
340
+ decision: 'declined',
341
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
342
+ },
343
+ {
344
+ path: '/session/{}/log',
345
+ family: 'sasjs-api',
346
+ decision: 'declined',
347
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
348
+ },
349
+ {
350
+ path: '/session/{}/state',
351
+ family: 'sasjs-api',
352
+ decision: 'declined',
353
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
354
+ },
355
+ {
356
+ path: '/stp/execute',
357
+ family: 'sasjs-api',
358
+ decision: 'declined',
359
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
360
+ },
361
+ {
362
+ path: '/stp/trigger',
363
+ family: 'sasjs-api',
364
+ decision: 'declined',
365
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
366
+ },
367
+ // viya-files
368
+ {
369
+ path: '/types/types',
370
+ family: 'viya-files',
371
+ decision: 'in',
372
+ reason: 'read before every file create, to find the type definition for the extension'
373
+ }
374
+ ];
@@ -24,6 +24,8 @@ export { ROUTES, routeById, findRoute } from './routes/index.js';
24
24
  export type { RouteMatch } from './routes/index.js';
25
25
  export { OVERLAY, TAG_CAPABILITIES } from './routes/overlay.js';
26
26
  export type { RouteOverlay } from './routes/overlay.js';
27
+ export { SURFACE, SURFACE_ADAPTER_VERSION } from './viya/surface.js';
28
+ export type { SurfaceEntry, SurfaceFamily } from './viya/surface.js';
27
29
  export { dispatch, HANDLED_ROUTES } from './host/dispatch.js';
28
30
  export * from './identity/routeAccess.js';
29
31
  export type { ApiRequest, ApiResponse, Services } from './host/dispatch.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,MAAM,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAA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AC9B,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,UAAU,EACX,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,SAAS,EACT,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA"}
@@ -20,6 +20,9 @@ export { DEPLOY_LIMITS, DEPLOY_PAYLOAD_BYTES, DEPLOY_SUCCESS, checkDeployTree, d
20
20
  export { MemoryDriveStore } from './drive/memory-store.js';
21
21
  export { ROUTES, routeById, findRoute } from './routes/index.js';
22
22
  export { OVERLAY, TAG_CAPABILITIES } from './routes/overlay.js';
23
+ // the client's call surface, and this package's decision about each entry: a
24
+ // host that refuses an out-of-scope path reads the same statement the guard does
25
+ export { SURFACE, SURFACE_ADAPTER_VERSION } from './viya/surface.js';
23
26
  export { dispatch, HANDLED_ROUTES } from './host/dispatch.js';
24
27
  // a host gating its own middleware reads the same decision the inventory reports
25
28
  export * from './identity/routeAccess.js';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The adapter's call surface, and what this package decides about each entry.
3
+ *
4
+ * Scope decision 3 of sasjs/server#665: the emulator answers the client's calls
5
+ * and nothing else. This file is that statement in a form a check can read,
6
+ * extracted from `@sasjs/adapter` 6.0.2 rather than from memory, and compared
7
+ * with the adapter again by `npm run check:scope` (extraction) and by
8
+ * `spec/viyaScope.spec.ts` (this file against the committed inventory).
9
+ *
10
+ * `decision: 'in'` means a host must answer it, and the table that lands next
11
+ * has to cover it. `declined` means it is out of scope, with the reason that
12
+ * goes into the 501 body if a client ever calls it here.
13
+ */
14
+ export type SurfaceFamily = 'sas9' | 'sasjs-api' | 'viya-auth' | 'viya-compute' | 'viya-files' | 'viya-folders' | 'viya-identity' | 'viya-jobs';
15
+ export interface SurfaceEntry {
16
+ /** Where the client sends it; `{}` is one path segment. */
17
+ path: string;
18
+ family: SurfaceFamily;
19
+ decision: 'in' | 'declined';
20
+ /** What the emulator answers, or why it does not answer this at all. */
21
+ reason: string;
22
+ }
23
+ /** Pinned to the adapter the inventory was extracted from. */
24
+ export declare const SURFACE_ADAPTER_VERSION = "6.0.2";
25
+ export declare const SURFACE: SurfaceEntry[];
26
+ //# sourceMappingURL=surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/viya/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,WAAW,GACX,WAAW,GACX,cAAc,GACd,YAAY,GACZ,cAAc,GACd,eAAe,GACf,WAAW,CAAA;AAEf,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,IAAI,GAAG,UAAU,CAAA;IAC3B,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAA;CACf;AAED,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,UAAU,CAAA;AAE9C,eAAO,MAAM,OAAO,EAAE,YAAY,EA8ZjC,CAAA"}
@@ -0,0 +1,371 @@
1
+ /**
2
+ * The adapter's call surface, and what this package decides about each entry.
3
+ *
4
+ * Scope decision 3 of sasjs/server#665: the emulator answers the client's calls
5
+ * and nothing else. This file is that statement in a form a check can read,
6
+ * extracted from `@sasjs/adapter` 6.0.2 rather than from memory, and compared
7
+ * with the adapter again by `npm run check:scope` (extraction) and by
8
+ * `spec/viyaScope.spec.ts` (this file against the committed inventory).
9
+ *
10
+ * `decision: 'in'` means a host must answer it, and the table that lands next
11
+ * has to cover it. `declined` means it is out of scope, with the reason that
12
+ * goes into the 501 body if a client ever calls it here.
13
+ */
14
+ /** Pinned to the adapter the inventory was extracted from. */
15
+ export const SURFACE_ADAPTER_VERSION = '6.0.2';
16
+ export const SURFACE = [
17
+ // sas9
18
+ {
19
+ path: '/Public/example/deleteThis',
20
+ family: 'sas9',
21
+ decision: 'declined',
22
+ reason: 'a path in a doc example or a default config value, not a call'
23
+ },
24
+ {
25
+ path: '/Public/example/myFolder',
26
+ family: 'sas9',
27
+ decision: 'declined',
28
+ reason: 'a path in a doc example or a default config value, not a call'
29
+ },
30
+ {
31
+ path: '/Public/newDestination',
32
+ family: 'sas9',
33
+ decision: 'declined',
34
+ reason: 'a path in a doc example or a default config value, not a call'
35
+ },
36
+ {
37
+ path: '/Public/newDestination/myFolder',
38
+ family: 'sas9',
39
+ decision: 'declined',
40
+ reason: 'a path in a doc example or a default config value, not a call'
41
+ },
42
+ {
43
+ path: '/Public/seedapp',
44
+ family: 'sas9',
45
+ decision: 'declined',
46
+ reason: 'a path in a doc example or a default config value, not a call'
47
+ },
48
+ {
49
+ path: '/SASJobExecution',
50
+ family: 'sas9',
51
+ decision: 'declined',
52
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
53
+ },
54
+ // viya-auth
55
+ {
56
+ path: '/SASLogon',
57
+ family: 'viya-auth',
58
+ decision: 'in',
59
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
60
+ },
61
+ {
62
+ path: '/SASLogon/home',
63
+ family: 'viya-auth',
64
+ decision: 'in',
65
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
66
+ },
67
+ {
68
+ path: '/SASLogon/login',
69
+ family: 'viya-auth',
70
+ decision: 'in',
71
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
72
+ },
73
+ {
74
+ path: '/SASLogon/login.do',
75
+ family: 'viya-auth',
76
+ decision: 'in',
77
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
78
+ },
79
+ {
80
+ path: '/SASLogon/logout',
81
+ family: 'viya-auth',
82
+ decision: 'in',
83
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
84
+ },
85
+ {
86
+ path: '/SASLogon/logout.do',
87
+ family: 'viya-auth',
88
+ decision: 'in',
89
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
90
+ },
91
+ {
92
+ path: '/SASLogon/oauth/authorize',
93
+ family: 'viya-auth',
94
+ decision: 'in',
95
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
96
+ },
97
+ {
98
+ path: '/SASLogon/oauth/token',
99
+ family: 'viya-auth',
100
+ decision: 'in',
101
+ reason: 'the auth flow the client speaks, and the reason the emulated paths cannot be renamed'
102
+ },
103
+ // sas9
104
+ {
105
+ path: '/SASStoredProcess',
106
+ family: 'sas9',
107
+ decision: 'declined',
108
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
109
+ },
110
+ {
111
+ path: '/SASStoredProcess/do',
112
+ family: 'sas9',
113
+ decision: 'declined',
114
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
115
+ },
116
+ {
117
+ path: '/SASStoredProcess/j_spring_cas_security_check',
118
+ family: 'sas9',
119
+ decision: 'declined',
120
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
121
+ },
122
+ // sasjs-api
123
+ {
124
+ path: '/SASjsApi',
125
+ family: 'sasjs-api',
126
+ decision: 'declined',
127
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
128
+ },
129
+ {
130
+ path: '/SASjsApi/{}',
131
+ family: 'sasjs-api',
132
+ decision: 'declined',
133
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
134
+ },
135
+ // sas9
136
+ {
137
+ path: '/User Folders/{}/My Folder/sasjs/runner',
138
+ family: 'sas9',
139
+ decision: 'declined',
140
+ reason: 'SAS 9 and SASjs surfaces: the emulator answers Viya, and the same client reaches these on an EBI deployment'
141
+ },
142
+ // sasjs-api
143
+ {
144
+ path: '/api',
145
+ family: 'sasjs-api',
146
+ decision: 'declined',
147
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
148
+ },
149
+ {
150
+ path: '/api/stp/execute',
151
+ family: 'sasjs-api',
152
+ decision: 'declined',
153
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
154
+ },
155
+ {
156
+ path: '/auth/refresh',
157
+ family: 'sasjs-api',
158
+ decision: 'declined',
159
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
160
+ },
161
+ {
162
+ path: '/auth/token',
163
+ family: 'sasjs-api',
164
+ decision: 'declined',
165
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
166
+ },
167
+ {
168
+ path: '/code/execute',
169
+ family: 'sasjs-api',
170
+ decision: 'declined',
171
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
172
+ },
173
+ // viya-compute
174
+ {
175
+ path: '/compute/contexts',
176
+ family: 'viya-compute',
177
+ decision: 'in',
178
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
179
+ },
180
+ {
181
+ path: '/compute/contexts/{}',
182
+ family: 'viya-compute',
183
+ decision: 'in',
184
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
185
+ },
186
+ {
187
+ path: '/compute/contexts/{}/sessions',
188
+ family: 'viya-compute',
189
+ decision: 'in',
190
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
191
+ },
192
+ {
193
+ path: '/compute/sessions/{}',
194
+ family: 'viya-compute',
195
+ decision: 'in',
196
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
197
+ },
198
+ {
199
+ path: '/compute/sessions/{}/filerefs/_webout/content',
200
+ family: 'viya-compute',
201
+ decision: 'in',
202
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
203
+ },
204
+ {
205
+ path: '/compute/sessions/{}/jobs',
206
+ family: 'viya-compute',
207
+ decision: 'in',
208
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
209
+ },
210
+ {
211
+ path: '/compute/sessions/{}/jobs/{}',
212
+ family: 'viya-compute',
213
+ decision: 'in',
214
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
215
+ },
216
+ {
217
+ path: '/compute/sessions/{}/variables/{}',
218
+ family: 'viya-compute',
219
+ decision: 'in',
220
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
221
+ },
222
+ // viya-files
223
+ {
224
+ path: '/content',
225
+ family: 'viya-files',
226
+ decision: 'declined',
227
+ reason: 'not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it'
228
+ },
229
+ // sasjs-api
230
+ {
231
+ path: '/drive/deploy',
232
+ family: 'sasjs-api',
233
+ decision: 'declined',
234
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
235
+ },
236
+ {
237
+ path: '/drive/deploy/upload',
238
+ family: 'sasjs-api',
239
+ decision: 'declined',
240
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
241
+ },
242
+ // viya-files
243
+ {
244
+ path: '/files/files',
245
+ family: 'viya-files',
246
+ decision: 'in',
247
+ reason: 'file create, read and replace, which the emulator backs with DriveService'
248
+ },
249
+ {
250
+ path: '/files/files/{}',
251
+ family: 'viya-files',
252
+ decision: 'in',
253
+ reason: 'file create, read and replace, which the emulator backs with DriveService'
254
+ },
255
+ // viya-folders
256
+ {
257
+ path: '/folders/folders',
258
+ family: 'viya-folders',
259
+ decision: 'in',
260
+ reason: 'content structure, which the emulator backs with DriveService'
261
+ },
262
+ {
263
+ path: '/folders/folders/@item',
264
+ family: 'viya-folders',
265
+ decision: 'in',
266
+ reason: 'content structure, which the emulator backs with DriveService'
267
+ },
268
+ {
269
+ path: '/folders/folders/@myRecycleBin',
270
+ family: 'viya-folders',
271
+ decision: 'in',
272
+ reason: 'content structure, which the emulator backs with DriveService'
273
+ },
274
+ {
275
+ path: '/folders/folders/{}',
276
+ family: 'viya-folders',
277
+ decision: 'in',
278
+ reason: 'content structure, which the emulator backs with DriveService'
279
+ },
280
+ {
281
+ path: '/folders/folders/{}/members',
282
+ family: 'viya-folders',
283
+ decision: 'in',
284
+ reason: 'content structure, which the emulator backs with DriveService'
285
+ },
286
+ // viya-identity
287
+ {
288
+ path: '/identities/users/@currentUser',
289
+ family: 'viya-identity',
290
+ decision: 'in',
291
+ reason: 'who the caller is; every session and folder answer is scoped to it'
292
+ },
293
+ // viya-jobs
294
+ {
295
+ path: '/jobDefinitions/definitions',
296
+ family: 'viya-jobs',
297
+ decision: 'in',
298
+ reason: 'the job path a deployed service runs through'
299
+ },
300
+ {
301
+ path: '/jobExecution/jobs',
302
+ family: 'viya-jobs',
303
+ decision: 'in',
304
+ reason: 'the job path a deployed service runs through'
305
+ },
306
+ {
307
+ path: '/jobExecution/jobs/{}',
308
+ family: 'viya-jobs',
309
+ decision: 'in',
310
+ reason: 'the job path a deployed service runs through'
311
+ },
312
+ // viya-compute
313
+ {
314
+ path: '/launcher/contexts',
315
+ family: 'viya-compute',
316
+ decision: 'in',
317
+ reason: 'contexts, sessions, jobs and the webout fileref, which the emulator backs with SessionService and RuntimeService'
318
+ },
319
+ // viya-files
320
+ {
321
+ path: '/log',
322
+ family: 'viya-files',
323
+ decision: 'declined',
324
+ reason: 'not a route: a suffix the client appends to a file or log URI, which is why the file-content and job-log entries above carry it'
325
+ },
326
+ // viya-auth
327
+ {
328
+ path: '/oauth/clients/{}',
329
+ family: 'viya-auth',
330
+ decision: 'declined',
331
+ reason: 'client registration is an identity-provider admin action; the emulated estate accepts the public `sas.cli` client and mints its own tokens'
332
+ },
333
+ // sasjs-api
334
+ {
335
+ path: '/session/{}',
336
+ family: 'sasjs-api',
337
+ decision: 'declined',
338
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
339
+ },
340
+ {
341
+ path: '/session/{}/log',
342
+ family: 'sasjs-api',
343
+ decision: 'declined',
344
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
345
+ },
346
+ {
347
+ path: '/session/{}/state',
348
+ family: 'sasjs-api',
349
+ decision: 'declined',
350
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
351
+ },
352
+ {
353
+ path: '/stp/execute',
354
+ family: 'sasjs-api',
355
+ decision: 'declined',
356
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
357
+ },
358
+ {
359
+ path: '/stp/trigger',
360
+ family: 'sasjs-api',
361
+ decision: 'declined',
362
+ reason: "the SASjs API surface, answered by the server's own registered routes, not by a Viya-shaped one"
363
+ },
364
+ // viya-files
365
+ {
366
+ path: '/types/types',
367
+ family: 'viya-files',
368
+ decision: 'in',
369
+ reason: 'read before every file create, to find the type definition for the extension'
370
+ }
371
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sasjs/api",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "The SASjs Server API, described once - a generated route table, the services behind it, and the conformance corpus both hosts run",
5
5
  "license": "MIT",
6
6
  "author": "SASjs",
@@ -42,6 +42,8 @@
42
42
  "lint:fix": "prettier --write \"{src,spec,scripts,tools}/**/*.{ts,mjs,cjs,md}\" \"*.{json,md}\"",
43
43
  "sync:routes": "node scripts/sync-routes.mjs",
44
44
  "check:routes": "node scripts/sync-routes.mjs --check",
45
+ "sync:scope": "node scripts/viya-scope.mjs",
46
+ "check:scope": "node scripts/viya-scope.mjs --check",
45
47
  "check:builds": "node scripts/check-builds.mjs",
46
48
  "audit:gate": "node scripts/audit.mjs",
47
49
  "check:appstream": "node scripts/appstream-browser-check.cjs"