@cobaltcore-dev/aurora 0.17.0 → 0.18.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.
Files changed (48) hide show
  1. package/dist/client/AuthProvider-Cj_Btfnc.mjs +56 -0
  2. package/dist/client/AuthProvider-Cj_Btfnc.mjs.map +1 -0
  3. package/dist/client/{FloatingIpActionModals-BUc6yaQ8.mjs → FloatingIpActionModals-sJlSFIsK.mjs} +2 -2
  4. package/dist/client/{FloatingIpActionModals-BUc6yaQ8.mjs.map → FloatingIpActionModals-sJlSFIsK.mjs.map} +1 -1
  5. package/dist/client/{ImageToastNotifications-Dz-VsSwl.mjs → ImageToastNotifications-CISH3c_d.mjs} +2 -2
  6. package/dist/client/{ImageToastNotifications-Dz-VsSwl.mjs.map → ImageToastNotifications-CISH3c_d.mjs.map} +1 -1
  7. package/dist/client/{_auth-6uste_10.mjs → _auth-BtRCgHQe.mjs} +2 -2
  8. package/dist/client/{_auth-6uste_10.mjs.map → _auth-BtRCgHQe.mjs.map} +1 -1
  9. package/dist/client/{_floatingIpId-B0l4YNQc.mjs → _floatingIpId-C4Sa8tMa.mjs} +2 -2
  10. package/dist/client/{_floatingIpId-B0l4YNQc.mjs.map → _floatingIpId-C4Sa8tMa.mjs.map} +1 -1
  11. package/dist/client/{_floatingIpId-cpueAc2F2.mjs → _floatingIpId-CAUBZ5WD2.mjs} +4 -4
  12. package/dist/client/{_floatingIpId-cpueAc2F2.mjs.map → _floatingIpId-CAUBZ5WD2.mjs.map} +1 -1
  13. package/dist/client/{_imageId-Bv711w1n.mjs → _imageId-DpXNAIbD.mjs} +2 -2
  14. package/dist/client/{_imageId-Bv711w1n.mjs.map → _imageId-DpXNAIbD.mjs.map} +1 -1
  15. package/dist/client/{_pcaId-CPLb5J6d.mjs → _pcaId-DY9GPV7t.mjs} +4 -4
  16. package/dist/client/{_pcaId-CPLb5J6d.mjs.map → _pcaId-DY9GPV7t.mjs.map} +1 -1
  17. package/dist/client/{_pcaId-Hx_72pnp.mjs → _pcaId-ldtkXsbp.mjs} +2 -2
  18. package/dist/client/{_pcaId-Hx_72pnp.mjs.map → _pcaId-ldtkXsbp.mjs.map} +1 -1
  19. package/dist/client/{_securityGroupId-B-RYPDDc.mjs → _securityGroupId-B6_lD8ry.mjs} +2 -2
  20. package/dist/client/{_securityGroupId-B-RYPDDc.mjs.map → _securityGroupId-B6_lD8ry.mjs.map} +1 -1
  21. package/dist/client/{_securityGroupId-BC3KC6h5.mjs → _securityGroupId-D9FHSkNU.mjs} +3 -3
  22. package/dist/client/{_securityGroupId-BC3KC6h5.mjs.map → _securityGroupId-D9FHSkNU.mjs.map} +1 -1
  23. package/dist/client/{aurora-AAy9BJE7.mjs → aurora-Owys0YMN.mjs} +2 -2
  24. package/dist/client/{aurora-AAy9BJE7.mjs.map → aurora-Owys0YMN.mjs.map} +1 -1
  25. package/dist/client/{constants-BAqOfvr0.mjs → constants-COPE2ktv.mjs} +2 -2
  26. package/dist/client/{constants-BAqOfvr0.mjs.map → constants-COPE2ktv.mjs.map} +1 -1
  27. package/dist/client/{floatingips-Bkk5-I_p.mjs → floatingips-DOGKGGkC.mjs} +3 -3
  28. package/dist/client/{floatingips-Bkk5-I_p.mjs.map → floatingips-DOGKGGkC.mjs.map} +1 -1
  29. package/dist/client/{hooks-CnX5q5wN.mjs → hooks-DvdvErNv.mjs} +1 -1
  30. package/dist/client/{images-FE3vJ6pP.mjs → images-B1wqMKYw.mjs} +2 -2
  31. package/dist/client/{images-FE3vJ6pP.mjs.map → images-B1wqMKYw.mjs.map} +1 -1
  32. package/dist/client/{images-DBLfzuJA.mjs → images-D5UsQi8i.mjs} +4 -4
  33. package/dist/client/{images-DBLfzuJA.mjs.map → images-D5UsQi8i.mjs.map} +1 -1
  34. package/dist/client/index.d.ts +1 -1
  35. package/dist/client/index.js +262 -299
  36. package/dist/client/index.js.map +1 -1
  37. package/dist/client/{pca-P0ud1PA9.mjs → pca-B7WldCGw.mjs} +4 -4
  38. package/dist/client/{pca-P0ud1PA9.mjs.map → pca-B7WldCGw.mjs.map} +1 -1
  39. package/dist/client/{pca-BkAJ5jvX.mjs → pca-DztTIs18.mjs} +2 -2
  40. package/dist/client/{pca-BkAJ5jvX.mjs.map → pca-DztTIs18.mjs.map} +1 -1
  41. package/dist/client/{securitygroups-D14Jv1GQ.mjs → securitygroups-BRtHaTLm.mjs} +2 -2
  42. package/dist/client/{securitygroups-D14Jv1GQ.mjs.map → securitygroups-BRtHaTLm.mjs.map} +1 -1
  43. package/dist/client/trpcClient-Dy_MP_Pv.mjs.map +1 -1
  44. package/dist/client/trpcClient.d.ts +3007 -0
  45. package/dist/server/index.d.ts +3056 -1
  46. package/package.json +3 -3
  47. package/dist/client/AuthProvider-BQSJk5R4.mjs +0 -63
  48. package/dist/client/AuthProvider-BQSJk5R4.mjs.map +0 -1
