@sasjs/api 0.45.0 → 0.47.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.
@@ -2,7 +2,7 @@ import { ApiError } from '../types.js';
2
2
  import { requireDrive } from './ports.js';
3
3
  import { COMPUTE_HANDLERS } from './compute.js';
4
4
  import { FILE_HANDLERS } from './files.js';
5
- import { idFor, normalisePath, EMULATED_NOW, EMULATED_USER } from './ids.js';
5
+ import { idFor, normalisePath, EMULATED_NOW, EMULATED_USER, callerId } from './ids.js';
6
6
  const linksFor = (uri, collection = false) => {
7
7
  const self = {
8
8
  href: uri,
@@ -23,7 +23,7 @@ const linksFor = (uri, collection = false) => {
23
23
  // itemType its capture recorded
24
24
  return collection ? [members, self] : [self, members];
25
25
  };
26
- const folderBody = async (drive, path) => {
26
+ const folderBody = async (drive, path, caller) => {
27
27
  const listing = await drive.list(path);
28
28
  const id = idFor(path);
29
29
  const name = path.split('/').filter(Boolean).pop() ?? '';
@@ -34,8 +34,8 @@ const folderBody = async (drive, path) => {
34
34
  description: '',
35
35
  type: 'folder',
36
36
  version: 1,
37
- createdBy: EMULATED_USER.id,
38
- modifiedBy: EMULATED_USER.id,
37
+ createdBy: caller,
38
+ modifiedBy: caller,
39
39
  creationTimeStamp: EMULATED_NOW,
40
40
  modifiedTimeStamp: EMULATED_NOW,
41
41
  memberCount: listing.files.length + listing.folders.length,
@@ -43,7 +43,7 @@ const folderBody = async (drive, path) => {
43
43
  links: linksFor(`/folders/folders/${id}`)
44
44
  };
45
45
  };
46
- const recycleBin = () => {
46
+ const recycleBin = (caller) => {
47
47
  const path = '@myRecycleBin';
48
48
  const id = idFor(path);
49
49
  return {
@@ -52,8 +52,8 @@ const recycleBin = () => {
52
52
  description: 'Recycle Bin',
53
53
  type: 'trashFolder',
54
54
  version: 1,
55
- createdBy: EMULATED_USER.id,
56
- modifiedBy: EMULATED_USER.id,
55
+ createdBy: caller,
56
+ modifiedBy: caller,
57
57
  creationTimeStamp: EMULATED_NOW,
58
58
  modifiedTimeStamp: EMULATED_NOW,
59
59
  memberCount: 0,
@@ -100,9 +100,9 @@ const pathForId = async (drive, id) => {
100
100
  /** The handlers, keyed by the operation id the table states. */
101
101
  export const VIYA_HANDLERS = {
102
102
  'GET /identities/users/@currentUser': async ({ services, request }) => {
103
- const subject = request.subject ??
104
- (await services.identity?.authenticate(request.token));
105
- const id = subject?.userId ?? EMULATED_USER.id;
103
+ // the host's resolved caller wins; a token is the second way to name one
104
+ const subject = request.subject ?? (await services.identity?.authenticate(request.token));
105
+ const id = callerId(subject);
106
106
  return {
107
107
  status: 200,
108
108
  body: {
@@ -141,20 +141,20 @@ export const VIYA_HANDLERS = {
141
141
  }),
142
142
  'GET /folders/folders/@item': async ({ services, request }) => ({
143
143
  status: 200,
144
- body: await folderBody(requireDrive(services), pathFromQuery(request))
144
+ body: await folderBody(requireDrive(services), pathFromQuery(request), callerId(request.subject))
145
145
  }),
146
- 'GET /folders/folders/@myRecycleBin': async () => ({
146
+ 'GET /folders/folders/@myRecycleBin': async ({ request }) => ({
147
147
  status: 200,
148
- body: recycleBin()
148
+ body: recycleBin(callerId(request.subject))
149
149
  }),
150
- 'GET /folders/folders/{}': async ({ services, params }) => {
150
+ 'GET /folders/folders/{}': async ({ services, params, request }) => {
151
151
  // the bin is addressed by id too, and it is not in the drive's tree
152
152
  if (params.id === idFor('@myRecycleBin'))
153
- return { status: 200, body: recycleBin() };
153
+ return { status: 200, body: recycleBin(callerId(request.subject)) };
154
154
  const drive = requireDrive(services);
155
155
  return {
156
156
  status: 200,
157
- body: await folderBody(drive, await pathForId(drive, params.id))
157
+ body: await folderBody(drive, await pathForId(drive, params.id), callerId(request.subject))
158
158
  };
159
159
  },
160
160
  'GET /folders/folders/{}/members': async ({ services, params, request }) => {
@@ -180,6 +180,7 @@ export const VIYA_HANDLERS = {
180
180
  };
181
181
  const path = await pathForId(drive, params.id);
182
182
  const listing = await drive.list(path);
183
+ const caller = callerId(request.subject);
183
184
  /**
184
185
  * A member's `uri` is the resource, not its path.
185
186
  *
@@ -195,8 +196,8 @@ export const VIYA_HANDLERS = {
195
196
  name,
196
197
  type: 'folder',
197
198
  version: 1,
198
- createdBy: EMULATED_USER.id,
199
- modifiedBy: EMULATED_USER.id,
199
+ createdBy: caller,
200
+ modifiedBy: caller,
200
201
  creationTimeStamp: EMULATED_NOW,
201
202
  modifiedTimeStamp: EMULATED_NOW,
202
203
  parentFolderUri: `/folders/folders/${idFor(path)}`,
@@ -209,8 +210,8 @@ export const VIYA_HANDLERS = {
209
210
  type: 'file',
210
211
  version: 1,
211
212
  contentType: 'text/plain',
212
- createdBy: EMULATED_USER.id,
213
- modifiedBy: EMULATED_USER.id,
213
+ createdBy: caller,
214
+ modifiedBy: caller,
214
215
  creationTimeStamp: EMULATED_NOW,
215
216
  modifiedTimeStamp: EMULATED_NOW,
216
217
  parentFolderUri: `/folders/folders/${idFor(path)}`,
@@ -249,7 +250,10 @@ export const VIYA_HANDLERS = {
249
250
  : '/';
250
251
  const path = normalisePath(`${parent}/${body.name}`);
251
252
  await drive.mkdir(path);
252
- return { status: 201, body: await folderBody(drive, path) };
253
+ return {
254
+ status: 201,
255
+ body: await folderBody(drive, path, callerId(request.subject))
256
+ };
253
257
  },
254
258
  'PATCH /folders/folders/{}': async ({ services, request, params }) => {
255
259
  const drive = requireDrive(services);
@@ -261,7 +265,7 @@ export const VIYA_HANDLERS = {
261
265
  // shape the capture recorded for this verb. Both spellings arrive: the bin's
262
266
  // id, and the alias the emulator itself answers with
263
267
  if (isRecycleBin(body.parentFolderUri)) {
264
- const removed = await folderBody(drive, path);
268
+ const removed = await folderBody(drive, path, callerId(request.subject));
265
269
  await drive.rmdir(path);
266
270
  // the answer describes the folder that was moved, not the drive root -
267
271
  // a client reads the id and parent from it
@@ -282,7 +286,10 @@ export const VIYA_HANDLERS = {
282
286
  const target = normalisePath(`${parent}/${name}`);
283
287
  if (target !== path)
284
288
  await drive.rename(path, target);
285
- return { status: 200, body: await folderBody(drive, target) };
289
+ return {
290
+ status: 200,
291
+ body: await folderBody(drive, target, callerId(request.subject))
292
+ };
286
293
  },
287
294
  ...COMPUTE_HANDLERS,
288
295
  ...FILE_HANDLERS
@@ -35,6 +35,17 @@ export interface SurfaceEntry {
35
35
  decision: 'in' | 'declined';
36
36
  /** What the emulator answers, or why it does not answer this at all. */
37
37
  reason: string;
38
+ /**
39
+ * Where the claim that the client calls this came from.
40
+ *
41
+ * Absent means a literal in the adapter, which is what the inventory
42
+ * extracts and what `npm run check:scope` re-extracts. `capture` means a
43
+ * route the recorder watched the adapter call but no literal states, because
44
+ * the adapter got the URL as data - a link inside a response - so no
45
+ * extraction over source text can see it. A capture-sourced entry must be
46
+ * absent from the inventory, and the spec holds both directions.
47
+ */
48
+ source?: 'capture';
38
49
  }
39
50
  /** Pinned to the adapter the inventory was extracted from. */
40
51
  export declare const SURFACE_ADAPTER_VERSION = "6.1.2";
@@ -1 +1 @@
1
- {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/viya/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,UAAU,CAAA;AAE1C,eAAO,MAAM,OAAO,EAAE,YAAY,EAwXjC,CAAA"}
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/viya/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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;IACd;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,UAAU,CAAA;AAE9C,0DAA0D;AAC1D,eAAO,MAAM,mBAAmB,UAAU,CAAA;AAE1C,eAAO,MAAM,OAAO,EAAE,YAAY,EAgYjC,CAAA"}
@@ -279,6 +279,13 @@ export const SURFACE = [
279
279
  decision: 'in',
280
280
  reason: 'the job path a deployed service runs through'
281
281
  },
282
+ {
283
+ path: '/jobDefinitions/definitions/{}',
284
+ family: 'viya-jobs',
285
+ decision: 'in',
286
+ source: 'capture',
287
+ reason: 'the definition itself, which the client reads through the link a folder listing handed it - the URL arrives as data, so no literal in the adapter states it'
288
+ },
282
289
  {
283
290
  path: '/jobExecution/jobs',
284
291
  family: 'viya-jobs',
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/viya/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IAC/C,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,aAAa,EAqxBrC,CAAA"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/viya/table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAA;IAClB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAA;IACZ,yEAAyE;IACzE,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAA;IAC/C,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,aAAa,EAkrCrC,CAAA"}
@@ -261,6 +261,33 @@ export const VIYA_TABLE = [
261
261
  },
262
262
  shape: undefined
263
263
  },
264
+ {
265
+ id: 'GET /compute/sessions/{}/variables/{}',
266
+ method: 'GET',
267
+ path: '/compute/sessions/{}/variables/{}',
268
+ steps: ['compute/execute-script'],
269
+ statuses: [200],
270
+ queries: [],
271
+ request: {
272
+ queries: [],
273
+ body: undefined
274
+ },
275
+ shape: {
276
+ links: [
277
+ {
278
+ href: 'string',
279
+ method: 'string',
280
+ rel: 'string',
281
+ type: 'string',
282
+ uri: 'string'
283
+ }
284
+ ],
285
+ name: 'string',
286
+ scope: 'string',
287
+ value: 'string',
288
+ version: 'number'
289
+ }
290
+ },
264
291
  {
265
292
  id: 'POST /files/files',
266
293
  method: 'POST',
@@ -414,7 +441,7 @@ export const VIYA_TABLE = [
414
441
  id: 'GET /files/files/{}/content',
415
442
  method: 'GET',
416
443
  path: '/files/files/{}/content',
417
- steps: ['files/content'],
444
+ steps: ['files/content', 'jobs/execute'],
418
445
  statuses: [200],
419
446
  queries: [],
420
447
  request: {
@@ -475,7 +502,7 @@ export const VIYA_TABLE = [
475
502
  id: 'POST /folders/folders',
476
503
  method: 'POST',
477
504
  path: '/folders/folders',
478
- steps: ['folders/create'],
505
+ steps: ['folders/create', 'jobs/folder-create'],
479
506
  statuses: [201],
480
507
  queries: ['parentFolderUri'],
481
508
  request: {
@@ -511,7 +538,7 @@ export const VIYA_TABLE = [
511
538
  id: 'GET /folders/folders/{}',
512
539
  method: 'GET',
513
540
  path: '/folders/folders/{}',
514
- steps: ['folders/delete'],
541
+ steps: ['folders/delete', 'jobs/folders/delete'],
515
542
  statuses: [200],
516
543
  queries: [],
517
544
  request: {
@@ -548,7 +575,7 @@ export const VIYA_TABLE = [
548
575
  id: 'PATCH /folders/folders/{}',
549
576
  method: 'PATCH',
550
577
  path: '/folders/folders/{}',
551
- steps: ['folders/delete'],
578
+ steps: ['folders/delete', 'jobs/folders/delete'],
552
579
  statuses: [200],
553
580
  queries: [],
554
581
  request: {
@@ -588,8 +615,8 @@ export const VIYA_TABLE = [
588
615
  steps: [
589
616
  'files/content',
590
617
  'files/replace',
591
- 'folders/create',
592
- 'folders/members'
618
+ 'folders/members',
619
+ 'jobs/execute'
593
620
  ],
594
621
  statuses: [200],
595
622
  queries: ['limit'],
@@ -652,7 +679,13 @@ export const VIYA_TABLE = [
652
679
  'folders/create',
653
680
  'folders/delete',
654
681
  'folders/item',
655
- 'folders/members'
682
+ 'folders/members',
683
+ 'folders/missing',
684
+ 'folders/unauthorized',
685
+ 'jobs/definition',
686
+ 'jobs/execute',
687
+ 'jobs/folder-create',
688
+ 'jobs/folders/delete'
656
689
  ],
657
690
  statuses: [200, 401, 404],
658
691
  queries: ['path'],
@@ -687,7 +720,7 @@ export const VIYA_TABLE = [
687
720
  id: 'GET /folders/folders/@myRecycleBin',
688
721
  method: 'GET',
689
722
  path: '/folders/folders/@myRecycleBin',
690
- steps: ['folders/delete'],
723
+ steps: ['folders/delete', 'jobs/folders/delete'],
691
724
  statuses: [200],
692
725
  queries: [],
693
726
  request: {
@@ -760,6 +793,348 @@ export const VIYA_TABLE = [
760
793
  version: 'number'
761
794
  }
762
795
  },
796
+ {
797
+ id: 'POST /jobDefinitions/definitions',
798
+ method: 'POST',
799
+ path: '/jobDefinitions/definitions',
800
+ steps: ['jobs/definition'],
801
+ statuses: [201],
802
+ queries: ['parentFolderUri'],
803
+ request: {
804
+ queries: ['parentFolderUri'],
805
+ body: {
806
+ code: 'string',
807
+ name: 'string',
808
+ parameters: [
809
+ {
810
+ defaultValue: 'string',
811
+ name: 'string',
812
+ type: 'string'
813
+ }
814
+ ],
815
+ type: 'string'
816
+ }
817
+ },
818
+ shape: {
819
+ code: 'string',
820
+ createdBy: 'string',
821
+ creationTimeStamp: 'string',
822
+ id: 'string',
823
+ links: [
824
+ {
825
+ href: 'string',
826
+ method: 'string',
827
+ rel: 'string',
828
+ type: 'string',
829
+ uri: 'string'
830
+ }
831
+ ],
832
+ modifiedBy: 'string',
833
+ modifiedTimeStamp: 'string',
834
+ name: 'string',
835
+ parameters: [
836
+ {
837
+ defaultValue: 'string',
838
+ name: 'string',
839
+ required: 'boolean',
840
+ type: 'string',
841
+ version: 'number'
842
+ }
843
+ ],
844
+ type: 'string',
845
+ version: 'number'
846
+ }
847
+ },
848
+ {
849
+ id: 'GET /jobDefinitions/definitions/{}',
850
+ method: 'GET',
851
+ path: '/jobDefinitions/definitions/{}',
852
+ steps: ['jobs/execute'],
853
+ statuses: [200],
854
+ queries: [],
855
+ request: {
856
+ queries: [],
857
+ body: undefined
858
+ },
859
+ shape: {
860
+ code: 'string',
861
+ createdBy: 'string',
862
+ creationTimeStamp: 'string',
863
+ id: 'string',
864
+ links: [
865
+ {
866
+ href: 'string',
867
+ method: 'string',
868
+ rel: 'string',
869
+ type: 'string',
870
+ uri: 'string'
871
+ }
872
+ ],
873
+ modifiedBy: 'string',
874
+ modifiedTimeStamp: 'string',
875
+ name: 'string',
876
+ parameters: [
877
+ {
878
+ defaultValue: 'string',
879
+ name: 'string',
880
+ required: 'boolean',
881
+ type: 'string',
882
+ version: 'number'
883
+ }
884
+ ],
885
+ type: 'string',
886
+ version: 'number'
887
+ }
888
+ },
889
+ {
890
+ id: 'POST /jobExecution/jobs',
891
+ method: 'POST',
892
+ path: '/jobExecution/jobs',
893
+ steps: ['jobs/execute'],
894
+ statuses: [201],
895
+ queries: ['_action'],
896
+ request: {
897
+ queries: ['_action'],
898
+ body: {
899
+ arguments: {
900
+ _DEBUG: 'string',
901
+ _OMITJSONLISTING: 'string',
902
+ _OMITJSONLOG: 'string',
903
+ _OMITTEXTLISTING: 'string',
904
+ _OMITTEXTLOG: 'string',
905
+ _contextName: 'string',
906
+ _omitSessionResults: 'string',
907
+ _program: 'string',
908
+ _webin_file_count: 'string'
909
+ },
910
+ description: 'string',
911
+ jobDefinition: {
912
+ code: 'string',
913
+ createdBy: 'string',
914
+ creationTimeStamp: 'string',
915
+ id: 'string',
916
+ links: [
917
+ {
918
+ href: 'string',
919
+ method: 'string',
920
+ rel: 'string',
921
+ type: 'string',
922
+ uri: 'string'
923
+ }
924
+ ],
925
+ modifiedBy: 'string',
926
+ modifiedTimeStamp: 'string',
927
+ name: 'string',
928
+ parameters: [
929
+ {
930
+ defaultValue: 'string',
931
+ name: 'string',
932
+ required: 'boolean',
933
+ type: 'string',
934
+ version: 'number'
935
+ }
936
+ ],
937
+ type: 'string',
938
+ version: 'number'
939
+ },
940
+ name: 'string'
941
+ }
942
+ },
943
+ shape: {
944
+ createdBy: 'string',
945
+ creationTimeStamp: 'string',
946
+ elapsedTime: 'number',
947
+ heartbeatInterval: 'number',
948
+ heartbeatTimeStamp: 'string',
949
+ id: 'string',
950
+ jobRequest: {
951
+ arguments: {
952
+ _DEBUG: 'string',
953
+ _OMITJSONLISTING: 'string',
954
+ _OMITJSONLOG: 'string',
955
+ _OMITTEXTLISTING: 'string',
956
+ _OMITTEXTLOG: 'string',
957
+ _addjesbeginendmacros: 'string',
958
+ _contextName: 'string',
959
+ _omitSessionResults: 'string',
960
+ _program: 'string',
961
+ _webin_file_count: 'string'
962
+ },
963
+ createdByApplication: 'string',
964
+ description: 'string',
965
+ jobDefinition: {
966
+ code: 'string',
967
+ createdBy: 'string',
968
+ creationTimeStamp: 'string',
969
+ id: 'string',
970
+ links: ['object'],
971
+ modifiedBy: 'string',
972
+ modifiedTimeStamp: 'string',
973
+ name: 'string',
974
+ parameters: ['object'],
975
+ type: 'string',
976
+ version: 'number'
977
+ },
978
+ name: 'string',
979
+ properties: 'array',
980
+ version: 'number'
981
+ },
982
+ links: [
983
+ {
984
+ href: 'string',
985
+ method: 'string',
986
+ rel: 'string',
987
+ type: 'string',
988
+ uri: 'string'
989
+ }
990
+ ],
991
+ modifiedBy: 'string',
992
+ modifiedTimeStamp: 'string',
993
+ results: {},
994
+ state: 'string',
995
+ submittedByApplication: 'string',
996
+ version: 'number'
997
+ }
998
+ },
999
+ {
1000
+ id: 'GET /jobExecution/jobs/{}',
1001
+ method: 'GET',
1002
+ path: '/jobExecution/jobs/{}',
1003
+ steps: ['jobs/execute'],
1004
+ statuses: [200],
1005
+ queries: [],
1006
+ request: {
1007
+ queries: [],
1008
+ body: undefined
1009
+ },
1010
+ shape: {
1011
+ createdBy: 'string',
1012
+ creationTimeStamp: 'string',
1013
+ elapsedTime: 'number',
1014
+ endTimeStamp: 'string',
1015
+ heartbeatInterval: 'number',
1016
+ heartbeatTimeStamp: 'string',
1017
+ id: 'string',
1018
+ jobRequest: {
1019
+ arguments: {
1020
+ _DEBUG: 'string',
1021
+ _OMITJSONLISTING: 'string',
1022
+ _OMITJSONLOG: 'string',
1023
+ _OMITTEXTLISTING: 'string',
1024
+ _OMITTEXTLOG: 'string',
1025
+ _addjesbeginendmacros: 'string',
1026
+ _contextName: 'string',
1027
+ _omitSessionResults: 'string',
1028
+ _program: 'string',
1029
+ _webin_file_count: 'string'
1030
+ },
1031
+ createdByApplication: 'string',
1032
+ description: 'string',
1033
+ jobDefinition: {
1034
+ code: 'string',
1035
+ createdBy: 'string',
1036
+ creationTimeStamp: 'string',
1037
+ id: 'string',
1038
+ links: ['object'],
1039
+ modifiedBy: 'string',
1040
+ modifiedTimeStamp: 'string',
1041
+ name: 'string',
1042
+ parameters: ['object'],
1043
+ type: 'string',
1044
+ version: 'number'
1045
+ },
1046
+ name: 'string',
1047
+ properties: 'array',
1048
+ version: 'number'
1049
+ },
1050
+ links: [
1051
+ {
1052
+ href: 'string',
1053
+ method: 'string',
1054
+ rel: 'string',
1055
+ type: 'string',
1056
+ uri: 'string'
1057
+ }
1058
+ ],
1059
+ logLocation: 'string',
1060
+ modifiedBy: 'string',
1061
+ modifiedTimeStamp: 'string',
1062
+ results: {
1063
+ COMPUTE_CONTEXT: 'string',
1064
+ COMPUTE_JOB: 'string',
1065
+ COMPUTE_SESSION: 'string',
1066
+ '{}.log': 'string',
1067
+ '{}.log.txt': 'string'
1068
+ },
1069
+ state: 'string',
1070
+ submittedByApplication: 'string',
1071
+ version: 'number'
1072
+ }
1073
+ },
1074
+ {
1075
+ id: 'GET /jobExecution/jobs/{}/state',
1076
+ method: 'GET',
1077
+ path: '/jobExecution/jobs/{}/state',
1078
+ steps: ['jobs/execute'],
1079
+ statuses: [200],
1080
+ queries: ['_action', 'wait'],
1081
+ request: {
1082
+ queries: ['_action', 'wait'],
1083
+ body: undefined
1084
+ },
1085
+ shape: undefined
1086
+ },
1087
+ {
1088
+ id: 'GET /launcher/contexts',
1089
+ method: 'GET',
1090
+ path: '/launcher/contexts',
1091
+ steps: ['compute/launcher-contexts'],
1092
+ statuses: [200],
1093
+ queries: ['limit'],
1094
+ request: {
1095
+ queries: ['limit'],
1096
+ body: undefined
1097
+ },
1098
+ shape: {
1099
+ accept: 'string',
1100
+ count: 'number',
1101
+ items: [
1102
+ {
1103
+ createdBy: 'string',
1104
+ creationTimeStamp: 'string',
1105
+ description: 'string',
1106
+ id: 'string',
1107
+ links: [
1108
+ {
1109
+ href: 'string',
1110
+ method: 'string',
1111
+ rel: 'string',
1112
+ type: 'string',
1113
+ uri: 'string'
1114
+ }
1115
+ ],
1116
+ modifiedBy: 'string',
1117
+ modifiedTimeStamp: 'string',
1118
+ name: 'string',
1119
+ type: 'string',
1120
+ version: 'number'
1121
+ }
1122
+ ],
1123
+ limit: 'number',
1124
+ links: [
1125
+ {
1126
+ href: 'string',
1127
+ method: 'string',
1128
+ rel: 'string',
1129
+ type: 'string',
1130
+ uri: 'string'
1131
+ }
1132
+ ],
1133
+ name: 'string',
1134
+ start: 'number',
1135
+ version: 'number'
1136
+ }
1137
+ },
763
1138
  {
764
1139
  id: 'POST /SASLogon/oauth/token',
765
1140
  method: 'POST',
@@ -797,6 +1172,44 @@ export const VIYA_TABLE = [
797
1172
  queries: ['limit'],
798
1173
  body: undefined
799
1174
  },
800
- shape: undefined
1175
+ shape: {
1176
+ accept: 'string',
1177
+ count: 'number',
1178
+ items: [
1179
+ {
1180
+ description: 'string',
1181
+ iconUri: 'string',
1182
+ label: 'string',
1183
+ links: [
1184
+ {
1185
+ href: 'string',
1186
+ method: 'string',
1187
+ rel: 'string',
1188
+ type: 'string',
1189
+ uri: 'string'
1190
+ }
1191
+ ],
1192
+ mediaType: 'string',
1193
+ name: 'string',
1194
+ resourceUri: 'string',
1195
+ tags: ['string'],
1196
+ version: 'number'
1197
+ }
1198
+ ],
1199
+ limit: 'number',
1200
+ links: [
1201
+ {
1202
+ href: 'string',
1203
+ itemType: 'string',
1204
+ method: 'string',
1205
+ rel: 'string',
1206
+ type: 'string',
1207
+ uri: 'string'
1208
+ }
1209
+ ],
1210
+ name: 'string',
1211
+ start: 'number',
1212
+ version: 'number'
1213
+ }
801
1214
  }
802
1215
  ];