@lumeweb/portal-sdk 0.0.2 → 0.1.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/LICENSE +1 -1
- package/dist/cjs/account/generated/accountAPI.schemas.cjs +0 -0
- package/dist/cjs/account/generated/accountAPI.schemas.d.cts +239 -0
- package/dist/cjs/account/generated/default.cjs +676 -0
- package/dist/cjs/account/generated/default.cjs.map +1 -0
- package/dist/cjs/account/generated/default.d.cts +923 -0
- package/dist/cjs/account/generated/index.cjs +58 -0
- package/dist/cjs/account/generated/index.d.cts +3 -0
- package/dist/cjs/account.cjs +348 -0
- package/dist/cjs/account.cjs.map +1 -0
- package/dist/cjs/account.d.cts +200 -0
- package/dist/cjs/http-utils.cjs +87 -0
- package/dist/cjs/http-utils.cjs.map +1 -0
- package/dist/cjs/http-utils.d.cts +54 -0
- package/dist/cjs/index.cjs +75 -0
- package/dist/cjs/index.d.cts +8 -0
- package/dist/cjs/openapi.cjs +58 -0
- package/dist/cjs/openapi.d.cts +3 -0
- package/dist/cjs/query-utils.cjs +44 -0
- package/dist/cjs/query-utils.cjs.map +1 -0
- package/dist/cjs/query-utils.d.cts +65 -0
- package/dist/cjs/sdk.cjs +20 -0
- package/dist/cjs/sdk.cjs.map +1 -0
- package/dist/cjs/sdk.d.cts +12 -0
- package/dist/cjs/types.cjs +116 -0
- package/dist/cjs/types.cjs.map +1 -0
- package/dist/cjs/types.d.cts +58 -0
- package/dist/esm/account/generated/accountAPI.schemas.d.ts +239 -0
- package/dist/esm/account/generated/accountAPI.schemas.js +0 -0
- package/dist/esm/account/generated/default.d.ts +923 -0
- package/dist/esm/account/generated/default.js +620 -0
- package/dist/esm/account/generated/default.js.map +1 -0
- package/dist/esm/account/generated/index.d.ts +3 -0
- package/dist/esm/account/generated/index.js +3 -0
- package/dist/esm/account.d.ts +200 -0
- package/dist/esm/account.js +346 -0
- package/dist/esm/account.js.map +1 -0
- package/dist/esm/http-utils.d.ts +54 -0
- package/dist/esm/http-utils.js +83 -0
- package/dist/esm/http-utils.js.map +1 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/openapi.d.ts +3 -0
- package/dist/esm/openapi.js +3 -0
- package/dist/esm/query-utils.d.ts +65 -0
- package/dist/esm/query-utils.js +44 -0
- package/dist/esm/query-utils.js.map +1 -0
- package/dist/esm/sdk.d.ts +12 -0
- package/dist/esm/sdk.js +20 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/esm/types.d.ts +58 -0
- package/dist/esm/types.js +109 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +37 -14
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2024 Hammer Technologies LLC
|
|
3
|
+
Copyright (c) 2024-2026 Hammer Technologies LLC
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
|
File without changes
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
//#region src/account/generated/accountAPI.schemas.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.18.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Account API
|
|
6
|
+
* API endpoints for managing user accounts, authentication, and API keys.
|
|
7
|
+
* OpenAPI spec version: develop
|
|
8
|
+
*/
|
|
9
|
+
interface APIKeyCreateRequest {
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
interface APIKeyResponse {
|
|
13
|
+
created_at: string;
|
|
14
|
+
name: string;
|
|
15
|
+
uuid: BinaryUUID;
|
|
16
|
+
}
|
|
17
|
+
interface APIKeyResponseResponse {
|
|
18
|
+
data: APIKeyResponse;
|
|
19
|
+
total: number;
|
|
20
|
+
}
|
|
21
|
+
interface AccessModel {
|
|
22
|
+
matchers: AccessModelDef;
|
|
23
|
+
policy_definition: AccessModelDef;
|
|
24
|
+
policy_effect: AccessModelDef;
|
|
25
|
+
request_definition: AccessModelDef;
|
|
26
|
+
role_definition: AccessModelDef;
|
|
27
|
+
}
|
|
28
|
+
interface AccessModelDef {
|
|
29
|
+
key: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
interface AccessPolicy {
|
|
33
|
+
act: string;
|
|
34
|
+
dom: string;
|
|
35
|
+
obj: string;
|
|
36
|
+
sub: string;
|
|
37
|
+
}
|
|
38
|
+
interface AccountInfoResponse {
|
|
39
|
+
avatar?: string;
|
|
40
|
+
created_at?: string;
|
|
41
|
+
email: string;
|
|
42
|
+
first_name: string;
|
|
43
|
+
id: number;
|
|
44
|
+
last_name: string;
|
|
45
|
+
otp: boolean;
|
|
46
|
+
verified: boolean;
|
|
47
|
+
}
|
|
48
|
+
interface AccountPermissionsResponse {
|
|
49
|
+
model: AccessModel;
|
|
50
|
+
permissions: AccessPolicy[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @minItems 16
|
|
54
|
+
* @maxItems 16
|
|
55
|
+
*/
|
|
56
|
+
type BinUUID = number[];
|
|
57
|
+
interface BinaryUUID {
|
|
58
|
+
BinUUID: BinUUID;
|
|
59
|
+
}
|
|
60
|
+
interface CreateAPIKeyResponse {
|
|
61
|
+
name: string;
|
|
62
|
+
token: string;
|
|
63
|
+
uuid: BinaryUUID;
|
|
64
|
+
}
|
|
65
|
+
interface Error {
|
|
66
|
+
error: string;
|
|
67
|
+
message: string;
|
|
68
|
+
namespace: string;
|
|
69
|
+
}
|
|
70
|
+
interface ErrorResponse {
|
|
71
|
+
error: string;
|
|
72
|
+
}
|
|
73
|
+
interface LoginRequest {
|
|
74
|
+
email: string;
|
|
75
|
+
password: string;
|
|
76
|
+
remember: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface LoginResponse {
|
|
79
|
+
otp?: boolean;
|
|
80
|
+
token: string;
|
|
81
|
+
}
|
|
82
|
+
interface OTPDisableRequest {
|
|
83
|
+
password: string;
|
|
84
|
+
}
|
|
85
|
+
interface OTPGenerateResponse {
|
|
86
|
+
otp: string;
|
|
87
|
+
}
|
|
88
|
+
interface OTPValidateRequest {
|
|
89
|
+
otp: string;
|
|
90
|
+
}
|
|
91
|
+
interface OTPVerifyRequest {
|
|
92
|
+
otp: string;
|
|
93
|
+
}
|
|
94
|
+
interface OperationDetailResponse {
|
|
95
|
+
cid?: string;
|
|
96
|
+
current_step?: number;
|
|
97
|
+
error?: string;
|
|
98
|
+
estimated_completion_at?: string;
|
|
99
|
+
id: number;
|
|
100
|
+
operation: string;
|
|
101
|
+
operation_display_name: string;
|
|
102
|
+
progress_percent: number;
|
|
103
|
+
protocol: string;
|
|
104
|
+
protocol_display_name: string;
|
|
105
|
+
started_at: string;
|
|
106
|
+
status: string;
|
|
107
|
+
status_display_name: string;
|
|
108
|
+
status_message: string;
|
|
109
|
+
total_steps?: number;
|
|
110
|
+
updated_at: string;
|
|
111
|
+
}
|
|
112
|
+
interface OperationFilterItem {
|
|
113
|
+
description?: string;
|
|
114
|
+
name: string;
|
|
115
|
+
value: string;
|
|
116
|
+
}
|
|
117
|
+
interface OperationFiltersResponse {
|
|
118
|
+
data: OperationFiltersResponseData;
|
|
119
|
+
}
|
|
120
|
+
interface OperationFiltersResponseData {
|
|
121
|
+
operations: OperationFilterItem[];
|
|
122
|
+
protocols: OperationFilterItem[];
|
|
123
|
+
statuses: OperationFilterItem[];
|
|
124
|
+
}
|
|
125
|
+
interface OperationFiltersResponseResponse {
|
|
126
|
+
data: OperationFiltersResponse;
|
|
127
|
+
total: number;
|
|
128
|
+
}
|
|
129
|
+
interface OperationListItem {
|
|
130
|
+
cid?: string;
|
|
131
|
+
current_step?: number;
|
|
132
|
+
error?: string;
|
|
133
|
+
estimated_completion_at?: string;
|
|
134
|
+
id: number;
|
|
135
|
+
operation: string;
|
|
136
|
+
operation_display_name: string;
|
|
137
|
+
progress_percent: number;
|
|
138
|
+
protocol: string;
|
|
139
|
+
protocol_display_name: string;
|
|
140
|
+
started_at: string;
|
|
141
|
+
status: string;
|
|
142
|
+
status_display_name: string;
|
|
143
|
+
status_message: string;
|
|
144
|
+
total_steps?: number;
|
|
145
|
+
updated_at: string;
|
|
146
|
+
}
|
|
147
|
+
interface OperationListItemResponse {
|
|
148
|
+
data: OperationListItem[];
|
|
149
|
+
total: number;
|
|
150
|
+
}
|
|
151
|
+
interface PasswordResetRequest {
|
|
152
|
+
email: string;
|
|
153
|
+
}
|
|
154
|
+
interface PasswordResetVerifyRequest {
|
|
155
|
+
email: string;
|
|
156
|
+
password: string;
|
|
157
|
+
token: string;
|
|
158
|
+
}
|
|
159
|
+
interface PongResponse {
|
|
160
|
+
ping: string;
|
|
161
|
+
token: string;
|
|
162
|
+
}
|
|
163
|
+
interface RegisterRequest {
|
|
164
|
+
email: string;
|
|
165
|
+
first_name: string;
|
|
166
|
+
last_name: string;
|
|
167
|
+
password: string;
|
|
168
|
+
}
|
|
169
|
+
interface ResendVerifyEmailRequest {
|
|
170
|
+
email: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @minItems 16
|
|
174
|
+
* @maxItems 16
|
|
175
|
+
*/
|
|
176
|
+
type Uuid = number[];
|
|
177
|
+
interface UpdateEmailRequest {
|
|
178
|
+
email: string;
|
|
179
|
+
password: string;
|
|
180
|
+
}
|
|
181
|
+
interface UpdatePasswordRequest {
|
|
182
|
+
current_password: string;
|
|
183
|
+
new_password: string;
|
|
184
|
+
}
|
|
185
|
+
interface UpdateProfileRequest {
|
|
186
|
+
first_name?: string;
|
|
187
|
+
last_name?: string;
|
|
188
|
+
}
|
|
189
|
+
interface UploadLimitResponse {
|
|
190
|
+
limit: number;
|
|
191
|
+
}
|
|
192
|
+
interface VerifyEmailRequest {
|
|
193
|
+
email: string;
|
|
194
|
+
token: string;
|
|
195
|
+
}
|
|
196
|
+
type PostApiAccountAvatarBody = {
|
|
197
|
+
file: string;
|
|
198
|
+
};
|
|
199
|
+
type GetApiAccountKeysParams = {
|
|
200
|
+
/**
|
|
201
|
+
* Ending index of the items to return (exclusive). Defaults to 10.
|
|
202
|
+
*/
|
|
203
|
+
_end?: number;
|
|
204
|
+
/**
|
|
205
|
+
* Starting index of the items to return (0-based). Defaults to 0.
|
|
206
|
+
*/
|
|
207
|
+
_start?: number;
|
|
208
|
+
};
|
|
209
|
+
type PostApiAccountVerifyEmailParams = {
|
|
210
|
+
/**
|
|
211
|
+
* Auto-login user after verification (boolean: true/false; also accepts 1/0).
|
|
212
|
+
*/
|
|
213
|
+
login?: string;
|
|
214
|
+
};
|
|
215
|
+
type GetApiOperationsParams = {
|
|
216
|
+
/**
|
|
217
|
+
* Ending index of the items to return (exclusive). Defaults to 10.
|
|
218
|
+
*/
|
|
219
|
+
_end?: number;
|
|
220
|
+
/**
|
|
221
|
+
* Comma-separated list of sort orders ('asc' or 'desc') corresponding to _sort fields. Defaults to 'asc'.
|
|
222
|
+
*/
|
|
223
|
+
_order?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Comma-separated list of fields to sort by. Available fields: id, operation, protocol, status, status_message, progress_percent, cid, total_steps, current_step, error
|
|
226
|
+
*/
|
|
227
|
+
_sort?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Starting index of the items to return (0-based). Defaults to 0.
|
|
230
|
+
*/
|
|
231
|
+
_start?: number;
|
|
232
|
+
/**
|
|
233
|
+
* Search term for filename or other relevant operation data
|
|
234
|
+
*/
|
|
235
|
+
search?: string;
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
export { APIKeyCreateRequest, APIKeyResponse, APIKeyResponseResponse, AccessModel, AccessModelDef, AccessPolicy, AccountInfoResponse, AccountPermissionsResponse, BinUUID, BinaryUUID, CreateAPIKeyResponse, Error, ErrorResponse, GetApiAccountKeysParams, GetApiOperationsParams, LoginRequest, LoginResponse, OTPDisableRequest, OTPGenerateResponse, OTPValidateRequest, OTPVerifyRequest, OperationDetailResponse, OperationFilterItem, OperationFiltersResponse, OperationFiltersResponseData, OperationFiltersResponseResponse, OperationListItem, OperationListItemResponse, PasswordResetRequest, PasswordResetVerifyRequest, PongResponse, PostApiAccountAvatarBody, PostApiAccountVerifyEmailParams, RegisterRequest, ResendVerifyEmailRequest, UpdateEmailRequest, UpdatePasswordRequest, UpdateProfileRequest, UploadLimitResponse, Uuid, VerifyEmailRequest };
|
|
239
|
+
//# sourceMappingURL=accountAPI.schemas.d.cts.map
|