@@ -0,0 +1,3007 @@
1
+ import { createTRPCReact, CreateTRPCReact } from '@trpc/react-query';
2
+ import { createTRPCClient, TRPCClient } from '@trpc/client';
3
+ import { AuroraRouter } from '../server/routers';
4
+ /** Type alias for the React tRPC client */
5
+ export type TrpcReact = ReturnType<typeof createTRPCReact<AuroraRouter>>;
6
+ /** Type alias for the vanilla tRPC client */
7
+ export type TrpcClient = ReturnType<typeof createTRPCClient<AuroraRouter>>;
8
+ /** Generic type for creating a typed React tRPC client with a custom router */
9
+ export type CreateTypedTrpcReact<TRouter extends AuroraRouter> = CreateTRPCReact<TRouter, unknown>;
10
+ /** Generic type for creating a typed vanilla tRPC client with a custom router */
11
+ export type CreateTypedTrpcClient<TRouter extends AuroraRouter> = TRPCClient<TRouter>;
12
+ export declare function setBffEndpoint(endpoint: string): void;
13
+ export declare const trpcReact: TrpcReact;
14
+ export declare const trpcReactClient: TRPCClient<import('@trpc/server').TRPCBuiltRouter<{
15
+ ctx: import('../server/context').AuroraPortalContext;
16
+ meta: object;
17
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
18
+ transformer: false;
19
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
20
+ services: import('@trpc/server').TRPCBuiltRouter<{
21
+ ctx: import('../server/context').AuroraPortalContext;
22
+ meta: object;
23
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
24
+ transformer: false;
25
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
26
+ pca: {
27
+ list: import('@trpc/server').TRPCQueryProcedure<{
28
+ input: {
29
+ project_id: string;
30
+ limit?: number | undefined;
31
+ next_page_marker?: string | undefined;
32
+ };
33
+ output: {
34
+ certificate_authorities: {
35
+ id: string;
36
+ project_id: string;
37
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
38
+ certificate?: {
39
+ pem: string;
40
+ validity: {
41
+ not_after: number;
42
+ not_before?: number | undefined;
43
+ };
44
+ } | undefined;
45
+ certificate_chain?: {
46
+ certificates: {
47
+ pem: string;
48
+ }[];
49
+ pem: string;
50
+ } | undefined;
51
+ configuration?: {
52
+ subject: {
53
+ common_name: string;
54
+ additional_attribute?: {
55
+ key: number[];
56
+ value: string;
57
+ }[] | undefined;
58
+ country?: string[] | undefined;
59
+ locality?: string[] | undefined;
60
+ organization?: string[] | undefined;
61
+ organizational_unit?: string[] | undefined;
62
+ postal_code?: string[] | undefined;
63
+ province?: string[] | undefined;
64
+ serial_number?: string | undefined;
65
+ street_address?: string[] | undefined;
66
+ };
67
+ } | undefined;
68
+ csr?: string | undefined;
69
+ imported_certificate_chain?: string | undefined;
70
+ }[];
71
+ links: {
72
+ href: string;
73
+ rel: string;
74
+ }[];
75
+ next_page_marker?: string | undefined;
76
+ };
77
+ meta: object;
78
+ }>;
79
+ create: import('@trpc/server').TRPCMutationProcedure<{
80
+ input: {
81
+ project_id: string;
82
+ configuration: {
83
+ subject: {
84
+ common_name: string;
85
+ additional_attribute?: {
86
+ key: number[];
87
+ value: string;
88
+ }[] | undefined;
89
+ country?: string[] | undefined;
90
+ locality?: string[] | undefined;
91
+ organization?: string[] | undefined;
92
+ organizational_unit?: string[] | undefined;
93
+ postal_code?: string[] | undefined;
94
+ province?: string[] | undefined;
95
+ serial_number?: string | undefined;
96
+ street_address?: string[] | undefined;
97
+ };
98
+ };
99
+ };
100
+ output: {
101
+ id: string;
102
+ project_id: string;
103
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
104
+ certificate?: {
105
+ pem: string;
106
+ validity: {
107
+ not_after: number;
108
+ not_before?: number | undefined;
109
+ };
110
+ } | undefined;
111
+ certificate_chain?: {
112
+ certificates: {
113
+ pem: string;
114
+ }[];
115
+ pem: string;
116
+ } | undefined;
117
+ configuration?: {
118
+ subject: {
119
+ common_name: string;
120
+ additional_attribute?: {
121
+ key: number[];
122
+ value: string;
123
+ }[] | undefined;
124
+ country?: string[] | undefined;
125
+ locality?: string[] | undefined;
126
+ organization?: string[] | undefined;
127
+ organizational_unit?: string[] | undefined;
128
+ postal_code?: string[] | undefined;
129
+ province?: string[] | undefined;
130
+ serial_number?: string | undefined;
131
+ street_address?: string[] | undefined;
132
+ };
133
+ } | undefined;
134
+ csr?: string | undefined;
135
+ imported_certificate_chain?: string | undefined;
136
+ };
137
+ meta: object;
138
+ }>;
139
+ getById: import('@trpc/server').TRPCQueryProcedure<{
140
+ input: {
141
+ project_id: string;
142
+ certificate_authority_id: string;
143
+ };
144
+ output: {
145
+ id: string;
146
+ project_id: string;
147
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
148
+ certificate?: {
149
+ pem: string;
150
+ validity: {
151
+ not_after: number;
152
+ not_before?: number | undefined;
153
+ };
154
+ } | undefined;
155
+ certificate_chain?: {
156
+ certificates: {
157
+ pem: string;
158
+ }[];
159
+ pem: string;
160
+ } | undefined;
161
+ configuration?: {
162
+ subject: {
163
+ common_name: string;
164
+ additional_attribute?: {
165
+ key: number[];
166
+ value: string;
167
+ }[] | undefined;
168
+ country?: string[] | undefined;
169
+ locality?: string[] | undefined;
170
+ organization?: string[] | undefined;
171
+ organizational_unit?: string[] | undefined;
172
+ postal_code?: string[] | undefined;
173
+ province?: string[] | undefined;
174
+ serial_number?: string | undefined;
175
+ street_address?: string[] | undefined;
176
+ };
177
+ } | undefined;
178
+ csr?: string | undefined;
179
+ imported_certificate_chain?: string | undefined;
180
+ };
181
+ meta: object;
182
+ }>;
183
+ delete: import('@trpc/server').TRPCMutationProcedure<{
184
+ input: {
185
+ project_id: string;
186
+ certificate_authority_id: string;
187
+ };
188
+ output: void;
189
+ meta: object;
190
+ }>;
191
+ import: import('@trpc/server').TRPCMutationProcedure<{
192
+ input: {
193
+ project_id: string;
194
+ certificate_authority_id: string;
195
+ imported_certificate_chain: string;
196
+ };
197
+ output: {
198
+ id: string;
199
+ project_id: string;
200
+ state: "CREATING" | "AWAITING_CERTIFICATE" | "READY" | "FAILED" | "UNEXPECTED";
201
+ certificate?: {
202
+ pem: string;
203
+ validity: {
204
+ not_after: number;
205
+ not_before?: number | undefined;
206
+ };
207
+ } | undefined;
208
+ certificate_chain?: {
209
+ certificates: {
210
+ pem: string;
211
+ }[];
212
+ pem: string;
213
+ } | undefined;
214
+ configuration?: {
215
+ subject: {
216
+ common_name: string;
217
+ additional_attribute?: {
218
+ key: number[];
219
+ value: string;
220
+ }[] | undefined;
221
+ country?: string[] | undefined;
222
+ locality?: string[] | undefined;
223
+ organization?: string[] | undefined;
224
+ organizational_unit?: string[] | undefined;
225
+ postal_code?: string[] | undefined;
226
+ province?: string[] | undefined;
227
+ serial_number?: string | undefined;
228
+ street_address?: string[] | undefined;
229
+ };
230
+ } | undefined;
231
+ csr?: string | undefined;
232
+ imported_certificate_chain?: string | undefined;
233
+ };
234
+ meta: object;
235
+ }>;
236
+ listCertificates: import('@trpc/server').TRPCQueryProcedure<{
237
+ input: {
238
+ project_id: string;
239
+ certificate_authority_id: string;
240
+ limit?: number | undefined;
241
+ next_page_marker?: string | undefined;
242
+ };
243
+ output: {
244
+ certificates: {
245
+ certificate_authority_id: string;
246
+ id: string;
247
+ project_id: string;
248
+ certificate?: {
249
+ pem: string;
250
+ validity: {
251
+ not_after: number;
252
+ not_before?: number | undefined;
253
+ };
254
+ } | undefined;
255
+ certificate_chain?: {
256
+ certificates: {
257
+ pem: string;
258
+ }[];
259
+ pem: string;
260
+ } | undefined;
261
+ configuration?: {
262
+ validity: {
263
+ not_after: number;
264
+ not_before?: number | undefined;
265
+ };
266
+ } | undefined;
267
+ csr?: string | undefined;
268
+ }[];
269
+ links: {
270
+ href: string;
271
+ rel: string;
272
+ }[];
273
+ next_page_marker?: string | undefined;
274
+ };
275
+ meta: object;
276
+ }>;
277
+ createCertificate: import('@trpc/server').TRPCMutationProcedure<{
278
+ input: {
279
+ project_id: string;
280
+ certificate_authority_id: string;
281
+ csr: string;
282
+ configuration: {
283
+ validity: {
284
+ not_after: number;
285
+ not_before?: number | undefined;
286
+ };
287
+ };
288
+ };
289
+ output: {
290
+ certificate_authority_id: string;
291
+ id: string;
292
+ project_id: string;
293
+ certificate?: {
294
+ pem: string;
295
+ validity: {
296
+ not_after: number;
297
+ not_before?: number | undefined;
298
+ };
299
+ } | undefined;
300
+ certificate_chain?: {
301
+ certificates: {
302
+ pem: string;
303
+ }[];
304
+ pem: string;
305
+ } | undefined;
306
+ configuration?: {
307
+ validity: {
308
+ not_after: number;
309
+ not_before?: number | undefined;
310
+ };
311
+ } | undefined;
312
+ csr?: string | undefined;
313
+ };
314
+ meta: object;
315
+ }>;
316
+ getByIdCertificate: import('@trpc/server').TRPCQueryProcedure<{
317
+ input: {
318
+ project_id: string;
319
+ certificate_authority_id: string;
320
+ certificate_id: string;
321
+ };
322
+ output: {
323
+ certificate_authority_id: string;
324
+ id: string;
325
+ project_id: string;
326
+ certificate?: {
327
+ pem: string;
328
+ validity: {
329
+ not_after: number;
330
+ not_before?: number | undefined;
331
+ };
332
+ } | undefined;
333
+ certificate_chain?: {
334
+ certificates: {
335
+ pem: string;
336
+ }[];
337
+ pem: string;
338
+ } | undefined;
339
+ configuration?: {
340
+ validity: {
341
+ not_after: number;
342
+ not_before?: number | undefined;
343
+ };
344
+ } | undefined;
345
+ csr?: string | undefined;
346
+ };
347
+ meta: object;
348
+ }>;
349
+ };
350
+ }>>;
351
+ }> & import('@trpc/server').TRPCDecorateCreateRouterOptions<{
352
+ network: import('@trpc/server').TRPCBuiltRouter<{
353
+ ctx: import('../server/context').AuroraPortalContext;
354
+ meta: object;
355
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
356
+ transformer: false;
357
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
358
+ canUser: import('@trpc/server').TRPCQueryProcedure<{
359
+ input: {
360
+ project_id: string;
361
+ permission: string | string[];
362
+ };
363
+ output: boolean[];
364
+ meta: object;
365
+ }>;
366
+ floatingIp: {
367
+ list: import('@trpc/server').TRPCQueryProcedure<{
368
+ input: {
369
+ project_id: string;
370
+ id?: string | undefined;
371
+ router_id?: string | null | undefined;
372
+ status?: "DOWN" | "ACTIVE" | "ERROR" | undefined;
373
+ tenant_id?: string | undefined;
374
+ revision_number?: number | undefined;
375
+ description?: string | null | undefined;
376
+ floating_network_id?: string | undefined;
377
+ fixed_ip_address?: string | undefined;
378
+ floating_ip_address?: string | undefined;
379
+ port_id?: string | null | undefined;
380
+ sort_dir?: "asc" | "desc" | undefined;
381
+ sort_key?: "id" | "project_id" | "status" | "tenant_id" | "router_id" | "floating_network_id" | "fixed_ip_address" | "floating_ip_address" | undefined;
382
+ tags?: string[] | undefined;
383
+ "tags-any"?: string | undefined;
384
+ "not-tags"?: string | undefined;
385
+ "not-tags-any"?: string | undefined;
386
+ fields?: string | string[] | undefined;
387
+ limit?: number | undefined;
388
+ marker?: string | undefined;
389
+ page_reverse?: boolean | undefined;
390
+ searchTerm?: string | undefined;
391
+ };
392
+ output: {
393
+ router_id: string | null;
394
+ revision_number: number;
395
+ project_id: string;
396
+ tenant_id: string;
397
+ floating_network_id: string;
398
+ fixed_ip_address: string | null;
399
+ floating_ip_address: string;
400
+ port_id: string | null;
401
+ id: string;
402
+ status: "DOWN" | "ACTIVE" | "ERROR";
403
+ description?: string | null | undefined;
404
+ distributed?: boolean | undefined;
405
+ dns_domain?: string | undefined;
406
+ dns_name?: string | undefined;
407
+ created_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
408
+ updated_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
409
+ port_details?: {
410
+ status: "DOWN" | "ACTIVE" | "ERROR";
411
+ name: string;
412
+ admin_state_up: boolean;
413
+ network_id: string;
414
+ device_owner: string;
415
+ mac_address: string;
416
+ device_id: string;
417
+ } | null | undefined;
418
+ tags?: string[] | undefined;
419
+ port_forwardings?: {
420
+ protocol: "tcp" | "udp";
421
+ internal_ip_address: string;
422
+ id: string;
423
+ internal_port?: number | undefined;
424
+ internal_port_range?: string | undefined;
425
+ internal_port_id?: string | undefined;
426
+ external_port?: number | undefined;
427
+ external_port_range?: string | undefined;
428
+ description?: string | null | undefined;
429
+ }[] | null | undefined;
430
+ qos_network_policy_id?: string | undefined;
431
+ qos_policy_id?: string | undefined;
432
+ }[];
433
+ meta: object;
434
+ }>;
435
+ create: import('@trpc/server').TRPCMutationProcedure<{
436
+ input: {
437
+ project_id: string;
438
+ tenant_id: string;
439
+ floating_network_id: string;
440
+ fixed_ip_address?: string | undefined;
441
+ floating_ip_address?: string | undefined;
442
+ port_id?: string | undefined;
443
+ subnet_id?: string | undefined;
444
+ distributed?: boolean | undefined;
445
+ description?: string | undefined;
446
+ dns_domain?: string | undefined;
447
+ dns_name?: string | undefined;
448
+ qos_policy_id?: string | undefined;
449
+ };
450
+ output: {
451
+ router_id: string | null;
452
+ revision_number: number;
453
+ project_id: string;
454
+ tenant_id: string;
455
+ floating_network_id: string;
456
+ fixed_ip_address: string | null;
457
+ floating_ip_address: string;
458
+ port_id: string | null;
459
+ id: string;
460
+ status: "DOWN" | "ACTIVE" | "ERROR";
461
+ description?: string | null | undefined;
462
+ distributed?: boolean | undefined;
463
+ dns_domain?: string | undefined;
464
+ dns_name?: string | undefined;
465
+ created_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
466
+ updated_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
467
+ port_details?: {
468
+ status: "DOWN" | "ACTIVE" | "ERROR";
469
+ name: string;
470
+ admin_state_up: boolean;
471
+ network_id: string;
472
+ device_owner: string;
473
+ mac_address: string;
474
+ device_id: string;
475
+ } | null | undefined;
476
+ tags?: string[] | undefined;
477
+ port_forwardings?: {
478
+ protocol: "tcp" | "udp";
479
+ internal_ip_address: string;
480
+ id: string;
481
+ internal_port?: number | undefined;
482
+ internal_port_range?: string | undefined;
483
+ internal_port_id?: string | undefined;
484
+ external_port?: number | undefined;
485
+ external_port_range?: string | undefined;
486
+ description?: string | null | undefined;
487
+ }[] | null | undefined;
488
+ qos_network_policy_id?: string | undefined;
489
+ qos_policy_id?: string | undefined;
490
+ };
491
+ meta: object;
492
+ }>;
493
+ getById: import('@trpc/server').TRPCQueryProcedure<{
494
+ input: {
495
+ project_id: string;
496
+ floatingip_id: string;
497
+ };
498
+ output: {
499
+ router_id: string | null;
500
+ revision_number: number;
501
+ project_id: string;
502
+ tenant_id: string;
503
+ floating_network_id: string;
504
+ fixed_ip_address: string | null;
505
+ floating_ip_address: string;
506
+ port_id: string | null;
507
+ id: string;
508
+ status: "DOWN" | "ACTIVE" | "ERROR";
509
+ description?: string | null | undefined;
510
+ distributed?: boolean | undefined;
511
+ dns_domain?: string | undefined;
512
+ dns_name?: string | undefined;
513
+ created_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
514
+ updated_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
515
+ port_details?: {
516
+ status: "DOWN" | "ACTIVE" | "ERROR";
517
+ name: string;
518
+ admin_state_up: boolean;
519
+ network_id: string;
520
+ device_owner: string;
521
+ mac_address: string;
522
+ device_id: string;
523
+ } | null | undefined;
524
+ tags?: string[] | undefined;
525
+ port_forwardings?: {
526
+ protocol: "tcp" | "udp";
527
+ internal_ip_address: string;
528
+ id: string;
529
+ internal_port?: number | undefined;
530
+ internal_port_range?: string | undefined;
531
+ internal_port_id?: string | undefined;
532
+ external_port?: number | undefined;
533
+ external_port_range?: string | undefined;
534
+ description?: string | null | undefined;
535
+ }[] | null | undefined;
536
+ qos_network_policy_id?: string | undefined;
537
+ qos_policy_id?: string | undefined;
538
+ };
539
+ meta: object;
540
+ }>;
541
+ update: import('@trpc/server').TRPCMutationProcedure<{
542
+ input: {
543
+ project_id: string;
544
+ floatingip_id: string;
545
+ port_id: string | null;
546
+ fixed_ip_address?: string | undefined;
547
+ description?: string | undefined;
548
+ distributed?: boolean | undefined;
549
+ };
550
+ output: {
551
+ router_id: string | null;
552
+ revision_number: number;
553
+ project_id: string;
554
+ tenant_id: string;
555
+ floating_network_id: string;
556
+ fixed_ip_address: string | null;
557
+ floating_ip_address: string;
558
+ port_id: string | null;
559
+ id: string;
560
+ status: "DOWN" | "ACTIVE" | "ERROR";
561
+ description?: string | null | undefined;
562
+ distributed?: boolean | undefined;
563
+ dns_domain?: string | undefined;
564
+ dns_name?: string | undefined;
565
+ created_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
566
+ updated_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
567
+ port_details?: {
568
+ status: "DOWN" | "ACTIVE" | "ERROR";
569
+ name: string;
570
+ admin_state_up: boolean;
571
+ network_id: string;
572
+ device_owner: string;
573
+ mac_address: string;
574
+ device_id: string;
575
+ } | null | undefined;
576
+ tags?: string[] | undefined;
577
+ port_forwardings?: {
578
+ protocol: "tcp" | "udp";
579
+ internal_ip_address: string;
580
+ id: string;
581
+ internal_port?: number | undefined;
582
+ internal_port_range?: string | undefined;
583
+ internal_port_id?: string | undefined;
584
+ external_port?: number | undefined;
585
+ external_port_range?: string | undefined;
586
+ description?: string | null | undefined;
587
+ }[] | null | undefined;
588
+ qos_network_policy_id?: string | undefined;
589
+ qos_policy_id?: string | undefined;
590
+ };
591
+ meta: object;
592
+ }>;
593
+ delete: import('@trpc/server').TRPCMutationProcedure<{
594
+ input: {
595
+ project_id: string;
596
+ floatingip_id: string;
597
+ };
598
+ output: boolean;
599
+ meta: object;
600
+ }>;
601
+ listExternalNetworks: import('@trpc/server').TRPCQueryProcedure<{
602
+ input: {
603
+ project_id: string;
604
+ "router:external"?: true | undefined;
605
+ };
606
+ output: {
607
+ id: string;
608
+ name: string;
609
+ project_id: string;
610
+ shared: boolean;
611
+ status: "DOWN" | "ACTIVE" | "BUILD" | "ERROR";
612
+ "router:external"?: boolean | undefined;
613
+ updated_at?: (string & import('zod').$brand<"ISO8601Timestamp">) | undefined;
614
+ is_default?: boolean | undefined;
615
+ }[];
616
+ meta: object;
617
+ }>;
618
+ listDnsDomains: import('@trpc/server').TRPCQueryProcedure<{
619
+ input: {
620
+ project_id: string;
621
+ };
622
+ output: {
623
+ id: string;
624
+ name: string;
625
+ }[];
626
+ meta: object;
627
+ }>;
628
+ listAvailablePorts: import('@trpc/server').TRPCQueryProcedure<{
629
+ input: {
630
+ project_id: string;
631
+ status?: "ACTIVE" | undefined;
632
+ admin_state_up?: true | undefined;
633
+ };
634
+ output: {
635
+ id: string;
636
+ name?: string | null | undefined;
637
+ fixed_ips?: {
638
+ ip_address: string;
639
+ subnet_id?: string | undefined;
640
+ }[] | undefined;
641
+ }[];
642
+ meta: object;
643
+ }>;
644
+ };
645
+ securityGroup: {
646
+ list: import('@trpc/server').TRPCQueryProcedure<{
647
+ input: {
648
+ project_id: string;
649
+ sort_key?: string | undefined;
650
+ sort_dir?: "asc" | "desc" | undefined;
651
+ name?: string | undefined;
652
+ description?: string | undefined;
653
+ tenant_id?: string | undefined;
654
+ shared?: boolean | undefined;
655
+ tags?: string | undefined;
656
+ tags_any?: string | undefined;
657
+ not_tags?: string | undefined;
658
+ not_tags_any?: string | undefined;
659
+ searchTerm?: string | undefined;
660
+ };
661
+ output: {
662
+ id: string;
663
+ name?: string | null | undefined;
664
+ description?: string | null | undefined;
665
+ tenant_id?: string | null | undefined;
666
+ project_id?: string | null | undefined;
667
+ stateful?: boolean | undefined;
668
+ shared?: boolean | undefined;
669
+ tags?: string[] | undefined;
670
+ security_group_rules?: {
671
+ id: string;
672
+ direction?: "ingress" | "egress" | undefined;
673
+ ethertype?: "IPv4" | "IPv6" | undefined;
674
+ description?: string | null | undefined;
675
+ security_group_id?: string | undefined;
676
+ protocol?: string | null | undefined;
677
+ port_range_min?: number | null | undefined;
678
+ port_range_max?: number | null | undefined;
679
+ remote_ip_prefix?: string | null | undefined;
680
+ remote_group_id?: string | null | undefined;
681
+ remote_address_group_id?: string | null | undefined;
682
+ tenant_id?: string | null | undefined;
683
+ project_id?: string | null | undefined;
684
+ revision_number?: number | undefined;
685
+ tags?: string[] | undefined;
686
+ created_at?: string | undefined;
687
+ updated_at?: string | null | undefined;
688
+ }[] | undefined;
689
+ revision_number?: number | undefined;
690
+ created_at?: string | undefined;
691
+ updated_at?: string | null | undefined;
692
+ }[];
693
+ meta: object;
694
+ }>;
695
+ getById: import('@trpc/server').TRPCQueryProcedure<{
696
+ input: {
697
+ project_id: string;
698
+ securityGroupId: string;
699
+ };
700
+ output: {
701
+ id: string;
702
+ name?: string | null | undefined;
703
+ description?: string | null | undefined;
704
+ tenant_id?: string | null | undefined;
705
+ project_id?: string | null | undefined;
706
+ stateful?: boolean | undefined;
707
+ shared?: boolean | undefined;
708
+ tags?: string[] | undefined;
709
+ security_group_rules?: {
710
+ id: string;
711
+ direction?: "ingress" | "egress" | undefined;
712
+ ethertype?: "IPv4" | "IPv6" | undefined;
713
+ description?: string | null | undefined;
714
+ security_group_id?: string | undefined;
715
+ protocol?: string | null | undefined;
716
+ port_range_min?: number | null | undefined;
717
+ port_range_max?: number | null | undefined;
718
+ remote_ip_prefix?: string | null | undefined;
719
+ remote_group_id?: string | null | undefined;
720
+ remote_address_group_id?: string | null | undefined;
721
+ tenant_id?: string | null | undefined;
722
+ project_id?: string | null | undefined;
723
+ revision_number?: number | undefined;
724
+ tags?: string[] | undefined;
725
+ created_at?: string | undefined;
726
+ updated_at?: string | null | undefined;
727
+ }[] | undefined;
728
+ revision_number?: number | undefined;
729
+ created_at?: string | undefined;
730
+ updated_at?: string | null | undefined;
731
+ };
732
+ meta: object;
733
+ }>;
734
+ create: import('@trpc/server').TRPCMutationProcedure<{
735
+ input: {
736
+ project_id: string;
737
+ name: string;
738
+ description?: string | undefined;
739
+ stateful?: boolean | undefined;
740
+ };
741
+ output: {
742
+ id: string;
743
+ name?: string | null | undefined;
744
+ description?: string | null | undefined;
745
+ tenant_id?: string | null | undefined;
746
+ project_id?: string | null | undefined;
747
+ stateful?: boolean | undefined;
748
+ shared?: boolean | undefined;
749
+ tags?: string[] | undefined;
750
+ security_group_rules?: {
751
+ id: string;
752
+ direction?: "ingress" | "egress" | undefined;
753
+ ethertype?: "IPv4" | "IPv6" | undefined;
754
+ description?: string | null | undefined;
755
+ security_group_id?: string | undefined;
756
+ protocol?: string | null | undefined;
757
+ port_range_min?: number | null | undefined;
758
+ port_range_max?: number | null | undefined;
759
+ remote_ip_prefix?: string | null | undefined;
760
+ remote_group_id?: string | null | undefined;
761
+ remote_address_group_id?: string | null | undefined;
762
+ tenant_id?: string | null | undefined;
763
+ project_id?: string | null | undefined;
764
+ revision_number?: number | undefined;
765
+ tags?: string[] | undefined;
766
+ created_at?: string | undefined;
767
+ updated_at?: string | null | undefined;
768
+ }[] | undefined;
769
+ revision_number?: number | undefined;
770
+ created_at?: string | undefined;
771
+ updated_at?: string | null | undefined;
772
+ };
773
+ meta: object;
774
+ }>;
775
+ deleteById: import('@trpc/server').TRPCMutationProcedure<{
776
+ input: {
777
+ project_id: string;
778
+ securityGroupId: string;
779
+ };
780
+ output: void;
781
+ meta: object;
782
+ }>;
783
+ update: import('@trpc/server').TRPCMutationProcedure<{
784
+ input: {
785
+ project_id: string;
786
+ securityGroupId: string;
787
+ name?: string | undefined;
788
+ description?: string | undefined;
789
+ stateful?: boolean | undefined;
790
+ };
791
+ output: {
792
+ id: string;
793
+ name?: string | null | undefined;
794
+ description?: string | null | undefined;
795
+ tenant_id?: string | null | undefined;
796
+ project_id?: string | null | undefined;
797
+ stateful?: boolean | undefined;
798
+ shared?: boolean | undefined;
799
+ tags?: string[] | undefined;
800
+ security_group_rules?: {
801
+ id: string;
802
+ direction?: "ingress" | "egress" | undefined;
803
+ ethertype?: "IPv4" | "IPv6" | undefined;
804
+ description?: string | null | undefined;
805
+ security_group_id?: string | undefined;
806
+ protocol?: string | null | undefined;
807
+ port_range_min?: number | null | undefined;
808
+ port_range_max?: number | null | undefined;
809
+ remote_ip_prefix?: string | null | undefined;
810
+ remote_group_id?: string | null | undefined;
811
+ remote_address_group_id?: string | null | undefined;
812
+ tenant_id?: string | null | undefined;
813
+ project_id?: string | null | undefined;
814
+ revision_number?: number | undefined;
815
+ tags?: string[] | undefined;
816
+ created_at?: string | undefined;
817
+ updated_at?: string | null | undefined;
818
+ }[] | undefined;
819
+ revision_number?: number | undefined;
820
+ created_at?: string | undefined;
821
+ updated_at?: string | null | undefined;
822
+ };
823
+ meta: object;
824
+ }>;
825
+ };
826
+ securityGroupRule: {
827
+ delete: import('@trpc/server').TRPCMutationProcedure<{
828
+ input: {
829
+ project_id: string;
830
+ ruleId: string;
831
+ };
832
+ output: void;
833
+ meta: object;
834
+ }>;
835
+ create: import('@trpc/server').TRPCMutationProcedure<{
836
+ input: {
837
+ project_id: string;
838
+ security_group_id: string;
839
+ direction: "ingress" | "egress";
840
+ ethertype?: "IPv4" | "IPv6" | undefined;
841
+ description?: string | undefined;
842
+ protocol?: string | null | undefined;
843
+ port_range_min?: number | null | undefined;
844
+ port_range_max?: number | null | undefined;
845
+ remote_ip_prefix?: string | null | undefined;
846
+ remote_group_id?: string | null | undefined;
847
+ remote_address_group_id?: string | null | undefined;
848
+ };
849
+ output: {
850
+ id: string;
851
+ direction?: "ingress" | "egress" | undefined;
852
+ ethertype?: "IPv4" | "IPv6" | undefined;
853
+ description?: string | null | undefined;
854
+ security_group_id?: string | undefined;
855
+ protocol?: string | null | undefined;
856
+ port_range_min?: number | null | undefined;
857
+ port_range_max?: number | null | undefined;
858
+ remote_ip_prefix?: string | null | undefined;
859
+ remote_group_id?: string | null | undefined;
860
+ remote_address_group_id?: string | null | undefined;
861
+ tenant_id?: string | null | undefined;
862
+ project_id?: string | null | undefined;
863
+ revision_number?: number | undefined;
864
+ tags?: string[] | undefined;
865
+ created_at?: string | undefined;
866
+ updated_at?: string | null | undefined;
867
+ };
868
+ meta: object;
869
+ }>;
870
+ };
871
+ rbacPolicy: {
872
+ list: import('@trpc/server').TRPCQueryProcedure<{
873
+ input: {
874
+ project_id: string;
875
+ securityGroupId: string;
876
+ };
877
+ output: {
878
+ id: string;
879
+ object_type: "network" | "security_group" | "qos_policy";
880
+ object_id: string;
881
+ action: "access_as_shared" | "access_as_external";
882
+ target_tenant: string;
883
+ tenant_id?: string | null | undefined;
884
+ project_id?: string | null | undefined;
885
+ }[];
886
+ meta: object;
887
+ }>;
888
+ create: import('@trpc/server').TRPCMutationProcedure<{
889
+ input: {
890
+ project_id: string;
891
+ securityGroupId: string;
892
+ targetTenant: string;
893
+ };
894
+ output: {
895
+ id: string;
896
+ object_type: "network" | "security_group" | "qos_policy";
897
+ object_id: string;
898
+ action: "access_as_shared" | "access_as_external";
899
+ target_tenant: string;
900
+ tenant_id?: string | null | undefined;
901
+ project_id?: string | null | undefined;
902
+ };
903
+ meta: object;
904
+ }>;
905
+ update: import('@trpc/server').TRPCMutationProcedure<{
906
+ input: {
907
+ project_id: string;
908
+ policyId: string;
909
+ targetTenant: string;
910
+ };
911
+ output: {
912
+ id: string;
913
+ object_type: "network" | "security_group" | "qos_policy";
914
+ object_id: string;
915
+ action: "access_as_shared" | "access_as_external";
916
+ target_tenant: string;
917
+ tenant_id?: string | null | undefined;
918
+ project_id?: string | null | undefined;
919
+ };
920
+ meta: object;
921
+ }>;
922
+ delete: import('@trpc/server').TRPCMutationProcedure<{
923
+ input: {
924
+ project_id: string;
925
+ policyId: string;
926
+ };
927
+ output: void;
928
+ meta: object;
929
+ }>;
930
+ };
931
+ }>>;
932
+ }> & import('@trpc/server').TRPCDecorateCreateRouterOptions<{
933
+ project: import('@trpc/server').TRPCBuiltRouter<{
934
+ ctx: import('../server/context').AuroraPortalContext;
935
+ meta: object;
936
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
937
+ transformer: false;
938
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
939
+ getAuthProjects: import('@trpc/server').TRPCQueryProcedure<{
940
+ input: void;
941
+ output: {
942
+ id: string;
943
+ name: string;
944
+ enabled: boolean;
945
+ domain_id?: string | null | undefined;
946
+ parent_id?: string | null | undefined;
947
+ is_domain?: boolean | null | undefined;
948
+ tags?: string[] | null | undefined;
949
+ options?: Record<string, string | boolean> | null | undefined;
950
+ description?: string | null | undefined;
951
+ links?: {
952
+ self?: string | null | undefined;
953
+ } | undefined;
954
+ domain_name?: string | undefined;
955
+ parents?: {
956
+ project: {
957
+ id: string;
958
+ name: string;
959
+ enabled: boolean;
960
+ domain_id?: string | null | undefined;
961
+ parent_id?: string | null | undefined;
962
+ is_domain?: boolean | null | undefined;
963
+ tags?: string[] | null | undefined;
964
+ options?: Record<string, string | boolean> | null | undefined;
965
+ description?: string | null | undefined;
966
+ links?: {
967
+ self?: string | null | undefined;
968
+ } | undefined;
969
+ };
970
+ }[] | undefined;
971
+ }[] | undefined;
972
+ meta: object;
973
+ }>;
974
+ searchProjects: import('@trpc/server').TRPCQueryProcedure<{
975
+ input: {
976
+ search?: string | undefined;
977
+ } | undefined;
978
+ output: {
979
+ id: string;
980
+ name: string;
981
+ enabled: boolean;
982
+ domain_id?: string | null | undefined;
983
+ parent_id?: string | null | undefined;
984
+ is_domain?: boolean | null | undefined;
985
+ tags?: string[] | null | undefined;
986
+ options?: Record<string, string | boolean> | null | undefined;
987
+ description?: string | null | undefined;
988
+ links?: {
989
+ self?: string | null | undefined;
990
+ } | undefined;
991
+ domain_name?: string | undefined;
992
+ parents?: {
993
+ project: {
994
+ id: string;
995
+ name: string;
996
+ enabled: boolean;
997
+ domain_id?: string | null | undefined;
998
+ parent_id?: string | null | undefined;
999
+ is_domain?: boolean | null | undefined;
1000
+ tags?: string[] | null | undefined;
1001
+ options?: Record<string, string | boolean> | null | undefined;
1002
+ description?: string | null | undefined;
1003
+ links?: {
1004
+ self?: string | null | undefined;
1005
+ } | undefined;
1006
+ };
1007
+ }[] | undefined;
1008
+ }[] | undefined;
1009
+ meta: object;
1010
+ }>;
1011
+ }>>;
1012
+ }> & import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1013
+ storage: {
1014
+ canUser: import('@trpc/server').TRPCQueryProcedure<{
1015
+ input: {
1016
+ project_id: string;
1017
+ permission: string | string[];
1018
+ };
1019
+ output: boolean[];
1020
+ meta: object;
1021
+ }>;
1022
+ swift: import('@trpc/server').TRPCBuiltRouter<{
1023
+ ctx: import('../server/context').AuroraPortalContext;
1024
+ meta: object;
1025
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1026
+ transformer: false;
1027
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1028
+ getServiceInfo: import('@trpc/server').TRPCQueryProcedure<{
1029
+ input: void;
1030
+ output: {
1031
+ swift: {
1032
+ version?: string | undefined;
1033
+ allow_account_management?: boolean | undefined;
1034
+ account_autocreate?: boolean | undefined;
1035
+ policies?: {
1036
+ name: string;
1037
+ default?: boolean | undefined;
1038
+ }[] | undefined;
1039
+ bulk_delete?: {
1040
+ max_deletes_per_request: number;
1041
+ max_failed_deletes: number;
1042
+ } | undefined;
1043
+ bulk_upload?: {
1044
+ max_containers_per_extraction: number;
1045
+ max_failed_extractions: number;
1046
+ } | undefined;
1047
+ container_quotas?: unknown;
1048
+ account_quotas?: unknown;
1049
+ slo?: {
1050
+ max_manifest_segments: number;
1051
+ max_manifest_size: number;
1052
+ min_segment_size: number;
1053
+ } | undefined;
1054
+ tempurl?: {
1055
+ methods: string[];
1056
+ } | undefined;
1057
+ container_listing_limit?: number | undefined;
1058
+ account_listing_limit?: number | undefined;
1059
+ max_container_name_length?: number | undefined;
1060
+ max_object_name_length?: number | undefined;
1061
+ max_file_size?: number | undefined;
1062
+ max_meta_name_length?: number | undefined;
1063
+ max_meta_value_length?: number | undefined;
1064
+ max_meta_count?: number | undefined;
1065
+ max_meta_overall_size?: number | undefined;
1066
+ max_header_size?: number | undefined;
1067
+ container_sync?: unknown;
1068
+ symlink?: unknown;
1069
+ versioned_writes?: unknown;
1070
+ };
1071
+ };
1072
+ meta: object;
1073
+ }>;
1074
+ listContainers: import('@trpc/server').TRPCQueryProcedure<{
1075
+ input: {
1076
+ project_id: string;
1077
+ account?: string | undefined;
1078
+ limit?: number | undefined;
1079
+ marker?: string | undefined;
1080
+ end_marker?: string | undefined;
1081
+ prefix?: string | undefined;
1082
+ delimiter?: string | undefined;
1083
+ reverse?: boolean | undefined;
1084
+ format?: "json" | "xml" | "plain" | undefined;
1085
+ xNewest?: boolean | undefined;
1086
+ };
1087
+ output: {
1088
+ name: string;
1089
+ count: number;
1090
+ bytes: number;
1091
+ last_modified?: string | undefined;
1092
+ }[];
1093
+ meta: object;
1094
+ }>;
1095
+ getAccountMetadata: import('@trpc/server').TRPCQueryProcedure<{
1096
+ input: {
1097
+ project_id: string;
1098
+ account?: string | undefined;
1099
+ xNewest?: boolean | undefined;
1100
+ };
1101
+ output: {
1102
+ objectCount: number;
1103
+ containerCount: number;
1104
+ bytesUsed: number;
1105
+ metadata?: Record<string, string> | undefined;
1106
+ quotaBytes?: number | undefined;
1107
+ tempUrlKey?: string | undefined;
1108
+ tempUrlKey2?: string | undefined;
1109
+ };
1110
+ meta: object;
1111
+ }>;
1112
+ updateAccountMetadata: import('@trpc/server').TRPCMutationProcedure<{
1113
+ input: {
1114
+ project_id: string;
1115
+ metadata: Record<string, string>;
1116
+ account?: string | undefined;
1117
+ removeMetadata?: string[] | undefined;
1118
+ tempUrlKey?: string | undefined;
1119
+ tempUrlKey2?: string | undefined;
1120
+ };
1121
+ output: boolean;
1122
+ meta: object;
1123
+ }>;
1124
+ deleteAccount: import('@trpc/server').TRPCMutationProcedure<{
1125
+ input: {
1126
+ project_id: string;
1127
+ account?: string | undefined;
1128
+ };
1129
+ output: boolean;
1130
+ meta: object;
1131
+ }>;
1132
+ listObjects: import('@trpc/server').TRPCQueryProcedure<{
1133
+ input: {
1134
+ project_id: string;
1135
+ container: string;
1136
+ account?: string | undefined;
1137
+ limit?: number | undefined;
1138
+ marker?: string | undefined;
1139
+ end_marker?: string | undefined;
1140
+ prefix?: string | undefined;
1141
+ delimiter?: string | undefined;
1142
+ path?: string | undefined;
1143
+ reverse?: boolean | undefined;
1144
+ format?: "json" | "xml" | "plain" | undefined;
1145
+ xNewest?: boolean | undefined;
1146
+ };
1147
+ output: {
1148
+ name: string;
1149
+ hash: string;
1150
+ bytes: number;
1151
+ content_type: string;
1152
+ last_modified: string;
1153
+ symlink_path?: string | undefined;
1154
+ }[];
1155
+ meta: object;
1156
+ }>;
1157
+ createContainer: import('@trpc/server').TRPCMutationProcedure<{
1158
+ input: {
1159
+ project_id: string;
1160
+ container: string;
1161
+ account?: string | undefined;
1162
+ metadata?: Record<string, string> | undefined;
1163
+ read?: string | undefined;
1164
+ write?: string | undefined;
1165
+ storagePolicy?: string | undefined;
1166
+ versionsLocation?: string | undefined;
1167
+ historyLocation?: string | undefined;
1168
+ quotaBytes?: number | undefined;
1169
+ quotaCount?: number | undefined;
1170
+ tempUrlKey?: string | undefined;
1171
+ tempUrlKey2?: string | undefined;
1172
+ };
1173
+ output: boolean;
1174
+ meta: object;
1175
+ }>;
1176
+ getContainerMetadata: import('@trpc/server').TRPCQueryProcedure<{
1177
+ input: {
1178
+ project_id: string;
1179
+ container: string;
1180
+ account?: string | undefined;
1181
+ xNewest?: boolean | undefined;
1182
+ };
1183
+ output: {
1184
+ objectCount: number;
1185
+ bytesUsed: number;
1186
+ metadata?: Record<string, string> | undefined;
1187
+ quotaBytes?: number | undefined;
1188
+ quotaCount?: number | undefined;
1189
+ storagePolicy?: string | undefined;
1190
+ versionsLocation?: string | undefined;
1191
+ historyLocation?: string | undefined;
1192
+ versionsEnabled?: boolean | undefined;
1193
+ read?: string | undefined;
1194
+ write?: string | undefined;
1195
+ syncTo?: string | undefined;
1196
+ syncKey?: string | undefined;
1197
+ tempUrlKey?: string | undefined;
1198
+ tempUrlKey2?: string | undefined;
1199
+ };
1200
+ meta: object;
1201
+ }>;
1202
+ updateContainerMetadata: import('@trpc/server').TRPCMutationProcedure<{
1203
+ input: {
1204
+ project_id: string;
1205
+ container: string;
1206
+ account?: string | undefined;
1207
+ metadata?: Record<string, string> | undefined;
1208
+ removeMetadata?: string[] | undefined;
1209
+ read?: string | undefined;
1210
+ write?: string | undefined;
1211
+ versionsLocation?: string | undefined;
1212
+ historyLocation?: string | undefined;
1213
+ removeVersionsLocation?: boolean | undefined;
1214
+ removeHistoryLocation?: boolean | undefined;
1215
+ quotaBytes?: number | undefined;
1216
+ quotaCount?: number | undefined;
1217
+ tempUrlKey?: string | undefined;
1218
+ tempUrlKey2?: string | undefined;
1219
+ };
1220
+ output: boolean;
1221
+ meta: object;
1222
+ }>;
1223
+ getContainerPublicUrl: import('@trpc/server').TRPCQueryProcedure<{
1224
+ input: {
1225
+ project_id: string;
1226
+ container: string;
1227
+ account?: string | undefined;
1228
+ xNewest?: boolean | undefined;
1229
+ };
1230
+ output: string | null;
1231
+ meta: object;
1232
+ }>;
1233
+ deleteContainer: import('@trpc/server').TRPCMutationProcedure<{
1234
+ input: {
1235
+ project_id: string;
1236
+ container: string;
1237
+ account?: string | undefined;
1238
+ };
1239
+ output: boolean;
1240
+ meta: object;
1241
+ }>;
1242
+ emptyContainer: import('@trpc/server').TRPCMutationProcedure<{
1243
+ input: {
1244
+ project_id: string;
1245
+ container: string;
1246
+ account?: string | undefined;
1247
+ };
1248
+ output: number;
1249
+ meta: object;
1250
+ }>;
1251
+ getObjectMetadata: import('@trpc/server').TRPCQueryProcedure<{
1252
+ input: {
1253
+ project_id: string;
1254
+ container: string;
1255
+ object: string;
1256
+ account?: string | undefined;
1257
+ multipartManifest?: "get" | undefined;
1258
+ symlink?: "get" | undefined;
1259
+ xNewest?: boolean | undefined;
1260
+ ifMatch?: string | undefined;
1261
+ ifNoneMatch?: string | undefined;
1262
+ ifModifiedSince?: string | undefined;
1263
+ ifUnmodifiedSince?: string | undefined;
1264
+ };
1265
+ output: {
1266
+ contentType?: string | undefined;
1267
+ contentLength?: number | undefined;
1268
+ contentEncoding?: string | undefined;
1269
+ contentDisposition?: string | undefined;
1270
+ etag?: string | undefined;
1271
+ lastModified?: string | undefined;
1272
+ deleteAt?: number | undefined;
1273
+ customMetadata?: Record<string, string> | undefined;
1274
+ objectManifest?: string | undefined;
1275
+ staticLargeObject?: boolean | undefined;
1276
+ symlinkTarget?: string | undefined;
1277
+ symlinkTargetAccount?: string | undefined;
1278
+ };
1279
+ meta: object;
1280
+ }>;
1281
+ updateObjectMetadata: import('@trpc/server').TRPCMutationProcedure<{
1282
+ input: {
1283
+ project_id: string;
1284
+ container: string;
1285
+ object: string;
1286
+ account?: string | undefined;
1287
+ metadata?: Record<string, string> | undefined;
1288
+ contentType?: string | undefined;
1289
+ contentEncoding?: string | undefined;
1290
+ contentDisposition?: string | undefined;
1291
+ deleteAt?: number | undefined;
1292
+ deleteAfter?: number | undefined;
1293
+ };
1294
+ output: boolean;
1295
+ meta: object;
1296
+ }>;
1297
+ copyObject: import('@trpc/server').TRPCMutationProcedure<{
1298
+ input: {
1299
+ project_id: string;
1300
+ container: string;
1301
+ object: string;
1302
+ destination: string;
1303
+ account?: string | undefined;
1304
+ destinationAccount?: string | undefined;
1305
+ metadata?: Record<string, string> | undefined;
1306
+ contentType?: string | undefined;
1307
+ contentEncoding?: string | undefined;
1308
+ contentDisposition?: string | undefined;
1309
+ freshMetadata?: boolean | undefined;
1310
+ multipartManifest?: "get" | undefined;
1311
+ symlink?: "get" | undefined;
1312
+ };
1313
+ output: boolean;
1314
+ meta: object;
1315
+ }>;
1316
+ deleteObject: import('@trpc/server').TRPCMutationProcedure<{
1317
+ input: {
1318
+ project_id: string;
1319
+ container: string;
1320
+ object: string;
1321
+ account?: string | undefined;
1322
+ multipartManifest?: "delete" | undefined;
1323
+ };
1324
+ output: boolean;
1325
+ meta: object;
1326
+ }>;
1327
+ bulkDelete: import('@trpc/server').TRPCMutationProcedure<{
1328
+ input: {
1329
+ project_id: string;
1330
+ objects: string[];
1331
+ account?: string | undefined;
1332
+ };
1333
+ output: {
1334
+ numberDeleted: number;
1335
+ numberNotFound: number;
1336
+ errors: {
1337
+ path: string;
1338
+ status: string;
1339
+ error: string;
1340
+ }[];
1341
+ };
1342
+ meta: object;
1343
+ }>;
1344
+ createFolder: import('@trpc/server').TRPCMutationProcedure<{
1345
+ input: {
1346
+ project_id: string;
1347
+ container: string;
1348
+ folderPath: string;
1349
+ account?: string | undefined;
1350
+ metadata?: Record<string, string> | undefined;
1351
+ };
1352
+ output: boolean;
1353
+ meta: object;
1354
+ }>;
1355
+ listFolderContents: import('@trpc/server').TRPCQueryProcedure<{
1356
+ input: {
1357
+ project_id: string;
1358
+ container: string;
1359
+ account?: string | undefined;
1360
+ folderPath?: string | undefined;
1361
+ limit?: number | undefined;
1362
+ marker?: string | undefined;
1363
+ };
1364
+ output: {
1365
+ folders: {
1366
+ name: string;
1367
+ path: string;
1368
+ }[];
1369
+ objects: {
1370
+ name: string;
1371
+ hash: string;
1372
+ bytes: number;
1373
+ content_type: string;
1374
+ last_modified: string;
1375
+ symlink_path?: string | undefined;
1376
+ }[];
1377
+ };
1378
+ meta: object;
1379
+ }>;
1380
+ moveFolder: import('@trpc/server').TRPCMutationProcedure<{
1381
+ input: {
1382
+ project_id: string;
1383
+ container: string;
1384
+ sourcePath: string;
1385
+ destinationPath: string;
1386
+ account?: string | undefined;
1387
+ destinationContainer?: string | undefined;
1388
+ };
1389
+ output: number;
1390
+ meta: object;
1391
+ }>;
1392
+ deleteFolder: import('@trpc/server').TRPCMutationProcedure<{
1393
+ input: {
1394
+ project_id: string;
1395
+ container: string;
1396
+ folderPath: string;
1397
+ account?: string | undefined;
1398
+ recursive?: boolean | undefined;
1399
+ };
1400
+ output: number;
1401
+ meta: object;
1402
+ }>;
1403
+ generateTempUrl: import('@trpc/server').TRPCMutationProcedure<{
1404
+ input: {
1405
+ project_id: string;
1406
+ container: string;
1407
+ object: string;
1408
+ method: "DELETE" | "GET" | "POST" | "PUT";
1409
+ expiresIn: number;
1410
+ account?: string | undefined;
1411
+ filename?: string | undefined;
1412
+ };
1413
+ output: {
1414
+ url: string;
1415
+ expiresAt: number;
1416
+ };
1417
+ meta: object;
1418
+ }>;
1419
+ uploadObject: import('@trpc/server').TRPCMutationProcedure<{
1420
+ input: import('@trpc/server/unstable-core-do-not-import').OctetInput;
1421
+ output: {
1422
+ success: boolean;
1423
+ };
1424
+ meta: object;
1425
+ }>;
1426
+ watchUploadProgress: import('@trpc/server').TRPCSubscriptionProcedure<{
1427
+ input: {
1428
+ uploadId: string;
1429
+ };
1430
+ output: AsyncIterable<{
1431
+ uploaded: number;
1432
+ total: number;
1433
+ percent: number;
1434
+ }, void, any>;
1435
+ meta: object;
1436
+ }>;
1437
+ downloadObject: import('@trpc/server').TRPCMutationProcedure<{
1438
+ input: {
1439
+ project_id: string;
1440
+ container: string;
1441
+ object: string;
1442
+ downloadId: string;
1443
+ account?: string | undefined;
1444
+ filename?: string | undefined;
1445
+ };
1446
+ output: AsyncGenerator<{
1447
+ chunk: string;
1448
+ downloaded: number;
1449
+ total: number;
1450
+ contentType?: string;
1451
+ filename?: string;
1452
+ }, any, any>;
1453
+ meta: object;
1454
+ }>;
1455
+ watchDownloadProgress: import('@trpc/server').TRPCSubscriptionProcedure<{
1456
+ input: {
1457
+ downloadId: string;
1458
+ };
1459
+ output: AsyncIterable<{
1460
+ downloaded: number;
1461
+ total: number;
1462
+ percent: number;
1463
+ }, void, any>;
1464
+ meta: object;
1465
+ }>;
1466
+ }>>;
1467
+ ceph: import('@trpc/server').TRPCBuiltRouter<{
1468
+ ctx: import('../server/context').AuroraPortalContext;
1469
+ meta: object;
1470
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1471
+ transformer: false;
1472
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1473
+ ec2Credentials: import('@trpc/server').TRPCBuiltRouter<{
1474
+ ctx: import('../server/context').AuroraPortalContext;
1475
+ meta: object;
1476
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1477
+ transformer: false;
1478
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1479
+ list: import('@trpc/server').TRPCQueryProcedure<{
1480
+ input: {
1481
+ project_id: string;
1482
+ };
1483
+ output: {
1484
+ id: string;
1485
+ access: string;
1486
+ user_id: string;
1487
+ project_id: string;
1488
+ }[];
1489
+ meta: object;
1490
+ }>;
1491
+ create: import('@trpc/server').TRPCMutationProcedure<{
1492
+ input: {
1493
+ project_id: string;
1494
+ };
1495
+ output: {
1496
+ id: string;
1497
+ access: string;
1498
+ user_id: string;
1499
+ project_id: string;
1500
+ secret: string;
1501
+ };
1502
+ meta: object;
1503
+ }>;
1504
+ delete: import('@trpc/server').TRPCMutationProcedure<{
1505
+ input: {
1506
+ project_id: string;
1507
+ credentialId: string;
1508
+ };
1509
+ output: {
1510
+ success: true;
1511
+ };
1512
+ meta: object;
1513
+ }>;
1514
+ }>>;
1515
+ containers: import('@trpc/server').TRPCBuiltRouter<{
1516
+ ctx: import('../server/context').AuroraPortalContext;
1517
+ meta: object;
1518
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1519
+ transformer: false;
1520
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1521
+ status: import('@trpc/server').TRPCQueryProcedure<{
1522
+ input: {
1523
+ project_id: string;
1524
+ };
1525
+ output: {
1526
+ hasCredentials: boolean;
1527
+ };
1528
+ meta: object;
1529
+ }>;
1530
+ list: import('@trpc/server').TRPCQueryProcedure<{
1531
+ input: {
1532
+ project_id: string;
1533
+ includeMetadata?: boolean | undefined;
1534
+ };
1535
+ output: {
1536
+ name: string;
1537
+ count: number;
1538
+ bytes: number;
1539
+ last_modified?: string | undefined;
1540
+ creationDate?: string | undefined;
1541
+ }[];
1542
+ meta: object;
1543
+ }>;
1544
+ create: import('@trpc/server').TRPCMutationProcedure<{
1545
+ input: {
1546
+ project_id: string;
1547
+ bucketName: string;
1548
+ enableVersioning?: boolean | undefined;
1549
+ };
1550
+ output: {
1551
+ success: boolean;
1552
+ versioningError?: string | undefined;
1553
+ };
1554
+ meta: object;
1555
+ }>;
1556
+ delete: import('@trpc/server').TRPCMutationProcedure<{
1557
+ input: {
1558
+ project_id: string;
1559
+ bucketName: string;
1560
+ };
1561
+ output: boolean;
1562
+ meta: object;
1563
+ }>;
1564
+ }>>;
1565
+ objects: import('@trpc/server').TRPCBuiltRouter<{
1566
+ ctx: import('../server/context').AuroraPortalContext;
1567
+ meta: object;
1568
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1569
+ transformer: false;
1570
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1571
+ list: import('@trpc/server').TRPCQueryProcedure<{
1572
+ input: {
1573
+ project_id: string;
1574
+ containerName: string;
1575
+ prefix?: string | undefined;
1576
+ delimiter?: string | undefined;
1577
+ maxKeys?: number | undefined;
1578
+ continuationToken?: string | undefined;
1579
+ keyMarker?: string | undefined;
1580
+ versionIdMarker?: string | undefined;
1581
+ showVersions?: boolean | undefined;
1582
+ };
1583
+ output: {
1584
+ objects: {
1585
+ key: string;
1586
+ size: number;
1587
+ lastModified?: string | undefined;
1588
+ etag?: string | undefined;
1589
+ storageClass?: string | undefined;
1590
+ }[];
1591
+ folders: {
1592
+ prefix: string;
1593
+ }[];
1594
+ isTruncated: boolean;
1595
+ nextContinuationToken?: string | undefined;
1596
+ versions?: {
1597
+ key: string;
1598
+ versionId: string;
1599
+ isLatest: boolean;
1600
+ size: number;
1601
+ isDeleteMarker: boolean;
1602
+ lastModified?: string | undefined;
1603
+ etag?: string | undefined;
1604
+ storageClass?: string | undefined;
1605
+ }[] | undefined;
1606
+ nextKeyMarker?: string | undefined;
1607
+ nextVersionIdMarker?: string | undefined;
1608
+ };
1609
+ meta: object;
1610
+ }>;
1611
+ getDetails: import('@trpc/server').TRPCQueryProcedure<{
1612
+ input: {
1613
+ project_id: string;
1614
+ containerName: string;
1615
+ objectKey: string;
1616
+ };
1617
+ output: {
1618
+ key: string;
1619
+ size: number;
1620
+ lastModified?: string | undefined;
1621
+ etag?: string | undefined;
1622
+ storageClass?: string | undefined;
1623
+ contentType?: string | undefined;
1624
+ metadata?: Record<string, string> | undefined;
1625
+ };
1626
+ meta: object;
1627
+ }>;
1628
+ deleteAll: import('@trpc/server').TRPCMutationProcedure<{
1629
+ input: {
1630
+ project_id: string;
1631
+ containerName: string;
1632
+ includeVersionsAndDeleteMarkers?: boolean | undefined;
1633
+ };
1634
+ output: number;
1635
+ meta: object;
1636
+ }>;
1637
+ delete: import('@trpc/server').TRPCMutationProcedure<{
1638
+ input: {
1639
+ project_id: string;
1640
+ containerName: string;
1641
+ objectKey: string;
1642
+ };
1643
+ output: boolean;
1644
+ meta: object;
1645
+ }>;
1646
+ createFolder: import('@trpc/server').TRPCMutationProcedure<{
1647
+ input: {
1648
+ project_id: string;
1649
+ containerName: string;
1650
+ folderPath: string;
1651
+ };
1652
+ output: boolean;
1653
+ meta: object;
1654
+ }>;
1655
+ copy: import('@trpc/server').TRPCMutationProcedure<{
1656
+ input: {
1657
+ project_id: string;
1658
+ sourceBucket: string;
1659
+ sourceKey: string;
1660
+ destinationBucket: string;
1661
+ destinationKey: string;
1662
+ copyMetadata?: boolean | undefined;
1663
+ };
1664
+ output: {
1665
+ key: string;
1666
+ etag?: string | undefined;
1667
+ lastModified?: string | undefined;
1668
+ };
1669
+ meta: object;
1670
+ }>;
1671
+ move: import('@trpc/server').TRPCMutationProcedure<{
1672
+ input: {
1673
+ project_id: string;
1674
+ sourceBucket: string;
1675
+ sourceKey: string;
1676
+ destinationBucket: string;
1677
+ destinationKey: string;
1678
+ };
1679
+ output: boolean;
1680
+ meta: object;
1681
+ }>;
1682
+ updateMetadata: import('@trpc/server').TRPCMutationProcedure<{
1683
+ input: {
1684
+ project_id: string;
1685
+ containerName: string;
1686
+ objectKey: string;
1687
+ metadata: Record<string, string>;
1688
+ };
1689
+ output: {
1690
+ key: string;
1691
+ size: number;
1692
+ lastModified?: string | undefined;
1693
+ etag?: string | undefined;
1694
+ storageClass?: string | undefined;
1695
+ contentType?: string | undefined;
1696
+ metadata?: Record<string, string> | undefined;
1697
+ };
1698
+ meta: object;
1699
+ }>;
1700
+ downloadObject: import('@trpc/server').TRPCMutationProcedure<{
1701
+ input: {
1702
+ project_id: string;
1703
+ containerName: string;
1704
+ objectKey: string;
1705
+ filename: string;
1706
+ downloadId: string;
1707
+ };
1708
+ output: AsyncGenerator<{
1709
+ chunk: string;
1710
+ downloaded: number;
1711
+ total: number;
1712
+ contentType?: string;
1713
+ filename?: string;
1714
+ }, any, any>;
1715
+ meta: object;
1716
+ }>;
1717
+ watchDownloadProgress: import('@trpc/server').TRPCSubscriptionProcedure<{
1718
+ input: {
1719
+ project_id: string;
1720
+ downloadId: string;
1721
+ };
1722
+ output: AsyncIterable<{
1723
+ downloaded: number;
1724
+ total: number;
1725
+ percent: number;
1726
+ }, void, any>;
1727
+ meta: object;
1728
+ }>;
1729
+ }>>;
1730
+ versioning: import('@trpc/server').TRPCBuiltRouter<{
1731
+ ctx: import('../server/context').AuroraPortalContext;
1732
+ meta: object;
1733
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1734
+ transformer: false;
1735
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1736
+ getStatus: import('@trpc/server').TRPCQueryProcedure<{
1737
+ input: {
1738
+ project_id: string;
1739
+ bucket: string;
1740
+ };
1741
+ output: {
1742
+ status: "Enabled" | "Suspended" | "Unversioned";
1743
+ mfaDelete?: "Enabled" | "Disabled" | undefined;
1744
+ };
1745
+ meta: object;
1746
+ }>;
1747
+ setStatus: import('@trpc/server').TRPCMutationProcedure<{
1748
+ input: {
1749
+ project_id: string;
1750
+ bucket: string;
1751
+ status: "Enabled" | "Suspended";
1752
+ };
1753
+ output: {
1754
+ success: boolean;
1755
+ };
1756
+ meta: object;
1757
+ }>;
1758
+ listVersions: import('@trpc/server').TRPCQueryProcedure<{
1759
+ input: {
1760
+ project_id: string;
1761
+ bucket: string;
1762
+ prefix?: string | undefined;
1763
+ keyMarker?: string | undefined;
1764
+ versionIdMarker?: string | undefined;
1765
+ maxKeys?: number | undefined;
1766
+ };
1767
+ output: import('../server/Storage/routers/ceph/versioningRouter').ListVersionsOutput;
1768
+ meta: object;
1769
+ }>;
1770
+ listObjectVersions: import('@trpc/server').TRPCQueryProcedure<{
1771
+ input: {
1772
+ project_id: string;
1773
+ bucket: string;
1774
+ key: string;
1775
+ };
1776
+ output: {
1777
+ key: string;
1778
+ versionId: string;
1779
+ isLatest: boolean;
1780
+ lastModified: string;
1781
+ size: number;
1782
+ isDeleteMarker: boolean;
1783
+ storageClass?: string | undefined;
1784
+ owner?: {
1785
+ displayName?: string | undefined;
1786
+ id?: string | undefined;
1787
+ } | undefined;
1788
+ etag?: string | undefined;
1789
+ }[];
1790
+ meta: object;
1791
+ }>;
1792
+ deleteVersion: import('@trpc/server').TRPCMutationProcedure<{
1793
+ input: {
1794
+ project_id: string;
1795
+ bucket: string;
1796
+ key: string;
1797
+ versionId: string;
1798
+ };
1799
+ output: {
1800
+ success: boolean;
1801
+ };
1802
+ meta: object;
1803
+ }>;
1804
+ restoreVersion: import('@trpc/server').TRPCMutationProcedure<{
1805
+ input: {
1806
+ project_id: string;
1807
+ bucket: string;
1808
+ key: string;
1809
+ versionId: string;
1810
+ };
1811
+ output: {
1812
+ success: boolean;
1813
+ versionId: string;
1814
+ };
1815
+ meta: object;
1816
+ }>;
1817
+ checkDeletedContent: import('@trpc/server').TRPCQueryProcedure<{
1818
+ input: {
1819
+ project_id: string;
1820
+ bucket: string;
1821
+ folders: string[];
1822
+ };
1823
+ output: {
1824
+ prefix: string;
1825
+ hasDeletedContent: boolean;
1826
+ isFolderDeleted: boolean;
1827
+ }[];
1828
+ meta: object;
1829
+ }>;
1830
+ }>>;
1831
+ bucketPolicy: import('@trpc/server').TRPCBuiltRouter<{
1832
+ ctx: import('../server/context').AuroraPortalContext;
1833
+ meta: object;
1834
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1835
+ transformer: false;
1836
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1837
+ get: import('@trpc/server').TRPCQueryProcedure<{
1838
+ input: {
1839
+ project_id: string;
1840
+ bucketName: string;
1841
+ };
1842
+ output: {
1843
+ policy: {
1844
+ Version: string;
1845
+ Statement: {
1846
+ Effect: "Allow" | "Deny";
1847
+ Sid?: string | undefined;
1848
+ Principal?: string | {
1849
+ AWS?: string | string[] | undefined;
1850
+ Service?: string | string[] | undefined;
1851
+ Federated?: string | string[] | undefined;
1852
+ } | undefined;
1853
+ NotPrincipal?: string | {
1854
+ AWS?: string | string[] | undefined;
1855
+ Service?: string | string[] | undefined;
1856
+ Federated?: string | string[] | undefined;
1857
+ } | undefined;
1858
+ Action?: string | string[] | undefined;
1859
+ NotAction?: string | string[] | undefined;
1860
+ Resource?: string | string[] | undefined;
1861
+ NotResource?: string | string[] | undefined;
1862
+ Condition?: Record<string, Record<string, string | number | boolean | string[]>> | undefined;
1863
+ }[];
1864
+ Id?: string | undefined;
1865
+ } | null;
1866
+ policyText: string | null;
1867
+ };
1868
+ meta: object;
1869
+ }>;
1870
+ set: import('@trpc/server').TRPCMutationProcedure<{
1871
+ input: {
1872
+ project_id: string;
1873
+ bucketName: string;
1874
+ policy: string;
1875
+ };
1876
+ output: boolean;
1877
+ meta: object;
1878
+ }>;
1879
+ delete: import('@trpc/server').TRPCMutationProcedure<{
1880
+ input: {
1881
+ project_id: string;
1882
+ bucketName: string;
1883
+ };
1884
+ output: boolean;
1885
+ meta: object;
1886
+ }>;
1887
+ }>>;
1888
+ }>>;
1889
+ };
1890
+ }> & import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1891
+ compute: import('@trpc/server').TRPCBuiltRouter<{
1892
+ ctx: import('../server/context').AuroraPortalContext;
1893
+ meta: object;
1894
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
1895
+ transformer: false;
1896
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
1897
+ canUser: import('@trpc/server').TRPCQueryProcedure<{
1898
+ input: {
1899
+ project_id: string;
1900
+ permission: string | string[];
1901
+ };
1902
+ output: boolean[];
1903
+ meta: object;
1904
+ }>;
1905
+ getServerGroupsByProjectId: import('@trpc/server').TRPCQueryProcedure<{
1906
+ input: {
1907
+ project_id: string;
1908
+ };
1909
+ output: {
1910
+ id: string;
1911
+ name: string;
1912
+ policies?: string[] | undefined;
1913
+ policy?: string | undefined;
1914
+ members?: string[] | undefined;
1915
+ metadata?: Record<string, unknown> | undefined;
1916
+ project_id?: string | undefined;
1917
+ user_id?: string | undefined;
1918
+ created_at?: string | undefined;
1919
+ updated_at?: string | null | undefined;
1920
+ policy_details?: Record<string, unknown> | undefined;
1921
+ rules?: Record<string, unknown> | undefined;
1922
+ }[] | undefined;
1923
+ meta: object;
1924
+ }>;
1925
+ getKeypairsByProjectId: import('@trpc/server').TRPCQueryProcedure<{
1926
+ input: {
1927
+ project_id: string;
1928
+ };
1929
+ output: {
1930
+ name: string;
1931
+ public_key?: string | undefined;
1932
+ fingerprint?: string | undefined;
1933
+ type?: string | undefined;
1934
+ user_id?: string | null | undefined;
1935
+ created_at?: string | undefined;
1936
+ deleted?: boolean | undefined;
1937
+ deleted_at?: string | null | undefined;
1938
+ updated_at?: string | null | undefined;
1939
+ id?: number | undefined;
1940
+ private_key?: string | null | undefined;
1941
+ }[] | undefined;
1942
+ meta: object;
1943
+ }>;
1944
+ listImagesWithSearch: import('@trpc/server').TRPCQueryProcedure<{
1945
+ input: {
1946
+ project_id: string;
1947
+ sort_key?: "name" | "id" | "status" | "visibility" | "protected" | "container_format" | "disk_format" | "min_ram" | "min_disk" | "size" | "created_at" | "updated_at" | "owner" | undefined;
1948
+ sort_dir?: "asc" | "desc" | undefined;
1949
+ sort?: string | undefined;
1950
+ limit?: number | undefined;
1951
+ marker?: string | undefined;
1952
+ name?: string | undefined;
1953
+ status?: string | undefined;
1954
+ visibility?: "all" | "public" | "private" | "shared" | "community" | undefined;
1955
+ owner?: string | undefined;
1956
+ protected?: string | undefined;
1957
+ container_format?: string | undefined;
1958
+ disk_format?: string | undefined;
1959
+ size_min?: number | undefined;
1960
+ size_max?: number | undefined;
1961
+ min_ram?: number | undefined;
1962
+ min_disk?: number | undefined;
1963
+ tag?: string | undefined;
1964
+ os_type?: "linux" | "windows" | undefined;
1965
+ os_hidden?: boolean | undefined;
1966
+ member_status?: "all" | "pending" | "accepted" | "rejected" | undefined;
1967
+ created_at?: string | undefined;
1968
+ updated_at?: string | undefined;
1969
+ first?: string | undefined;
1970
+ next?: string | undefined;
1971
+ };
1972
+ output: {
1973
+ images: {
1974
+ [x: string]: unknown;
1975
+ id: string;
1976
+ name?: string | null | undefined;
1977
+ status?: string | undefined;
1978
+ visibility?: string | undefined;
1979
+ protected?: boolean | undefined;
1980
+ checksum?: string | null | undefined;
1981
+ container_format?: string | null | undefined;
1982
+ disk_format?: string | null | undefined;
1983
+ min_ram?: number | undefined;
1984
+ min_disk?: number | undefined;
1985
+ size?: number | null | undefined;
1986
+ virtual_size?: number | null | undefined;
1987
+ created_at?: string | undefined;
1988
+ updated_at?: string | undefined;
1989
+ deleted_at?: string | null | undefined;
1990
+ owner?: string | null | undefined;
1991
+ os_hidden?: boolean | undefined;
1992
+ os_hash_algo?: string | null | undefined;
1993
+ os_hash_value?: string | null | undefined;
1994
+ schema?: string | undefined;
1995
+ metadata?: Record<string, string> | undefined;
1996
+ file?: string | undefined;
1997
+ self?: string | undefined;
1998
+ tags?: string[] | undefined;
1999
+ direct_url?: string | null | undefined;
2000
+ hw_disk_bus?: string | null | undefined;
2001
+ hw_scsi_model?: string | null | undefined;
2002
+ hw_serial?: string | null | undefined;
2003
+ hw_qemu_guest_agent?: boolean | undefined;
2004
+ hw_vif_model?: string | null | undefined;
2005
+ hw_rng_model?: string | null | undefined;
2006
+ hw_machine_type?: string | null | undefined;
2007
+ os_type?: string | null | undefined;
2008
+ os_distro?: string | null | undefined;
2009
+ os_version?: string | null | undefined;
2010
+ os_require_quiesce?: boolean | undefined;
2011
+ links?: {
2012
+ href?: string | null | undefined;
2013
+ rel?: string | null | undefined;
2014
+ }[] | undefined;
2015
+ members?: string[] | undefined;
2016
+ locations?: {
2017
+ url: string;
2018
+ metadata?: Record<string, any> | undefined;
2019
+ }[] | undefined;
2020
+ }[];
2021
+ first?: string | undefined;
2022
+ next?: string | undefined;
2023
+ schema?: string | undefined;
2024
+ };
2025
+ meta: object;
2026
+ }>;
2027
+ listImagesWithPagination: import('@trpc/server').TRPCQueryProcedure<{
2028
+ input: {
2029
+ project_id: string;
2030
+ sort_key?: "name" | "id" | "status" | "visibility" | "protected" | "container_format" | "disk_format" | "min_ram" | "min_disk" | "size" | "created_at" | "updated_at" | "owner" | undefined;
2031
+ sort_dir?: "asc" | "desc" | undefined;
2032
+ sort?: string | undefined;
2033
+ limit?: number | undefined;
2034
+ marker?: string | undefined;
2035
+ name?: string | undefined;
2036
+ status?: string | undefined;
2037
+ visibility?: "all" | "public" | "private" | "shared" | "community" | undefined;
2038
+ owner?: string | undefined;
2039
+ protected?: string | undefined;
2040
+ container_format?: string | undefined;
2041
+ disk_format?: string | undefined;
2042
+ size_min?: number | undefined;
2043
+ size_max?: number | undefined;
2044
+ min_ram?: number | undefined;
2045
+ min_disk?: number | undefined;
2046
+ tag?: string | undefined;
2047
+ os_type?: "linux" | "windows" | undefined;
2048
+ os_hidden?: boolean | undefined;
2049
+ member_status?: "all" | "pending" | "accepted" | "rejected" | undefined;
2050
+ created_at?: string | undefined;
2051
+ updated_at?: string | undefined;
2052
+ first?: string | undefined;
2053
+ next?: string | undefined;
2054
+ };
2055
+ output: {
2056
+ images: {
2057
+ [x: string]: unknown;
2058
+ id: string;
2059
+ name?: string | null | undefined;
2060
+ status?: string | undefined;
2061
+ visibility?: string | undefined;
2062
+ protected?: boolean | undefined;
2063
+ checksum?: string | null | undefined;
2064
+ container_format?: string | null | undefined;
2065
+ disk_format?: string | null | undefined;
2066
+ min_ram?: number | undefined;
2067
+ min_disk?: number | undefined;
2068
+ size?: number | null | undefined;
2069
+ virtual_size?: number | null | undefined;
2070
+ created_at?: string | undefined;
2071
+ updated_at?: string | undefined;
2072
+ deleted_at?: string | null | undefined;
2073
+ owner?: string | null | undefined;
2074
+ os_hidden?: boolean | undefined;
2075
+ os_hash_algo?: string | null | undefined;
2076
+ os_hash_value?: string | null | undefined;
2077
+ schema?: string | undefined;
2078
+ metadata?: Record<string, string> | undefined;
2079
+ file?: string | undefined;
2080
+ self?: string | undefined;
2081
+ tags?: string[] | undefined;
2082
+ direct_url?: string | null | undefined;
2083
+ hw_disk_bus?: string | null | undefined;
2084
+ hw_scsi_model?: string | null | undefined;
2085
+ hw_serial?: string | null | undefined;
2086
+ hw_qemu_guest_agent?: boolean | undefined;
2087
+ hw_vif_model?: string | null | undefined;
2088
+ hw_rng_model?: string | null | undefined;
2089
+ hw_machine_type?: string | null | undefined;
2090
+ os_type?: string | null | undefined;
2091
+ os_distro?: string | null | undefined;
2092
+ os_version?: string | null | undefined;
2093
+ os_require_quiesce?: boolean | undefined;
2094
+ links?: {
2095
+ href?: string | null | undefined;
2096
+ rel?: string | null | undefined;
2097
+ }[] | undefined;
2098
+ members?: string[] | undefined;
2099
+ locations?: {
2100
+ url: string;
2101
+ metadata?: Record<string, any> | undefined;
2102
+ }[] | undefined;
2103
+ }[];
2104
+ first?: string | undefined;
2105
+ next?: string | undefined;
2106
+ schema?: string | undefined;
2107
+ };
2108
+ meta: object;
2109
+ }>;
2110
+ getImageById: import('@trpc/server').TRPCQueryProcedure<{
2111
+ input: {
2112
+ project_id: string;
2113
+ imageId: string;
2114
+ };
2115
+ output: {
2116
+ [x: string]: unknown;
2117
+ id: string;
2118
+ name?: string | null | undefined;
2119
+ status?: string | undefined;
2120
+ visibility?: string | undefined;
2121
+ protected?: boolean | undefined;
2122
+ checksum?: string | null | undefined;
2123
+ container_format?: string | null | undefined;
2124
+ disk_format?: string | null | undefined;
2125
+ min_ram?: number | undefined;
2126
+ min_disk?: number | undefined;
2127
+ size?: number | null | undefined;
2128
+ virtual_size?: number | null | undefined;
2129
+ created_at?: string | undefined;
2130
+ updated_at?: string | undefined;
2131
+ deleted_at?: string | null | undefined;
2132
+ owner?: string | null | undefined;
2133
+ os_hidden?: boolean | undefined;
2134
+ os_hash_algo?: string | null | undefined;
2135
+ os_hash_value?: string | null | undefined;
2136
+ schema?: string | undefined;
2137
+ metadata?: Record<string, string> | undefined;
2138
+ file?: string | undefined;
2139
+ self?: string | undefined;
2140
+ tags?: string[] | undefined;
2141
+ direct_url?: string | null | undefined;
2142
+ hw_disk_bus?: string | null | undefined;
2143
+ hw_scsi_model?: string | null | undefined;
2144
+ hw_serial?: string | null | undefined;
2145
+ hw_qemu_guest_agent?: boolean | undefined;
2146
+ hw_vif_model?: string | null | undefined;
2147
+ hw_rng_model?: string | null | undefined;
2148
+ hw_machine_type?: string | null | undefined;
2149
+ os_type?: string | null | undefined;
2150
+ os_distro?: string | null | undefined;
2151
+ os_version?: string | null | undefined;
2152
+ os_require_quiesce?: boolean | undefined;
2153
+ links?: {
2154
+ href?: string | null | undefined;
2155
+ rel?: string | null | undefined;
2156
+ }[] | undefined;
2157
+ members?: string[] | undefined;
2158
+ locations?: {
2159
+ url: string;
2160
+ metadata?: Record<string, any> | undefined;
2161
+ }[] | undefined;
2162
+ };
2163
+ meta: object;
2164
+ }>;
2165
+ createImage: import('@trpc/server').TRPCMutationProcedure<{
2166
+ input: {
2167
+ [x: string]: string;
2168
+ project_id: string;
2169
+ name?: string | undefined;
2170
+ id?: string | undefined;
2171
+ container_format?: string | undefined;
2172
+ disk_format?: string | undefined;
2173
+ visibility?: "public" | "private" | "shared" | "community" | undefined;
2174
+ protected?: boolean | undefined;
2175
+ min_ram?: number | undefined;
2176
+ min_disk?: number | undefined;
2177
+ tags?: string[] | undefined;
2178
+ os_type?: "linux" | "windows" | undefined;
2179
+ os_distro?: string | undefined;
2180
+ os_version?: string | undefined;
2181
+ architecture?: string | undefined;
2182
+ os_hidden?: boolean | undefined;
2183
+ hw_disk_bus?: string | undefined;
2184
+ hw_scsi_model?: string | undefined;
2185
+ hw_serial?: string | undefined;
2186
+ hw_qemu_guest_agent?: boolean | undefined;
2187
+ hw_vif_model?: string | undefined;
2188
+ hw_rng_model?: string | undefined;
2189
+ hw_machine_type?: string | undefined;
2190
+ };
2191
+ output: {
2192
+ [x: string]: unknown;
2193
+ id: string;
2194
+ name?: string | null | undefined;
2195
+ status?: string | undefined;
2196
+ visibility?: string | undefined;
2197
+ protected?: boolean | undefined;
2198
+ checksum?: string | null | undefined;
2199
+ container_format?: string | null | undefined;
2200
+ disk_format?: string | null | undefined;
2201
+ min_ram?: number | undefined;
2202
+ min_disk?: number | undefined;
2203
+ size?: number | null | undefined;
2204
+ virtual_size?: number | null | undefined;
2205
+ created_at?: string | undefined;
2206
+ updated_at?: string | undefined;
2207
+ deleted_at?: string | null | undefined;
2208
+ owner?: string | null | undefined;
2209
+ os_hidden?: boolean | undefined;
2210
+ os_hash_algo?: string | null | undefined;
2211
+ os_hash_value?: string | null | undefined;
2212
+ schema?: string | undefined;
2213
+ metadata?: Record<string, string> | undefined;
2214
+ file?: string | undefined;
2215
+ self?: string | undefined;
2216
+ tags?: string[] | undefined;
2217
+ direct_url?: string | null | undefined;
2218
+ hw_disk_bus?: string | null | undefined;
2219
+ hw_scsi_model?: string | null | undefined;
2220
+ hw_serial?: string | null | undefined;
2221
+ hw_qemu_guest_agent?: boolean | undefined;
2222
+ hw_vif_model?: string | null | undefined;
2223
+ hw_rng_model?: string | null | undefined;
2224
+ hw_machine_type?: string | null | undefined;
2225
+ os_type?: string | null | undefined;
2226
+ os_distro?: string | null | undefined;
2227
+ os_version?: string | null | undefined;
2228
+ os_require_quiesce?: boolean | undefined;
2229
+ links?: {
2230
+ href?: string | null | undefined;
2231
+ rel?: string | null | undefined;
2232
+ }[] | undefined;
2233
+ members?: string[] | undefined;
2234
+ locations?: {
2235
+ url: string;
2236
+ metadata?: Record<string, any> | undefined;
2237
+ }[] | undefined;
2238
+ };
2239
+ meta: object;
2240
+ }>;
2241
+ uploadImage: import('@trpc/server').TRPCMutationProcedure<{
2242
+ input: import('@trpc/server/unstable-core-do-not-import').OctetInput;
2243
+ output: {
2244
+ success: boolean;
2245
+ imageId: string;
2246
+ };
2247
+ meta: object;
2248
+ }>;
2249
+ watchUploadProgress: import('@trpc/server').TRPCSubscriptionProcedure<{
2250
+ input: {
2251
+ project_id: string;
2252
+ uploadId: string;
2253
+ };
2254
+ output: AsyncIterable<{
2255
+ percent: number;
2256
+ uploaded: number;
2257
+ total: number;
2258
+ }, void, any>;
2259
+ meta: object;
2260
+ }>;
2261
+ updateImage: import('@trpc/server').TRPCMutationProcedure<{
2262
+ input: {
2263
+ project_id: string;
2264
+ imageId: string;
2265
+ operations: {
2266
+ op: "replace" | "copy" | "move" | "add" | "remove" | "test";
2267
+ path: string;
2268
+ value?: any;
2269
+ from?: string | undefined;
2270
+ }[];
2271
+ };
2272
+ output: {
2273
+ [x: string]: unknown;
2274
+ id: string;
2275
+ name?: string | null | undefined;
2276
+ status?: string | undefined;
2277
+ visibility?: string | undefined;
2278
+ protected?: boolean | undefined;
2279
+ checksum?: string | null | undefined;
2280
+ container_format?: string | null | undefined;
2281
+ disk_format?: string | null | undefined;
2282
+ min_ram?: number | undefined;
2283
+ min_disk?: number | undefined;
2284
+ size?: number | null | undefined;
2285
+ virtual_size?: number | null | undefined;
2286
+ created_at?: string | undefined;
2287
+ updated_at?: string | undefined;
2288
+ deleted_at?: string | null | undefined;
2289
+ owner?: string | null | undefined;
2290
+ os_hidden?: boolean | undefined;
2291
+ os_hash_algo?: string | null | undefined;
2292
+ os_hash_value?: string | null | undefined;
2293
+ schema?: string | undefined;
2294
+ metadata?: Record<string, string> | undefined;
2295
+ file?: string | undefined;
2296
+ self?: string | undefined;
2297
+ tags?: string[] | undefined;
2298
+ direct_url?: string | null | undefined;
2299
+ hw_disk_bus?: string | null | undefined;
2300
+ hw_scsi_model?: string | null | undefined;
2301
+ hw_serial?: string | null | undefined;
2302
+ hw_qemu_guest_agent?: boolean | undefined;
2303
+ hw_vif_model?: string | null | undefined;
2304
+ hw_rng_model?: string | null | undefined;
2305
+ hw_machine_type?: string | null | undefined;
2306
+ os_type?: string | null | undefined;
2307
+ os_distro?: string | null | undefined;
2308
+ os_version?: string | null | undefined;
2309
+ os_require_quiesce?: boolean | undefined;
2310
+ links?: {
2311
+ href?: string | null | undefined;
2312
+ rel?: string | null | undefined;
2313
+ }[] | undefined;
2314
+ members?: string[] | undefined;
2315
+ locations?: {
2316
+ url: string;
2317
+ metadata?: Record<string, any> | undefined;
2318
+ }[] | undefined;
2319
+ };
2320
+ meta: object;
2321
+ }>;
2322
+ updateImageVisibility: import('@trpc/server').TRPCMutationProcedure<{
2323
+ input: {
2324
+ project_id: string;
2325
+ imageId: string;
2326
+ visibility: "public" | "private" | "shared" | "community";
2327
+ };
2328
+ output: {
2329
+ [x: string]: unknown;
2330
+ id: string;
2331
+ name?: string | null | undefined;
2332
+ status?: string | undefined;
2333
+ visibility?: string | undefined;
2334
+ protected?: boolean | undefined;
2335
+ checksum?: string | null | undefined;
2336
+ container_format?: string | null | undefined;
2337
+ disk_format?: string | null | undefined;
2338
+ min_ram?: number | undefined;
2339
+ min_disk?: number | undefined;
2340
+ size?: number | null | undefined;
2341
+ virtual_size?: number | null | undefined;
2342
+ created_at?: string | undefined;
2343
+ updated_at?: string | undefined;
2344
+ deleted_at?: string | null | undefined;
2345
+ owner?: string | null | undefined;
2346
+ os_hidden?: boolean | undefined;
2347
+ os_hash_algo?: string | null | undefined;
2348
+ os_hash_value?: string | null | undefined;
2349
+ schema?: string | undefined;
2350
+ metadata?: Record<string, string> | undefined;
2351
+ file?: string | undefined;
2352
+ self?: string | undefined;
2353
+ tags?: string[] | undefined;
2354
+ direct_url?: string | null | undefined;
2355
+ hw_disk_bus?: string | null | undefined;
2356
+ hw_scsi_model?: string | null | undefined;
2357
+ hw_serial?: string | null | undefined;
2358
+ hw_qemu_guest_agent?: boolean | undefined;
2359
+ hw_vif_model?: string | null | undefined;
2360
+ hw_rng_model?: string | null | undefined;
2361
+ hw_machine_type?: string | null | undefined;
2362
+ os_type?: string | null | undefined;
2363
+ os_distro?: string | null | undefined;
2364
+ os_version?: string | null | undefined;
2365
+ os_require_quiesce?: boolean | undefined;
2366
+ links?: {
2367
+ href?: string | null | undefined;
2368
+ rel?: string | null | undefined;
2369
+ }[] | undefined;
2370
+ members?: string[] | undefined;
2371
+ locations?: {
2372
+ url: string;
2373
+ metadata?: Record<string, any> | undefined;
2374
+ }[] | undefined;
2375
+ };
2376
+ meta: object;
2377
+ }>;
2378
+ deleteImage: import('@trpc/server').TRPCMutationProcedure<{
2379
+ input: {
2380
+ project_id: string;
2381
+ imageId: string;
2382
+ };
2383
+ output: boolean;
2384
+ meta: object;
2385
+ }>;
2386
+ deactivateImage: import('@trpc/server').TRPCMutationProcedure<{
2387
+ input: {
2388
+ project_id: string;
2389
+ imageId: string;
2390
+ };
2391
+ output: boolean;
2392
+ meta: object;
2393
+ }>;
2394
+ reactivateImage: import('@trpc/server').TRPCMutationProcedure<{
2395
+ input: {
2396
+ project_id: string;
2397
+ imageId: string;
2398
+ };
2399
+ output: boolean;
2400
+ meta: object;
2401
+ }>;
2402
+ listImageMembers: import('@trpc/server').TRPCQueryProcedure<{
2403
+ input: {
2404
+ project_id: string;
2405
+ imageId: string;
2406
+ };
2407
+ output: {
2408
+ member_id: string;
2409
+ image_id: string;
2410
+ status: "pending" | "accepted" | "rejected";
2411
+ created_at: string;
2412
+ updated_at: string;
2413
+ schema?: string | undefined;
2414
+ }[];
2415
+ meta: object;
2416
+ }>;
2417
+ getImageMember: import('@trpc/server').TRPCQueryProcedure<{
2418
+ input: {
2419
+ project_id: string;
2420
+ imageId: string;
2421
+ memberId: string;
2422
+ };
2423
+ output: {
2424
+ member_id: string;
2425
+ image_id: string;
2426
+ status: "pending" | "accepted" | "rejected";
2427
+ created_at: string;
2428
+ updated_at: string;
2429
+ schema?: string | undefined;
2430
+ };
2431
+ meta: object;
2432
+ }>;
2433
+ createImageMember: import('@trpc/server').TRPCMutationProcedure<{
2434
+ input: {
2435
+ project_id: string;
2436
+ imageId: string;
2437
+ member: string;
2438
+ };
2439
+ output: {
2440
+ member_id: string;
2441
+ image_id: string;
2442
+ status: "pending" | "accepted" | "rejected";
2443
+ created_at: string;
2444
+ updated_at: string;
2445
+ schema?: string | undefined;
2446
+ };
2447
+ meta: object;
2448
+ }>;
2449
+ updateImageMember: import('@trpc/server').TRPCMutationProcedure<{
2450
+ input: {
2451
+ project_id: string;
2452
+ imageId: string;
2453
+ memberId: string;
2454
+ status: "pending" | "accepted" | "rejected";
2455
+ };
2456
+ output: {
2457
+ member_id: string;
2458
+ image_id: string;
2459
+ status: "pending" | "accepted" | "rejected";
2460
+ created_at: string;
2461
+ updated_at: string;
2462
+ schema?: string | undefined;
2463
+ };
2464
+ meta: object;
2465
+ }>;
2466
+ deleteImageMember: import('@trpc/server').TRPCMutationProcedure<{
2467
+ input: {
2468
+ project_id: string;
2469
+ imageId: string;
2470
+ memberId: string;
2471
+ };
2472
+ output: boolean;
2473
+ meta: object;
2474
+ }>;
2475
+ deleteImages: import('@trpc/server').TRPCMutationProcedure<{
2476
+ input: {
2477
+ project_id: string;
2478
+ imageIds: string[];
2479
+ };
2480
+ output: {
2481
+ successful: string[];
2482
+ failed: {
2483
+ imageId: string;
2484
+ error: string;
2485
+ }[];
2486
+ };
2487
+ meta: object;
2488
+ }>;
2489
+ activateImages: import('@trpc/server').TRPCMutationProcedure<{
2490
+ input: {
2491
+ project_id: string;
2492
+ imageIds: string[];
2493
+ };
2494
+ output: {
2495
+ successful: string[];
2496
+ failed: {
2497
+ imageId: string;
2498
+ error: string;
2499
+ }[];
2500
+ };
2501
+ meta: object;
2502
+ }>;
2503
+ deactivateImages: import('@trpc/server').TRPCMutationProcedure<{
2504
+ input: {
2505
+ project_id: string;
2506
+ imageIds: string[];
2507
+ };
2508
+ output: {
2509
+ successful: string[];
2510
+ failed: {
2511
+ imageId: string;
2512
+ error: string;
2513
+ }[];
2514
+ };
2515
+ meta: object;
2516
+ }>;
2517
+ listSharedImagesByMemberStatus: import('@trpc/server').TRPCQueryProcedure<{
2518
+ input: {
2519
+ project_id: string;
2520
+ memberStatus: "pending" | "accepted" | "rejected";
2521
+ name?: string | undefined;
2522
+ status?: string | undefined;
2523
+ disk_format?: string | undefined;
2524
+ container_format?: string | undefined;
2525
+ protected?: string | undefined;
2526
+ sort?: string | undefined;
2527
+ };
2528
+ output: {
2529
+ [x: string]: unknown;
2530
+ id: string;
2531
+ name?: string | null | undefined;
2532
+ status?: string | undefined;
2533
+ visibility?: string | undefined;
2534
+ protected?: boolean | undefined;
2535
+ checksum?: string | null | undefined;
2536
+ container_format?: string | null | undefined;
2537
+ disk_format?: string | null | undefined;
2538
+ min_ram?: number | undefined;
2539
+ min_disk?: number | undefined;
2540
+ size?: number | null | undefined;
2541
+ virtual_size?: number | null | undefined;
2542
+ created_at?: string | undefined;
2543
+ updated_at?: string | undefined;
2544
+ deleted_at?: string | null | undefined;
2545
+ owner?: string | null | undefined;
2546
+ os_hidden?: boolean | undefined;
2547
+ os_hash_algo?: string | null | undefined;
2548
+ os_hash_value?: string | null | undefined;
2549
+ schema?: string | undefined;
2550
+ metadata?: Record<string, string> | undefined;
2551
+ file?: string | undefined;
2552
+ self?: string | undefined;
2553
+ tags?: string[] | undefined;
2554
+ direct_url?: string | null | undefined;
2555
+ hw_disk_bus?: string | null | undefined;
2556
+ hw_scsi_model?: string | null | undefined;
2557
+ hw_serial?: string | null | undefined;
2558
+ hw_qemu_guest_agent?: boolean | undefined;
2559
+ hw_vif_model?: string | null | undefined;
2560
+ hw_rng_model?: string | null | undefined;
2561
+ hw_machine_type?: string | null | undefined;
2562
+ os_type?: string | null | undefined;
2563
+ os_distro?: string | null | undefined;
2564
+ os_version?: string | null | undefined;
2565
+ os_require_quiesce?: boolean | undefined;
2566
+ links?: {
2567
+ href?: string | null | undefined;
2568
+ rel?: string | null | undefined;
2569
+ }[] | undefined;
2570
+ members?: string[] | undefined;
2571
+ locations?: {
2572
+ url: string;
2573
+ metadata?: Record<string, any> | undefined;
2574
+ }[] | undefined;
2575
+ }[];
2576
+ meta: object;
2577
+ }>;
2578
+ getImageMetadataExcludedProperties: import('@trpc/server').TRPCQueryProcedure<{
2579
+ input: {
2580
+ project_id: string;
2581
+ };
2582
+ output: string[];
2583
+ meta: object;
2584
+ }>;
2585
+ getFlavorById: import('@trpc/server').TRPCQueryProcedure<{
2586
+ input: {
2587
+ project_id: string;
2588
+ flavorId: string;
2589
+ };
2590
+ output: {
2591
+ id: string;
2592
+ name: string;
2593
+ vcpus: number;
2594
+ ram: number;
2595
+ disk: number;
2596
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
2597
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
2598
+ "os-flavor-access:is_public"?: boolean | undefined;
2599
+ swap?: string | number | undefined;
2600
+ rxtx_factor?: number | undefined;
2601
+ description?: string | null | undefined;
2602
+ links?: {
2603
+ href?: string | null | undefined;
2604
+ rel?: string | null | undefined;
2605
+ }[] | undefined;
2606
+ extra_specs?: Record<string, string> | undefined;
2607
+ };
2608
+ meta: object;
2609
+ }>;
2610
+ getFlavorsByProjectId: import('@trpc/server').TRPCQueryProcedure<{
2611
+ input: {
2612
+ project_id: string;
2613
+ sortBy?: string | undefined;
2614
+ sortDirection?: string | undefined;
2615
+ searchTerm?: string | undefined;
2616
+ };
2617
+ output: {
2618
+ flavors: {
2619
+ id: string;
2620
+ name: string;
2621
+ vcpus: number;
2622
+ ram: number;
2623
+ disk: number;
2624
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
2625
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
2626
+ "os-flavor-access:is_public"?: boolean | undefined;
2627
+ swap?: string | number | undefined;
2628
+ rxtx_factor?: number | undefined;
2629
+ description?: string | null | undefined;
2630
+ links?: {
2631
+ href?: string | null | undefined;
2632
+ rel?: string | null | undefined;
2633
+ }[] | undefined;
2634
+ extra_specs?: Record<string, string> | undefined;
2635
+ }[];
2636
+ privateFlavorError: string | undefined;
2637
+ };
2638
+ meta: object;
2639
+ }>;
2640
+ createFlavor: import('@trpc/server').TRPCMutationProcedure<{
2641
+ input: {
2642
+ project_id: string;
2643
+ flavor: {
2644
+ name: string;
2645
+ vcpus: number;
2646
+ ram: number;
2647
+ disk: number;
2648
+ id?: string | undefined;
2649
+ swap?: number | undefined;
2650
+ rxtx_factor?: number | undefined;
2651
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
2652
+ "os-flavor-access:is_public"?: boolean | undefined;
2653
+ };
2654
+ };
2655
+ output: {
2656
+ id: string;
2657
+ name: string;
2658
+ vcpus: number;
2659
+ ram: number;
2660
+ disk: number;
2661
+ "OS-FLV-DISABLED:disabled"?: boolean | undefined;
2662
+ "OS-FLV-EXT-DATA:ephemeral"?: number | undefined;
2663
+ "os-flavor-access:is_public"?: boolean | undefined;
2664
+ swap?: string | number | undefined;
2665
+ rxtx_factor?: number | undefined;
2666
+ description?: string | null | undefined;
2667
+ links?: {
2668
+ href?: string | null | undefined;
2669
+ rel?: string | null | undefined;
2670
+ }[] | undefined;
2671
+ extra_specs?: Record<string, string> | undefined;
2672
+ };
2673
+ meta: object;
2674
+ }>;
2675
+ deleteFlavor: import('@trpc/server').TRPCMutationProcedure<{
2676
+ input: {
2677
+ project_id: string;
2678
+ flavorId: string;
2679
+ };
2680
+ output: {
2681
+ success: boolean;
2682
+ message: string;
2683
+ };
2684
+ meta: object;
2685
+ }>;
2686
+ createExtraSpecs: import('@trpc/server').TRPCMutationProcedure<{
2687
+ input: {
2688
+ project_id: string;
2689
+ flavorId: string;
2690
+ extra_specs: Record<string, string>;
2691
+ };
2692
+ output: Record<string, string>;
2693
+ meta: object;
2694
+ }>;
2695
+ getExtraSpecs: import('@trpc/server').TRPCQueryProcedure<{
2696
+ input: {
2697
+ project_id: string;
2698
+ flavorId: string;
2699
+ };
2700
+ output: Record<string, string>;
2701
+ meta: object;
2702
+ }>;
2703
+ deleteExtraSpec: import('@trpc/server').TRPCMutationProcedure<{
2704
+ input: {
2705
+ project_id: string;
2706
+ flavorId: string;
2707
+ key: string;
2708
+ };
2709
+ output: {
2710
+ success: boolean;
2711
+ message: string;
2712
+ };
2713
+ meta: object;
2714
+ }>;
2715
+ getFlavorAccess: import('@trpc/server').TRPCQueryProcedure<{
2716
+ input: {
2717
+ project_id: string;
2718
+ flavorId: string;
2719
+ };
2720
+ output: import('../server/Compute/helpers/flavorHelpers').FlavorAccess[];
2721
+ meta: object;
2722
+ }>;
2723
+ addTenantAccess: import('@trpc/server').TRPCMutationProcedure<{
2724
+ input: {
2725
+ project_id: string;
2726
+ flavorId: string;
2727
+ targetProjectId: string;
2728
+ };
2729
+ output: import('../server/Compute/helpers/flavorHelpers').FlavorAccess[];
2730
+ meta: object;
2731
+ }>;
2732
+ removeTenantAccess: import('@trpc/server').TRPCMutationProcedure<{
2733
+ input: {
2734
+ project_id: string;
2735
+ flavorId: string;
2736
+ targetProjectId: string;
2737
+ };
2738
+ output: import('../server/Compute/helpers/flavorHelpers').FlavorAccess[];
2739
+ meta: object;
2740
+ }>;
2741
+ getServersByProjectId: import('@trpc/server').TRPCQueryProcedure<{
2742
+ input: {
2743
+ project_id: string;
2744
+ };
2745
+ output: {
2746
+ [x: string]: unknown;
2747
+ id: string;
2748
+ accessIPv4?: string | null | undefined;
2749
+ accessIPv6?: string | null | undefined;
2750
+ addresses?: Record<string, {
2751
+ addr?: string | undefined;
2752
+ mac_addr?: string | undefined;
2753
+ type?: string | undefined;
2754
+ version?: number | undefined;
2755
+ }[]> | undefined;
2756
+ created?: string | null | undefined;
2757
+ description?: string | null | undefined;
2758
+ flavor?: {
2759
+ disk?: number | undefined;
2760
+ ephemeral?: number | undefined;
2761
+ extra_specs?: Record<string, any> | undefined;
2762
+ original_name?: string | undefined;
2763
+ ram?: number | undefined;
2764
+ swap?: number | undefined;
2765
+ vcpus?: number | undefined;
2766
+ } | undefined;
2767
+ hostId?: string | undefined;
2768
+ host_status?: "" | "UP" | "DOWN" | "UNKNOWN" | "MAINTENANCE" | undefined;
2769
+ image?: string | {
2770
+ id?: string | null | undefined;
2771
+ links?: {
2772
+ href?: string | null | undefined;
2773
+ rel?: string | null | undefined;
2774
+ }[] | undefined;
2775
+ } | null | undefined;
2776
+ key_name?: string | null | undefined;
2777
+ links?: {
2778
+ href?: string | null | undefined;
2779
+ rel?: string | null | undefined;
2780
+ }[] | undefined;
2781
+ locked?: boolean | undefined;
2782
+ locked_reason?: string | null | undefined;
2783
+ metadata?: Record<string, string> | undefined;
2784
+ name?: string | null | undefined;
2785
+ "OS-DCF:diskConfig"?: "AUTO" | "MANUAL" | undefined;
2786
+ "OS-EXT-AZ:availability_zone"?: string | null | undefined;
2787
+ "OS-EXT-SRV-ATTR:host"?: string | null | undefined;
2788
+ "OS-EXT-SRV-ATTR:hostname"?: string | null | undefined;
2789
+ "OS-EXT-SRV-ATTR:hypervisor_hostname"?: string | null | undefined;
2790
+ "OS-EXT-SRV-ATTR:instance_name"?: string | null | undefined;
2791
+ "OS-EXT-SRV-ATTR:kernel_id"?: string | null | undefined;
2792
+ "OS-EXT-SRV-ATTR:launch_index"?: number | undefined;
2793
+ "OS-EXT-SRV-ATTR:ramdisk_id"?: string | null | undefined;
2794
+ "OS-EXT-SRV-ATTR:reservation_id"?: string | null | undefined;
2795
+ "OS-EXT-SRV-ATTR:root_device_name"?: string | null | undefined;
2796
+ "OS-EXT-SRV-ATTR:user_data"?: string | null | undefined;
2797
+ "OS-EXT-STS:power_state"?: number | undefined;
2798
+ "OS-EXT-STS:task_state"?: string | null | undefined;
2799
+ "OS-EXT-STS:vm_state"?: string | null | undefined;
2800
+ OS_EXT_SRV_ATTR_host?: string | undefined;
2801
+ OS_EXT_STS_task_state?: string | undefined;
2802
+ OS_EXT_STS_vm_state?: string | undefined;
2803
+ progress?: number | undefined;
2804
+ status?: string | undefined;
2805
+ tags?: string[] | undefined;
2806
+ tenant_id?: string | null | undefined;
2807
+ updated?: string | null | undefined;
2808
+ }[] | undefined;
2809
+ meta: object;
2810
+ }>;
2811
+ }>>;
2812
+ }> & import('@trpc/server').TRPCDecorateCreateRouterOptions<{
2813
+ auth: import('@trpc/server').TRPCBuiltRouter<{
2814
+ ctx: import('../server/context').AuroraPortalContext;
2815
+ meta: object;
2816
+ errorShape: import('@trpc/server').TRPCDefaultErrorShape;
2817
+ transformer: false;
2818
+ }, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
2819
+ getCurrentUserSession: import('@trpc/server').TRPCQueryProcedure<{
2820
+ input: void;
2821
+ output: {
2822
+ application_credential?: {
2823
+ id: string;
2824
+ name: string;
2825
+ restricted: boolean;
2826
+ };
2827
+ audit_ids?: string[];
2828
+ catalog?: {
2829
+ endpoints: {
2830
+ id: string;
2831
+ interface: string;
2832
+ region: string;
2833
+ region_id: string;
2834
+ url: string;
2835
+ }[];
2836
+ type: string;
2837
+ id: string;
2838
+ name: string;
2839
+ }[];
2840
+ expires_at: string;
2841
+ issued_at: string;
2842
+ methods: string[];
2843
+ roles: {
2844
+ id: string;
2845
+ name: string;
2846
+ }[];
2847
+ system: {
2848
+ all: boolean;
2849
+ };
2850
+ project?: {
2851
+ domain?: {
2852
+ id?: string;
2853
+ name?: string;
2854
+ };
2855
+ id?: string;
2856
+ name?: string;
2857
+ };
2858
+ domain?: {
2859
+ id?: string;
2860
+ name?: string;
2861
+ };
2862
+ user: {
2863
+ domain: {
2864
+ id: string;
2865
+ name: string;
2866
+ };
2867
+ id: string;
2868
+ name: string;
2869
+ password_expires_at: string;
2870
+ };
2871
+ } | null;
2872
+ meta: object;
2873
+ }>;
2874
+ getAuthToken: import('@trpc/server').TRPCQueryProcedure<{
2875
+ input: void;
2876
+ output: string | null;
2877
+ meta: object;
2878
+ }>;
2879
+ getCurrentScope: import('@trpc/server').TRPCQueryProcedure<{
2880
+ input: void;
2881
+ output: {
2882
+ project: {
2883
+ domain?: {
2884
+ id?: string;
2885
+ name?: string;
2886
+ };
2887
+ id?: string;
2888
+ name?: string;
2889
+ } | undefined;
2890
+ domain: {
2891
+ id?: string;
2892
+ name?: string;
2893
+ } | undefined;
2894
+ } | null;
2895
+ meta: object;
2896
+ }>;
2897
+ setCurrentScope: import('@trpc/server').TRPCMutationProcedure<{
2898
+ input: {
2899
+ type: "domain";
2900
+ domainId: string;
2901
+ } | {
2902
+ type: "project";
2903
+ projectId: string;
2904
+ } | {
2905
+ type: "unscoped";
2906
+ value: string;
2907
+ };
2908
+ output: {
2909
+ project: null;
2910
+ domain: {
2911
+ id?: string;
2912
+ name?: string;
2913
+ } | undefined;
2914
+ } | {
2915
+ project: {
2916
+ domain?: {
2917
+ id?: string;
2918
+ name?: string;
2919
+ };
2920
+ id?: string;
2921
+ name?: string;
2922
+ } | undefined;
2923
+ domain: {
2924
+ id?: string;
2925
+ name?: string;
2926
+ } | undefined;
2927
+ } | {
2928
+ project: null;
2929
+ domain: null;
2930
+ };
2931
+ meta: object;
2932
+ }>;
2933
+ createUserSession: import('@trpc/server').TRPCMutationProcedure<{
2934
+ input: {
2935
+ user: string;
2936
+ password: string;
2937
+ domainName: string;
2938
+ };
2939
+ output: {
2940
+ application_credential?: {
2941
+ id: string;
2942
+ name: string;
2943
+ restricted: boolean;
2944
+ };
2945
+ audit_ids?: string[];
2946
+ catalog?: {
2947
+ endpoints: {
2948
+ id: string;
2949
+ interface: string;
2950
+ region: string;
2951
+ region_id: string;
2952
+ url: string;
2953
+ }[];
2954
+ type: string;
2955
+ id: string;
2956
+ name: string;
2957
+ }[];
2958
+ expires_at: string;
2959
+ issued_at: string;
2960
+ methods: string[];
2961
+ roles: {
2962
+ id: string;
2963
+ name: string;
2964
+ }[];
2965
+ system: {
2966
+ all: boolean;
2967
+ };
2968
+ project?: {
2969
+ domain?: {
2970
+ id?: string;
2971
+ name?: string;
2972
+ };
2973
+ id?: string;
2974
+ name?: string;
2975
+ };
2976
+ domain?: {
2977
+ id?: string;
2978
+ name?: string;
2979
+ };
2980
+ user: {
2981
+ domain: {
2982
+ id: string;
2983
+ name: string;
2984
+ };
2985
+ id: string;
2986
+ name: string;
2987
+ password_expires_at: string;
2988
+ };
2989
+ };
2990
+ meta: object;
2991
+ }>;
2992
+ terminateUserSession: import('@trpc/server').TRPCMutationProcedure<{
2993
+ input: void;
2994
+ output: void;
2995
+ meta: object;
2996
+ }>;
2997
+ getAvailableServices: import('@trpc/server').TRPCQueryProcedure<{
2998
+ input: void;
2999
+ output: {
3000
+ name: string;
3001
+ type: string;
3002
+ }[];
3003
+ meta: object;
3004
+ }>;
3005
+ }>>;
3006
+ }>>>;
3007
+ export declare const trpcClient: TrpcClient;