@affinidi/cli 2.12.0 → 2.14.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/README.md +0 -1
- package/bin/dev.cmd +1 -1
- package/bin/dev.js +1 -1
- package/dist/commands/generate/app.js.map +1 -1
- package/dist/commands/iam/get-policies.d.ts +1 -1
- package/dist/commands/iam/get-policies.js.map +1 -1
- package/dist/commands/iam/list-principals.d.ts +1 -1
- package/dist/commands/iam/list-principals.js.map +1 -1
- package/dist/commands/iam/update-policies.d.ts +1 -1
- package/dist/commands/iam/update-policies.js.map +1 -1
- package/dist/commands/iota/create-config.d.ts +2 -1
- package/dist/commands/iota/create-config.js +28 -10
- package/dist/commands/iota/create-config.js.map +1 -1
- package/dist/commands/iota/update-config.d.ts +0 -1
- package/dist/commands/iota/update-config.js +0 -5
- package/dist/commands/iota/update-config.js.map +1 -1
- package/dist/commands/issuance/create-config.d.ts +2 -0
- package/dist/commands/issuance/create-config.js +32 -1
- package/dist/commands/issuance/create-config.js.map +1 -1
- package/dist/commands/issuance/update-config.d.ts +2 -0
- package/dist/commands/issuance/update-config.js +40 -2
- package/dist/commands/issuance/update-config.js.map +1 -1
- package/dist/commands/login/add-user-to-group.d.ts +3 -1
- package/dist/commands/login/add-user-to-group.js +14 -2
- package/dist/commands/login/add-user-to-group.js.map +1 -1
- package/dist/commands/login/create-config.d.ts +1 -1
- package/dist/commands/login/create-config.js +1 -1
- package/dist/commands/login/create-config.js.map +1 -1
- package/dist/commands/login/create-group.d.ts +1 -1
- package/dist/commands/login/create-group.js.map +1 -1
- package/dist/commands/login/get-config.d.ts +1 -1
- package/dist/commands/login/get-config.js.map +1 -1
- package/dist/commands/login/get-group.d.ts +1 -1
- package/dist/commands/login/get-group.js.map +1 -1
- package/dist/commands/login/import-configs.d.ts +1 -1
- package/dist/commands/login/import-configs.js +1 -1
- package/dist/commands/login/import-configs.js.map +1 -1
- package/dist/commands/login/import-groups.d.ts +1 -1
- package/dist/commands/login/import-groups.js.map +1 -1
- package/dist/commands/login/list-configs.d.ts +1 -1
- package/dist/commands/login/list-configs.js.map +1 -1
- package/dist/commands/login/list-groups.d.ts +1 -1
- package/dist/commands/login/list-groups.js.map +1 -1
- package/dist/commands/login/list-users-in-group.d.ts +1 -1
- package/dist/commands/login/list-users-in-group.js +1 -4
- package/dist/commands/login/list-users-in-group.js.map +1 -1
- package/dist/commands/login/update-config.d.ts +1 -1
- package/dist/commands/login/update-config.js +1 -1
- package/dist/commands/login/update-config.js.map +1 -1
- package/dist/commands/project/create-project.d.ts +1 -1
- package/dist/commands/project/create-project.js.map +1 -1
- package/dist/commands/project/get-active-project.d.ts +1 -1
- package/dist/commands/project/get-active-project.js.map +1 -1
- package/dist/commands/project/list-projects.d.ts +1 -1
- package/dist/commands/project/list-projects.js.map +1 -1
- package/dist/commands/project/select-project.d.ts +1 -1
- package/dist/commands/project/select-project.js.map +1 -1
- package/dist/commands/project/update-project.d.ts +1 -1
- package/dist/commands/project/update-project.js +1 -2
- package/dist/commands/project/update-project.js.map +1 -1
- package/dist/commands/token/create-token.d.ts +1 -1
- package/dist/commands/token/create-token.js.map +1 -1
- package/dist/commands/token/get-token.d.ts +1 -1
- package/dist/commands/token/get-token.js.map +1 -1
- package/dist/commands/token/list-tokens.d.ts +1 -1
- package/dist/commands/token/list-tokens.js.map +1 -1
- package/dist/commands/token/update-token.d.ts +1 -1
- package/dist/commands/token/update-token.js.map +1 -1
- package/dist/helpers/token.d.ts +5 -5
- package/dist/helpers/token.js.map +1 -1
- package/dist/services/affinidi/bff-service.d.ts +2 -2
- package/dist/services/affinidi/bff-service.js +2 -2
- package/dist/services/affinidi/bff-service.js.map +1 -1
- package/dist/services/affinidi/iam/service.d.ts +9 -6
- package/dist/services/affinidi/iam/service.js +23 -39
- package/dist/services/affinidi/iam/service.js.map +1 -1
- package/dist/services/affinidi/vp-adapter/service.d.ts +8 -11
- package/dist/services/affinidi/vp-adapter/service.js +22 -40
- package/dist/services/affinidi/vp-adapter/service.js.map +1 -1
- package/package.json +16 -13
- package/dist/services/affinidi/iam/iam.api.d.ts +0 -475
- package/dist/services/affinidi/iam/iam.api.js +0 -336
- package/dist/services/affinidi/iam/iam.api.js.map +0 -1
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.d.ts +0 -1025
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.js +0 -681
- package/dist/services/affinidi/vp-adapter/vp-adapter.api.js.map +0 -1
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
export interface ServiceErrorResponse {
|
|
2
|
-
/**
|
|
3
|
-
* unique id for correlating this specific error to logs
|
|
4
|
-
* @format uuid
|
|
5
|
-
*/
|
|
6
|
-
debugId: string;
|
|
7
|
-
/** name of the error */
|
|
8
|
-
name: string;
|
|
9
|
-
/** backwards compatible Affinidi error code */
|
|
10
|
-
code: string;
|
|
11
|
-
details?: {
|
|
12
|
-
issue: string;
|
|
13
|
-
field?: string;
|
|
14
|
-
value?: string;
|
|
15
|
-
location?: string;
|
|
16
|
-
}[];
|
|
17
|
-
}
|
|
18
|
-
export interface UserDto {
|
|
19
|
-
principalId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface TypedPricipalId {
|
|
22
|
-
principalId: string;
|
|
23
|
-
}
|
|
24
|
-
export interface AddUserToProjectInput {
|
|
25
|
-
principalId: string;
|
|
26
|
-
principalType: string;
|
|
27
|
-
}
|
|
28
|
-
export interface CreateProjectScopedTokenInput {
|
|
29
|
-
projectId: string;
|
|
30
|
-
}
|
|
31
|
-
export interface CreateProjectScopedTokenOutput {
|
|
32
|
-
accessToken: string;
|
|
33
|
-
expiresIn: number;
|
|
34
|
-
scope: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ProjectDto {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
/** creation date and time in ISO-8601 format, e.g. 2023-09-20T07:12:13 */
|
|
41
|
-
createdAt?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface CreateProjectInput {
|
|
44
|
-
name: string;
|
|
45
|
-
description?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface UpdateProjectInput {
|
|
48
|
-
id: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
description?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface ProjectList {
|
|
53
|
-
projects: ProjectDto[];
|
|
54
|
-
}
|
|
55
|
-
export interface UserList {
|
|
56
|
-
records: UserDto[];
|
|
57
|
-
}
|
|
58
|
-
export interface PolicyStatementDto {
|
|
59
|
-
action: string[];
|
|
60
|
-
effect: string;
|
|
61
|
-
principal: string[];
|
|
62
|
-
resource: string[];
|
|
63
|
-
}
|
|
64
|
-
export interface WhoamiDto {
|
|
65
|
-
principalId: string;
|
|
66
|
-
principalType: string;
|
|
67
|
-
}
|
|
68
|
-
export interface PolicyDto {
|
|
69
|
-
principalId?: string;
|
|
70
|
-
projectId?: string;
|
|
71
|
-
version: string;
|
|
72
|
-
statement: PolicyStatementDto[];
|
|
73
|
-
}
|
|
74
|
-
export interface JsonWebKeyDto {
|
|
75
|
-
kid: string;
|
|
76
|
-
kty: string;
|
|
77
|
-
n?: string;
|
|
78
|
-
e?: string;
|
|
79
|
-
x?: string;
|
|
80
|
-
y?: string;
|
|
81
|
-
crv?: string;
|
|
82
|
-
alg: string;
|
|
83
|
-
use: string;
|
|
84
|
-
}
|
|
85
|
-
export interface JsonWebKeySetDto {
|
|
86
|
-
/** @minItems 1 */
|
|
87
|
-
keys: JsonWebKeyDto[];
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Private Key JWT Authentication of Client with `private_key_jwt` oAuth Method
|
|
91
|
-
* @example "{"type": "PRIVATE_KEY", "signingAlgorithm": "RS256", "publicKeyInfo": { "jwks": {"keys":[{"use":"sig","kty":"RSA","kid":"some-kid","alg":"RS256","n":"some-n-value","e":"some-e-value"}]} }}"
|
|
92
|
-
*/
|
|
93
|
-
export interface TokenPrivateKeyAuthenticationMethodDto {
|
|
94
|
-
type: 'PRIVATE_KEY';
|
|
95
|
-
signingAlgorithm: 'RS256' | 'RS512' | 'ES256' | 'ES512';
|
|
96
|
-
/** Corresponding Public Key Info provided either as a URL or a Hardcoded Object */
|
|
97
|
-
publicKeyInfo: {
|
|
98
|
-
jwks: JsonWebKeySetDto;
|
|
99
|
-
} | {
|
|
100
|
-
/** @format url */
|
|
101
|
-
jwksUri: string;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
/** How the Token will be authenticate against our Authorization Server */
|
|
105
|
-
export type TokenAuthenticationMethodDto = TokenPrivateKeyAuthenticationMethodDto;
|
|
106
|
-
export interface TokenDto {
|
|
107
|
-
/**
|
|
108
|
-
* Token Id
|
|
109
|
-
* @format uuid
|
|
110
|
-
* @example "c5817ea6-8367-4458-9131-54cd2c5b9b48"
|
|
111
|
-
*/
|
|
112
|
-
id: string;
|
|
113
|
-
/**
|
|
114
|
-
* Token ARI
|
|
115
|
-
* @example "token/c5817ea6-8367-4458-9131-54cd2c5b9b48"
|
|
116
|
-
*/
|
|
117
|
-
ari: string;
|
|
118
|
-
/**
|
|
119
|
-
* The Token owner's ARI
|
|
120
|
-
* @example "ari:iam:::user/2f4b3468-516f-4af3-87db-8816b0d320cc"
|
|
121
|
-
*/
|
|
122
|
-
ownerAri: string;
|
|
123
|
-
/**
|
|
124
|
-
* Owner defined Token display name
|
|
125
|
-
* @example "AIV/Concierge API - affinidi-elements-iam-dev"
|
|
126
|
-
*/
|
|
127
|
-
name: string;
|
|
128
|
-
/** How the Token will be authenticate against our Authorization Server */
|
|
129
|
-
authenticationMethod: TokenAuthenticationMethodDto;
|
|
130
|
-
/** Scopes that will be assigned to the Token on authentication */
|
|
131
|
-
scopes: string[];
|
|
132
|
-
}
|
|
133
|
-
export interface TokenList {
|
|
134
|
-
tokens: TokenDto[];
|
|
135
|
-
}
|
|
136
|
-
export interface CreateTokenInput {
|
|
137
|
-
/**
|
|
138
|
-
* @pattern .{3,}
|
|
139
|
-
* @example "AIV/Concierge API - affinidi-elements-iam-dev"
|
|
140
|
-
*/
|
|
141
|
-
name: string;
|
|
142
|
-
/** How the Token will be authenticate against our Authorization Server */
|
|
143
|
-
authenticationMethod: TokenAuthenticationMethodDto;
|
|
144
|
-
}
|
|
145
|
-
export interface UpdateTokenInput {
|
|
146
|
-
/**
|
|
147
|
-
* @pattern .{3,}
|
|
148
|
-
* @example "AIV/Concierge API - affinidi-elements-iam-dev"
|
|
149
|
-
*/
|
|
150
|
-
name: string;
|
|
151
|
-
/** How the Token will be authenticate against our Authorization Server */
|
|
152
|
-
authenticationMethod: TokenAuthenticationMethodDto;
|
|
153
|
-
}
|
|
154
|
-
export interface UnexpectedError {
|
|
155
|
-
name: 'UnexpectedError';
|
|
156
|
-
message: 'Unexpected Error Occurred.';
|
|
157
|
-
httpStatusCode: 500;
|
|
158
|
-
traceId: string;
|
|
159
|
-
details?: {
|
|
160
|
-
issue: string;
|
|
161
|
-
field?: string;
|
|
162
|
-
value?: string;
|
|
163
|
-
location?: string;
|
|
164
|
-
}[];
|
|
165
|
-
}
|
|
166
|
-
export interface InvalidParameterError {
|
|
167
|
-
name: 'InvalidParameterError';
|
|
168
|
-
message: 'Invalid parameter: ${param}.';
|
|
169
|
-
httpStatusCode: 400;
|
|
170
|
-
traceId: string;
|
|
171
|
-
details?: {
|
|
172
|
-
issue: string;
|
|
173
|
-
field?: string;
|
|
174
|
-
value?: string;
|
|
175
|
-
location?: string;
|
|
176
|
-
}[];
|
|
177
|
-
}
|
|
178
|
-
export interface NotFoundError {
|
|
179
|
-
name: 'NotFoundError';
|
|
180
|
-
message: 'Not found: ${param}.';
|
|
181
|
-
httpStatusCode: 404;
|
|
182
|
-
traceId: string;
|
|
183
|
-
details?: {
|
|
184
|
-
issue: string;
|
|
185
|
-
field?: string;
|
|
186
|
-
value?: string;
|
|
187
|
-
location?: string;
|
|
188
|
-
}[];
|
|
189
|
-
}
|
|
190
|
-
export interface PrincipalDoesNotBelongToProjectError {
|
|
191
|
-
name: 'PrincipalDoesNotBelongToProjectError';
|
|
192
|
-
message: 'Principal does not belong to the given project';
|
|
193
|
-
httpStatusCode: 403;
|
|
194
|
-
traceId: string;
|
|
195
|
-
details?: {
|
|
196
|
-
issue: string;
|
|
197
|
-
field?: string;
|
|
198
|
-
value?: string;
|
|
199
|
-
location?: string;
|
|
200
|
-
}[];
|
|
201
|
-
}
|
|
202
|
-
export interface ActionForbiddenError {
|
|
203
|
-
name: 'ActionForbiddenError';
|
|
204
|
-
message: 'Principal can not execute action on given resource';
|
|
205
|
-
httpStatusCode: 403;
|
|
206
|
-
traceId: string;
|
|
207
|
-
details?: {
|
|
208
|
-
issue: string;
|
|
209
|
-
field?: string;
|
|
210
|
-
value?: string;
|
|
211
|
-
location?: string;
|
|
212
|
-
}[];
|
|
213
|
-
}
|
|
214
|
-
export interface ConsumerAuthTokenEndpointInput {
|
|
215
|
-
grant_type: string;
|
|
216
|
-
code?: string;
|
|
217
|
-
refresh_token?: string;
|
|
218
|
-
redirect_uri?: string;
|
|
219
|
-
client_id?: string;
|
|
220
|
-
[key: string]: any;
|
|
221
|
-
}
|
|
222
|
-
export interface ConsumerAuthTokenEndpointOutput {
|
|
223
|
-
/** The access token issued by the authorization server. */
|
|
224
|
-
access_token?: string;
|
|
225
|
-
/**
|
|
226
|
-
* The lifetime in seconds of the access token. For
|
|
227
|
-
* example, the value "3600" denotes that the access token will
|
|
228
|
-
* expire in one hour from the time the response was generated.
|
|
229
|
-
* @format int64
|
|
230
|
-
*/
|
|
231
|
-
expires_in?: number;
|
|
232
|
-
/**
|
|
233
|
-
* To retrieve a refresh token request the id_token scope.
|
|
234
|
-
* @format int64
|
|
235
|
-
*/
|
|
236
|
-
id_token?: number;
|
|
237
|
-
/**
|
|
238
|
-
* The refresh token, which can be used to obtain new
|
|
239
|
-
* access tokens. To retrieve it add the scope "offline" to your access token request.
|
|
240
|
-
*/
|
|
241
|
-
refresh_token?: string;
|
|
242
|
-
/** The scope of the access token */
|
|
243
|
-
scope?: string;
|
|
244
|
-
/** The type of the token issued */
|
|
245
|
-
token_type?: string;
|
|
246
|
-
}
|
|
247
|
-
export interface InvalidJwtTokenError {
|
|
248
|
-
name: 'InvalidJwtTokenError';
|
|
249
|
-
message: 'JWT token is invalid';
|
|
250
|
-
httpStatusCode: 401;
|
|
251
|
-
traceId: string;
|
|
252
|
-
details?: {
|
|
253
|
-
issue: string;
|
|
254
|
-
field?: string;
|
|
255
|
-
value?: string;
|
|
256
|
-
location?: string;
|
|
257
|
-
}[];
|
|
258
|
-
}
|
|
259
|
-
export interface UnauthorizedError {
|
|
260
|
-
name: 'UnauthorizedError';
|
|
261
|
-
message: 'Unauthorized';
|
|
262
|
-
httpStatusCode: 403;
|
|
263
|
-
traceId: string;
|
|
264
|
-
details?: {
|
|
265
|
-
issue: string;
|
|
266
|
-
field?: string;
|
|
267
|
-
value?: string;
|
|
268
|
-
location?: string;
|
|
269
|
-
}[];
|
|
270
|
-
}
|
|
271
|
-
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
272
|
-
export type QueryParamsType = Record<string | number, any>;
|
|
273
|
-
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
274
|
-
/** set parameter to `true` for call `securityWorker` for this request */
|
|
275
|
-
secure?: boolean;
|
|
276
|
-
/** request path */
|
|
277
|
-
path: string;
|
|
278
|
-
/** content type of request body */
|
|
279
|
-
type?: ContentType;
|
|
280
|
-
/** query params */
|
|
281
|
-
query?: QueryParamsType;
|
|
282
|
-
/** format of response (i.e. response.json() -> format: "json") */
|
|
283
|
-
format?: ResponseType;
|
|
284
|
-
/** request body */
|
|
285
|
-
body?: unknown;
|
|
286
|
-
}
|
|
287
|
-
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
288
|
-
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
|
|
289
|
-
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
290
|
-
secure?: boolean;
|
|
291
|
-
format?: ResponseType;
|
|
292
|
-
}
|
|
293
|
-
export declare enum ContentType {
|
|
294
|
-
Json = "application/json",
|
|
295
|
-
FormData = "multipart/form-data",
|
|
296
|
-
UrlEncoded = "application/x-www-form-urlencoded",
|
|
297
|
-
Text = "text/plain"
|
|
298
|
-
}
|
|
299
|
-
export declare class HttpClient<SecurityDataType = unknown> {
|
|
300
|
-
instance: AxiosInstance;
|
|
301
|
-
private securityData;
|
|
302
|
-
private securityWorker?;
|
|
303
|
-
private secure?;
|
|
304
|
-
private format?;
|
|
305
|
-
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
306
|
-
setSecurityData: (data: SecurityDataType | null) => void;
|
|
307
|
-
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
308
|
-
protected stringifyFormItem(formItem: unknown): string;
|
|
309
|
-
protected createFormData(input: Record<string, unknown>): FormData;
|
|
310
|
-
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* @title Iam
|
|
314
|
-
* @version 1.0.0
|
|
315
|
-
* @baseUrl /
|
|
316
|
-
* @contact nucleus <nucleus.team@affinidi.com>
|
|
317
|
-
*
|
|
318
|
-
* Affinidi IAM
|
|
319
|
-
*/
|
|
320
|
-
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
321
|
-
wellKnown: {
|
|
322
|
-
/**
|
|
323
|
-
* No description
|
|
324
|
-
*
|
|
325
|
-
* @tags well-known
|
|
326
|
-
* @name GetWellKnownJwks
|
|
327
|
-
* @request GET:/.well-known/jwks.json
|
|
328
|
-
*/
|
|
329
|
-
getWellKnownJwks: (params?: RequestParams) => Promise<AxiosResponse<JsonWebKeySetDto, any>>;
|
|
330
|
-
};
|
|
331
|
-
v1: {
|
|
332
|
-
/**
|
|
333
|
-
* No description
|
|
334
|
-
*
|
|
335
|
-
* @tags sts
|
|
336
|
-
* @name CreateProjectScopedToken
|
|
337
|
-
* @request POST:/v1/sts/create-project-scoped-token
|
|
338
|
-
* @secure
|
|
339
|
-
*/
|
|
340
|
-
createProjectScopedToken: (data: CreateProjectScopedTokenInput, params?: RequestParams) => Promise<AxiosResponse<CreateProjectScopedTokenOutput, any>>;
|
|
341
|
-
/**
|
|
342
|
-
* No description
|
|
343
|
-
*
|
|
344
|
-
* @tags sts
|
|
345
|
-
* @name Whoami
|
|
346
|
-
* @request GET:/v1/sts/whoami
|
|
347
|
-
* @secure
|
|
348
|
-
*/
|
|
349
|
-
whoami: (params?: RequestParams) => Promise<AxiosResponse<WhoamiDto, any>>;
|
|
350
|
-
/**
|
|
351
|
-
* No description
|
|
352
|
-
*
|
|
353
|
-
* @tags projects
|
|
354
|
-
* @name CreateProject
|
|
355
|
-
* @request POST:/v1/projects
|
|
356
|
-
* @secure
|
|
357
|
-
*/
|
|
358
|
-
createProject: (data: CreateProjectInput, params?: RequestParams) => Promise<AxiosResponse<ProjectDto, any>>;
|
|
359
|
-
/**
|
|
360
|
-
* No description
|
|
361
|
-
*
|
|
362
|
-
* @tags projects
|
|
363
|
-
* @name ListProject
|
|
364
|
-
* @request GET:/v1/projects
|
|
365
|
-
* @secure
|
|
366
|
-
*/
|
|
367
|
-
listProject: (params?: RequestParams) => Promise<AxiosResponse<ProjectList, any>>;
|
|
368
|
-
/**
|
|
369
|
-
* No description
|
|
370
|
-
*
|
|
371
|
-
* @tags projects
|
|
372
|
-
* @name ListPrincipalsOfProject
|
|
373
|
-
* @request GET:/v1/projects/principals
|
|
374
|
-
* @secure
|
|
375
|
-
*/
|
|
376
|
-
listPrincipalsOfProject: (params?: RequestParams) => Promise<AxiosResponse<UserList, any>>;
|
|
377
|
-
/**
|
|
378
|
-
* No description
|
|
379
|
-
*
|
|
380
|
-
* @tags projects
|
|
381
|
-
* @name AddPrincipalToProject
|
|
382
|
-
* @request POST:/v1/projects/principals
|
|
383
|
-
* @secure
|
|
384
|
-
*/
|
|
385
|
-
addPrincipalToProject: (data: AddUserToProjectInput, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
386
|
-
/**
|
|
387
|
-
* No description
|
|
388
|
-
*
|
|
389
|
-
* @tags projects
|
|
390
|
-
* @name DeletePrincipalFromProject
|
|
391
|
-
* @request DELETE:/v1/projects/principals/{principalId}
|
|
392
|
-
* @secure
|
|
393
|
-
*/
|
|
394
|
-
deletePrincipalFromProject: (principalId: string, query: {
|
|
395
|
-
/** type of principal */
|
|
396
|
-
principalType: "user" | "token";
|
|
397
|
-
}, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
398
|
-
/**
|
|
399
|
-
* No description
|
|
400
|
-
*
|
|
401
|
-
* @tags policies
|
|
402
|
-
* @name GetPolicies
|
|
403
|
-
* @request GET:/v1/policies/principals/{principalId}
|
|
404
|
-
* @secure
|
|
405
|
-
*/
|
|
406
|
-
getPolicies: (principalId: string, query: {
|
|
407
|
-
principalType: "user" | "token";
|
|
408
|
-
}, params?: RequestParams) => Promise<AxiosResponse<PolicyDto, any>>;
|
|
409
|
-
/**
|
|
410
|
-
* No description
|
|
411
|
-
*
|
|
412
|
-
* @tags policies
|
|
413
|
-
* @name UpdatePolicies
|
|
414
|
-
* @request PUT:/v1/policies/principals/{principalId}
|
|
415
|
-
* @secure
|
|
416
|
-
*/
|
|
417
|
-
updatePolicies: (principalId: string, query: {
|
|
418
|
-
principalType: "user" | "token";
|
|
419
|
-
}, data: PolicyDto, params?: RequestParams) => Promise<AxiosResponse<PolicyDto, any>>;
|
|
420
|
-
/**
|
|
421
|
-
* No description
|
|
422
|
-
*
|
|
423
|
-
* @tags tokens
|
|
424
|
-
* @name CreateToken
|
|
425
|
-
* @request POST:/v1/tokens
|
|
426
|
-
* @secure
|
|
427
|
-
*/
|
|
428
|
-
createToken: (data: CreateTokenInput, params?: RequestParams) => Promise<AxiosResponse<TokenDto, any>>;
|
|
429
|
-
/**
|
|
430
|
-
* No description
|
|
431
|
-
*
|
|
432
|
-
* @tags tokens
|
|
433
|
-
* @name ListToken
|
|
434
|
-
* @request GET:/v1/tokens
|
|
435
|
-
* @secure
|
|
436
|
-
*/
|
|
437
|
-
listToken: (params?: RequestParams) => Promise<AxiosResponse<TokenList, any>>;
|
|
438
|
-
/**
|
|
439
|
-
* No description
|
|
440
|
-
*
|
|
441
|
-
* @tags tokens
|
|
442
|
-
* @name GetToken
|
|
443
|
-
* @request GET:/v1/tokens/{tokenId}
|
|
444
|
-
* @secure
|
|
445
|
-
*/
|
|
446
|
-
getToken: (tokenId: string, params?: RequestParams) => Promise<AxiosResponse<TokenDto, any>>;
|
|
447
|
-
/**
|
|
448
|
-
* No description
|
|
449
|
-
*
|
|
450
|
-
* @tags tokens
|
|
451
|
-
* @name UpdateToken
|
|
452
|
-
* @request PATCH:/v1/tokens/{tokenId}
|
|
453
|
-
* @secure
|
|
454
|
-
*/
|
|
455
|
-
updateToken: (tokenId: string, data: UpdateTokenInput, params?: RequestParams) => Promise<AxiosResponse<TokenDto, any>>;
|
|
456
|
-
/**
|
|
457
|
-
* No description
|
|
458
|
-
*
|
|
459
|
-
* @tags tokens
|
|
460
|
-
* @name DeleteToken
|
|
461
|
-
* @request DELETE:/v1/tokens/{tokenId}
|
|
462
|
-
* @secure
|
|
463
|
-
*/
|
|
464
|
-
deleteToken: (tokenId: string, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
465
|
-
/**
|
|
466
|
-
* @description Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly.
|
|
467
|
-
*
|
|
468
|
-
* @tags consumerAuth
|
|
469
|
-
* @name ConsumerAuthTokenEndpoint
|
|
470
|
-
* @summary The Consumer OAuth 2.0 Token Endpoint
|
|
471
|
-
* @request POST:/v1/consumer/oauth2/token
|
|
472
|
-
*/
|
|
473
|
-
consumerAuthTokenEndpoint: (data: ConsumerAuthTokenEndpointInput, params?: RequestParams) => Promise<AxiosResponse<ConsumerAuthTokenEndpointOutput, any>>;
|
|
474
|
-
};
|
|
475
|
-
}
|