forked from acacode/swagger-typescript-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScopeRoute.ts
98 lines (91 loc) · 2.97 KB
/
ScopeRoute.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* eslint-disable */
/* tslint:disable */
/*
* ---------------------------------------------------------------
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
* ## ##
* ## AUTHOR: acacode ##
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
* ---------------------------------------------------------------
*/
import { Claims } from "./data-contracts";
export namespace Scope {
/**
* @description scope verification request See: https://github.com/skion/authentiq/wiki/JWT-Examples
* @tags scope, post
* @name SignRequest
* @request POST:/scope
*/
export namespace SignRequest {
export type RequestParams = {};
export type RequestQuery = { test?: number };
export type RequestBody = Claims;
export type RequestHeaders = {};
export type ResponseBody = { job?: string; status?: string };
}
/**
* @description delete a verification job
* @tags scope, delete
* @name SignDelete
* @request DELETE:/scope/{job}
*/
export namespace SignDelete {
export type RequestParams = { job: string };
export type RequestQuery = {};
export type RequestBody = never;
export type RequestHeaders = {};
export type ResponseBody = { status?: string };
}
/**
* @description get the status / current content of a verification job
* @tags scope, get
* @name SignRetrieve
* @request GET:/scope/{job}
*/
export namespace SignRetrieve {
export type RequestParams = { job: string };
export type RequestQuery = {};
export type RequestBody = never;
export type RequestHeaders = {};
export type ResponseBody = { exp?: number; field?: string; sub?: string };
}
/**
* @description HEAD to get the status of a verification job
* @tags scope, head
* @name SignRetrieveHead
* @request HEAD:/scope/{job}
*/
export namespace SignRetrieveHead {
export type RequestParams = { job: string };
export type RequestQuery = {};
export type RequestBody = never;
export type RequestHeaders = {};
export type ResponseBody = void;
}
/**
* @description this is a scope confirmation
* @tags scope, post
* @name SignConfirm
* @request POST:/scope/{job}
*/
export namespace SignConfirm {
export type RequestParams = { job: string };
export type RequestQuery = {};
export type RequestBody = never;
export type RequestHeaders = {};
export type ResponseBody = { status?: string };
}
/**
* @description authority updates a JWT with its signature See: https://github.com/skion/authentiq/wiki/JWT-Examples
* @tags scope, put
* @name SignUpdate
* @request PUT:/scope/{job}
*/
export namespace SignUpdate {
export type RequestParams = { job: string };
export type RequestQuery = {};
export type RequestBody = never;
export type RequestHeaders = {};
export type ResponseBody = { jwt?: string; status?: string };
}
}