@collective-intelligence/external-apps-server-sdk 0.2.3 → 0.2.5
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 +120 -76
- package/dist/admin.d.ts +85 -98
- package/dist/admin.js +2 -2
- package/dist/auth/better-auth.d.ts +15 -6
- package/dist/auth/federated.d.ts +70 -22
- package/dist/auth/federated.js +1 -1
- package/dist/auth.d.ts +7 -5
- package/dist/chunks/{index-48qvvmm0.js → index-sc1m7s5d.js} +4 -4
- package/dist/effect.d.ts +1378 -171
- package/dist/effect.js +1 -1
- package/dist/index.d.ts +1361 -184
- package/dist/index.js +1 -1
- package/dist/next.d.ts +24 -13
- package/dist/next.js +1 -1
- package/dist/persistence/drizzle.d.ts +6 -5
- package/dist/resources.d.ts +7 -5
- package/dist/resources.js +1 -1
- package/dist/runtime/nestjs.d.ts +6 -6
- package/dist/runtime/web.d.ts +24 -13
- package/dist/runtime/web.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,454 @@ import * as Option$1 from 'effect/Option';
|
|
|
10
10
|
import * as Redacted from 'effect/Redacted';
|
|
11
11
|
import * as Schema from 'effect/Schema';
|
|
12
12
|
|
|
13
|
+
export type AccessExplanation = {
|
|
14
|
+
cut: {
|
|
15
|
+
credential: {
|
|
16
|
+
apiKeyId: string;
|
|
17
|
+
kind: "api_key";
|
|
18
|
+
} | {
|
|
19
|
+
applicationId: string;
|
|
20
|
+
kind: "application_token";
|
|
21
|
+
};
|
|
22
|
+
maxPrivileges: Array<{
|
|
23
|
+
code: string;
|
|
24
|
+
mode: "manage" | "on" | "read";
|
|
25
|
+
}>;
|
|
26
|
+
tuples: Array<{
|
|
27
|
+
capabilities: Array<{
|
|
28
|
+
code: string;
|
|
29
|
+
held: "manage" | "on" | "read";
|
|
30
|
+
kept: "manage" | "on" | "read" | null;
|
|
31
|
+
}>;
|
|
32
|
+
holder: {
|
|
33
|
+
grantId: string;
|
|
34
|
+
kind: "grant";
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
} | null;
|
|
38
|
+
grants: Array<{
|
|
39
|
+
grantId: string;
|
|
40
|
+
label: string;
|
|
41
|
+
profile: {
|
|
42
|
+
id: string;
|
|
43
|
+
label: string;
|
|
44
|
+
};
|
|
45
|
+
values: Array<{
|
|
46
|
+
axis: {
|
|
47
|
+
id: string;
|
|
48
|
+
label: string;
|
|
49
|
+
};
|
|
50
|
+
value: {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string | null;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
origin: "declared" | "manual" | "import" | "api" | "app_server" | "invitation" | "tenant" | null;
|
|
56
|
+
via: {
|
|
57
|
+
kind: "direct";
|
|
58
|
+
} | {
|
|
59
|
+
group: {
|
|
60
|
+
id: string;
|
|
61
|
+
label: string | null;
|
|
62
|
+
};
|
|
63
|
+
kind: "group";
|
|
64
|
+
} | {
|
|
65
|
+
group: {
|
|
66
|
+
id: string;
|
|
67
|
+
label: string | null;
|
|
68
|
+
};
|
|
69
|
+
kind: "inherited_group";
|
|
70
|
+
};
|
|
71
|
+
}>;
|
|
72
|
+
principal: {
|
|
73
|
+
kind: "service_principal" | "user";
|
|
74
|
+
tenantRole: "tenant_admin" | "tenant_operator" | null;
|
|
75
|
+
userId: string;
|
|
76
|
+
} | {
|
|
77
|
+
applicationId: string;
|
|
78
|
+
kind: "application_server" | "application_visitors";
|
|
79
|
+
};
|
|
80
|
+
target: {
|
|
81
|
+
allowed: boolean;
|
|
82
|
+
code: string;
|
|
83
|
+
holders: Array<{
|
|
84
|
+
grantId: string;
|
|
85
|
+
kind: "grant";
|
|
86
|
+
}>;
|
|
87
|
+
kind: "capability";
|
|
88
|
+
known: boolean;
|
|
89
|
+
mode: "manage" | "on" | "read";
|
|
90
|
+
} | {
|
|
91
|
+
admitted: boolean;
|
|
92
|
+
fields: {
|
|
93
|
+
hidden: Array<string>;
|
|
94
|
+
otherFields: "hidden" | "shown";
|
|
95
|
+
shown: Array<string>;
|
|
96
|
+
} | null;
|
|
97
|
+
kind: "record";
|
|
98
|
+
operation: "read" | "write";
|
|
99
|
+
policies: Array<{
|
|
100
|
+
capability: {
|
|
101
|
+
code: string;
|
|
102
|
+
mode: "manage" | "on" | "read";
|
|
103
|
+
};
|
|
104
|
+
fields: Array<string> | {
|
|
105
|
+
except: Array<string>;
|
|
106
|
+
} | null;
|
|
107
|
+
id: string;
|
|
108
|
+
kind: "package" | "core_tenant" | "core_admin" | "core_default";
|
|
109
|
+
purpose: "access" | "administration";
|
|
110
|
+
result: {
|
|
111
|
+
admitted: true;
|
|
112
|
+
grantIds: Array<string>;
|
|
113
|
+
} | {
|
|
114
|
+
admitted: false;
|
|
115
|
+
reason: "axes_not_bound" | "capability_not_held" | "record_not_matched";
|
|
116
|
+
};
|
|
117
|
+
}>;
|
|
118
|
+
recordId: string;
|
|
119
|
+
schemaId: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export type AccessExplainRequest = {
|
|
123
|
+
credential?: {
|
|
124
|
+
apiKeyId: string;
|
|
125
|
+
kind: "api_key";
|
|
126
|
+
} | {
|
|
127
|
+
applicationId: string;
|
|
128
|
+
kind: "application_token";
|
|
129
|
+
};
|
|
130
|
+
principal: {
|
|
131
|
+
kind: "user";
|
|
132
|
+
userId: string;
|
|
133
|
+
} | {
|
|
134
|
+
applicationId: string;
|
|
135
|
+
kind: "application_server" | "application_visitors";
|
|
136
|
+
};
|
|
137
|
+
target: {
|
|
138
|
+
code: string;
|
|
139
|
+
kind: "capability";
|
|
140
|
+
mode: "manage" | "on" | "read";
|
|
141
|
+
} | {
|
|
142
|
+
kind: "record";
|
|
143
|
+
operation: "read" | "write";
|
|
144
|
+
recordId: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export type AccessGrantAxis = {
|
|
148
|
+
entitySchemaId: string;
|
|
149
|
+
hierarchyFieldId: string | null;
|
|
150
|
+
id: string;
|
|
151
|
+
label: string;
|
|
152
|
+
packageInstallationId: string | null;
|
|
153
|
+
slug: string;
|
|
154
|
+
};
|
|
155
|
+
export type AccessCapabilityNode = {
|
|
156
|
+
area: "dashboard" | "studio" | "mcp" | "admin" | "platform" | "data" | "tenant" | "app" | "package";
|
|
157
|
+
code: string;
|
|
158
|
+
grantableBy: "admins" | "holders";
|
|
159
|
+
id: string;
|
|
160
|
+
key: string;
|
|
161
|
+
kind: "switch" | "read_manage";
|
|
162
|
+
parentId: string | null;
|
|
163
|
+
source: "core" | "application" | "package";
|
|
164
|
+
status: "active" | "retired";
|
|
165
|
+
};
|
|
166
|
+
export type AccessProfile = {
|
|
167
|
+
audience: "user" | "server" | "anonymous" | "max_privileges";
|
|
168
|
+
axisIds: Array<string>;
|
|
169
|
+
canGrant: "all" | Array<string>;
|
|
170
|
+
capabilities: Array<AccessProfileCapability>;
|
|
171
|
+
description: string | null;
|
|
172
|
+
displayName: string;
|
|
173
|
+
fqn: string | null;
|
|
174
|
+
id: string;
|
|
175
|
+
readonly: boolean;
|
|
176
|
+
source: "builtin" | "package" | "custom";
|
|
177
|
+
version: number;
|
|
178
|
+
};
|
|
179
|
+
export type AccessProfileCapability = {
|
|
180
|
+
code: string;
|
|
181
|
+
mode: "manage" | "on" | "read";
|
|
182
|
+
};
|
|
183
|
+
export type AccessMemberCreated = {
|
|
184
|
+
accountCreated: boolean;
|
|
185
|
+
grants: Array<AccessGrant>;
|
|
186
|
+
mode: "direct";
|
|
187
|
+
userId: string;
|
|
188
|
+
} | {
|
|
189
|
+
email: string;
|
|
190
|
+
invitationId: string;
|
|
191
|
+
mode: "invitation";
|
|
192
|
+
};
|
|
193
|
+
export type AccessGrant = {
|
|
194
|
+
active: boolean;
|
|
195
|
+
axes: Array<{
|
|
196
|
+
axisId: string;
|
|
197
|
+
entityId: string;
|
|
198
|
+
}>;
|
|
199
|
+
fqn: string | null;
|
|
200
|
+
id: string;
|
|
201
|
+
origin: "declared" | "manual" | "import" | "api" | "app_server" | "invitation" | "tenant";
|
|
202
|
+
profileId: string;
|
|
203
|
+
recipient: AccessGrantRecipient;
|
|
204
|
+
};
|
|
205
|
+
export type AccessGrantRecipient = {
|
|
206
|
+
kind: "user";
|
|
207
|
+
userId: string;
|
|
208
|
+
} | {
|
|
209
|
+
coverage: "direct" | "inherited";
|
|
210
|
+
groupId: string;
|
|
211
|
+
kind: "group";
|
|
212
|
+
} | {
|
|
213
|
+
applicationId: string;
|
|
214
|
+
kind: "application_server" | "application_visitors";
|
|
215
|
+
};
|
|
216
|
+
export type AccessMemberCreateRequest = {
|
|
217
|
+
email: string;
|
|
218
|
+
grants: Array<{
|
|
219
|
+
axes?: {
|
|
220
|
+
[key: string]: {
|
|
221
|
+
knowledgeEntity: {
|
|
222
|
+
field: string;
|
|
223
|
+
value: string;
|
|
224
|
+
};
|
|
225
|
+
} | string;
|
|
226
|
+
};
|
|
227
|
+
profile: string | {
|
|
228
|
+
id: string;
|
|
229
|
+
};
|
|
230
|
+
}>;
|
|
231
|
+
kind: "member" | "guest";
|
|
232
|
+
mode: "direct" | "invitation";
|
|
233
|
+
name?: string;
|
|
234
|
+
};
|
|
235
|
+
export type AccessGrantSyncResult = {
|
|
236
|
+
created: Array<string>;
|
|
237
|
+
deleted: Array<string>;
|
|
238
|
+
unchanged: Array<string>;
|
|
239
|
+
updated: Array<string>;
|
|
240
|
+
};
|
|
241
|
+
export type AccessSnapshot = {
|
|
242
|
+
accessVersion: number;
|
|
243
|
+
capabilities: Array<{
|
|
244
|
+
area: "admin" | "app" | "dashboard" | "data" | "mcp" | "package" | "platform" | "studio" | "tenant";
|
|
245
|
+
code: string;
|
|
246
|
+
mode: "manage" | "on" | "read";
|
|
247
|
+
path: Array<string>;
|
|
248
|
+
}>;
|
|
249
|
+
grants: Array<{
|
|
250
|
+
grantId: string;
|
|
251
|
+
label: string;
|
|
252
|
+
profile: {
|
|
253
|
+
id: string;
|
|
254
|
+
label: string;
|
|
255
|
+
};
|
|
256
|
+
values: Array<{
|
|
257
|
+
axis: {
|
|
258
|
+
id: string;
|
|
259
|
+
label: string;
|
|
260
|
+
};
|
|
261
|
+
value: {
|
|
262
|
+
id: string;
|
|
263
|
+
label: string | null;
|
|
264
|
+
};
|
|
265
|
+
}>;
|
|
266
|
+
}>;
|
|
267
|
+
schemas: Array<{
|
|
268
|
+
read: "all" | "none" | "some";
|
|
269
|
+
schemaId: string;
|
|
270
|
+
write: "all" | "none" | "some";
|
|
271
|
+
}>;
|
|
272
|
+
versionToken: string;
|
|
273
|
+
};
|
|
274
|
+
export type AccessGroup = {
|
|
275
|
+
description: string | null;
|
|
276
|
+
fqn: string | null;
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
package: {
|
|
280
|
+
fqn: string;
|
|
281
|
+
managed: boolean;
|
|
282
|
+
readonly: boolean;
|
|
283
|
+
} | null;
|
|
284
|
+
parentGroupId: string | null;
|
|
285
|
+
slug: string | null;
|
|
286
|
+
};
|
|
287
|
+
export type AccessGroupUpdateRequest = {
|
|
288
|
+
description?: string | null;
|
|
289
|
+
name?: string;
|
|
290
|
+
parentGroupId?: string | null;
|
|
291
|
+
slug?: string | null;
|
|
292
|
+
};
|
|
293
|
+
export type AccessGroupPage = {
|
|
294
|
+
items: Array<AccessGroup>;
|
|
295
|
+
next: number | null;
|
|
296
|
+
};
|
|
297
|
+
export type AccessGroupCreateRequest = {
|
|
298
|
+
description?: string | null;
|
|
299
|
+
name: string;
|
|
300
|
+
parentGroupId?: string | null;
|
|
301
|
+
slug?: string | null;
|
|
302
|
+
};
|
|
303
|
+
export type AccessSchemaKnowledgePolicies = {
|
|
304
|
+
read: Array<AccessKnowledgeDataPolicy>;
|
|
305
|
+
schemaId: string;
|
|
306
|
+
write: Array<AccessKnowledgeDataPolicy>;
|
|
307
|
+
};
|
|
308
|
+
export type AccessKnowledgeDataPolicy = {
|
|
309
|
+
axes: Array<{
|
|
310
|
+
axis: string;
|
|
311
|
+
byCondition: true;
|
|
312
|
+
} | {
|
|
313
|
+
axis: string;
|
|
314
|
+
map: {
|
|
315
|
+
field: string;
|
|
316
|
+
} | {
|
|
317
|
+
relation: {
|
|
318
|
+
field: string;
|
|
319
|
+
key: string;
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
self: true;
|
|
323
|
+
};
|
|
324
|
+
} | {
|
|
325
|
+
axis: string;
|
|
326
|
+
unscoped: true;
|
|
327
|
+
}>;
|
|
328
|
+
capability: AccessProfileCapability;
|
|
329
|
+
fqn: string | null;
|
|
330
|
+
id: string;
|
|
331
|
+
includesHostOwned: boolean;
|
|
332
|
+
kind: "package" | "core_tenant" | "core_admin" | "core_default";
|
|
333
|
+
operation: "read" | "write";
|
|
334
|
+
otherAxesUnscoped: boolean;
|
|
335
|
+
purpose: "access" | "administration";
|
|
336
|
+
readableFields: Array<string> | {
|
|
337
|
+
except: Array<string>;
|
|
338
|
+
} | null;
|
|
339
|
+
schemaId: string | null;
|
|
340
|
+
where: unknown | null;
|
|
341
|
+
writableFields: Array<string> | {
|
|
342
|
+
except: Array<string>;
|
|
343
|
+
} | null;
|
|
344
|
+
};
|
|
345
|
+
export type AccessGrantUpdateRequest = {
|
|
346
|
+
axes?: {
|
|
347
|
+
[key: string]: {
|
|
348
|
+
knowledgeEntity: {
|
|
349
|
+
field: string;
|
|
350
|
+
value: string;
|
|
351
|
+
};
|
|
352
|
+
} | string;
|
|
353
|
+
};
|
|
354
|
+
grantee: {
|
|
355
|
+
user: {
|
|
356
|
+
email: string;
|
|
357
|
+
};
|
|
358
|
+
} | {
|
|
359
|
+
coverage: "direct" | "inherited";
|
|
360
|
+
group: {
|
|
361
|
+
fqn: string;
|
|
362
|
+
};
|
|
363
|
+
} | {
|
|
364
|
+
servicePrincipal: string;
|
|
365
|
+
} | {
|
|
366
|
+
applicationServer: string;
|
|
367
|
+
} | {
|
|
368
|
+
applicationVisitors: string;
|
|
369
|
+
};
|
|
370
|
+
profile: string | {
|
|
371
|
+
id: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
export type AccessGrantList = Array<AccessGrant>;
|
|
375
|
+
export type AccessGrantSyncRequest = {
|
|
376
|
+
grants: Array<{
|
|
377
|
+
axes?: {
|
|
378
|
+
[key: string]: {
|
|
379
|
+
knowledgeEntity: {
|
|
380
|
+
field: string;
|
|
381
|
+
value: string;
|
|
382
|
+
};
|
|
383
|
+
} | string;
|
|
384
|
+
};
|
|
385
|
+
grantee: {
|
|
386
|
+
user: {
|
|
387
|
+
email: string;
|
|
388
|
+
};
|
|
389
|
+
} | {
|
|
390
|
+
coverage: "direct" | "inherited";
|
|
391
|
+
group: {
|
|
392
|
+
fqn: string;
|
|
393
|
+
};
|
|
394
|
+
} | {
|
|
395
|
+
servicePrincipal: string;
|
|
396
|
+
} | {
|
|
397
|
+
applicationServer: string;
|
|
398
|
+
} | {
|
|
399
|
+
applicationVisitors: string;
|
|
400
|
+
};
|
|
401
|
+
profile: string | {
|
|
402
|
+
id: string;
|
|
403
|
+
};
|
|
404
|
+
fqn: string;
|
|
405
|
+
}>;
|
|
406
|
+
namespace: string;
|
|
407
|
+
};
|
|
408
|
+
export type AccessGrantCreateRequest = {
|
|
409
|
+
axes?: {
|
|
410
|
+
[key: string]: {
|
|
411
|
+
knowledgeEntity: {
|
|
412
|
+
field: string;
|
|
413
|
+
value: string;
|
|
414
|
+
};
|
|
415
|
+
} | string;
|
|
416
|
+
};
|
|
417
|
+
grantee: {
|
|
418
|
+
user: {
|
|
419
|
+
email: string;
|
|
420
|
+
};
|
|
421
|
+
} | {
|
|
422
|
+
coverage: "direct" | "inherited";
|
|
423
|
+
group: {
|
|
424
|
+
fqn: string;
|
|
425
|
+
};
|
|
426
|
+
} | {
|
|
427
|
+
servicePrincipal: string;
|
|
428
|
+
} | {
|
|
429
|
+
applicationServer: string;
|
|
430
|
+
} | {
|
|
431
|
+
applicationVisitors: string;
|
|
432
|
+
};
|
|
433
|
+
profile: string | {
|
|
434
|
+
id: string;
|
|
435
|
+
};
|
|
436
|
+
fqn: string;
|
|
437
|
+
};
|
|
438
|
+
export type AccessInvitationPage = {
|
|
439
|
+
items: Array<AccessInvitation>;
|
|
440
|
+
next: number | null;
|
|
441
|
+
};
|
|
442
|
+
export type AccessInvitation = {
|
|
443
|
+
createdAt: string | null;
|
|
444
|
+
email: string;
|
|
445
|
+
id: string;
|
|
446
|
+
invitedByUserId: string | null;
|
|
447
|
+
status: "pending" | "accepted" | "revoked";
|
|
448
|
+
};
|
|
449
|
+
export type AccessMember = {
|
|
450
|
+
email: string | null;
|
|
451
|
+
kind: "member" | "guest";
|
|
452
|
+
name: string | null;
|
|
453
|
+
originApplicationId: string | null;
|
|
454
|
+
suspended: boolean;
|
|
455
|
+
userId: string;
|
|
456
|
+
};
|
|
457
|
+
export type AccessMemberPage = {
|
|
458
|
+
items: Array<AccessMember>;
|
|
459
|
+
next: string | null;
|
|
460
|
+
};
|
|
13
461
|
export type ExternalApplicationsGetContextErrors = {
|
|
14
462
|
/**
|
|
15
463
|
* Error
|
|
@@ -104,121 +552,405 @@ export type ExternalApplicationsGetContextErrors = {
|
|
|
104
552
|
};
|
|
105
553
|
};
|
|
106
554
|
};
|
|
107
|
-
export type ExternalApplicationsGetContextError = ExternalApplicationsGetContextErrors[keyof ExternalApplicationsGetContextErrors];
|
|
108
|
-
export type
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
555
|
+
export type ExternalApplicationsGetContextError = ExternalApplicationsGetContextErrors[keyof ExternalApplicationsGetContextErrors];
|
|
556
|
+
export type ApplicationAccessMembersListData = {
|
|
557
|
+
body?: never;
|
|
558
|
+
headers: {
|
|
559
|
+
authorization?: string;
|
|
560
|
+
"x-organization-id": string;
|
|
561
|
+
};
|
|
562
|
+
path?: never;
|
|
563
|
+
query?: {
|
|
564
|
+
after?: string;
|
|
565
|
+
email?: string;
|
|
566
|
+
limit?: string;
|
|
567
|
+
};
|
|
568
|
+
url: "/application/v1/access/members";
|
|
569
|
+
};
|
|
570
|
+
export type ApplicationAccessMembersCreateData = {
|
|
571
|
+
body: AccessMemberCreateRequest;
|
|
572
|
+
headers: {
|
|
573
|
+
authorization?: string;
|
|
574
|
+
"x-organization-id": string;
|
|
575
|
+
};
|
|
576
|
+
path?: never;
|
|
577
|
+
query?: never;
|
|
578
|
+
url: "/application/v1/access/members";
|
|
579
|
+
};
|
|
580
|
+
export type ApplicationAccessMembersDeleteData = {
|
|
581
|
+
body?: never;
|
|
582
|
+
headers: {
|
|
583
|
+
authorization?: string;
|
|
584
|
+
"x-organization-id": string;
|
|
585
|
+
};
|
|
586
|
+
path: {
|
|
587
|
+
userId: string;
|
|
588
|
+
};
|
|
589
|
+
query?: never;
|
|
590
|
+
url: "/application/v1/access/members/{userId}";
|
|
591
|
+
};
|
|
592
|
+
export type ApplicationAccessMembersGetData = {
|
|
593
|
+
body?: never;
|
|
594
|
+
headers: {
|
|
595
|
+
authorization?: string;
|
|
596
|
+
"x-organization-id": string;
|
|
597
|
+
};
|
|
598
|
+
path: {
|
|
599
|
+
userId: string;
|
|
600
|
+
};
|
|
601
|
+
query?: never;
|
|
602
|
+
url: "/application/v1/access/members/{userId}";
|
|
603
|
+
};
|
|
604
|
+
export type ApplicationAccessMembersSuspendData = {
|
|
605
|
+
body?: never;
|
|
606
|
+
headers: {
|
|
607
|
+
authorization?: string;
|
|
608
|
+
"x-organization-id": string;
|
|
609
|
+
};
|
|
610
|
+
path: {
|
|
611
|
+
userId: string;
|
|
612
|
+
};
|
|
613
|
+
query?: never;
|
|
614
|
+
url: "/application/v1/access/members/{userId}/suspend";
|
|
615
|
+
};
|
|
616
|
+
export type ApplicationAccessMembersResumeData = {
|
|
617
|
+
body?: never;
|
|
618
|
+
headers: {
|
|
619
|
+
authorization?: string;
|
|
620
|
+
"x-organization-id": string;
|
|
621
|
+
};
|
|
622
|
+
path: {
|
|
623
|
+
userId: string;
|
|
624
|
+
};
|
|
625
|
+
query?: never;
|
|
626
|
+
url: "/application/v1/access/members/{userId}/resume";
|
|
627
|
+
};
|
|
628
|
+
export type ApplicationAccessMembersListInvitationsData = {
|
|
629
|
+
body?: never;
|
|
630
|
+
headers: {
|
|
631
|
+
authorization?: string;
|
|
632
|
+
"x-organization-id": string;
|
|
633
|
+
};
|
|
634
|
+
path?: never;
|
|
635
|
+
query?: {
|
|
636
|
+
limit?: string;
|
|
637
|
+
page?: string;
|
|
638
|
+
status?: "pending" | "accepted" | "revoked";
|
|
639
|
+
};
|
|
640
|
+
url: "/application/v1/access/invitations";
|
|
641
|
+
};
|
|
642
|
+
export type ApplicationAccessMembersRevokeInvitationData = {
|
|
643
|
+
body?: never;
|
|
644
|
+
headers: {
|
|
645
|
+
authorization?: string;
|
|
646
|
+
"x-organization-id": string;
|
|
647
|
+
};
|
|
648
|
+
path: {
|
|
649
|
+
invitationId: string;
|
|
650
|
+
};
|
|
651
|
+
query?: never;
|
|
652
|
+
url: "/application/v1/access/invitations/{invitationId}";
|
|
653
|
+
};
|
|
654
|
+
export type ApplicationAccessGrantsListData = {
|
|
655
|
+
body?: never;
|
|
656
|
+
headers: {
|
|
657
|
+
authorization?: string;
|
|
658
|
+
"x-organization-id": string;
|
|
659
|
+
};
|
|
660
|
+
path?: never;
|
|
661
|
+
query?: {
|
|
662
|
+
groupId?: string;
|
|
663
|
+
namespace?: string;
|
|
664
|
+
userId?: string;
|
|
665
|
+
};
|
|
666
|
+
url: "/application/v1/access/grants";
|
|
667
|
+
};
|
|
668
|
+
export type ApplicationAccessGrantsCreateData = {
|
|
669
|
+
body: AccessGrantCreateRequest;
|
|
670
|
+
headers: {
|
|
671
|
+
authorization?: string;
|
|
672
|
+
"x-organization-id": string;
|
|
673
|
+
};
|
|
674
|
+
path?: never;
|
|
675
|
+
query?: never;
|
|
676
|
+
url: "/application/v1/access/grants";
|
|
677
|
+
};
|
|
678
|
+
export type ApplicationAccessGrantsSyncData = {
|
|
679
|
+
body: AccessGrantSyncRequest;
|
|
680
|
+
headers: {
|
|
681
|
+
authorization?: string;
|
|
682
|
+
"x-organization-id": string;
|
|
683
|
+
};
|
|
684
|
+
path?: never;
|
|
685
|
+
query?: never;
|
|
686
|
+
url: "/application/v1/access/grants/sync";
|
|
687
|
+
};
|
|
688
|
+
export type ApplicationAccessGrantsDeleteData = {
|
|
689
|
+
body?: never;
|
|
690
|
+
headers: {
|
|
691
|
+
authorization?: string;
|
|
692
|
+
"x-organization-id": string;
|
|
693
|
+
};
|
|
694
|
+
path: {
|
|
695
|
+
grantId: string;
|
|
696
|
+
};
|
|
697
|
+
query?: never;
|
|
698
|
+
url: "/application/v1/access/grants/{grantId}";
|
|
699
|
+
};
|
|
700
|
+
export type ApplicationAccessGrantsGetData = {
|
|
701
|
+
body?: never;
|
|
702
|
+
headers: {
|
|
703
|
+
authorization?: string;
|
|
704
|
+
"x-organization-id": string;
|
|
705
|
+
};
|
|
706
|
+
path: {
|
|
707
|
+
grantId: string;
|
|
708
|
+
};
|
|
709
|
+
query?: never;
|
|
710
|
+
url: "/application/v1/access/grants/{grantId}";
|
|
711
|
+
};
|
|
712
|
+
export type ApplicationAccessGrantsUpdateData = {
|
|
713
|
+
body: AccessGrantUpdateRequest;
|
|
714
|
+
headers: {
|
|
715
|
+
authorization?: string;
|
|
716
|
+
"x-organization-id": string;
|
|
717
|
+
};
|
|
718
|
+
path: {
|
|
719
|
+
grantId: string;
|
|
720
|
+
};
|
|
721
|
+
query?: never;
|
|
722
|
+
url: "/application/v1/access/grants/{grantId}";
|
|
723
|
+
};
|
|
724
|
+
export type ApplicationAccessGrantsDeleteByFqnData = {
|
|
725
|
+
body?: never;
|
|
726
|
+
headers: {
|
|
727
|
+
authorization?: string;
|
|
728
|
+
"x-organization-id": string;
|
|
729
|
+
};
|
|
730
|
+
path: {
|
|
731
|
+
fqn: string;
|
|
732
|
+
};
|
|
733
|
+
query?: never;
|
|
734
|
+
url: "/application/v1/access/grants/fqn/{fqn}";
|
|
735
|
+
};
|
|
736
|
+
export type ApplicationAccessGrantsGetByFqnData = {
|
|
737
|
+
body?: never;
|
|
738
|
+
headers: {
|
|
739
|
+
authorization?: string;
|
|
740
|
+
"x-organization-id": string;
|
|
741
|
+
};
|
|
742
|
+
path: {
|
|
743
|
+
fqn: string;
|
|
744
|
+
};
|
|
745
|
+
query?: never;
|
|
746
|
+
url: "/application/v1/access/grants/fqn/{fqn}";
|
|
747
|
+
};
|
|
748
|
+
export type ApplicationAccessGrantsUpdateByFqnData = {
|
|
749
|
+
body: AccessGrantUpdateRequest;
|
|
750
|
+
headers: {
|
|
751
|
+
authorization?: string;
|
|
752
|
+
"x-organization-id": string;
|
|
753
|
+
};
|
|
754
|
+
path: {
|
|
755
|
+
fqn: string;
|
|
756
|
+
};
|
|
757
|
+
query?: never;
|
|
758
|
+
url: "/application/v1/access/grants/fqn/{fqn}";
|
|
759
|
+
};
|
|
760
|
+
export type ApplicationAccessDefinitionsListProfilesData = {
|
|
761
|
+
body?: never;
|
|
762
|
+
headers: {
|
|
763
|
+
authorization?: string;
|
|
764
|
+
"x-organization-id": string;
|
|
765
|
+
};
|
|
766
|
+
path?: never;
|
|
767
|
+
query?: never;
|
|
768
|
+
url: "/application/v1/access/profiles";
|
|
769
|
+
};
|
|
770
|
+
export type ApplicationAccessDefinitionsGetProfileData = {
|
|
771
|
+
body?: never;
|
|
772
|
+
headers: {
|
|
773
|
+
authorization?: string;
|
|
774
|
+
"x-organization-id": string;
|
|
775
|
+
};
|
|
776
|
+
path: {
|
|
777
|
+
profileId: string;
|
|
778
|
+
};
|
|
779
|
+
query?: never;
|
|
780
|
+
url: "/application/v1/access/profiles/{profileId}";
|
|
781
|
+
};
|
|
782
|
+
export type ApplicationAccessDefinitionsListCapabilitiesData = {
|
|
783
|
+
body?: never;
|
|
784
|
+
headers: {
|
|
785
|
+
authorization?: string;
|
|
786
|
+
"x-organization-id": string;
|
|
787
|
+
};
|
|
788
|
+
path?: never;
|
|
789
|
+
query?: never;
|
|
790
|
+
url: "/application/v1/access/catalog";
|
|
791
|
+
};
|
|
792
|
+
export type ApplicationAccessDefinitionsListAxesData = {
|
|
793
|
+
body?: never;
|
|
794
|
+
headers: {
|
|
795
|
+
authorization?: string;
|
|
796
|
+
"x-organization-id": string;
|
|
797
|
+
};
|
|
798
|
+
path?: never;
|
|
799
|
+
query?: never;
|
|
800
|
+
url: "/application/v1/access/axes";
|
|
801
|
+
};
|
|
802
|
+
export type ApplicationAccessDefinitionsListMaxPrivilegesData = {
|
|
803
|
+
body?: never;
|
|
804
|
+
headers: {
|
|
805
|
+
authorization?: string;
|
|
806
|
+
"x-organization-id": string;
|
|
807
|
+
};
|
|
808
|
+
path?: never;
|
|
809
|
+
query?: never;
|
|
810
|
+
url: "/application/v1/access/max-privileges";
|
|
811
|
+
};
|
|
812
|
+
export type ApplicationAccessDefinitionsGetMaxPrivilegesData = {
|
|
813
|
+
body?: never;
|
|
814
|
+
headers: {
|
|
815
|
+
authorization?: string;
|
|
816
|
+
"x-organization-id": string;
|
|
817
|
+
};
|
|
818
|
+
path: {
|
|
819
|
+
profileId: string;
|
|
820
|
+
};
|
|
821
|
+
query?: never;
|
|
822
|
+
url: "/application/v1/access/max-privileges/{profileId}";
|
|
823
|
+
};
|
|
824
|
+
export type ApplicationAccessDefinitionsListKnowledgePoliciesData = {
|
|
825
|
+
body?: never;
|
|
826
|
+
headers: {
|
|
827
|
+
authorization?: string;
|
|
828
|
+
"x-organization-id": string;
|
|
829
|
+
};
|
|
830
|
+
path?: never;
|
|
831
|
+
query?: never;
|
|
832
|
+
url: "/application/v1/access/knowledge-policies";
|
|
833
|
+
};
|
|
834
|
+
export type ApplicationAccessDefinitionsGetSchemaKnowledgePoliciesData = {
|
|
835
|
+
body?: never;
|
|
836
|
+
headers: {
|
|
837
|
+
authorization?: string;
|
|
838
|
+
"x-organization-id": string;
|
|
839
|
+
};
|
|
840
|
+
path: {
|
|
841
|
+
schemaFqn: string;
|
|
842
|
+
};
|
|
843
|
+
query?: never;
|
|
844
|
+
url: "/application/v1/access/knowledge-policies/schemas/{schemaFqn}";
|
|
845
|
+
};
|
|
846
|
+
export type ApplicationAccessGroupsListData = {
|
|
847
|
+
body?: never;
|
|
848
|
+
headers: {
|
|
849
|
+
authorization?: string;
|
|
850
|
+
"x-organization-id": string;
|
|
851
|
+
};
|
|
852
|
+
path?: never;
|
|
853
|
+
query?: {
|
|
854
|
+
limit?: string;
|
|
855
|
+
page?: string;
|
|
856
|
+
};
|
|
857
|
+
url: "/application/v1/access/groups";
|
|
858
|
+
};
|
|
859
|
+
export type ApplicationAccessGroupsCreateData = {
|
|
860
|
+
body: AccessGroupCreateRequest;
|
|
861
|
+
headers: {
|
|
862
|
+
authorization?: string;
|
|
863
|
+
"x-organization-id": string;
|
|
121
864
|
};
|
|
865
|
+
path?: never;
|
|
866
|
+
query?: never;
|
|
867
|
+
url: "/application/v1/access/groups";
|
|
122
868
|
};
|
|
123
|
-
export type
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
roles: Array<string>;
|
|
869
|
+
export type ApplicationAccessGroupsDeleteData = {
|
|
870
|
+
body?: never;
|
|
871
|
+
headers: {
|
|
872
|
+
authorization?: string;
|
|
873
|
+
"x-organization-id": string;
|
|
129
874
|
};
|
|
875
|
+
path: {
|
|
876
|
+
groupId: string;
|
|
877
|
+
};
|
|
878
|
+
query?: never;
|
|
879
|
+
url: "/application/v1/access/groups/{groupId}";
|
|
880
|
+
};
|
|
881
|
+
export type ApplicationAccessGroupsGetData = {
|
|
882
|
+
body?: never;
|
|
130
883
|
headers: {
|
|
131
884
|
authorization?: string;
|
|
132
885
|
"x-organization-id": string;
|
|
133
|
-
"x-correlation-id"?: string;
|
|
134
|
-
"x-external-audit-issuer"?: string;
|
|
135
|
-
"x-external-audit-subject"?: string;
|
|
136
|
-
"x-external-caller-kind"?: "anonymous_visitor";
|
|
137
|
-
"x-external-ci-user-id"?: string;
|
|
138
|
-
"x-external-server-role"?: string;
|
|
139
886
|
};
|
|
140
|
-
path
|
|
887
|
+
path: {
|
|
888
|
+
groupId: string;
|
|
889
|
+
};
|
|
141
890
|
query?: never;
|
|
142
|
-
url: "/application/v1/
|
|
891
|
+
url: "/application/v1/access/groups/{groupId}";
|
|
143
892
|
};
|
|
144
|
-
export type
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
correlationId: string;
|
|
150
|
-
result: {
|
|
151
|
-
email: string | null;
|
|
152
|
-
name: string | null;
|
|
153
|
-
userId: string;
|
|
154
|
-
created: boolean;
|
|
155
|
-
kind: "member" | "external_app_user";
|
|
156
|
-
};
|
|
893
|
+
export type ApplicationAccessGroupsUpdateData = {
|
|
894
|
+
body: AccessGroupUpdateRequest;
|
|
895
|
+
headers: {
|
|
896
|
+
authorization?: string;
|
|
897
|
+
"x-organization-id": string;
|
|
157
898
|
};
|
|
899
|
+
path: {
|
|
900
|
+
groupId: string;
|
|
901
|
+
};
|
|
902
|
+
query?: never;
|
|
903
|
+
url: "/application/v1/access/groups/{groupId}";
|
|
158
904
|
};
|
|
159
|
-
export type
|
|
160
|
-
export type ExternalApplicationsCheckAppUserEmailData = {
|
|
905
|
+
export type ApplicationAccessGroupsAddMemberData = {
|
|
161
906
|
body: {
|
|
162
|
-
|
|
907
|
+
userId: string;
|
|
163
908
|
};
|
|
164
909
|
headers: {
|
|
165
910
|
authorization?: string;
|
|
166
911
|
"x-organization-id": string;
|
|
167
|
-
"x-correlation-id"?: string;
|
|
168
|
-
"x-external-audit-issuer"?: string;
|
|
169
|
-
"x-external-audit-subject"?: string;
|
|
170
|
-
"x-external-caller-kind"?: "anonymous_visitor";
|
|
171
|
-
"x-external-ci-user-id"?: string;
|
|
172
|
-
"x-external-server-role"?: string;
|
|
173
912
|
};
|
|
174
|
-
path
|
|
913
|
+
path: {
|
|
914
|
+
groupId: string;
|
|
915
|
+
};
|
|
175
916
|
query?: never;
|
|
176
|
-
url: "/application/v1/
|
|
917
|
+
url: "/application/v1/access/groups/{groupId}/members";
|
|
177
918
|
};
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
reason: "user_unavailable" | "target_inactive";
|
|
188
|
-
usable: false;
|
|
189
|
-
};
|
|
919
|
+
export type ApplicationAccessGroupsRemoveMemberData = {
|
|
920
|
+
body?: never;
|
|
921
|
+
headers: {
|
|
922
|
+
authorization?: string;
|
|
923
|
+
"x-organization-id": string;
|
|
924
|
+
};
|
|
925
|
+
path: {
|
|
926
|
+
groupId: string;
|
|
927
|
+
userId: string;
|
|
190
928
|
};
|
|
929
|
+
query?: never;
|
|
930
|
+
url: "/application/v1/access/groups/{groupId}/members/{userId}";
|
|
191
931
|
};
|
|
192
|
-
export type
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
email: string | null;
|
|
201
|
-
name: string | null;
|
|
202
|
-
userId: string;
|
|
203
|
-
};
|
|
932
|
+
export type ApplicationAccessPrincipalsSnapshotData = {
|
|
933
|
+
body?: never;
|
|
934
|
+
headers: {
|
|
935
|
+
authorization?: string;
|
|
936
|
+
"x-organization-id": string;
|
|
937
|
+
};
|
|
938
|
+
path: {
|
|
939
|
+
userId: string;
|
|
204
940
|
};
|
|
941
|
+
query?: never;
|
|
942
|
+
url: "/application/v1/access/users/{userId}/snapshot";
|
|
205
943
|
};
|
|
206
|
-
export type
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
200: {
|
|
212
|
-
correlationId: string;
|
|
213
|
-
result: {
|
|
214
|
-
items: Array<{
|
|
215
|
-
id: string;
|
|
216
|
-
key: string;
|
|
217
|
-
}>;
|
|
218
|
-
};
|
|
944
|
+
export type ApplicationAccessPrincipalsExplainData = {
|
|
945
|
+
body: AccessExplainRequest;
|
|
946
|
+
headers: {
|
|
947
|
+
authorization?: string;
|
|
948
|
+
"x-organization-id": string;
|
|
219
949
|
};
|
|
950
|
+
path?: never;
|
|
951
|
+
query?: never;
|
|
952
|
+
url: "/application/v1/access/explain";
|
|
220
953
|
};
|
|
221
|
-
export type ExternalApplicationsListAppRolesResponse = ExternalApplicationsListAppRolesResponses[keyof ExternalApplicationsListAppRolesResponses];
|
|
222
954
|
export type JsonValue = boolean | null | number | readonly JsonValue[] | Readonly<{
|
|
223
955
|
readonly [key: string]: JsonValue;
|
|
224
956
|
}> | string;
|
|
@@ -296,40 +1028,6 @@ export type KnowledgeQuery = {
|
|
|
296
1028
|
op: "autocomplete";
|
|
297
1029
|
});
|
|
298
1030
|
export type ExternalApplicationOperationRequest = {
|
|
299
|
-
input: {
|
|
300
|
-
userId: string;
|
|
301
|
-
};
|
|
302
|
-
operationId: "users_get";
|
|
303
|
-
} | {
|
|
304
|
-
input: {
|
|
305
|
-
page?: number;
|
|
306
|
-
pageSize?: number;
|
|
307
|
-
};
|
|
308
|
-
operationId: "users_list";
|
|
309
|
-
} | {
|
|
310
|
-
input: {
|
|
311
|
-
userId: string;
|
|
312
|
-
};
|
|
313
|
-
operationId: "users_deactivate";
|
|
314
|
-
} | {
|
|
315
|
-
input: Record<string, never>;
|
|
316
|
-
operationId: "roles_list";
|
|
317
|
-
} | {
|
|
318
|
-
input: {
|
|
319
|
-
userId: string;
|
|
320
|
-
roles: string[];
|
|
321
|
-
};
|
|
322
|
-
operationId: "roles_assign";
|
|
323
|
-
} | {
|
|
324
|
-
input: {
|
|
325
|
-
userId: string;
|
|
326
|
-
roles: string[];
|
|
327
|
-
};
|
|
328
|
-
operationId: "roles_revoke";
|
|
329
|
-
} | {
|
|
330
|
-
input: ExternalApplicationsCreateOrGetAppUserData["body"];
|
|
331
|
-
operationId: "users_create_or_get";
|
|
332
|
-
} | {
|
|
333
1031
|
input: JsonObject | unknown[];
|
|
334
1032
|
operationId: "context_get";
|
|
335
1033
|
} | {
|
|
@@ -494,15 +1192,7 @@ export interface EnvelopeSuccess<Id extends string, Result> {
|
|
|
494
1192
|
operationId: Id;
|
|
495
1193
|
result: Result;
|
|
496
1194
|
}
|
|
497
|
-
export type ExternalApplicationOperationSuccess = EnvelopeSuccess<"
|
|
498
|
-
userId: string;
|
|
499
|
-
}> | EnvelopeSuccess<"roles_list", {
|
|
500
|
-
items: ApplicationRole[];
|
|
501
|
-
}> | EnvelopeSuccess<"roles_assign", {
|
|
502
|
-
userId: string;
|
|
503
|
-
}> | EnvelopeSuccess<"roles_revoke", {
|
|
504
|
-
userId: string;
|
|
505
|
-
}> | EnvelopeSuccess<"users_create_or_get", ApplicationUserResolution> | EnvelopeSuccess<"context_get", JsonObject> | EnvelopeSuccess<"knowledge_query", JsonObject> | EnvelopeSuccess<"knowledge_get_entity_schema_snapshot", JsonObject> | EnvelopeSuccess<"knowledge_search_entities", JsonObject> | EnvelopeSuccess<"knowledge_facets", JsonObject> | EnvelopeSuccess<"knowledge_get_schema_query_context", JsonObject> | EnvelopeSuccess<"knowledge_autocomplete", JsonObject> | EnvelopeSuccess<"knowledge_get_entity", JsonObject> | EnvelopeSuccess<"knowledge_create_entity", JsonObject> | EnvelopeSuccess<"knowledge_update_entity", JsonObject> | EnvelopeSuccess<"knowledge_upsert_entity", JsonObject> | EnvelopeSuccess<"knowledge_delete_entity", JsonObject> | EnvelopeSuccess<"agents_list", JsonObject> | EnvelopeSuccess<"agents_invoke", {
|
|
1195
|
+
export type ExternalApplicationOperationSuccess = EnvelopeSuccess<"context_get", JsonObject> | EnvelopeSuccess<"knowledge_query", JsonObject> | EnvelopeSuccess<"knowledge_get_entity_schema_snapshot", JsonObject> | EnvelopeSuccess<"knowledge_search_entities", JsonObject> | EnvelopeSuccess<"knowledge_facets", JsonObject> | EnvelopeSuccess<"knowledge_get_schema_query_context", JsonObject> | EnvelopeSuccess<"knowledge_autocomplete", JsonObject> | EnvelopeSuccess<"knowledge_get_entity", JsonObject> | EnvelopeSuccess<"knowledge_create_entity", JsonObject> | EnvelopeSuccess<"knowledge_update_entity", JsonObject> | EnvelopeSuccess<"knowledge_upsert_entity", JsonObject> | EnvelopeSuccess<"knowledge_delete_entity", JsonObject> | EnvelopeSuccess<"agents_list", JsonObject> | EnvelopeSuccess<"agents_invoke", {
|
|
506
1196
|
runId: string;
|
|
507
1197
|
}> | EnvelopeSuccess<"skills_list", JsonObject> | EnvelopeSuccess<"skills_invoke", {
|
|
508
1198
|
runId: string;
|
|
@@ -520,11 +1210,6 @@ export type ExternalApplicationOperationSuccess = EnvelopeSuccess<"users_get", A
|
|
|
520
1210
|
conversationId: string;
|
|
521
1211
|
runId: string;
|
|
522
1212
|
}> | EnvelopeSuccess<"conversations_history", ConversationHistory>;
|
|
523
|
-
/** User details returned by the application's user-management gateway. */
|
|
524
|
-
type ApplicationUser = ExternalApplicationsGetAppUserResponse["result"];
|
|
525
|
-
type ApplicationUserResolution = ExternalApplicationsCreateOrGetAppUserResponse["result"];
|
|
526
|
-
type ApplicationUserPage = ExternalApplicationsListAppUsersResponse["result"];
|
|
527
|
-
type ApplicationRole = ExternalApplicationsListAppRolesResponse["result"]["items"][number];
|
|
528
1213
|
declare const storageFileIdBrand: unique symbol;
|
|
529
1214
|
/** A durable private file of the application's Organization. */
|
|
530
1215
|
type StorageFileId = string & Readonly<{
|
|
@@ -540,19 +1225,11 @@ interface DurableFileUpload {
|
|
|
540
1225
|
fileName: string;
|
|
541
1226
|
sizeBytes: number;
|
|
542
1227
|
}
|
|
543
|
-
export
|
|
544
|
-
input: ExternalApplicationsCheckAppUserEmailData["body"];
|
|
545
|
-
operationId: "users_check_email";
|
|
546
|
-
} | {
|
|
1228
|
+
export interface ExternalApplicationServiceOperationRequest {
|
|
547
1229
|
input: DurableFileUpload;
|
|
548
1230
|
operationId: "files_upload";
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
* Whether `users_create_or_get` would accept an email, checked without
|
|
552
|
-
* creating anything; an unknown email is usable.
|
|
553
|
-
*/
|
|
554
|
-
export type ApplicationUserEmailCheck = ExternalApplicationsCheckAppUserEmailResponse["result"];
|
|
555
|
-
export type ExternalApplicationServiceOperationSuccess = EnvelopeSuccess<"users_check_email", ApplicationUserEmailCheck> | EnvelopeSuccess<"files_upload", {
|
|
1231
|
+
}
|
|
1232
|
+
export type ExternalApplicationServiceOperationSuccess = EnvelopeSuccess<"files_upload", {
|
|
556
1233
|
storageFileId: StorageFileId;
|
|
557
1234
|
}>;
|
|
558
1235
|
/** Every operation a confidential server client may invoke. */
|
|
@@ -689,11 +1366,400 @@ export type CiTag = string & Brand.Brand<"CiTag">;
|
|
|
689
1366
|
* `nextInvalidate` of `./next`.
|
|
690
1367
|
*/
|
|
691
1368
|
export type InvalidateTags = (tags: readonly CiTag[]) => Promise<void> | void;
|
|
1369
|
+
export type AuthToken = string | undefined;
|
|
1370
|
+
export interface Auth {
|
|
1371
|
+
/**
|
|
1372
|
+
* Which part of the request do we use to send the auth?
|
|
1373
|
+
*
|
|
1374
|
+
* @default 'header'
|
|
1375
|
+
*/
|
|
1376
|
+
in?: "header" | "query" | "cookie";
|
|
1377
|
+
/**
|
|
1378
|
+
* Header or query parameter name.
|
|
1379
|
+
*
|
|
1380
|
+
* @default 'Authorization'
|
|
1381
|
+
*/
|
|
1382
|
+
name?: string;
|
|
1383
|
+
scheme?: "basic" | "bearer";
|
|
1384
|
+
type: "apiKey" | "http";
|
|
1385
|
+
}
|
|
1386
|
+
export interface SerializerOptions<T> {
|
|
1387
|
+
/**
|
|
1388
|
+
* @default true
|
|
1389
|
+
*/
|
|
1390
|
+
explode: boolean;
|
|
1391
|
+
style: T;
|
|
1392
|
+
}
|
|
1393
|
+
export type ArrayStyle = "form" | "spaceDelimited" | "pipeDelimited";
|
|
1394
|
+
export type ObjectStyle = "form" | "deepObject";
|
|
1395
|
+
export type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
1396
|
+
export type BodySerializer = (body: unknown) => unknown;
|
|
1397
|
+
export type QuerySerializerOptionsObject = {
|
|
1398
|
+
allowReserved?: boolean;
|
|
1399
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
1400
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
1401
|
+
};
|
|
1402
|
+
export type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
1403
|
+
/**
|
|
1404
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
1405
|
+
* override the global array/object settings for specific parameter names.
|
|
1406
|
+
*/
|
|
1407
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
1408
|
+
};
|
|
1409
|
+
export type HttpMethod = "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
1410
|
+
export type Client<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
1411
|
+
/**
|
|
1412
|
+
* Returns the final request URL.
|
|
1413
|
+
*/
|
|
1414
|
+
buildUrl: BuildUrlFn;
|
|
1415
|
+
getConfig: () => Config;
|
|
1416
|
+
request: RequestFn;
|
|
1417
|
+
setConfig: (config: Config) => Config;
|
|
1418
|
+
} & {
|
|
1419
|
+
[K in HttpMethod]: MethodFn;
|
|
1420
|
+
} & ([
|
|
1421
|
+
SseFn
|
|
1422
|
+
] extends [
|
|
1423
|
+
never
|
|
1424
|
+
] ? {
|
|
1425
|
+
sse?: never;
|
|
1426
|
+
} : {
|
|
1427
|
+
sse: {
|
|
1428
|
+
[K in HttpMethod]: SseFn;
|
|
1429
|
+
};
|
|
1430
|
+
});
|
|
1431
|
+
export interface Config {
|
|
1432
|
+
/**
|
|
1433
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
1434
|
+
* added to the request payload as defined by its `security` array.
|
|
1435
|
+
*/
|
|
1436
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
1437
|
+
/**
|
|
1438
|
+
* A function for serializing request body parameter. By default,
|
|
1439
|
+
* {@link JSON.stringify()} will be used.
|
|
1440
|
+
*/
|
|
1441
|
+
bodySerializer?: BodySerializer | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
1444
|
+
* `Headers` object with.
|
|
1445
|
+
*
|
|
1446
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
1447
|
+
*/
|
|
1448
|
+
headers?: RequestInit["headers"] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
1449
|
+
/**
|
|
1450
|
+
* The request method.
|
|
1451
|
+
*
|
|
1452
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
1453
|
+
*/
|
|
1454
|
+
method?: Uppercase<HttpMethod>;
|
|
1455
|
+
/**
|
|
1456
|
+
* A function for serializing request query parameters. By default, arrays
|
|
1457
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
1458
|
+
* style, and reserved characters are percent-encoded.
|
|
1459
|
+
*
|
|
1460
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
1461
|
+
* API function is used.
|
|
1462
|
+
*
|
|
1463
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
1464
|
+
*/
|
|
1465
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
1466
|
+
/**
|
|
1467
|
+
* A function validating request data. This is useful if you want to ensure
|
|
1468
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
1469
|
+
* the server.
|
|
1470
|
+
*/
|
|
1471
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
1472
|
+
/**
|
|
1473
|
+
* A function transforming response data before it's returned. This is useful
|
|
1474
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
1475
|
+
*/
|
|
1476
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
1477
|
+
/**
|
|
1478
|
+
* A function validating response data. This is useful if you want to ensure
|
|
1479
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
1480
|
+
* the transformers and returned to the user.
|
|
1481
|
+
*/
|
|
1482
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
1483
|
+
}
|
|
1484
|
+
export type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, "body" | "method"> & Pick<Config, "method" | "responseTransformer" | "responseValidator"> & {
|
|
1485
|
+
/**
|
|
1486
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
1487
|
+
* fetch instance.
|
|
1488
|
+
*
|
|
1489
|
+
* @default globalThis.fetch
|
|
1490
|
+
*/
|
|
1491
|
+
body?: RequestInit["body"] | undefined;
|
|
1492
|
+
fetch?: typeof fetch;
|
|
1493
|
+
/**
|
|
1494
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
1495
|
+
*/
|
|
1496
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
1499
|
+
*
|
|
1500
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1501
|
+
*
|
|
1502
|
+
* @param error The error that occurred.
|
|
1503
|
+
*/
|
|
1504
|
+
onSseError?: (error: unknown) => void;
|
|
1505
|
+
/**
|
|
1506
|
+
* Callback invoked when an event is streamed from the server.
|
|
1507
|
+
*
|
|
1508
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1509
|
+
*
|
|
1510
|
+
* @param event Event streamed from the server.
|
|
1511
|
+
* @returns Nothing (void).
|
|
1512
|
+
*/
|
|
1513
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
1514
|
+
serializedBody?: RequestInit["body"] | undefined;
|
|
1515
|
+
/**
|
|
1516
|
+
* Default retry delay in milliseconds.
|
|
1517
|
+
*
|
|
1518
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1519
|
+
*
|
|
1520
|
+
* @default 3000
|
|
1521
|
+
*/
|
|
1522
|
+
sseDefaultRetryDelay?: number;
|
|
1523
|
+
/**
|
|
1524
|
+
* Maximum number of retry attempts before giving up.
|
|
1525
|
+
*/
|
|
1526
|
+
sseMaxRetryAttempts?: number;
|
|
1527
|
+
/**
|
|
1528
|
+
* Maximum retry delay in milliseconds.
|
|
1529
|
+
*
|
|
1530
|
+
* Applies only when exponential backoff is used.
|
|
1531
|
+
*
|
|
1532
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1533
|
+
*
|
|
1534
|
+
* @default 30000
|
|
1535
|
+
*/
|
|
1536
|
+
sseMaxRetryDelay?: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* Optional sleep function for retry backoff.
|
|
1539
|
+
*
|
|
1540
|
+
* Defaults to using `setTimeout`.
|
|
1541
|
+
*/
|
|
1542
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
1543
|
+
url: string;
|
|
1544
|
+
};
|
|
1545
|
+
export interface StreamEvent<TData = unknown> {
|
|
1546
|
+
data: TData;
|
|
1547
|
+
event?: string | undefined;
|
|
1548
|
+
id?: string | undefined;
|
|
1549
|
+
retry?: number;
|
|
1550
|
+
}
|
|
1551
|
+
export type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
1552
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
1553
|
+
};
|
|
1554
|
+
export type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
1555
|
+
export type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
1556
|
+
export type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
1557
|
+
declare class Interceptors<Interceptor> {
|
|
1558
|
+
fns: Array<Interceptor | null>;
|
|
1559
|
+
clear(): void;
|
|
1560
|
+
eject(id: number | Interceptor): void;
|
|
1561
|
+
exists(id: number | Interceptor): boolean;
|
|
1562
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
1563
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
1564
|
+
use(fn: Interceptor): number;
|
|
1565
|
+
}
|
|
1566
|
+
export interface Middleware<Req, Res, Err, Options> {
|
|
1567
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
1568
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
1569
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
1570
|
+
}
|
|
1571
|
+
export type ResponseStyle = "data" | "fields";
|
|
1572
|
+
interface Config$1<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, "body" | "headers" | "method">, Config {
|
|
1573
|
+
/**
|
|
1574
|
+
* Base URL for all requests made by this client.
|
|
1575
|
+
*/
|
|
1576
|
+
baseUrl?: T["baseUrl"];
|
|
1577
|
+
/**
|
|
1578
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
1579
|
+
* fetch instance.
|
|
1580
|
+
*
|
|
1581
|
+
* @default globalThis.fetch
|
|
1582
|
+
*/
|
|
1583
|
+
fetch?: typeof fetch;
|
|
1584
|
+
/**
|
|
1585
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
1586
|
+
* options won't have any effect.
|
|
1587
|
+
*
|
|
1588
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
1589
|
+
*/
|
|
1590
|
+
next?: never;
|
|
1591
|
+
/**
|
|
1592
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
1593
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
1594
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
1595
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
1596
|
+
*
|
|
1597
|
+
* @default 'auto'
|
|
1598
|
+
*/
|
|
1599
|
+
parseAs?: "arrayBuffer" | "auto" | "blob" | "formData" | "json" | "stream" | "text";
|
|
1600
|
+
/**
|
|
1601
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
1602
|
+
*
|
|
1603
|
+
* @default 'fields'
|
|
1604
|
+
*/
|
|
1605
|
+
responseStyle?: ResponseStyle;
|
|
1606
|
+
/**
|
|
1607
|
+
* Throw an error instead of returning it in the response?
|
|
1608
|
+
*
|
|
1609
|
+
* @default false
|
|
1610
|
+
*/
|
|
1611
|
+
throwOnError?: T["throwOnError"];
|
|
1612
|
+
}
|
|
1613
|
+
export interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$1<{
|
|
1614
|
+
responseStyle: TResponseStyle;
|
|
1615
|
+
throwOnError: ThrowOnError;
|
|
1616
|
+
}>, Pick<ServerSentEventsOptions<TData>, "onRequest" | "onSseError" | "onSseEvent" | "sseDefaultRetryDelay" | "sseMaxRetryAttempts" | "sseMaxRetryDelay"> {
|
|
1617
|
+
/**
|
|
1618
|
+
* Any body that you want to add to your request.
|
|
1619
|
+
*
|
|
1620
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
1621
|
+
*/
|
|
1622
|
+
body?: unknown;
|
|
1623
|
+
path?: Record<string, unknown>;
|
|
1624
|
+
query?: Record<string, unknown>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Security mechanism(s) to use for the request.
|
|
1627
|
+
*/
|
|
1628
|
+
security?: ReadonlyArray<Auth>;
|
|
1629
|
+
url: Url;
|
|
1630
|
+
}
|
|
1631
|
+
export interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = "fields", ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
1632
|
+
headers: Headers;
|
|
1633
|
+
serializedBody?: string | undefined;
|
|
1634
|
+
}
|
|
1635
|
+
export type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = "fields"> = ThrowOnError extends true ? Promise<TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
1636
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1637
|
+
request: Request;
|
|
1638
|
+
response: Response;
|
|
1639
|
+
}> : Promise<TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
1640
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1641
|
+
error: undefined;
|
|
1642
|
+
} | {
|
|
1643
|
+
data: undefined;
|
|
1644
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
1645
|
+
}) & {
|
|
1646
|
+
request: Request;
|
|
1647
|
+
response: Response;
|
|
1648
|
+
}>;
|
|
1649
|
+
export interface ClientOptions {
|
|
1650
|
+
baseUrl?: string;
|
|
1651
|
+
responseStyle?: ResponseStyle;
|
|
1652
|
+
throwOnError?: boolean;
|
|
1653
|
+
}
|
|
1654
|
+
export type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1655
|
+
export type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, "method">) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
1656
|
+
export type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = "fields">(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, "method"> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, "method">) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1657
|
+
export type BuildUrlFn = <TData extends {
|
|
1658
|
+
body?: unknown;
|
|
1659
|
+
path?: Record<string, unknown>;
|
|
1660
|
+
query?: Record<string, unknown>;
|
|
1661
|
+
url: string;
|
|
1662
|
+
}>(options: TData & Options<TData>) => string;
|
|
1663
|
+
type Client$1 = Client<RequestFn, Config$1, MethodFn, BuildUrlFn, SseFn> & {
|
|
1664
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
1665
|
+
};
|
|
1666
|
+
export interface TEndpointData {
|
|
1667
|
+
body?: unknown;
|
|
1668
|
+
headers?: unknown;
|
|
1669
|
+
path?: unknown;
|
|
1670
|
+
query?: unknown;
|
|
1671
|
+
url: string;
|
|
1672
|
+
}
|
|
1673
|
+
export type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
1674
|
+
export type Options<TData extends TEndpointData = TEndpointData, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = "fields"> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, "body" | "path" | "query" | "url"> & ([
|
|
1675
|
+
TData
|
|
1676
|
+
] extends [
|
|
1677
|
+
never
|
|
1678
|
+
] ? unknown : Omit<TData, "url">);
|
|
1679
|
+
type Options$1<TData extends TEndpointData = TEndpointData, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options<TData, ThrowOnError, TResponse> & {
|
|
1680
|
+
/**
|
|
1681
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1682
|
+
* individual options. This might be also useful if you want to implement a
|
|
1683
|
+
* custom client.
|
|
1684
|
+
*/
|
|
1685
|
+
client?: Client$1;
|
|
1686
|
+
/**
|
|
1687
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1688
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1689
|
+
*/
|
|
1690
|
+
meta?: Record<string, unknown>;
|
|
1691
|
+
};
|
|
1692
|
+
export type EndpointOptions<OptionsType> = Pick<OptionsType, Extract<keyof OptionsType, "body" | "headers" | "path" | "query">>;
|
|
1693
|
+
declare const createApplicationAccessApi: (client: Client$1) => {
|
|
1694
|
+
axes: {
|
|
1695
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsListAxesData, false, unknown>>) => Promise<AccessGrantAxis[]>;
|
|
1696
|
+
};
|
|
1697
|
+
catalog: {
|
|
1698
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsListCapabilitiesData, false, unknown>>) => Promise<AccessCapabilityNode[]>;
|
|
1699
|
+
};
|
|
1700
|
+
explain: (options: EndpointOptions<Options$1<ApplicationAccessPrincipalsExplainData, false, unknown>>) => Promise<AccessExplanation>;
|
|
1701
|
+
grants: {
|
|
1702
|
+
create: (options: EndpointOptions<Options$1<ApplicationAccessGrantsCreateData, false, unknown>>) => Promise<AccessGrant>;
|
|
1703
|
+
delete: (options: EndpointOptions<Options$1<ApplicationAccessGrantsDeleteData, false, unknown>>) => Promise<void>;
|
|
1704
|
+
deleteByFqn: (options: EndpointOptions<Options$1<ApplicationAccessGrantsDeleteByFqnData, false, unknown>>) => Promise<void>;
|
|
1705
|
+
get: (options: EndpointOptions<Options$1<ApplicationAccessGrantsGetData, false, unknown>>) => Promise<AccessGrant>;
|
|
1706
|
+
getByFqn: (options: EndpointOptions<Options$1<ApplicationAccessGrantsGetByFqnData, false, unknown>>) => Promise<AccessGrant>;
|
|
1707
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessGrantsListData, false, unknown>>) => Promise<AccessGrantList>;
|
|
1708
|
+
sync: (options: EndpointOptions<Options$1<ApplicationAccessGrantsSyncData, false, unknown>>) => Promise<AccessGrantSyncResult>;
|
|
1709
|
+
update: (options: EndpointOptions<Options$1<ApplicationAccessGrantsUpdateData, false, unknown>>) => Promise<AccessGrant>;
|
|
1710
|
+
updateByFqn: (options: EndpointOptions<Options$1<ApplicationAccessGrantsUpdateByFqnData, false, unknown>>) => Promise<AccessGrant>;
|
|
1711
|
+
};
|
|
1712
|
+
groups: {
|
|
1713
|
+
addMember: (options: EndpointOptions<Options$1<ApplicationAccessGroupsAddMemberData, false, unknown>>) => Promise<void>;
|
|
1714
|
+
create: (options: EndpointOptions<Options$1<ApplicationAccessGroupsCreateData, false, unknown>>) => Promise<AccessGroup>;
|
|
1715
|
+
delete: (options: EndpointOptions<Options$1<ApplicationAccessGroupsDeleteData, false, unknown>>) => Promise<void>;
|
|
1716
|
+
get: (options: EndpointOptions<Options$1<ApplicationAccessGroupsGetData, false, unknown>>) => Promise<AccessGroup>;
|
|
1717
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessGroupsListData, false, unknown>>) => Promise<AccessGroupPage>;
|
|
1718
|
+
removeMember: (options: EndpointOptions<Options$1<ApplicationAccessGroupsRemoveMemberData, false, unknown>>) => Promise<void>;
|
|
1719
|
+
update: (options: EndpointOptions<Options$1<ApplicationAccessGroupsUpdateData, false, unknown>>) => Promise<AccessGroup>;
|
|
1720
|
+
};
|
|
1721
|
+
invitations: {
|
|
1722
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessMembersListInvitationsData, false, unknown>>) => Promise<AccessInvitationPage>;
|
|
1723
|
+
revoke: (options: EndpointOptions<Options$1<ApplicationAccessMembersRevokeInvitationData, false, unknown>>) => Promise<void>;
|
|
1724
|
+
};
|
|
1725
|
+
knowledgePolicies: {
|
|
1726
|
+
forSchema: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsGetSchemaKnowledgePoliciesData, false, unknown>>) => Promise<AccessSchemaKnowledgePolicies>;
|
|
1727
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsListKnowledgePoliciesData, false, unknown>>) => Promise<AccessKnowledgeDataPolicy[]>;
|
|
1728
|
+
};
|
|
1729
|
+
maxPrivileges: {
|
|
1730
|
+
get: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsGetMaxPrivilegesData, false, unknown>>) => Promise<AccessProfile>;
|
|
1731
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsListMaxPrivilegesData, false, unknown>>) => Promise<AccessProfile[]>;
|
|
1732
|
+
};
|
|
1733
|
+
members: {
|
|
1734
|
+
create: (options: EndpointOptions<Options$1<ApplicationAccessMembersCreateData, false, unknown>>) => Promise<AccessMemberCreated>;
|
|
1735
|
+
get: (options: EndpointOptions<Options$1<ApplicationAccessMembersGetData, false, unknown>>) => Promise<AccessMember>;
|
|
1736
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessMembersListData, false, unknown>>) => Promise<AccessMemberPage>;
|
|
1737
|
+
remove: (options: EndpointOptions<Options$1<ApplicationAccessMembersDeleteData, false, unknown>>) => Promise<void>;
|
|
1738
|
+
resume: (options: EndpointOptions<Options$1<ApplicationAccessMembersResumeData, false, unknown>>) => Promise<void>;
|
|
1739
|
+
suspend: (options: EndpointOptions<Options$1<ApplicationAccessMembersSuspendData, false, unknown>>) => Promise<void>;
|
|
1740
|
+
};
|
|
1741
|
+
profiles: {
|
|
1742
|
+
get: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsGetProfileData, false, unknown>>) => Promise<AccessProfile>;
|
|
1743
|
+
list: (options: EndpointOptions<Options$1<ApplicationAccessDefinitionsListProfilesData, false, unknown>>) => Promise<AccessProfile[]>;
|
|
1744
|
+
};
|
|
1745
|
+
snapshot: (options: EndpointOptions<Options$1<ApplicationAccessPrincipalsSnapshotData, false, unknown>>) => Promise<AccessSnapshot>;
|
|
1746
|
+
};
|
|
1747
|
+
export type ApplicationAccessApi = ReturnType<typeof createApplicationAccessApi>;
|
|
1748
|
+
declare const ServerAccessError_base: Schema.Class<ServerAccessError, Schema.TaggedStruct<"ServerAccessError", {
|
|
1749
|
+
readonly body: Schema.StructWithRest<Schema.Struct<{
|
|
1750
|
+
readonly _tag: Schema.String;
|
|
1751
|
+
}>, readonly [
|
|
1752
|
+
Schema.$Record<Schema.String, Schema.Unknown>
|
|
1753
|
+
]>;
|
|
1754
|
+
readonly status: Schema.Int;
|
|
1755
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1756
|
+
declare class ServerAccessError extends ServerAccessError_base {
|
|
1757
|
+
get message(): string;
|
|
1758
|
+
}
|
|
692
1759
|
declare const oauthErrorCodes: readonly [
|
|
693
1760
|
"invalid_client",
|
|
694
1761
|
"invalid_grant",
|
|
695
1762
|
"invalid_request",
|
|
696
|
-
"invalid_scope",
|
|
697
1763
|
"invalid_target",
|
|
698
1764
|
"temporarily_unavailable",
|
|
699
1765
|
"unauthorized_client",
|
|
@@ -712,7 +1778,6 @@ declare const MemberSessionExchangeError_base: Schema.Class<MemberSessionExchang
|
|
|
712
1778
|
"invalid_client",
|
|
713
1779
|
"invalid_grant",
|
|
714
1780
|
"invalid_request",
|
|
715
|
-
"invalid_scope",
|
|
716
1781
|
"invalid_target",
|
|
717
1782
|
"temporarily_unavailable",
|
|
718
1783
|
"unauthorized_client",
|
|
@@ -733,6 +1798,137 @@ declare class MemberSessionExchangeError extends MemberSessionExchangeError_base
|
|
|
733
1798
|
}>, options: Schema.MakeOptions | undefined);
|
|
734
1799
|
get message(): string;
|
|
735
1800
|
}
|
|
1801
|
+
/** The Organization a `ci.access` call acts in. */
|
|
1802
|
+
export type ServerAccessContext = Readonly<{
|
|
1803
|
+
organizationId: string;
|
|
1804
|
+
}>;
|
|
1805
|
+
export type OptionsOf<F> = F extends (options: infer Options) => PromiseLike<infer _> ? Options : never;
|
|
1806
|
+
export type BodyOf<F> = OptionsOf<F> extends {
|
|
1807
|
+
body: infer B;
|
|
1808
|
+
} ? B : never;
|
|
1809
|
+
export type PathOf<F> = OptionsOf<F> extends {
|
|
1810
|
+
path: infer P;
|
|
1811
|
+
} ? P : never;
|
|
1812
|
+
export type QueryOf<F> = OptionsOf<F> extends {
|
|
1813
|
+
query?: infer Q;
|
|
1814
|
+
} ? NonNullable<Q> : never;
|
|
1815
|
+
export type ResultOf<F> = F extends (options: never) => PromiseLike<infer Result> ? Result : never;
|
|
1816
|
+
export type Api = ApplicationAccessApi;
|
|
1817
|
+
export type WithBody<F> = ServerAccessContext & BodyOf<F>;
|
|
1818
|
+
export type WithPath<F> = ServerAccessContext & PathOf<F>;
|
|
1819
|
+
/** How a `ci.access` call fails. */
|
|
1820
|
+
export type ServerAccessFailure = CiTransportError | ServerAccessError;
|
|
1821
|
+
export type Call<Request, Result> = (request: Request) => Effect.Effect<Result, ServerAccessFailure>;
|
|
1822
|
+
export type Method<Request, F> = Call<Request, ResultOf<F>>;
|
|
1823
|
+
/** A grant named by its id or by its Access Grant FQN. */
|
|
1824
|
+
export type GrantReference = PathOf<Api["grants"]["get"]> | PathOf<Api["grants"]["getByFqn"]>;
|
|
1825
|
+
export type ServerAccessMember = ResultOf<Api["members"]["get"]>;
|
|
1826
|
+
export type ServerAccessGrant = ResultOf<Api["grants"]["get"]>;
|
|
1827
|
+
/** The `access` service of a `ServerClient`. */
|
|
1828
|
+
export interface ServerAccessService {
|
|
1829
|
+
/** The Grant Axes and the slugs that key Axis Values. Needs `admin.profiles` at read. */
|
|
1830
|
+
readonly axes: Readonly<{
|
|
1831
|
+
list: Method<ServerAccessContext, Api["axes"]["list"]>;
|
|
1832
|
+
}>;
|
|
1833
|
+
/** The Capability Catalog of the Organization. Needs `admin.profiles` at read. */
|
|
1834
|
+
readonly catalog: Readonly<{
|
|
1835
|
+
list: Method<ServerAccessContext, Api["catalog"]["list"]>;
|
|
1836
|
+
}>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Why a principal may use a capability or act on a Knowledge record: its
|
|
1839
|
+
* grants with their path and the matching policies. Needs `admin.grants`
|
|
1840
|
+
* at read.
|
|
1841
|
+
*/
|
|
1842
|
+
readonly explain: Method<WithBody<Api["explain"]>, Api["explain"]>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Access Grants by id or Access Grant FQN. Writes need `admin.grants` at
|
|
1845
|
+
* manage and pass Grant Authority; `sync` makes the runtime grants below
|
|
1846
|
+
* a namespace exactly the list. Reads need `admin.grants` at read.
|
|
1847
|
+
*/
|
|
1848
|
+
readonly grants: Readonly<{
|
|
1849
|
+
create: Method<WithBody<Api["grants"]["create"]>, Api["grants"]["create"]>;
|
|
1850
|
+
delete: Call<ServerAccessContext & GrantReference, void>;
|
|
1851
|
+
get: Call<ServerAccessContext & GrantReference, ServerAccessGrant>;
|
|
1852
|
+
/** The grants of a user or Group, or below a namespace; at least one of them. */
|
|
1853
|
+
list: Method<ServerAccessContext & QueryOf<Api["grants"]["list"]>, Api["grants"]["list"]>;
|
|
1854
|
+
sync: Method<WithBody<Api["grants"]["sync"]>, Api["grants"]["sync"]>;
|
|
1855
|
+
update: Call<ServerAccessContext & GrantReference & BodyOf<Api["grants"]["update"]>, ServerAccessGrant>;
|
|
1856
|
+
}>;
|
|
1857
|
+
/**
|
|
1858
|
+
* Groups. Reads need `admin.groups` at read, writes at manage; adding or
|
|
1859
|
+
* removing a member of a Group that a holders-only grant reaches also
|
|
1860
|
+
* needs Grant Authority over that grant. An app server reads Groups but
|
|
1861
|
+
* writes none.
|
|
1862
|
+
*/
|
|
1863
|
+
readonly groups: Readonly<{
|
|
1864
|
+
addMember: Call<WithPath<Api["groups"]["addMember"]> & BodyOf<Api["groups"]["addMember"]>, void>;
|
|
1865
|
+
create: Method<WithBody<Api["groups"]["create"]>, Api["groups"]["create"]>;
|
|
1866
|
+
delete: Call<WithPath<Api["groups"]["delete"]>, void>;
|
|
1867
|
+
get: Method<WithPath<Api["groups"]["get"]>, Api["groups"]["get"]>;
|
|
1868
|
+
/** A page of Groups; pass `next` as `page` to read the page after it. */
|
|
1869
|
+
list: Method<ServerAccessContext & QueryOf<Api["groups"]["list"]>, Api["groups"]["list"]>;
|
|
1870
|
+
removeMember: Call<WithPath<Api["groups"]["removeMember"]>, void>;
|
|
1871
|
+
update: Method<WithPath<Api["groups"]["update"]> & BodyOf<Api["groups"]["update"]>, Api["groups"]["update"]>;
|
|
1872
|
+
}>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Invitations that `members.create` sent with mode `invitation`, newest
|
|
1875
|
+
* first. Reads need `admin.users` at read, a revoke at manage. Only a
|
|
1876
|
+
* service principal invites, so an app server is refused.
|
|
1877
|
+
*/
|
|
1878
|
+
readonly invitations: Readonly<{
|
|
1879
|
+
/** A page of invitations, optionally by `status`; pass `next` as `page` to read the page after it. */
|
|
1880
|
+
list: Method<ServerAccessContext & QueryOf<Api["invitations"]["list"]>, Api["invitations"]["list"]>;
|
|
1881
|
+
revoke: Call<WithPath<Api["invitations"]["revoke"]>, void>;
|
|
1882
|
+
}>;
|
|
1883
|
+
/**
|
|
1884
|
+
* The Knowledge Data Policies, read only: the core and packages declare
|
|
1885
|
+
* them. `forSchema` answers the policies that decide the reads and the
|
|
1886
|
+
* writes of one schema, by its FQN. Needs `admin.profiles` at read.
|
|
1887
|
+
*/
|
|
1888
|
+
readonly knowledgePolicies: Readonly<{
|
|
1889
|
+
forSchema: Method<WithPath<Api["knowledgePolicies"]["forSchema"]>, Api["knowledgePolicies"]["forSchema"]>;
|
|
1890
|
+
list: Method<ServerAccessContext, Api["knowledgePolicies"]["list"]>;
|
|
1891
|
+
}>;
|
|
1892
|
+
/**
|
|
1893
|
+
* The Max Privileges templates, read only: the most an app's user tokens
|
|
1894
|
+
* or an API key may do. Needs `admin.profiles` at read.
|
|
1895
|
+
*/
|
|
1896
|
+
readonly maxPrivileges: Readonly<{
|
|
1897
|
+
get: Method<WithPath<Api["maxPrivileges"]["get"]>, Api["maxPrivileges"]["get"]>;
|
|
1898
|
+
list: Method<ServerAccessContext, Api["maxPrivileges"]["list"]>;
|
|
1899
|
+
}>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Members and guests. `create` needs `admin.grants` at manage and Grant
|
|
1902
|
+
* Authority over each grant; reads need `admin.users` at read for
|
|
1903
|
+
* members and `admin.guests` at read for guests; changes need the same at
|
|
1904
|
+
* manage. An app server sees and changes only the guests it created.
|
|
1905
|
+
*/
|
|
1906
|
+
readonly members: Readonly<{
|
|
1907
|
+
create: Method<WithBody<Api["members"]["create"]>, Api["members"]["create"]>;
|
|
1908
|
+
/** The member with this address, or `null` when the caller sees none. */
|
|
1909
|
+
findByEmail: Call<ServerAccessContext & Readonly<{
|
|
1910
|
+
email: string;
|
|
1911
|
+
}>, ServerAccessMember | null>;
|
|
1912
|
+
get: Method<WithPath<Api["members"]["get"]>, Api["members"]["get"]>;
|
|
1913
|
+
list: Method<ServerAccessContext & QueryOf<Api["members"]["list"]>, Api["members"]["list"]>;
|
|
1914
|
+
remove: Method<WithPath<Api["members"]["remove"]>, Api["members"]["remove"]>;
|
|
1915
|
+
resume: Method<WithPath<Api["members"]["resume"]>, Api["members"]["resume"]>;
|
|
1916
|
+
suspend: Method<WithPath<Api["members"]["suspend"]>, Api["members"]["suspend"]>;
|
|
1917
|
+
}>;
|
|
1918
|
+
/** Access Profiles, read only. Needs `admin.profiles` at read. */
|
|
1919
|
+
readonly profiles: Readonly<{
|
|
1920
|
+
get: Method<WithPath<Api["profiles"]["get"]>, Api["profiles"]["get"]>;
|
|
1921
|
+
list: Method<ServerAccessContext, Api["profiles"]["list"]>;
|
|
1922
|
+
}>;
|
|
1923
|
+
/** A user's Access Snapshot in the Organization. Needs `admin.grants` at read. */
|
|
1924
|
+
readonly snapshot: Method<WithPath<Api["snapshot"]>, Api["snapshot"]>;
|
|
1925
|
+
}
|
|
1926
|
+
/** The `.` form of a service: each method resolves its value or rejects with its failure. */
|
|
1927
|
+
export type Promised<Service> = {
|
|
1928
|
+
readonly [Key in keyof Service]: Service[Key] extends (request: infer Request) => Effect.Effect<infer Result, infer _Failure> ? (request: Request) => Promise<Result> : Promised<Service[Key]>;
|
|
1929
|
+
};
|
|
1930
|
+
/** `ci.access` of `.`; a refused call rejects with `ServerAccessError`. */
|
|
1931
|
+
export type ServerAccess = Promised<ServerAccessService>;
|
|
736
1932
|
/**
|
|
737
1933
|
* A client secret: a string at `.`, or the `Redacted` string that Effect
|
|
738
1934
|
* `Config.Redacted` reads for the `./effect` layers.
|
|
@@ -781,8 +1977,6 @@ export interface ServerInvocationContext {
|
|
|
781
1977
|
readonly callerKind?: "anonymous_visitor";
|
|
782
1978
|
readonly correlationId?: string;
|
|
783
1979
|
readonly organizationId: string;
|
|
784
|
-
/** Selects a Server Role for this call; omission uses the credential default. */
|
|
785
|
-
readonly serverRole?: string;
|
|
786
1980
|
readonly signal?: AbortSignal;
|
|
787
1981
|
readonly traceparent?: string;
|
|
788
1982
|
}
|
|
@@ -1005,6 +2199,13 @@ export type ServerClientMode<Mode extends ServerAuthenticationMode> = Readonly<{
|
|
|
1005
2199
|
}>;
|
|
1006
2200
|
/** `Mode` is the authentication mode of the client; by default it is not known. */
|
|
1007
2201
|
export interface ServerClient<Mode extends ServerAuthenticationMode = ServerAuthenticationMode> extends ServerClientMode<Mode> {
|
|
2202
|
+
/**
|
|
2203
|
+
* Members and guests, Access Grants and the read-only access model of an
|
|
2204
|
+
* Organization (ARC-010). App server credentials act with the app's server
|
|
2205
|
+
* grants; a delegated token must be a service principal's API key. CI
|
|
2206
|
+
* authorizes each call with the caller's Tuples.
|
|
2207
|
+
*/
|
|
2208
|
+
readonly access: ServerAccess;
|
|
1008
2209
|
readonly agents: Readonly<{
|
|
1009
2210
|
/** Starts an Agent run addressed by `agentId` or by its Organization `agentFqn`. */
|
|
1010
2211
|
invoke: ServerOperationMethod<"agents_invoke">;
|
|
@@ -1030,8 +2231,8 @@ export interface ServerClient<Mode extends ServerAuthenticationMode = ServerAuth
|
|
|
1030
2231
|
* Durable private files of the application's Organization. `upload` stores
|
|
1031
2232
|
* one PDF, JPEG or PNG of up to 10 MiB with no expiry and returns its
|
|
1032
2233
|
* `storageFileId`; a `workflows.invoke` input can name it, and the nodes of
|
|
1033
|
-
* the run read the file. Needs
|
|
1034
|
-
* credentials. Unlike `attachments.upload`, the file belongs to no run and
|
|
2234
|
+
* the run read the file. Needs `core.platform.attachments` in the app
|
|
2235
|
+
* server's grants and confidential credentials. Unlike `attachments.upload`, the file belongs to no run and
|
|
1035
2236
|
* does not expire after 24 hours.
|
|
1036
2237
|
*/
|
|
1037
2238
|
readonly files: Readonly<{
|
|
@@ -1052,7 +2253,8 @@ export interface ServerClient<Mode extends ServerAuthenticationMode = ServerAuth
|
|
|
1052
2253
|
}>;
|
|
1053
2254
|
/**
|
|
1054
2255
|
* Sends one message through a messaging connection that an administrator
|
|
1055
|
-
* granted to the application. Needs
|
|
2256
|
+
* granted to the application. Needs `core.platform.messaging` in the
|
|
2257
|
+
* caller's grants. A repeat
|
|
1056
2258
|
* with the same `idempotencyKey` and content returns the first receipt and
|
|
1057
2259
|
* sends nothing.
|
|
1058
2260
|
*/
|
|
@@ -1085,11 +2287,6 @@ export interface ServerClient<Mode extends ServerAuthenticationMode = ServerAuth
|
|
|
1085
2287
|
update: ServerRecordWriteMethod<ServerRecordUpdateRequest>;
|
|
1086
2288
|
}>;
|
|
1087
2289
|
}>;
|
|
1088
|
-
readonly roles: Readonly<{
|
|
1089
|
-
assign: ServerOperationMethod<"roles_assign">;
|
|
1090
|
-
list: ServerOperationMethod<"roles_list">;
|
|
1091
|
-
revoke: ServerOperationMethod<"roles_revoke">;
|
|
1092
|
-
}>;
|
|
1093
2290
|
readonly runs: Readonly<{
|
|
1094
2291
|
cancel: ServerRunOperationMethod<"runs_cancel", ServerRun>;
|
|
1095
2292
|
get: ServerRunOperationMethod<"runs_get", ServerRun>;
|
|
@@ -1099,23 +2296,6 @@ export interface ServerClient<Mode extends ServerAuthenticationMode = ServerAuth
|
|
|
1099
2296
|
invoke: ServerOperationMethod<"skills_invoke">;
|
|
1100
2297
|
list: ServerOperationMethod<"skills_list">;
|
|
1101
2298
|
}>;
|
|
1102
|
-
/**
|
|
1103
|
-
* Application users and their role-bounded lifecycle. User tokens and service
|
|
1104
|
-
* credentials are authorized by CI on each call.
|
|
1105
|
-
*/
|
|
1106
|
-
readonly users: Readonly<{
|
|
1107
|
-
/**
|
|
1108
|
-
* Whether `createOrGet` would accept `email`, without creating anything:
|
|
1109
|
-
* `{ usable: true }`, or `{ usable: false, reason }` with
|
|
1110
|
-
* `user_unavailable` or `target_inactive`. An unknown email is usable.
|
|
1111
|
-
* Service credentials only, under the users-create permission.
|
|
1112
|
-
*/
|
|
1113
|
-
checkEmail: ServerOperationMethod<"users_check_email">;
|
|
1114
|
-
createOrGet: ServerOperationMethod<"users_create_or_get">;
|
|
1115
|
-
deactivate: ServerOperationMethod<"users_deactivate">;
|
|
1116
|
-
get: ServerOperationMethod<"users_get">;
|
|
1117
|
-
list: ServerOperationMethod<"users_list">;
|
|
1118
|
-
}>;
|
|
1119
2299
|
readonly workflows: Readonly<{
|
|
1120
2300
|
invoke: ServerOperationMethod<"workflows_invoke">;
|
|
1121
2301
|
list: ServerOperationMethod<"workflows_list">;
|
|
@@ -1134,8 +2314,6 @@ export interface MemberSessionExchangeRequest {
|
|
|
1134
2314
|
readonly fetch?: typeof globalThis.fetch;
|
|
1135
2315
|
/** The Organization the member acts in; the application must be allowed in it. */
|
|
1136
2316
|
readonly organizationId: string;
|
|
1137
|
-
/** A subset of the application's scopes. */
|
|
1138
|
-
readonly scopes: readonly string[];
|
|
1139
2317
|
/** The member's CI session token, for example from `POST /auth/otp/verify`. */
|
|
1140
2318
|
readonly sessionToken: string;
|
|
1141
2319
|
/** Cancels the exchange; a cancelled exchange rejects with the signal's reason. */
|
|
@@ -1162,6 +2340,8 @@ export type RunAsApplicationConfig<Secret extends ClientSecret = string> = Reado
|
|
|
1162
2340
|
}>;
|
|
1163
2341
|
declare const CiError$1: typeof CiError;
|
|
1164
2342
|
type CiError$1 = CiError;
|
|
2343
|
+
declare const ServerAccessError$1: typeof ServerAccessError;
|
|
2344
|
+
type ServerAccessError$1 = ServerAccessError;
|
|
1165
2345
|
declare const CiTransportError$1: typeof CiTransportError;
|
|
1166
2346
|
type CiTransportError$1 = CiTransportError;
|
|
1167
2347
|
declare const FederatedAuthError$1: typeof FederatedAuthError;
|
|
@@ -1175,10 +2355,6 @@ export declare const exchangeMemberSession: (request: MemberSessionExchangeReque
|
|
|
1175
2355
|
export declare const uuidV7: () => string;
|
|
1176
2356
|
|
|
1177
2357
|
export {
|
|
1178
|
-
ApplicationRole as ServerApplicationRole,
|
|
1179
|
-
ApplicationUser as ServerApplicationUser,
|
|
1180
|
-
ApplicationUserPage as ServerApplicationUserPage,
|
|
1181
|
-
ApplicationUserResolution as ServerApplicationUserResolution,
|
|
1182
2358
|
CiError$1 as CiError,
|
|
1183
2359
|
CiTransportError$1 as CiTransportError,
|
|
1184
2360
|
DurableFileUpload as ServerDurableFileUpload,
|
|
@@ -1193,6 +2369,7 @@ export {
|
|
|
1193
2369
|
MessageSendResult as ServerMessageSendResult,
|
|
1194
2370
|
MessageTarget as ServerMessageTarget,
|
|
1195
2371
|
ResourceJsonValue,
|
|
2372
|
+
ServerAccessError$1 as ServerAccessError,
|
|
1196
2373
|
StorageFileId as ServerStorageFileId,
|
|
1197
2374
|
createServerClient$1 as createServerClient,
|
|
1198
2375
|
};
|