weave-typescript 0.13.0 → 0.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/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
- package/dist/weaveapi/project/v1/project.pb.js +764 -65
- package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
- package/dist/weaveapi/project/v1/service.pb.js +1056 -392
- package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
- package/dist/weaveapi/task/v1/service.pb.js +1416 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
- package/dist/weaveapi/task/v1/task.pb.js +782 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
- package/dist/weavesql/atcdb/event_sql.js +11 -1
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
- package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
- package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
- package/dist/weavesql/weavedb/project_sql.js +304 -112
- package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
- package/dist/weavesql/weavedb/task_sql.js +328 -0
- package/package.json +1 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
- package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -1,709 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { Session } from "./session.pb";
|
|
3
|
-
import { UsageLimits, UsageStats } from "./usage.pb";
|
|
4
|
-
import { APIKey, OAuthProvider, User, UserPreferences } from "./user.pb";
|
|
5
|
-
export declare const protobufPackage = "weaveapi.auth.v1";
|
|
6
|
-
export interface InitiateOAuthRequest {
|
|
7
|
-
/** github, google, microsoft, gitlab */
|
|
8
|
-
provider: string;
|
|
9
|
-
/** Optional custom redirect */
|
|
10
|
-
redirectUri: string;
|
|
11
|
-
/** CSRF protection */
|
|
12
|
-
state: string;
|
|
13
|
-
/** OAuth scopes (provider-specific) */
|
|
14
|
-
scope: string;
|
|
15
|
-
/** Additional provider-specific params */
|
|
16
|
-
providerParams: {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface InitiateOAuthRequest_ProviderParamsEntry {
|
|
21
|
-
key: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}
|
|
24
|
-
export interface InitiateOAuthResponse {
|
|
25
|
-
/** OAuth provider URL to redirect to */
|
|
26
|
-
authUrl: string;
|
|
27
|
-
/** State parameter for CSRF */
|
|
28
|
-
state: string;
|
|
29
|
-
/** For PKCE flow (if supported) */
|
|
30
|
-
codeVerifier: string;
|
|
31
|
-
/** Provider name for confirmation */
|
|
32
|
-
provider: string;
|
|
33
|
-
}
|
|
34
|
-
export interface HandleOAuthCallbackRequest {
|
|
35
|
-
/** github, google, microsoft, gitlab */
|
|
36
|
-
provider: string;
|
|
37
|
-
/** OAuth authorization code */
|
|
38
|
-
code: string;
|
|
39
|
-
/** CSRF state parameter */
|
|
40
|
-
state: string;
|
|
41
|
-
/** For PKCE flow (if supported) */
|
|
42
|
-
codeVerifier: string;
|
|
43
|
-
/** OAuth error if any */
|
|
44
|
-
error: string;
|
|
45
|
-
/** Error details */
|
|
46
|
-
errorDescription: string;
|
|
47
|
-
}
|
|
48
|
-
export interface HandleOAuthCallbackResponse {
|
|
49
|
-
/** JWT access token */
|
|
50
|
-
accessToken: string;
|
|
51
|
-
/** JWT refresh token */
|
|
52
|
-
refreshToken: string;
|
|
53
|
-
/** Seconds until access token expires */
|
|
54
|
-
expiresIn: number;
|
|
55
|
-
user: User | undefined;
|
|
56
|
-
/** True if user was just created */
|
|
57
|
-
isNewUser: boolean;
|
|
58
|
-
/** Where to redirect in the UI */
|
|
59
|
-
redirectUrl: string;
|
|
60
|
-
/** Which provider was used */
|
|
61
|
-
linkedProvider: string;
|
|
62
|
-
/** True if linked to existing account */
|
|
63
|
-
accountLinked: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface GetOAuthProvidersRequest {
|
|
66
|
-
/** Only return enabled providers */
|
|
67
|
-
enabledOnly: boolean;
|
|
68
|
-
}
|
|
69
|
-
export interface GetOAuthProvidersResponse {
|
|
70
|
-
providers: OAuthProvider[];
|
|
71
|
-
/** Recommended provider */
|
|
72
|
-
primaryProvider: string;
|
|
73
|
-
}
|
|
74
|
-
export interface LinkOAuthProviderRequest {
|
|
75
|
-
/** Provider to link */
|
|
76
|
-
provider: string;
|
|
77
|
-
/** Where to redirect after linking */
|
|
78
|
-
redirectUri: string;
|
|
79
|
-
}
|
|
80
|
-
export interface LinkOAuthProviderResponse {
|
|
81
|
-
/** OAuth URL to start linking flow */
|
|
82
|
-
authUrl: string;
|
|
83
|
-
/** CSRF state */
|
|
84
|
-
state: string;
|
|
85
|
-
}
|
|
86
|
-
export interface UnlinkOAuthProviderRequest {
|
|
87
|
-
/** Provider to unlink */
|
|
88
|
-
provider: string;
|
|
89
|
-
}
|
|
90
|
-
export interface UnlinkOAuthProviderResponse {
|
|
91
|
-
success: boolean;
|
|
92
|
-
message: string;
|
|
93
|
-
/** Number of providers still linked */
|
|
94
|
-
remainingProviders: number;
|
|
95
|
-
}
|
|
96
|
-
export interface RefreshTokenRequest {
|
|
97
|
-
refreshToken: string;
|
|
98
|
-
}
|
|
99
|
-
export interface RefreshTokenResponse {
|
|
100
|
-
accessToken: string;
|
|
101
|
-
/** New refresh token */
|
|
102
|
-
refreshToken: string;
|
|
103
|
-
expiresIn: number;
|
|
104
|
-
}
|
|
105
|
-
export interface RevokeTokenRequest {
|
|
106
|
-
refreshToken: string;
|
|
107
|
-
}
|
|
108
|
-
export interface RevokeTokenResponse {
|
|
109
|
-
success: boolean;
|
|
110
|
-
message: string;
|
|
111
|
-
}
|
|
112
|
-
export interface ValidateTokenRequest {
|
|
113
|
-
accessToken: string;
|
|
114
|
-
}
|
|
115
|
-
export interface ValidateTokenResponse {
|
|
116
|
-
valid: boolean;
|
|
117
|
-
userId: string;
|
|
118
|
-
scopes: string[];
|
|
119
|
-
expiresAt: Date | undefined;
|
|
120
|
-
/** free, pro */
|
|
121
|
-
tier: string;
|
|
122
|
-
}
|
|
123
|
-
/** Uses JWT from Authorization header */
|
|
124
|
-
export interface GetCurrentUserRequest {
|
|
125
|
-
}
|
|
126
|
-
export interface GetCurrentUserResponse {
|
|
127
|
-
user: User | undefined;
|
|
128
|
-
}
|
|
129
|
-
export interface UpdateUserRequest {
|
|
130
|
-
fullName: string;
|
|
131
|
-
email: string;
|
|
132
|
-
preferences: UserPreferences | undefined;
|
|
133
|
-
}
|
|
134
|
-
export interface UpdateUserResponse {
|
|
135
|
-
user: User | undefined;
|
|
136
|
-
}
|
|
137
|
-
export interface DeleteUserRequest {
|
|
138
|
-
/** Must be "DELETE" */
|
|
139
|
-
confirmation: string;
|
|
140
|
-
/** For extra security */
|
|
141
|
-
password: string;
|
|
142
|
-
}
|
|
143
|
-
export interface DeleteUserResponse {
|
|
144
|
-
success: boolean;
|
|
145
|
-
message: string;
|
|
146
|
-
scheduledDeletionAt: Date | undefined;
|
|
147
|
-
}
|
|
148
|
-
export interface ListAPIKeysRequest {
|
|
149
|
-
pageSize: number;
|
|
150
|
-
pageToken: string;
|
|
151
|
-
activeOnly: boolean;
|
|
152
|
-
}
|
|
153
|
-
export interface ListAPIKeysResponse {
|
|
154
|
-
apiKeys: APIKey[];
|
|
155
|
-
nextPageToken: string;
|
|
156
|
-
totalCount: number;
|
|
157
|
-
}
|
|
158
|
-
export interface CreateAPIKeyRequest {
|
|
159
|
-
name: string;
|
|
160
|
-
description: string;
|
|
161
|
-
/** read, write */
|
|
162
|
-
scopes: string[];
|
|
163
|
-
/** Optional endpoint restrictions */
|
|
164
|
-
allowedEndpoints: string[];
|
|
165
|
-
/** Optional IP whitelist */
|
|
166
|
-
allowedIps: string[];
|
|
167
|
-
expiresAt: Date | undefined;
|
|
168
|
-
}
|
|
169
|
-
export interface CreateAPIKeyResponse {
|
|
170
|
-
apiKey: APIKey | undefined;
|
|
171
|
-
/** Full key, only shown once */
|
|
172
|
-
secretKey: string;
|
|
173
|
-
/** "Store this key securely, it won't be shown again" */
|
|
174
|
-
warning: string;
|
|
175
|
-
}
|
|
176
|
-
export interface GetAPIKeyRequest {
|
|
177
|
-
keyId: string;
|
|
178
|
-
}
|
|
179
|
-
export interface GetAPIKeyResponse {
|
|
180
|
-
apiKey: APIKey | undefined;
|
|
181
|
-
}
|
|
182
|
-
export interface UpdateAPIKeyRequest {
|
|
183
|
-
keyId: string;
|
|
184
|
-
name: string;
|
|
185
|
-
description: string;
|
|
186
|
-
allowedEndpoints: string[];
|
|
187
|
-
allowedIps: string[];
|
|
188
|
-
isActive: boolean;
|
|
189
|
-
}
|
|
190
|
-
export interface UpdateAPIKeyResponse {
|
|
191
|
-
apiKey: APIKey | undefined;
|
|
192
|
-
}
|
|
193
|
-
export interface RevokeAPIKeyRequest {
|
|
194
|
-
keyId: string;
|
|
195
|
-
}
|
|
196
|
-
export interface RevokeAPIKeyResponse {
|
|
197
|
-
success: boolean;
|
|
198
|
-
message: string;
|
|
199
|
-
}
|
|
200
|
-
export interface ValidateAPIKeyRequest {
|
|
201
|
-
/** Full API key */
|
|
202
|
-
apiKey: string;
|
|
203
|
-
/** Endpoint being accessed */
|
|
204
|
-
endpoint: string;
|
|
205
|
-
/** Request IP */
|
|
206
|
-
ipAddress: string;
|
|
207
|
-
}
|
|
208
|
-
export interface ValidateAPIKeyResponse {
|
|
209
|
-
valid: boolean;
|
|
210
|
-
userId: string;
|
|
211
|
-
/** free, pro */
|
|
212
|
-
tier: string;
|
|
213
|
-
scopes: string[];
|
|
214
|
-
rateLimit: RateLimitInfo | undefined;
|
|
215
|
-
/** If invalid */
|
|
216
|
-
rejectionReason: string;
|
|
217
|
-
}
|
|
218
|
-
export interface GetUsageStatsRequest {
|
|
219
|
-
/** today, week, month, all */
|
|
220
|
-
period: string;
|
|
221
|
-
/** Optional: filter by specific key */
|
|
222
|
-
apiKeyId: string;
|
|
223
|
-
}
|
|
224
|
-
export interface GetUsageStatsResponse {
|
|
225
|
-
currentPeriod: UsageStats | undefined;
|
|
226
|
-
historical: UsageStats[];
|
|
227
|
-
limits: UsageLimits | undefined;
|
|
228
|
-
}
|
|
229
|
-
export interface GetRateLimitStatusRequest {
|
|
230
|
-
/** Optional: check specific key */
|
|
231
|
-
apiKeyId: string;
|
|
232
|
-
}
|
|
233
|
-
export interface GetRateLimitStatusResponse {
|
|
234
|
-
current: RateLimitInfo | undefined;
|
|
235
|
-
byEndpoint: RateLimitInfo[];
|
|
236
|
-
}
|
|
237
|
-
export interface RateLimitInfo {
|
|
238
|
-
tier: string;
|
|
239
|
-
/** hour, minute */
|
|
240
|
-
window: string;
|
|
241
|
-
limit: number;
|
|
242
|
-
remaining: number;
|
|
243
|
-
resetAt: Date | undefined;
|
|
244
|
-
isLimited: boolean;
|
|
245
|
-
}
|
|
246
|
-
export interface ListSessionsRequest {
|
|
247
|
-
pageSize: number;
|
|
248
|
-
pageToken: string;
|
|
249
|
-
}
|
|
250
|
-
export interface ListSessionsResponse {
|
|
251
|
-
sessions: Session[];
|
|
252
|
-
nextPageToken: string;
|
|
253
|
-
totalCount: number;
|
|
254
|
-
currentSessionId: string;
|
|
255
|
-
}
|
|
256
|
-
export interface RevokeSessionRequest {
|
|
257
|
-
sessionId: string;
|
|
258
|
-
}
|
|
259
|
-
export interface RevokeSessionResponse {
|
|
260
|
-
success: boolean;
|
|
261
|
-
message: string;
|
|
262
|
-
}
|
|
263
|
-
export interface RevokeAllSessionsRequest {
|
|
264
|
-
/** Keep the session making this request */
|
|
265
|
-
keepCurrent: boolean;
|
|
266
|
-
}
|
|
267
|
-
export interface RevokeAllSessionsResponse {
|
|
268
|
-
revokedCount: number;
|
|
269
|
-
message: string;
|
|
270
|
-
}
|
|
271
|
-
export declare const InitiateOAuthRequest: MessageFns<InitiateOAuthRequest>;
|
|
272
|
-
export declare const InitiateOAuthRequest_ProviderParamsEntry: MessageFns<InitiateOAuthRequest_ProviderParamsEntry>;
|
|
273
|
-
export declare const InitiateOAuthResponse: MessageFns<InitiateOAuthResponse>;
|
|
274
|
-
export declare const HandleOAuthCallbackRequest: MessageFns<HandleOAuthCallbackRequest>;
|
|
275
|
-
export declare const HandleOAuthCallbackResponse: MessageFns<HandleOAuthCallbackResponse>;
|
|
276
|
-
export declare const GetOAuthProvidersRequest: MessageFns<GetOAuthProvidersRequest>;
|
|
277
|
-
export declare const GetOAuthProvidersResponse: MessageFns<GetOAuthProvidersResponse>;
|
|
278
|
-
export declare const LinkOAuthProviderRequest: MessageFns<LinkOAuthProviderRequest>;
|
|
279
|
-
export declare const LinkOAuthProviderResponse: MessageFns<LinkOAuthProviderResponse>;
|
|
280
|
-
export declare const UnlinkOAuthProviderRequest: MessageFns<UnlinkOAuthProviderRequest>;
|
|
281
|
-
export declare const UnlinkOAuthProviderResponse: MessageFns<UnlinkOAuthProviderResponse>;
|
|
282
|
-
export declare const RefreshTokenRequest: MessageFns<RefreshTokenRequest>;
|
|
283
|
-
export declare const RefreshTokenResponse: MessageFns<RefreshTokenResponse>;
|
|
284
|
-
export declare const RevokeTokenRequest: MessageFns<RevokeTokenRequest>;
|
|
285
|
-
export declare const RevokeTokenResponse: MessageFns<RevokeTokenResponse>;
|
|
286
|
-
export declare const ValidateTokenRequest: MessageFns<ValidateTokenRequest>;
|
|
287
|
-
export declare const ValidateTokenResponse: MessageFns<ValidateTokenResponse>;
|
|
288
|
-
export declare const GetCurrentUserRequest: MessageFns<GetCurrentUserRequest>;
|
|
289
|
-
export declare const GetCurrentUserResponse: MessageFns<GetCurrentUserResponse>;
|
|
290
|
-
export declare const UpdateUserRequest: MessageFns<UpdateUserRequest>;
|
|
291
|
-
export declare const UpdateUserResponse: MessageFns<UpdateUserResponse>;
|
|
292
|
-
export declare const DeleteUserRequest: MessageFns<DeleteUserRequest>;
|
|
293
|
-
export declare const DeleteUserResponse: MessageFns<DeleteUserResponse>;
|
|
294
|
-
export declare const ListAPIKeysRequest: MessageFns<ListAPIKeysRequest>;
|
|
295
|
-
export declare const ListAPIKeysResponse: MessageFns<ListAPIKeysResponse>;
|
|
296
|
-
export declare const CreateAPIKeyRequest: MessageFns<CreateAPIKeyRequest>;
|
|
297
|
-
export declare const CreateAPIKeyResponse: MessageFns<CreateAPIKeyResponse>;
|
|
298
|
-
export declare const GetAPIKeyRequest: MessageFns<GetAPIKeyRequest>;
|
|
299
|
-
export declare const GetAPIKeyResponse: MessageFns<GetAPIKeyResponse>;
|
|
300
|
-
export declare const UpdateAPIKeyRequest: MessageFns<UpdateAPIKeyRequest>;
|
|
301
|
-
export declare const UpdateAPIKeyResponse: MessageFns<UpdateAPIKeyResponse>;
|
|
302
|
-
export declare const RevokeAPIKeyRequest: MessageFns<RevokeAPIKeyRequest>;
|
|
303
|
-
export declare const RevokeAPIKeyResponse: MessageFns<RevokeAPIKeyResponse>;
|
|
304
|
-
export declare const ValidateAPIKeyRequest: MessageFns<ValidateAPIKeyRequest>;
|
|
305
|
-
export declare const ValidateAPIKeyResponse: MessageFns<ValidateAPIKeyResponse>;
|
|
306
|
-
export declare const GetUsageStatsRequest: MessageFns<GetUsageStatsRequest>;
|
|
307
|
-
export declare const GetUsageStatsResponse: MessageFns<GetUsageStatsResponse>;
|
|
308
|
-
export declare const GetRateLimitStatusRequest: MessageFns<GetRateLimitStatusRequest>;
|
|
309
|
-
export declare const GetRateLimitStatusResponse: MessageFns<GetRateLimitStatusResponse>;
|
|
310
|
-
export declare const RateLimitInfo: MessageFns<RateLimitInfo>;
|
|
311
|
-
export declare const ListSessionsRequest: MessageFns<ListSessionsRequest>;
|
|
312
|
-
export declare const ListSessionsResponse: MessageFns<ListSessionsResponse>;
|
|
313
|
-
export declare const RevokeSessionRequest: MessageFns<RevokeSessionRequest>;
|
|
314
|
-
export declare const RevokeSessionResponse: MessageFns<RevokeSessionResponse>;
|
|
315
|
-
export declare const RevokeAllSessionsRequest: MessageFns<RevokeAllSessionsRequest>;
|
|
316
|
-
export declare const RevokeAllSessionsResponse: MessageFns<RevokeAllSessionsResponse>;
|
|
317
|
-
/** Auth handles authentication and user management */
|
|
318
|
-
export interface Auth {
|
|
319
|
-
/** Initiate OAuth flow for any supported provider */
|
|
320
|
-
InitiateOAuth(request: InitiateOAuthRequest): Promise<InitiateOAuthResponse>;
|
|
321
|
-
/** Handle OAuth callback from any provider */
|
|
322
|
-
HandleOAuthCallback(request: HandleOAuthCallbackRequest): Promise<HandleOAuthCallbackResponse>;
|
|
323
|
-
/** Get list of supported OAuth providers */
|
|
324
|
-
GetOAuthProviders(request: GetOAuthProvidersRequest): Promise<GetOAuthProvidersResponse>;
|
|
325
|
-
/** Link additional OAuth provider to existing account */
|
|
326
|
-
LinkOAuthProvider(request: LinkOAuthProviderRequest): Promise<LinkOAuthProviderResponse>;
|
|
327
|
-
/** Unlink OAuth provider from account */
|
|
328
|
-
UnlinkOAuthProvider(request: UnlinkOAuthProviderRequest): Promise<UnlinkOAuthProviderResponse>;
|
|
329
|
-
/** Refresh access token */
|
|
330
|
-
RefreshToken(request: RefreshTokenRequest): Promise<RefreshTokenResponse>;
|
|
331
|
-
/** Revoke refresh token (logout) */
|
|
332
|
-
RevokeToken(request: RevokeTokenRequest): Promise<RevokeTokenResponse>;
|
|
333
|
-
/** Validate access token */
|
|
334
|
-
ValidateToken(request: ValidateTokenRequest): Promise<ValidateTokenResponse>;
|
|
335
|
-
/** Get current user profile */
|
|
336
|
-
GetCurrentUser(request: GetCurrentUserRequest): Promise<GetCurrentUserResponse>;
|
|
337
|
-
/** Update user profile */
|
|
338
|
-
UpdateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
339
|
-
/** Delete user account */
|
|
340
|
-
DeleteUser(request: DeleteUserRequest): Promise<DeleteUserResponse>;
|
|
341
|
-
/** List user's API keys */
|
|
342
|
-
ListAPIKeys(request: ListAPIKeysRequest): Promise<ListAPIKeysResponse>;
|
|
343
|
-
/** Create new API key */
|
|
344
|
-
CreateAPIKey(request: CreateAPIKeyRequest): Promise<CreateAPIKeyResponse>;
|
|
345
|
-
/** Get API key details */
|
|
346
|
-
GetAPIKey(request: GetAPIKeyRequest): Promise<GetAPIKeyResponse>;
|
|
347
|
-
/** Update API key (rename, etc) */
|
|
348
|
-
UpdateAPIKey(request: UpdateAPIKeyRequest): Promise<UpdateAPIKeyResponse>;
|
|
349
|
-
/** Revoke API key */
|
|
350
|
-
RevokeAPIKey(request: RevokeAPIKeyRequest): Promise<RevokeAPIKeyResponse>;
|
|
351
|
-
/** Validate API key (for internal use) */
|
|
352
|
-
ValidateAPIKey(request: ValidateAPIKeyRequest): Promise<ValidateAPIKeyResponse>;
|
|
353
|
-
/** Get user's API usage statistics */
|
|
354
|
-
GetUsageStats(request: GetUsageStatsRequest): Promise<GetUsageStatsResponse>;
|
|
355
|
-
/** Get rate limit status */
|
|
356
|
-
GetRateLimitStatus(request: GetRateLimitStatusRequest): Promise<GetRateLimitStatusResponse>;
|
|
357
|
-
/** List active sessions */
|
|
358
|
-
ListSessions(request: ListSessionsRequest): Promise<ListSessionsResponse>;
|
|
359
|
-
/** Revoke a specific session */
|
|
360
|
-
RevokeSession(request: RevokeSessionRequest): Promise<RevokeSessionResponse>;
|
|
361
|
-
/** Revoke all sessions except current */
|
|
362
|
-
RevokeAllSessions(request: RevokeAllSessionsRequest): Promise<RevokeAllSessionsResponse>;
|
|
363
|
-
}
|
|
364
|
-
export declare const AuthServiceName = "weaveapi.auth.v1.Auth";
|
|
365
|
-
export declare class AuthClientImpl implements Auth {
|
|
366
|
-
private readonly rpc;
|
|
367
|
-
private readonly service;
|
|
368
|
-
constructor(rpc: Rpc, opts?: {
|
|
369
|
-
service?: string;
|
|
370
|
-
});
|
|
371
|
-
InitiateOAuth(request: InitiateOAuthRequest): Promise<InitiateOAuthResponse>;
|
|
372
|
-
HandleOAuthCallback(request: HandleOAuthCallbackRequest): Promise<HandleOAuthCallbackResponse>;
|
|
373
|
-
GetOAuthProviders(request: GetOAuthProvidersRequest): Promise<GetOAuthProvidersResponse>;
|
|
374
|
-
LinkOAuthProvider(request: LinkOAuthProviderRequest): Promise<LinkOAuthProviderResponse>;
|
|
375
|
-
UnlinkOAuthProvider(request: UnlinkOAuthProviderRequest): Promise<UnlinkOAuthProviderResponse>;
|
|
376
|
-
RefreshToken(request: RefreshTokenRequest): Promise<RefreshTokenResponse>;
|
|
377
|
-
RevokeToken(request: RevokeTokenRequest): Promise<RevokeTokenResponse>;
|
|
378
|
-
ValidateToken(request: ValidateTokenRequest): Promise<ValidateTokenResponse>;
|
|
379
|
-
GetCurrentUser(request: GetCurrentUserRequest): Promise<GetCurrentUserResponse>;
|
|
380
|
-
UpdateUser(request: UpdateUserRequest): Promise<UpdateUserResponse>;
|
|
381
|
-
DeleteUser(request: DeleteUserRequest): Promise<DeleteUserResponse>;
|
|
382
|
-
ListAPIKeys(request: ListAPIKeysRequest): Promise<ListAPIKeysResponse>;
|
|
383
|
-
CreateAPIKey(request: CreateAPIKeyRequest): Promise<CreateAPIKeyResponse>;
|
|
384
|
-
GetAPIKey(request: GetAPIKeyRequest): Promise<GetAPIKeyResponse>;
|
|
385
|
-
UpdateAPIKey(request: UpdateAPIKeyRequest): Promise<UpdateAPIKeyResponse>;
|
|
386
|
-
RevokeAPIKey(request: RevokeAPIKeyRequest): Promise<RevokeAPIKeyResponse>;
|
|
387
|
-
ValidateAPIKey(request: ValidateAPIKeyRequest): Promise<ValidateAPIKeyResponse>;
|
|
388
|
-
GetUsageStats(request: GetUsageStatsRequest): Promise<GetUsageStatsResponse>;
|
|
389
|
-
GetRateLimitStatus(request: GetRateLimitStatusRequest): Promise<GetRateLimitStatusResponse>;
|
|
390
|
-
ListSessions(request: ListSessionsRequest): Promise<ListSessionsResponse>;
|
|
391
|
-
RevokeSession(request: RevokeSessionRequest): Promise<RevokeSessionResponse>;
|
|
392
|
-
RevokeAllSessions(request: RevokeAllSessionsRequest): Promise<RevokeAllSessionsResponse>;
|
|
393
|
-
}
|
|
394
|
-
/** Auth handles authentication and user management */
|
|
395
|
-
export type AuthDefinition = typeof AuthDefinition;
|
|
396
|
-
export declare const AuthDefinition: {
|
|
397
|
-
readonly name: "Auth";
|
|
398
|
-
readonly fullName: "weaveapi.auth.v1.Auth";
|
|
399
|
-
readonly methods: {
|
|
400
|
-
/** Initiate OAuth flow for any supported provider */
|
|
401
|
-
readonly initiateOAuth: {
|
|
402
|
-
readonly name: "InitiateOAuth";
|
|
403
|
-
readonly requestType: typeof InitiateOAuthRequest;
|
|
404
|
-
readonly requestStream: false;
|
|
405
|
-
readonly responseType: typeof InitiateOAuthResponse;
|
|
406
|
-
readonly responseStream: false;
|
|
407
|
-
readonly options: {
|
|
408
|
-
readonly _unknownFields: {
|
|
409
|
-
readonly 578365826: readonly [Uint8Array];
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
/** Handle OAuth callback from any provider */
|
|
414
|
-
readonly handleOAuthCallback: {
|
|
415
|
-
readonly name: "HandleOAuthCallback";
|
|
416
|
-
readonly requestType: typeof HandleOAuthCallbackRequest;
|
|
417
|
-
readonly requestStream: false;
|
|
418
|
-
readonly responseType: typeof HandleOAuthCallbackResponse;
|
|
419
|
-
readonly responseStream: false;
|
|
420
|
-
readonly options: {
|
|
421
|
-
readonly _unknownFields: {
|
|
422
|
-
readonly 578365826: readonly [Uint8Array];
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
/** Get list of supported OAuth providers */
|
|
427
|
-
readonly getOAuthProviders: {
|
|
428
|
-
readonly name: "GetOAuthProviders";
|
|
429
|
-
readonly requestType: typeof GetOAuthProvidersRequest;
|
|
430
|
-
readonly requestStream: false;
|
|
431
|
-
readonly responseType: typeof GetOAuthProvidersResponse;
|
|
432
|
-
readonly responseStream: false;
|
|
433
|
-
readonly options: {
|
|
434
|
-
readonly _unknownFields: {
|
|
435
|
-
readonly 578365826: readonly [Uint8Array];
|
|
436
|
-
};
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
/** Link additional OAuth provider to existing account */
|
|
440
|
-
readonly linkOAuthProvider: {
|
|
441
|
-
readonly name: "LinkOAuthProvider";
|
|
442
|
-
readonly requestType: typeof LinkOAuthProviderRequest;
|
|
443
|
-
readonly requestStream: false;
|
|
444
|
-
readonly responseType: typeof LinkOAuthProviderResponse;
|
|
445
|
-
readonly responseStream: false;
|
|
446
|
-
readonly options: {
|
|
447
|
-
readonly _unknownFields: {
|
|
448
|
-
readonly 578365826: readonly [Uint8Array];
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
};
|
|
452
|
-
/** Unlink OAuth provider from account */
|
|
453
|
-
readonly unlinkOAuthProvider: {
|
|
454
|
-
readonly name: "UnlinkOAuthProvider";
|
|
455
|
-
readonly requestType: typeof UnlinkOAuthProviderRequest;
|
|
456
|
-
readonly requestStream: false;
|
|
457
|
-
readonly responseType: typeof UnlinkOAuthProviderResponse;
|
|
458
|
-
readonly responseStream: false;
|
|
459
|
-
readonly options: {
|
|
460
|
-
readonly _unknownFields: {
|
|
461
|
-
readonly 578365826: readonly [Uint8Array];
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
/** Refresh access token */
|
|
466
|
-
readonly refreshToken: {
|
|
467
|
-
readonly name: "RefreshToken";
|
|
468
|
-
readonly requestType: typeof RefreshTokenRequest;
|
|
469
|
-
readonly requestStream: false;
|
|
470
|
-
readonly responseType: typeof RefreshTokenResponse;
|
|
471
|
-
readonly responseStream: false;
|
|
472
|
-
readonly options: {
|
|
473
|
-
readonly _unknownFields: {
|
|
474
|
-
readonly 578365826: readonly [Uint8Array];
|
|
475
|
-
};
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
/** Revoke refresh token (logout) */
|
|
479
|
-
readonly revokeToken: {
|
|
480
|
-
readonly name: "RevokeToken";
|
|
481
|
-
readonly requestType: typeof RevokeTokenRequest;
|
|
482
|
-
readonly requestStream: false;
|
|
483
|
-
readonly responseType: typeof RevokeTokenResponse;
|
|
484
|
-
readonly responseStream: false;
|
|
485
|
-
readonly options: {
|
|
486
|
-
readonly _unknownFields: {
|
|
487
|
-
readonly 578365826: readonly [Uint8Array];
|
|
488
|
-
};
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
/** Validate access token */
|
|
492
|
-
readonly validateToken: {
|
|
493
|
-
readonly name: "ValidateToken";
|
|
494
|
-
readonly requestType: typeof ValidateTokenRequest;
|
|
495
|
-
readonly requestStream: false;
|
|
496
|
-
readonly responseType: typeof ValidateTokenResponse;
|
|
497
|
-
readonly responseStream: false;
|
|
498
|
-
readonly options: {
|
|
499
|
-
readonly _unknownFields: {
|
|
500
|
-
readonly 578365826: readonly [Uint8Array];
|
|
501
|
-
};
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
/** Get current user profile */
|
|
505
|
-
readonly getCurrentUser: {
|
|
506
|
-
readonly name: "GetCurrentUser";
|
|
507
|
-
readonly requestType: typeof GetCurrentUserRequest;
|
|
508
|
-
readonly requestStream: false;
|
|
509
|
-
readonly responseType: typeof GetCurrentUserResponse;
|
|
510
|
-
readonly responseStream: false;
|
|
511
|
-
readonly options: {
|
|
512
|
-
readonly _unknownFields: {
|
|
513
|
-
readonly 578365826: readonly [Uint8Array];
|
|
514
|
-
};
|
|
515
|
-
};
|
|
516
|
-
};
|
|
517
|
-
/** Update user profile */
|
|
518
|
-
readonly updateUser: {
|
|
519
|
-
readonly name: "UpdateUser";
|
|
520
|
-
readonly requestType: typeof UpdateUserRequest;
|
|
521
|
-
readonly requestStream: false;
|
|
522
|
-
readonly responseType: typeof UpdateUserResponse;
|
|
523
|
-
readonly responseStream: false;
|
|
524
|
-
readonly options: {
|
|
525
|
-
readonly _unknownFields: {
|
|
526
|
-
readonly 578365826: readonly [Uint8Array];
|
|
527
|
-
};
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
/** Delete user account */
|
|
531
|
-
readonly deleteUser: {
|
|
532
|
-
readonly name: "DeleteUser";
|
|
533
|
-
readonly requestType: typeof DeleteUserRequest;
|
|
534
|
-
readonly requestStream: false;
|
|
535
|
-
readonly responseType: typeof DeleteUserResponse;
|
|
536
|
-
readonly responseStream: false;
|
|
537
|
-
readonly options: {
|
|
538
|
-
readonly _unknownFields: {
|
|
539
|
-
readonly 578365826: readonly [Uint8Array];
|
|
540
|
-
};
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
/** List user's API keys */
|
|
544
|
-
readonly listAPIKeys: {
|
|
545
|
-
readonly name: "ListAPIKeys";
|
|
546
|
-
readonly requestType: typeof ListAPIKeysRequest;
|
|
547
|
-
readonly requestStream: false;
|
|
548
|
-
readonly responseType: typeof ListAPIKeysResponse;
|
|
549
|
-
readonly responseStream: false;
|
|
550
|
-
readonly options: {
|
|
551
|
-
readonly _unknownFields: {
|
|
552
|
-
readonly 578365826: readonly [Uint8Array];
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
/** Create new API key */
|
|
557
|
-
readonly createAPIKey: {
|
|
558
|
-
readonly name: "CreateAPIKey";
|
|
559
|
-
readonly requestType: typeof CreateAPIKeyRequest;
|
|
560
|
-
readonly requestStream: false;
|
|
561
|
-
readonly responseType: typeof CreateAPIKeyResponse;
|
|
562
|
-
readonly responseStream: false;
|
|
563
|
-
readonly options: {
|
|
564
|
-
readonly _unknownFields: {
|
|
565
|
-
readonly 578365826: readonly [Uint8Array];
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
/** Get API key details */
|
|
570
|
-
readonly getAPIKey: {
|
|
571
|
-
readonly name: "GetAPIKey";
|
|
572
|
-
readonly requestType: typeof GetAPIKeyRequest;
|
|
573
|
-
readonly requestStream: false;
|
|
574
|
-
readonly responseType: typeof GetAPIKeyResponse;
|
|
575
|
-
readonly responseStream: false;
|
|
576
|
-
readonly options: {
|
|
577
|
-
readonly _unknownFields: {
|
|
578
|
-
readonly 578365826: readonly [Uint8Array];
|
|
579
|
-
};
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
/** Update API key (rename, etc) */
|
|
583
|
-
readonly updateAPIKey: {
|
|
584
|
-
readonly name: "UpdateAPIKey";
|
|
585
|
-
readonly requestType: typeof UpdateAPIKeyRequest;
|
|
586
|
-
readonly requestStream: false;
|
|
587
|
-
readonly responseType: typeof UpdateAPIKeyResponse;
|
|
588
|
-
readonly responseStream: false;
|
|
589
|
-
readonly options: {
|
|
590
|
-
readonly _unknownFields: {
|
|
591
|
-
readonly 578365826: readonly [Uint8Array];
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
};
|
|
595
|
-
/** Revoke API key */
|
|
596
|
-
readonly revokeAPIKey: {
|
|
597
|
-
readonly name: "RevokeAPIKey";
|
|
598
|
-
readonly requestType: typeof RevokeAPIKeyRequest;
|
|
599
|
-
readonly requestStream: false;
|
|
600
|
-
readonly responseType: typeof RevokeAPIKeyResponse;
|
|
601
|
-
readonly responseStream: false;
|
|
602
|
-
readonly options: {
|
|
603
|
-
readonly _unknownFields: {
|
|
604
|
-
readonly 578365826: readonly [Uint8Array];
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
};
|
|
608
|
-
/** Validate API key (for internal use) */
|
|
609
|
-
readonly validateAPIKey: {
|
|
610
|
-
readonly name: "ValidateAPIKey";
|
|
611
|
-
readonly requestType: typeof ValidateAPIKeyRequest;
|
|
612
|
-
readonly requestStream: false;
|
|
613
|
-
readonly responseType: typeof ValidateAPIKeyResponse;
|
|
614
|
-
readonly responseStream: false;
|
|
615
|
-
readonly options: {
|
|
616
|
-
readonly _unknownFields: {
|
|
617
|
-
readonly 578365826: readonly [Uint8Array];
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
/** Get user's API usage statistics */
|
|
622
|
-
readonly getUsageStats: {
|
|
623
|
-
readonly name: "GetUsageStats";
|
|
624
|
-
readonly requestType: typeof GetUsageStatsRequest;
|
|
625
|
-
readonly requestStream: false;
|
|
626
|
-
readonly responseType: typeof GetUsageStatsResponse;
|
|
627
|
-
readonly responseStream: false;
|
|
628
|
-
readonly options: {
|
|
629
|
-
readonly _unknownFields: {
|
|
630
|
-
readonly 578365826: readonly [Uint8Array];
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
/** Get rate limit status */
|
|
635
|
-
readonly getRateLimitStatus: {
|
|
636
|
-
readonly name: "GetRateLimitStatus";
|
|
637
|
-
readonly requestType: typeof GetRateLimitStatusRequest;
|
|
638
|
-
readonly requestStream: false;
|
|
639
|
-
readonly responseType: typeof GetRateLimitStatusResponse;
|
|
640
|
-
readonly responseStream: false;
|
|
641
|
-
readonly options: {
|
|
642
|
-
readonly _unknownFields: {
|
|
643
|
-
readonly 578365826: readonly [Uint8Array];
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
};
|
|
647
|
-
/** List active sessions */
|
|
648
|
-
readonly listSessions: {
|
|
649
|
-
readonly name: "ListSessions";
|
|
650
|
-
readonly requestType: typeof ListSessionsRequest;
|
|
651
|
-
readonly requestStream: false;
|
|
652
|
-
readonly responseType: typeof ListSessionsResponse;
|
|
653
|
-
readonly responseStream: false;
|
|
654
|
-
readonly options: {
|
|
655
|
-
readonly _unknownFields: {
|
|
656
|
-
readonly 578365826: readonly [Uint8Array];
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
};
|
|
660
|
-
/** Revoke a specific session */
|
|
661
|
-
readonly revokeSession: {
|
|
662
|
-
readonly name: "RevokeSession";
|
|
663
|
-
readonly requestType: typeof RevokeSessionRequest;
|
|
664
|
-
readonly requestStream: false;
|
|
665
|
-
readonly responseType: typeof RevokeSessionResponse;
|
|
666
|
-
readonly responseStream: false;
|
|
667
|
-
readonly options: {
|
|
668
|
-
readonly _unknownFields: {
|
|
669
|
-
readonly 578365826: readonly [Uint8Array];
|
|
670
|
-
};
|
|
671
|
-
};
|
|
672
|
-
};
|
|
673
|
-
/** Revoke all sessions except current */
|
|
674
|
-
readonly revokeAllSessions: {
|
|
675
|
-
readonly name: "RevokeAllSessions";
|
|
676
|
-
readonly requestType: typeof RevokeAllSessionsRequest;
|
|
677
|
-
readonly requestStream: false;
|
|
678
|
-
readonly responseType: typeof RevokeAllSessionsResponse;
|
|
679
|
-
readonly responseStream: false;
|
|
680
|
-
readonly options: {
|
|
681
|
-
readonly _unknownFields: {
|
|
682
|
-
readonly 578365826: readonly [Uint8Array];
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
};
|
|
687
|
-
};
|
|
688
|
-
interface Rpc {
|
|
689
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
690
|
-
}
|
|
691
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
692
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
693
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
694
|
-
} : Partial<T>;
|
|
695
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
696
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
697
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
698
|
-
} & {
|
|
699
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
700
|
-
};
|
|
701
|
-
export interface MessageFns<T> {
|
|
702
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
703
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
704
|
-
fromJSON(object: any): T;
|
|
705
|
-
toJSON(message: T): unknown;
|
|
706
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
707
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
708
|
-
}
|
|
709
|
-
export {};
|