@keboola/api-fixtures 22.0.0 → 27.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,637 +1,213 @@
1
- import * as _keboola_api_client_apps_types from '@keboola/api-client/apps/types';
2
- import { App, Deployment, AppRun } from '@keboola/api-client/apps/types';
3
- import * as _keboola_api_client_storage_types from '@keboola/api-client/storage/types';
4
- import { TableDetail } from '@keboola/api-client/storage/types';
5
- export { Table, TableDetail } from '@keboola/api-client/storage/types';
6
-
7
- declare const fixtures: {
8
- storage: {
9
- tables: {
10
- getTable: () => _keboola_api_client_storage_types.TableDetail;
11
- listTables: () => _keboola_api_client_storage_types.TableDetail[];
12
- fixtures: {
13
- fresh: {
14
- id: string;
15
- name: string;
16
- displayName: string;
17
- primaryKey: string[];
18
- metadata: never[];
19
- columns: string[];
20
- columnMetadata: {};
21
- attributes: never[];
22
- bucket: {
23
- id: string;
24
- name: string;
25
- displayName: string;
26
- stage: "in";
27
- description: string;
28
- created: string;
29
- lastChangeDate: string;
30
- isMaintenance: boolean;
31
- isReadOnly: boolean;
32
- isSnowflakeSharedDatabase: boolean;
33
- hasExternalSchema: boolean;
34
- rowsCount: number;
35
- dataSizeBytes: number;
36
- uri: string;
37
- backend: "snowflake";
38
- backendPath: never[];
39
- databaseName: null;
40
- color: null;
41
- idBranch: number;
42
- owner: null;
43
- sharing: null;
44
- path: string;
45
- tables: string;
46
- updated: string;
47
- };
48
- isTyped: false;
49
- isAlias: false;
50
- };
51
- recentlyUpdated: {
52
- id: string;
53
- name: string;
54
- displayName: string;
55
- primaryKey: string[];
56
- metadata: {
57
- id: string;
58
- key: string;
59
- value: string;
60
- provider: string;
61
- timestamp: string;
62
- }[];
63
- columns: string[];
64
- columnMetadata: {
65
- order_id: {
66
- id: string;
67
- key: string;
68
- value: string;
69
- provider: string;
70
- timestamp: string;
71
- }[];
72
- };
73
- attributes: never[];
74
- bucket: {
75
- id: string;
76
- name: string;
77
- displayName: string;
78
- stage: "in";
79
- description: string;
80
- created: string;
81
- lastChangeDate: string;
82
- isMaintenance: boolean;
83
- isReadOnly: boolean;
84
- isSnowflakeSharedDatabase: boolean;
85
- hasExternalSchema: boolean;
86
- rowsCount: number;
87
- dataSizeBytes: number;
88
- uri: string;
89
- backend: "snowflake";
90
- backendPath: never[];
91
- databaseName: null;
92
- color: null;
93
- idBranch: number;
94
- owner: null;
95
- sharing: null;
96
- path: string;
97
- tables: string;
98
- updated: string;
99
- };
100
- isTyped: false;
101
- isAlias: false;
102
- };
103
- large: {
104
- id: string;
105
- name: string;
106
- displayName: string;
107
- primaryKey: never[];
108
- metadata: never[];
109
- columns: string[];
110
- columnMetadata: {};
111
- attributes: never[];
112
- bucket: {
113
- id: string;
114
- name: string;
115
- displayName: string;
116
- stage: "in";
117
- description: string;
118
- created: string;
119
- lastChangeDate: string;
120
- isMaintenance: boolean;
121
- isReadOnly: boolean;
122
- isSnowflakeSharedDatabase: boolean;
123
- hasExternalSchema: boolean;
124
- rowsCount: number;
125
- dataSizeBytes: number;
126
- uri: string;
127
- backend: "snowflake";
128
- backendPath: never[];
129
- databaseName: null;
130
- color: null;
131
- idBranch: number;
132
- owner: null;
133
- sharing: null;
134
- path: string;
135
- tables: string;
136
- updated: string;
137
- };
138
- isTyped: false;
139
- isAlias: false;
140
- };
141
- };
142
- };
1
+ import { ServiceId } from "@keboola/api-client/constants";
2
+ import { App, AppRun, Deployment } from "@keboola/api-client/apps/types";
3
+ import { AdminVendor, App as App$1, AppChange, ServiceAccount, User, Vendor, VendorListItem } from "@keboola/api-client/developerPortal/types";
4
+ import { DevBranch, StackInfo, StorageToken, Table, TableDetail } from "@keboola/api-client/storage/types";
5
+ //#region src/clients/apps/apps.d.ts
6
+ declare const appFixtures: {
7
+ neverDeployed: {
8
+ id: string;
9
+ projectId: string;
10
+ componentId: string;
11
+ branchId: string;
12
+ configId: string;
13
+ type: 'streamlit';
14
+ mode: 'prod';
15
+ url: string;
16
+ configVersion: string;
17
+ production: {
18
+ desiredNumber: null;
19
+ desiredId: null;
20
+ actualNumber: null;
21
+ actualId: null;
143
22
  };
144
- apps: {
145
- apps: {
146
- getApp: () => _keboola_api_client_apps_types.App;
147
- listApps: () => _keboola_api_client_apps_types.App[];
148
- fixtures: {
149
- neverDeployed: {
150
- configVersion: string;
151
- production: {
152
- desiredNumber: null;
153
- desiredId: null;
154
- actualNumber: null;
155
- actualId: null;
156
- };
157
- undeployedChanges: false;
158
- state: "NOT_DEPLOYED";
159
- id: string;
160
- projectId: string;
161
- componentId: string;
162
- branchId: string;
163
- configId: string;
164
- type: "streamlit";
165
- mode: "prod";
166
- url: string;
167
- };
168
- legacyV1Serving: {
169
- id: string;
170
- projectId: string;
171
- componentId: string;
172
- branchId: string;
173
- configId: string;
174
- configVersion: string;
175
- type: "streamlit";
176
- mode: "dev";
177
- url: string;
178
- production: {
179
- desiredNumber: null;
180
- desiredId: null;
181
- actualNumber: null;
182
- actualId: null;
183
- };
184
- undeployedChanges: false;
185
- state: "NOT_DEPLOYED";
186
- };
187
- running: {
188
- configVersion: string;
189
- production: {
190
- desiredNumber: number;
191
- desiredId: string;
192
- actualNumber: number;
193
- actualId: string;
194
- };
195
- undeployedChanges: false;
196
- state: "RUNNING";
197
- id: string;
198
- projectId: string;
199
- componentId: string;
200
- branchId: string;
201
- configId: string;
202
- type: "streamlit";
203
- mode: "prod";
204
- url: string;
205
- };
206
- undeployedChanges: {
207
- configVersion: string;
208
- production: {
209
- desiredNumber: number;
210
- desiredId: string;
211
- actualNumber: number;
212
- actualId: string;
213
- };
214
- undeployedChanges: true;
215
- state: "RUNNING";
216
- id: string;
217
- projectId: string;
218
- componentId: string;
219
- branchId: string;
220
- configId: string;
221
- type: "streamlit";
222
- mode: "prod";
223
- url: string;
224
- };
225
- promoting: {
226
- configVersion: string;
227
- production: {
228
- desiredNumber: number;
229
- desiredId: string;
230
- actualNumber: number;
231
- actualId: string;
232
- };
233
- undeployedChanges: true;
234
- state: "RUNNING";
235
- id: string;
236
- projectId: string;
237
- componentId: string;
238
- branchId: string;
239
- configId: string;
240
- type: "streamlit";
241
- mode: "prod";
242
- url: string;
243
- };
244
- sleeping: {
245
- configVersion: string;
246
- production: {
247
- desiredNumber: number;
248
- desiredId: string;
249
- actualNumber: number;
250
- actualId: string;
251
- };
252
- undeployedChanges: false;
253
- state: "SLEEPING";
254
- id: string;
255
- projectId: string;
256
- componentId: string;
257
- branchId: string;
258
- configId: string;
259
- type: "streamlit";
260
- mode: "prod";
261
- url: string;
262
- };
263
- suspended: {
264
- configVersion: string;
265
- production: {
266
- desiredNumber: number;
267
- desiredId: string;
268
- actualNumber: number;
269
- actualId: string;
270
- };
271
- undeployedChanges: false;
272
- state: "SUSPENDED";
273
- id: string;
274
- projectId: string;
275
- componentId: string;
276
- branchId: string;
277
- configId: string;
278
- type: "streamlit";
279
- mode: "prod";
280
- url: string;
281
- };
282
- };
283
- };
284
- deployments: {
285
- getDeployment: () => _keboola_api_client_apps_types.Deployment;
286
- listDeployments: () => _keboola_api_client_apps_types.Deployment[];
287
- fixtures: {
288
- archived: {
289
- id: string;
290
- number: number;
291
- configId: string;
292
- configVersion: string;
293
- gitCommitSha: null;
294
- size: "tiny";
295
- buildState: "PREBUILT";
296
- runState: "STOPPED";
297
- archived: true;
298
- archivedAt: string;
299
- createdAt: string;
300
- };
301
- live: {
302
- id: string;
303
- number: number;
304
- configId: string;
305
- configVersion: string;
306
- gitCommitSha: null;
307
- size: "small";
308
- buildState: "PREBUILT";
309
- runState: "RUNNING";
310
- archived: false;
311
- archivedAt: null;
312
- createdAt: string;
313
- };
314
- staged: {
315
- id: string;
316
- number: number;
317
- configId: string;
318
- configVersion: string;
319
- gitCommitSha: null;
320
- size: "small";
321
- buildState: "PREBUILT";
322
- runState: "NEVER_RUN";
323
- archived: false;
324
- archivedAt: null;
325
- createdAt: string;
326
- };
327
- buildFailed: {
328
- id: string;
329
- number: number;
330
- configId: string;
331
- configVersion: string;
332
- gitCommitSha: null;
333
- size: "small";
334
- buildState: "FAILED";
335
- runState: "NEVER_RUN";
336
- archived: false;
337
- archivedAt: null;
338
- createdAt: string;
339
- };
340
- runFailed: {
341
- id: string;
342
- number: number;
343
- configId: string;
344
- configVersion: string;
345
- gitCommitSha: null;
346
- size: "small";
347
- buildState: "PREBUILT";
348
- runState: "FAILED";
349
- archived: false;
350
- archivedAt: null;
351
- createdAt: string;
352
- };
353
- };
354
- };
355
- runs: {
356
- getAppRun: () => _keboola_api_client_apps_types.AppRun;
357
- listAppRuns: () => _keboola_api_client_apps_types.AppRun[];
358
- fixtures: {
359
- running: {
360
- id: string;
361
- deploymentId: string;
362
- configVersion: string;
363
- state: "running";
364
- createdAt: string;
365
- startedAt: string;
366
- stoppedAt: null;
367
- startupLogs: null;
368
- failureReason: null;
369
- appId: string;
370
- runtimeSize: string;
371
- runtimeBackendType: string;
372
- imageVersion: string;
373
- mode: string;
374
- };
375
- finished: {
376
- id: string;
377
- deploymentId: string;
378
- configVersion: string;
379
- state: "finished";
380
- createdAt: string;
381
- startedAt: string;
382
- stoppedAt: string;
383
- startupLogs: null;
384
- failureReason: null;
385
- appId: string;
386
- runtimeSize: string;
387
- runtimeBackendType: string;
388
- imageVersion: string;
389
- mode: string;
390
- };
391
- failed: {
392
- id: string;
393
- deploymentId: string;
394
- configVersion: string;
395
- state: "failed";
396
- createdAt: string;
397
- startedAt: null;
398
- stoppedAt: string;
399
- startupLogs: string;
400
- failureReason: {
401
- reason: string;
402
- message: string;
403
- };
404
- appId: string;
405
- runtimeSize: string;
406
- runtimeBackendType: string;
407
- imageVersion: string;
408
- mode: string;
409
- };
410
- legacy: {
411
- id: string;
412
- deploymentId: null;
413
- configVersion: string;
414
- state: "running";
415
- createdAt: string;
416
- startedAt: string;
417
- stoppedAt: null;
418
- startupLogs: null;
419
- failureReason: null;
420
- appId: string;
421
- runtimeSize: string;
422
- runtimeBackendType: string;
423
- imageVersion: string;
424
- mode: string;
425
- };
426
- };
427
- };
23
+ undeployedChanges: false;
24
+ state: 'NOT_DEPLOYED';
25
+ };
26
+ legacyV1Serving: {
27
+ id: string;
28
+ projectId: string;
29
+ componentId: string;
30
+ branchId: string;
31
+ configId: string;
32
+ configVersion: string;
33
+ type: 'streamlit';
34
+ mode: 'dev';
35
+ url: string;
36
+ production: {
37
+ desiredNumber: null;
38
+ desiredId: null;
39
+ actualNumber: null;
40
+ actualId: null;
428
41
  };
429
- };
430
-
431
- declare const appFixtures: {
432
- neverDeployed: {
433
- configVersion: string;
434
- production: {
435
- desiredNumber: null;
436
- desiredId: null;
437
- actualNumber: null;
438
- actualId: null;
439
- };
440
- undeployedChanges: false;
441
- state: "NOT_DEPLOYED";
442
- id: string;
443
- projectId: string;
444
- componentId: string;
445
- branchId: string;
446
- configId: string;
447
- type: "streamlit";
448
- mode: "prod";
449
- url: string;
450
- };
451
- legacyV1Serving: {
452
- id: string;
453
- projectId: string;
454
- componentId: string;
455
- branchId: string;
456
- configId: string;
457
- configVersion: string;
458
- type: "streamlit";
459
- mode: "dev";
460
- url: string;
461
- production: {
462
- desiredNumber: null;
463
- desiredId: null;
464
- actualNumber: null;
465
- actualId: null;
466
- };
467
- undeployedChanges: false;
468
- state: "NOT_DEPLOYED";
42
+ undeployedChanges: false;
43
+ state: 'NOT_DEPLOYED';
44
+ };
45
+ running: {
46
+ id: string;
47
+ projectId: string;
48
+ componentId: string;
49
+ branchId: string;
50
+ configId: string;
51
+ type: 'streamlit';
52
+ mode: 'prod';
53
+ url: string;
54
+ configVersion: string;
55
+ production: {
56
+ desiredNumber: number;
57
+ desiredId: string;
58
+ actualNumber: number;
59
+ actualId: string;
469
60
  };
470
- running: {
471
- configVersion: string;
472
- production: {
473
- desiredNumber: number;
474
- desiredId: string;
475
- actualNumber: number;
476
- actualId: string;
477
- };
478
- undeployedChanges: false;
479
- state: "RUNNING";
480
- id: string;
481
- projectId: string;
482
- componentId: string;
483
- branchId: string;
484
- configId: string;
485
- type: "streamlit";
486
- mode: "prod";
487
- url: string;
488
- };
489
- undeployedChanges: {
490
- configVersion: string;
491
- production: {
492
- desiredNumber: number;
493
- desiredId: string;
494
- actualNumber: number;
495
- actualId: string;
496
- };
497
- undeployedChanges: true;
498
- state: "RUNNING";
499
- id: string;
500
- projectId: string;
501
- componentId: string;
502
- branchId: string;
503
- configId: string;
504
- type: "streamlit";
505
- mode: "prod";
506
- url: string;
507
- };
508
- promoting: {
509
- configVersion: string;
510
- production: {
511
- desiredNumber: number;
512
- desiredId: string;
513
- actualNumber: number;
514
- actualId: string;
515
- };
516
- undeployedChanges: true;
517
- state: "RUNNING";
518
- id: string;
519
- projectId: string;
520
- componentId: string;
521
- branchId: string;
522
- configId: string;
523
- type: "streamlit";
524
- mode: "prod";
525
- url: string;
526
- };
527
- sleeping: {
528
- configVersion: string;
529
- production: {
530
- desiredNumber: number;
531
- desiredId: string;
532
- actualNumber: number;
533
- actualId: string;
534
- };
535
- undeployedChanges: false;
536
- state: "SLEEPING";
537
- id: string;
538
- projectId: string;
539
- componentId: string;
540
- branchId: string;
541
- configId: string;
542
- type: "streamlit";
543
- mode: "prod";
544
- url: string;
545
- };
546
- suspended: {
547
- configVersion: string;
548
- production: {
549
- desiredNumber: number;
550
- desiredId: string;
551
- actualNumber: number;
552
- actualId: string;
553
- };
554
- undeployedChanges: false;
555
- state: "SUSPENDED";
556
- id: string;
557
- projectId: string;
558
- componentId: string;
559
- branchId: string;
560
- configId: string;
561
- type: "streamlit";
562
- mode: "prod";
563
- url: string;
61
+ undeployedChanges: false;
62
+ state: 'RUNNING';
63
+ };
64
+ undeployedChanges: {
65
+ id: string;
66
+ projectId: string;
67
+ componentId: string;
68
+ branchId: string;
69
+ configId: string;
70
+ type: 'streamlit';
71
+ mode: 'prod';
72
+ url: string;
73
+ configVersion: string;
74
+ production: {
75
+ desiredNumber: number;
76
+ desiredId: string;
77
+ actualNumber: number;
78
+ actualId: string;
79
+ };
80
+ undeployedChanges: true;
81
+ state: 'RUNNING';
82
+ };
83
+ promoting: {
84
+ id: string;
85
+ projectId: string;
86
+ componentId: string;
87
+ branchId: string;
88
+ configId: string;
89
+ type: 'streamlit';
90
+ mode: 'prod';
91
+ url: string;
92
+ configVersion: string;
93
+ production: {
94
+ desiredNumber: number;
95
+ desiredId: string;
96
+ actualNumber: number;
97
+ actualId: string;
564
98
  };
99
+ undeployedChanges: true;
100
+ state: 'RUNNING';
101
+ };
102
+ sleeping: {
103
+ id: string;
104
+ projectId: string;
105
+ componentId: string;
106
+ branchId: string;
107
+ configId: string;
108
+ type: 'streamlit';
109
+ mode: 'prod';
110
+ url: string;
111
+ configVersion: string;
112
+ production: {
113
+ desiredNumber: number;
114
+ desiredId: string;
115
+ actualNumber: number;
116
+ actualId: string;
117
+ };
118
+ undeployedChanges: false;
119
+ state: 'SLEEPING';
120
+ };
121
+ suspended: {
122
+ id: string;
123
+ projectId: string;
124
+ componentId: string;
125
+ branchId: string;
126
+ configId: string;
127
+ type: 'streamlit';
128
+ mode: 'prod';
129
+ url: string;
130
+ configVersion: string;
131
+ production: {
132
+ desiredNumber: number;
133
+ desiredId: string;
134
+ actualNumber: number;
135
+ actualId: string;
136
+ };
137
+ undeployedChanges: false;
138
+ state: 'SUSPENDED';
139
+ };
565
140
  };
566
141
  declare const getApp: () => App;
567
142
  declare const listApps: () => App[];
568
-
143
+ //#endregion
144
+ //#region src/clients/apps/deployments.d.ts
569
145
  declare const deploymentFixtures: {
570
- archived: {
571
- id: string;
572
- number: number;
573
- configId: string;
574
- configVersion: string;
575
- gitCommitSha: null;
576
- size: "tiny";
577
- buildState: "PREBUILT";
578
- runState: "STOPPED";
579
- archived: true;
580
- archivedAt: string;
581
- createdAt: string;
582
- };
583
- live: {
584
- id: string;
585
- number: number;
586
- configId: string;
587
- configVersion: string;
588
- gitCommitSha: null;
589
- size: "small";
590
- buildState: "PREBUILT";
591
- runState: "RUNNING";
592
- archived: false;
593
- archivedAt: null;
594
- createdAt: string;
595
- };
596
- staged: {
597
- id: string;
598
- number: number;
599
- configId: string;
600
- configVersion: string;
601
- gitCommitSha: null;
602
- size: "small";
603
- buildState: "PREBUILT";
604
- runState: "NEVER_RUN";
605
- archived: false;
606
- archivedAt: null;
607
- createdAt: string;
608
- };
609
- buildFailed: {
610
- id: string;
611
- number: number;
612
- configId: string;
613
- configVersion: string;
614
- gitCommitSha: null;
615
- size: "small";
616
- buildState: "FAILED";
617
- runState: "NEVER_RUN";
618
- archived: false;
619
- archivedAt: null;
620
- createdAt: string;
621
- };
622
- runFailed: {
623
- id: string;
624
- number: number;
625
- configId: string;
626
- configVersion: string;
627
- gitCommitSha: null;
628
- size: "small";
629
- buildState: "PREBUILT";
630
- runState: "FAILED";
631
- archived: false;
632
- archivedAt: null;
633
- createdAt: string;
634
- };
146
+ archived: {
147
+ id: string;
148
+ number: number;
149
+ configId: string;
150
+ configVersion: string;
151
+ gitCommitSha: null;
152
+ size: 'tiny';
153
+ buildState: 'PREBUILT';
154
+ runState: 'STOPPED';
155
+ archived: true;
156
+ archivedAt: string;
157
+ createdAt: string;
158
+ };
159
+ live: {
160
+ id: string;
161
+ number: number;
162
+ configId: string;
163
+ configVersion: string;
164
+ gitCommitSha: null;
165
+ size: 'small';
166
+ buildState: 'PREBUILT';
167
+ runState: 'RUNNING';
168
+ archived: false;
169
+ archivedAt: null;
170
+ createdAt: string;
171
+ };
172
+ staged: {
173
+ id: string;
174
+ number: number;
175
+ configId: string;
176
+ configVersion: string;
177
+ gitCommitSha: null;
178
+ size: 'small';
179
+ buildState: 'PREBUILT';
180
+ runState: 'NEVER_RUN';
181
+ archived: false;
182
+ archivedAt: null;
183
+ createdAt: string;
184
+ };
185
+ buildFailed: {
186
+ id: string;
187
+ number: number;
188
+ configId: string;
189
+ configVersion: string;
190
+ gitCommitSha: null;
191
+ size: 'small';
192
+ buildState: 'FAILED';
193
+ runState: 'NEVER_RUN';
194
+ archived: false;
195
+ archivedAt: null;
196
+ createdAt: string;
197
+ };
198
+ runFailed: {
199
+ id: string;
200
+ number: number;
201
+ configId: string;
202
+ configVersion: string;
203
+ gitCommitSha: null;
204
+ size: 'small';
205
+ buildState: 'PREBUILT';
206
+ runState: 'FAILED';
207
+ archived: false;
208
+ archivedAt: null;
209
+ createdAt: string;
210
+ };
635
211
  };
636
212
  declare const getDeployment: () => Deployment;
637
213
  /**
@@ -647,75 +223,76 @@ declare const getDeployment: () => Deployment;
647
223
  * than in production.
648
224
  */
649
225
  declare const listDeployments: () => Deployment[];
650
-
226
+ //#endregion
227
+ //#region src/clients/apps/runs.d.ts
651
228
  declare const runFixtures: {
652
- running: {
653
- id: string;
654
- deploymentId: string;
655
- configVersion: string;
656
- state: "running";
657
- createdAt: string;
658
- startedAt: string;
659
- stoppedAt: null;
660
- startupLogs: null;
661
- failureReason: null;
662
- appId: string;
663
- runtimeSize: string;
664
- runtimeBackendType: string;
665
- imageVersion: string;
666
- mode: string;
667
- };
668
- finished: {
669
- id: string;
670
- deploymentId: string;
671
- configVersion: string;
672
- state: "finished";
673
- createdAt: string;
674
- startedAt: string;
675
- stoppedAt: string;
676
- startupLogs: null;
677
- failureReason: null;
678
- appId: string;
679
- runtimeSize: string;
680
- runtimeBackendType: string;
681
- imageVersion: string;
682
- mode: string;
683
- };
684
- failed: {
685
- id: string;
686
- deploymentId: string;
687
- configVersion: string;
688
- state: "failed";
689
- createdAt: string;
690
- startedAt: null;
691
- stoppedAt: string;
692
- startupLogs: string;
693
- failureReason: {
694
- reason: string;
695
- message: string;
696
- };
697
- appId: string;
698
- runtimeSize: string;
699
- runtimeBackendType: string;
700
- imageVersion: string;
701
- mode: string;
702
- };
703
- legacy: {
704
- id: string;
705
- deploymentId: null;
706
- configVersion: string;
707
- state: "running";
708
- createdAt: string;
709
- startedAt: string;
710
- stoppedAt: null;
711
- startupLogs: null;
712
- failureReason: null;
713
- appId: string;
714
- runtimeSize: string;
715
- runtimeBackendType: string;
716
- imageVersion: string;
717
- mode: string;
229
+ running: {
230
+ appId: string;
231
+ runtimeSize: string;
232
+ runtimeBackendType: string;
233
+ imageVersion: string;
234
+ mode: string;
235
+ id: string;
236
+ deploymentId: string;
237
+ configVersion: string;
238
+ state: 'running';
239
+ createdAt: string;
240
+ startedAt: string;
241
+ stoppedAt: null;
242
+ startupLogs: null;
243
+ failureReason: null;
244
+ };
245
+ finished: {
246
+ appId: string;
247
+ runtimeSize: string;
248
+ runtimeBackendType: string;
249
+ imageVersion: string;
250
+ mode: string;
251
+ id: string;
252
+ deploymentId: string;
253
+ configVersion: string;
254
+ state: 'finished';
255
+ createdAt: string;
256
+ startedAt: string;
257
+ stoppedAt: string;
258
+ startupLogs: null;
259
+ failureReason: null;
260
+ };
261
+ failed: {
262
+ appId: string;
263
+ runtimeSize: string;
264
+ runtimeBackendType: string;
265
+ imageVersion: string;
266
+ mode: string;
267
+ id: string;
268
+ deploymentId: string;
269
+ configVersion: string;
270
+ state: 'failed';
271
+ createdAt: string;
272
+ startedAt: null;
273
+ stoppedAt: string;
274
+ startupLogs: string;
275
+ failureReason: {
276
+ reason: string;
277
+ message: string;
718
278
  };
279
+ };
280
+ legacy: {
281
+ appId: string;
282
+ runtimeSize: string;
283
+ runtimeBackendType: string;
284
+ imageVersion: string;
285
+ mode: string;
286
+ id: string;
287
+ deploymentId: null;
288
+ configVersion: string;
289
+ state: 'running';
290
+ createdAt: string;
291
+ startedAt: string;
292
+ stoppedAt: null;
293
+ startupLogs: null;
294
+ failureReason: null;
295
+ };
719
296
  };
720
297
  declare const getAppRun: () => AppRun;
721
298
  /**
@@ -724,7 +301,398 @@ declare const getAppRun: () => AppRun;
724
301
  * data that happens to contradict it.
725
302
  */
726
303
  declare const listAppRuns: () => AppRun[];
727
-
304
+ //#endregion
305
+ //#region src/clients/developerPortal/apps.d.ts
306
+ /** The public catalog list: published, non-`other` apps only. */
307
+ declare const listPublishedApps: () => App$1[];
308
+ /** A vendor's own apps, across every publishing state the table renders. */
309
+ declare const listVendorApps: () => App$1[];
310
+ /** The admin list — every vendor, plus the `other`-typed app the public catalog drops. */
311
+ declare const listAllApps: () => App$1[];
312
+ /** `GET /vendors` — approved and public only, so the pending vendor cannot appear here. */
313
+ declare const listVendors: () => VendorListItem[];
314
+ /** `GET /vendors/{vendor}` — the converted shape. */
315
+ declare const getVendor: () => Vendor;
316
+ /** `GET /admin/vendors` — every vendor, and the only response carrying the approval flags. */
317
+ declare const listAllVendors: () => AdminVendor[];
318
+ declare const listUsers: () => User[];
319
+ declare const listServiceAccounts: () => ServiceAccount[];
320
+ declare const listAppChanges: () => AppChange[];
321
+ /** Named fixtures, for a test that needs one specific state. */
322
+ declare const developerPortalFixtures: {
323
+ apps: {
324
+ published: {
325
+ id: string;
326
+ vendor: {
327
+ id: string;
328
+ name: string;
329
+ address: string;
330
+ email: string;
331
+ type?: string;
332
+ } & {
333
+ [key: string]: unknown;
334
+ };
335
+ name: string;
336
+ type: "extractor";
337
+ shortDescription: string;
338
+ longDescription: string;
339
+ licenseUrl: string;
340
+ documentationUrl: string;
341
+ sourceCodeUrl: string;
342
+ categories: string[];
343
+ complexity: "easy";
344
+ uiOptions: string[];
345
+ defaultBucket: true;
346
+ defaultBucketStage: "in";
347
+ stagingStorageInput: "local";
348
+ stagingStorageOutput: "local";
349
+ logger: "standard";
350
+ isPublic: true;
351
+ isDeprecated: false;
352
+ fees: false;
353
+ repository: {
354
+ type: "ecr";
355
+ uri: string;
356
+ tag: string;
357
+ };
358
+ icon: {
359
+ '64': string;
360
+ '128': string;
361
+ };
362
+ version: number;
363
+ createdBy: string;
364
+ updatedOn: string;
365
+ uri: string;
366
+ isPublished: true;
367
+ publishedVersion: number;
368
+ publishingStatus: "public";
369
+ };
370
+ requested: {
371
+ id: string;
372
+ vendor: {
373
+ id: string;
374
+ name: string;
375
+ address: string;
376
+ email: string;
377
+ type?: string;
378
+ } & {
379
+ [key: string]: unknown;
380
+ };
381
+ name: string;
382
+ type: "writer";
383
+ shortDescription: string;
384
+ longDescription: string;
385
+ licenseUrl: string;
386
+ documentationUrl: string;
387
+ uiOptions: string[];
388
+ repository: {
389
+ type: "quay";
390
+ uri: string;
391
+ tag: string;
392
+ };
393
+ icon: {
394
+ '64': string;
395
+ '128': string;
396
+ };
397
+ isPublic: false;
398
+ isDeprecated: false;
399
+ version: number;
400
+ createdBy: string;
401
+ updatedOn: string;
402
+ uri: string;
403
+ isPublished: false;
404
+ publishingStatus: "requested";
405
+ publishingRequest: {
406
+ createdOn: string;
407
+ rejectionReason: null;
408
+ };
409
+ };
410
+ rejected: {
411
+ id: string;
412
+ vendor: {
413
+ id: string;
414
+ name: string;
415
+ address: string;
416
+ email: string;
417
+ type?: string;
418
+ } & {
419
+ [key: string]: unknown;
420
+ };
421
+ name: string;
422
+ type: "application";
423
+ shortDescription: string;
424
+ isPublic: false;
425
+ isDeprecated: false;
426
+ version: number;
427
+ createdBy: string;
428
+ uri: string;
429
+ isPublished: false;
430
+ publishingStatus: "rejected";
431
+ publishingRequest: {
432
+ createdOn: string;
433
+ rejectionReason: string;
434
+ };
435
+ };
436
+ deprecated: {
437
+ id: string;
438
+ vendor: {
439
+ id: string;
440
+ name: string;
441
+ address: string;
442
+ email: string;
443
+ type?: string;
444
+ } & {
445
+ [key: string]: unknown;
446
+ };
447
+ name: string;
448
+ type: "extractor";
449
+ shortDescription: string;
450
+ isPublic: true;
451
+ isDeprecated: true;
452
+ expiredOn: string;
453
+ replacementApp: string;
454
+ version: number;
455
+ uri: string;
456
+ isPublished: true;
457
+ publishedVersion: number;
458
+ publishingStatus: "public";
459
+ };
460
+ dataApp: {
461
+ id: string;
462
+ vendor: {
463
+ id: string;
464
+ name: string;
465
+ address: string;
466
+ email: string;
467
+ type?: string;
468
+ } & {
469
+ [key: string]: unknown;
470
+ };
471
+ name: string;
472
+ type: "data-app";
473
+ shortDescription: string;
474
+ isPublic: false;
475
+ isDeprecated: false;
476
+ version: number;
477
+ uri: string;
478
+ isPublished: false;
479
+ publishingStatus: "private";
480
+ };
481
+ codePattern: {
482
+ id: string;
483
+ vendor: {
484
+ id: string;
485
+ name: string;
486
+ address: string;
487
+ email: string;
488
+ type?: string;
489
+ } & {
490
+ [key: string]: unknown;
491
+ };
492
+ name: string;
493
+ type: "code-pattern";
494
+ shortDescription: string;
495
+ actions: string[];
496
+ configurationSchema: {
497
+ supported_components: string[];
498
+ };
499
+ isPublic: false;
500
+ version: number;
501
+ uri: string;
502
+ isPublished: false;
503
+ publishingStatus: "private";
504
+ };
505
+ otherType: {
506
+ id: string;
507
+ vendor: {
508
+ id: string;
509
+ name: string;
510
+ address: string;
511
+ email: string;
512
+ type?: string;
513
+ } & {
514
+ [key: string]: unknown;
515
+ };
516
+ name: string;
517
+ type: "other";
518
+ isPublic: true;
519
+ version: number;
520
+ uri: string;
521
+ isPublished: true;
522
+ publishedVersion: number;
523
+ publishingStatus: "public";
524
+ };
525
+ };
526
+ vendors: {
527
+ keboola: {
528
+ id: string;
529
+ name: string;
530
+ email: string;
531
+ address: string;
532
+ type: string;
533
+ projectUrl: null;
534
+ isTrusted: 1;
535
+ };
536
+ thirdParty: {
537
+ id: string;
538
+ name: string;
539
+ email: string;
540
+ address: string;
541
+ projectUrl: string;
542
+ type: string;
543
+ isTrusted: 0;
544
+ };
545
+ detail: {
546
+ id: string;
547
+ name: string;
548
+ email: string;
549
+ address: string;
550
+ projectUrl: string;
551
+ type: string;
552
+ isTrusted: false;
553
+ };
554
+ pending: {
555
+ id: string;
556
+ name: string;
557
+ email: string;
558
+ address: string;
559
+ type: string;
560
+ projectUrl: null;
561
+ isApproved: false;
562
+ isPublic: false;
563
+ isTrusted: false;
564
+ };
565
+ keboolaAdmin: {
566
+ id: string;
567
+ name: string;
568
+ email: string;
569
+ address: string;
570
+ type: string;
571
+ projectUrl: null;
572
+ isApproved: true;
573
+ isPublic: true;
574
+ isTrusted: true;
575
+ };
576
+ thirdPartyAdmin: {
577
+ id: string;
578
+ name: string;
579
+ email: string;
580
+ address: string;
581
+ projectUrl: string;
582
+ type: string;
583
+ isApproved: true;
584
+ isPublic: true;
585
+ isTrusted: false;
586
+ };
587
+ };
588
+ users: {
589
+ human: {
590
+ username: string;
591
+ name: string;
592
+ vendors: string[];
593
+ createdOn: string;
594
+ };
595
+ newest: {
596
+ username: string;
597
+ name: string;
598
+ vendors: string[];
599
+ createdOn: string;
600
+ };
601
+ vendorless: {
602
+ username: string;
603
+ name: string;
604
+ vendors: never[];
605
+ createdOn: string;
606
+ };
607
+ keboolaStaff: {
608
+ username: string;
609
+ name: string;
610
+ vendors: string[];
611
+ createdOn: string;
612
+ };
613
+ };
614
+ serviceAccounts: {
615
+ created: {
616
+ username: string;
617
+ description: string;
618
+ createdOn: string;
619
+ password: string;
620
+ };
621
+ existing: {
622
+ username: string;
623
+ description: string;
624
+ createdOn: string;
625
+ };
626
+ };
627
+ changes: {
628
+ single: {
629
+ appId: string;
630
+ createdOn: string;
631
+ createdBy: string;
632
+ changes: ({
633
+ attribute: string;
634
+ oldValue: string;
635
+ newValue: string;
636
+ } | {
637
+ attribute: string;
638
+ oldValue: {
639
+ type: string;
640
+ uri: string;
641
+ tag: string;
642
+ };
643
+ newValue: {
644
+ type: string;
645
+ uri: string;
646
+ tag: string;
647
+ };
648
+ })[];
649
+ };
650
+ };
651
+ };
652
+ //#endregion
653
+ //#region src/clients/storage/bootstrap.d.ts
654
+ /** The stack an MSW-backed test points its client at, unless a caller passes its own. */
655
+ declare const DEFAULT_BASE_URL = "https://connection.test";
656
+ type StackInfoOptions = {
657
+ /** Stack the fixture describes; its host is what the announced service URLs are built on. */
658
+ baseUrl?: string;
659
+ /** Services the stack announces. Narrow it to test what a client does without one. */
660
+ services?: ServiceId[];
661
+ };
662
+ type StorageTokenOptions = {
663
+ /** Stack the token was issued by — its `uri`. */
664
+ baseUrl?: string;
665
+ /** Project features `hasFeature()` should report — the token's `owner.features`. */
666
+ features?: string[];
667
+ };
668
+ /**
669
+ * The stack index `GET /v2/storage` returns.
670
+ *
671
+ * - Announces every `ServiceId` by default, each on its own host, so no service client is a dummy
672
+ * that throws `ServiceUnavailableError` — a test for a queue / data-science / vault hook only
673
+ * adds its handler.
674
+ * - Defaulting to `Object.values(ServiceId)` is what keeps that exhaustive: a service added to the
675
+ * client arrives here without an edit.
676
+ */
677
+ declare const getStackInfo: ({ baseUrl, services }?: StackInfoOptions) => StackInfo;
678
+ /**
679
+ * The verified master token `GET /v2/storage/tokens/verify` returns.
680
+ *
681
+ * - Complete on purpose: `api.context.project.sapiToken` is this object verbatim and hooks read deep
682
+ * into it (`owner.id`, `admin.role`, `adminOwner.email`), so a partial body surfaces as
683
+ * `undefined`s far from the test that caused them.
684
+ * - Every permission flag is granted; a test needing a restricted token overrides the handler.
685
+ */
686
+ declare const verifyStorageToken: ({ baseUrl, features }?: StorageTokenOptions) => StorageToken;
687
+ /**
688
+ * The branch list `GET /v2/storage/dev-branches` returns — the default branch alone.
689
+ *
690
+ * - `context.defaultBranch` is read off it, so the entry must stay `isDefault: true`.
691
+ * - The default branch has no creator, which `DevBranch` models as an empty `creatorToken`.
692
+ */
693
+ declare const getDevBranches: () => DevBranch[];
694
+ //#endregion
695
+ //#region src/clients/storage/tables.d.ts
728
696
  /**
729
697
  * Returns a single realistic typed TableDetail (fresh, no imports yet).
730
698
  *
@@ -743,20 +711,168 @@ declare const listTables: () => TableDetail[];
743
711
  * Named fixtures for targeted access in tests.
744
712
  */
745
713
  declare const tableFixtures: {
746
- fresh: {
714
+ fresh: {
715
+ id: string;
716
+ name: string;
717
+ displayName: string;
718
+ primaryKey: string[];
719
+ metadata: never[];
720
+ columns: string[];
721
+ columnMetadata: {};
722
+ attributes: never[];
723
+ bucket: {
724
+ id: string;
725
+ name: string;
726
+ displayName: string;
727
+ stage: 'in';
728
+ description: string;
729
+ created: string;
730
+ lastChangeDate: string;
731
+ isMaintenance: boolean;
732
+ isReadOnly: boolean;
733
+ isSnowflakeSharedDatabase: boolean;
734
+ hasExternalSchema: boolean;
735
+ rowsCount: number;
736
+ dataSizeBytes: number;
737
+ uri: string;
738
+ backend: 'snowflake';
739
+ backendPath: never[];
740
+ databaseName: null;
741
+ color: null;
742
+ idBranch: number;
743
+ owner: null;
744
+ sharing: null;
745
+ path: string;
746
+ tables: string;
747
+ updated: string;
748
+ isLinkedBucket: boolean;
749
+ bucketSharingAllowed: boolean;
750
+ };
751
+ isTyped: false;
752
+ isAlias: false;
753
+ };
754
+ recentlyUpdated: {
755
+ id: string;
756
+ name: string;
757
+ displayName: string;
758
+ primaryKey: string[];
759
+ metadata: {
760
+ id: string;
761
+ key: string;
762
+ value: string;
763
+ provider: string;
764
+ timestamp: string;
765
+ }[];
766
+ columns: string[];
767
+ columnMetadata: {
768
+ order_id: {
747
769
  id: string;
748
- name: string;
749
- displayName: string;
750
- primaryKey: string[];
751
- metadata: never[];
752
- columns: string[];
753
- columnMetadata: {};
754
- attributes: never[];
755
- bucket: {
770
+ key: string;
771
+ value: string;
772
+ provider: string;
773
+ timestamp: string;
774
+ }[];
775
+ };
776
+ attributes: never[];
777
+ bucket: {
778
+ id: string;
779
+ name: string;
780
+ displayName: string;
781
+ stage: 'in';
782
+ description: string;
783
+ created: string;
784
+ lastChangeDate: string;
785
+ isMaintenance: boolean;
786
+ isReadOnly: boolean;
787
+ isSnowflakeSharedDatabase: boolean;
788
+ hasExternalSchema: boolean;
789
+ rowsCount: number;
790
+ dataSizeBytes: number;
791
+ uri: string;
792
+ backend: 'snowflake';
793
+ backendPath: never[];
794
+ databaseName: null;
795
+ color: null;
796
+ idBranch: number;
797
+ owner: null;
798
+ sharing: null;
799
+ path: string;
800
+ tables: string;
801
+ updated: string;
802
+ isLinkedBucket: boolean;
803
+ bucketSharingAllowed: boolean;
804
+ };
805
+ isTyped: false;
806
+ isAlias: false;
807
+ };
808
+ large: {
809
+ id: string;
810
+ name: string;
811
+ displayName: string;
812
+ primaryKey: never[];
813
+ metadata: never[];
814
+ columns: string[];
815
+ columnMetadata: {};
816
+ attributes: never[];
817
+ bucket: {
818
+ id: string;
819
+ name: string;
820
+ displayName: string;
821
+ stage: 'in';
822
+ description: string;
823
+ created: string;
824
+ lastChangeDate: string;
825
+ isMaintenance: boolean;
826
+ isReadOnly: boolean;
827
+ isSnowflakeSharedDatabase: boolean;
828
+ hasExternalSchema: boolean;
829
+ rowsCount: number;
830
+ dataSizeBytes: number;
831
+ uri: string;
832
+ backend: 'snowflake';
833
+ backendPath: never[];
834
+ databaseName: null;
835
+ color: null;
836
+ idBranch: number;
837
+ owner: null;
838
+ sharing: null;
839
+ path: string;
840
+ tables: string;
841
+ updated: string;
842
+ isLinkedBucket: boolean;
843
+ bucketSharingAllowed: boolean;
844
+ };
845
+ isTyped: false;
846
+ isAlias: false;
847
+ };
848
+ };
849
+ //#endregion
850
+ //#region src/fixtures.d.ts
851
+ declare const fixtures: {
852
+ storage: {
853
+ bootstrap: {
854
+ getStackInfo: typeof getStackInfo;
855
+ verifyStorageToken: typeof verifyStorageToken;
856
+ getDevBranches: typeof getDevBranches;
857
+ };
858
+ tables: {
859
+ getTable: typeof getTable;
860
+ listTables: typeof listTables;
861
+ fixtures: {
862
+ fresh: {
863
+ id: string;
864
+ name: string;
865
+ displayName: string;
866
+ primaryKey: string[];
867
+ metadata: never[];
868
+ columns: string[];
869
+ columnMetadata: {};
870
+ attributes: never[];
871
+ bucket: {
756
872
  id: string;
757
873
  name: string;
758
874
  displayName: string;
759
- stage: "in";
875
+ stage: 'in';
760
876
  description: string;
761
877
  created: string;
762
878
  lastChangeDate: string;
@@ -767,7 +883,7 @@ declare const tableFixtures: {
767
883
  rowsCount: number;
768
884
  dataSizeBytes: number;
769
885
  uri: string;
770
- backend: "snowflake";
886
+ backend: 'snowflake';
771
887
  backendPath: never[];
772
888
  databaseName: null;
773
889
  color: null;
@@ -777,38 +893,40 @@ declare const tableFixtures: {
777
893
  path: string;
778
894
  tables: string;
779
895
  updated: string;
896
+ isLinkedBucket: boolean;
897
+ bucketSharingAllowed: boolean;
898
+ };
899
+ isTyped: false;
900
+ isAlias: false;
780
901
  };
781
- isTyped: false;
782
- isAlias: false;
783
- };
784
- recentlyUpdated: {
785
- id: string;
786
- name: string;
787
- displayName: string;
788
- primaryKey: string[];
789
- metadata: {
902
+ recentlyUpdated: {
903
+ id: string;
904
+ name: string;
905
+ displayName: string;
906
+ primaryKey: string[];
907
+ metadata: {
790
908
  id: string;
791
909
  key: string;
792
910
  value: string;
793
911
  provider: string;
794
912
  timestamp: string;
795
- }[];
796
- columns: string[];
797
- columnMetadata: {
913
+ }[];
914
+ columns: string[];
915
+ columnMetadata: {
798
916
  order_id: {
799
- id: string;
800
- key: string;
801
- value: string;
802
- provider: string;
803
- timestamp: string;
917
+ id: string;
918
+ key: string;
919
+ value: string;
920
+ provider: string;
921
+ timestamp: string;
804
922
  }[];
805
- };
806
- attributes: never[];
807
- bucket: {
923
+ };
924
+ attributes: never[];
925
+ bucket: {
808
926
  id: string;
809
927
  name: string;
810
928
  displayName: string;
811
- stage: "in";
929
+ stage: 'in';
812
930
  description: string;
813
931
  created: string;
814
932
  lastChangeDate: string;
@@ -819,7 +937,7 @@ declare const tableFixtures: {
819
937
  rowsCount: number;
820
938
  dataSizeBytes: number;
821
939
  uri: string;
822
- backend: "snowflake";
940
+ backend: 'snowflake';
823
941
  backendPath: never[];
824
942
  databaseName: null;
825
943
  color: null;
@@ -829,24 +947,26 @@ declare const tableFixtures: {
829
947
  path: string;
830
948
  tables: string;
831
949
  updated: string;
950
+ isLinkedBucket: boolean;
951
+ bucketSharingAllowed: boolean;
952
+ };
953
+ isTyped: false;
954
+ isAlias: false;
832
955
  };
833
- isTyped: false;
834
- isAlias: false;
835
- };
836
- large: {
837
- id: string;
838
- name: string;
839
- displayName: string;
840
- primaryKey: never[];
841
- metadata: never[];
842
- columns: string[];
843
- columnMetadata: {};
844
- attributes: never[];
845
- bucket: {
956
+ large: {
957
+ id: string;
958
+ name: string;
959
+ displayName: string;
960
+ primaryKey: never[];
961
+ metadata: never[];
962
+ columns: string[];
963
+ columnMetadata: {};
964
+ attributes: never[];
965
+ bucket: {
846
966
  id: string;
847
967
  name: string;
848
968
  displayName: string;
849
- stage: "in";
969
+ stage: 'in';
850
970
  description: string;
851
971
  created: string;
852
972
  lastChangeDate: string;
@@ -857,7 +977,7 @@ declare const tableFixtures: {
857
977
  rowsCount: number;
858
978
  dataSizeBytes: number;
859
979
  uri: string;
860
- backend: "snowflake";
980
+ backend: 'snowflake';
861
981
  backendPath: never[];
862
982
  databaseName: null;
863
983
  color: null;
@@ -867,10 +987,642 @@ declare const tableFixtures: {
867
987
  path: string;
868
988
  tables: string;
869
989
  updated: string;
990
+ isLinkedBucket: boolean;
991
+ bucketSharingAllowed: boolean;
992
+ };
993
+ isTyped: false;
994
+ isAlias: false;
995
+ };
996
+ };
997
+ };
998
+ };
999
+ apps: {
1000
+ apps: {
1001
+ getApp: typeof getApp;
1002
+ listApps: typeof listApps;
1003
+ fixtures: {
1004
+ neverDeployed: {
1005
+ id: string;
1006
+ projectId: string;
1007
+ componentId: string;
1008
+ branchId: string;
1009
+ configId: string;
1010
+ type: 'streamlit';
1011
+ mode: 'prod';
1012
+ url: string;
1013
+ configVersion: string;
1014
+ production: {
1015
+ desiredNumber: null;
1016
+ desiredId: null;
1017
+ actualNumber: null;
1018
+ actualId: null;
1019
+ };
1020
+ undeployedChanges: false;
1021
+ state: 'NOT_DEPLOYED';
1022
+ };
1023
+ legacyV1Serving: {
1024
+ id: string;
1025
+ projectId: string;
1026
+ componentId: string;
1027
+ branchId: string;
1028
+ configId: string;
1029
+ configVersion: string;
1030
+ type: 'streamlit';
1031
+ mode: 'dev';
1032
+ url: string;
1033
+ production: {
1034
+ desiredNumber: null;
1035
+ desiredId: null;
1036
+ actualNumber: null;
1037
+ actualId: null;
1038
+ };
1039
+ undeployedChanges: false;
1040
+ state: 'NOT_DEPLOYED';
1041
+ };
1042
+ running: {
1043
+ id: string;
1044
+ projectId: string;
1045
+ componentId: string;
1046
+ branchId: string;
1047
+ configId: string;
1048
+ type: 'streamlit';
1049
+ mode: 'prod';
1050
+ url: string;
1051
+ configVersion: string;
1052
+ production: {
1053
+ desiredNumber: number;
1054
+ desiredId: string;
1055
+ actualNumber: number;
1056
+ actualId: string;
1057
+ };
1058
+ undeployedChanges: false;
1059
+ state: 'RUNNING';
1060
+ };
1061
+ undeployedChanges: {
1062
+ id: string;
1063
+ projectId: string;
1064
+ componentId: string;
1065
+ branchId: string;
1066
+ configId: string;
1067
+ type: 'streamlit';
1068
+ mode: 'prod';
1069
+ url: string;
1070
+ configVersion: string;
1071
+ production: {
1072
+ desiredNumber: number;
1073
+ desiredId: string;
1074
+ actualNumber: number;
1075
+ actualId: string;
1076
+ };
1077
+ undeployedChanges: true;
1078
+ state: 'RUNNING';
1079
+ };
1080
+ promoting: {
1081
+ id: string;
1082
+ projectId: string;
1083
+ componentId: string;
1084
+ branchId: string;
1085
+ configId: string;
1086
+ type: 'streamlit';
1087
+ mode: 'prod';
1088
+ url: string;
1089
+ configVersion: string;
1090
+ production: {
1091
+ desiredNumber: number;
1092
+ desiredId: string;
1093
+ actualNumber: number;
1094
+ actualId: string;
1095
+ };
1096
+ undeployedChanges: true;
1097
+ state: 'RUNNING';
1098
+ };
1099
+ sleeping: {
1100
+ id: string;
1101
+ projectId: string;
1102
+ componentId: string;
1103
+ branchId: string;
1104
+ configId: string;
1105
+ type: 'streamlit';
1106
+ mode: 'prod';
1107
+ url: string;
1108
+ configVersion: string;
1109
+ production: {
1110
+ desiredNumber: number;
1111
+ desiredId: string;
1112
+ actualNumber: number;
1113
+ actualId: string;
1114
+ };
1115
+ undeployedChanges: false;
1116
+ state: 'SLEEPING';
1117
+ };
1118
+ suspended: {
1119
+ id: string;
1120
+ projectId: string;
1121
+ componentId: string;
1122
+ branchId: string;
1123
+ configId: string;
1124
+ type: 'streamlit';
1125
+ mode: 'prod';
1126
+ url: string;
1127
+ configVersion: string;
1128
+ production: {
1129
+ desiredNumber: number;
1130
+ desiredId: string;
1131
+ actualNumber: number;
1132
+ actualId: string;
1133
+ };
1134
+ undeployedChanges: false;
1135
+ state: 'SUSPENDED';
1136
+ };
1137
+ };
1138
+ };
1139
+ deployments: {
1140
+ getDeployment: typeof getDeployment;
1141
+ listDeployments: typeof listDeployments;
1142
+ fixtures: {
1143
+ archived: {
1144
+ id: string;
1145
+ number: number;
1146
+ configId: string;
1147
+ configVersion: string;
1148
+ gitCommitSha: null;
1149
+ size: 'tiny';
1150
+ buildState: 'PREBUILT';
1151
+ runState: 'STOPPED';
1152
+ archived: true;
1153
+ archivedAt: string;
1154
+ createdAt: string;
1155
+ };
1156
+ live: {
1157
+ id: string;
1158
+ number: number;
1159
+ configId: string;
1160
+ configVersion: string;
1161
+ gitCommitSha: null;
1162
+ size: 'small';
1163
+ buildState: 'PREBUILT';
1164
+ runState: 'RUNNING';
1165
+ archived: false;
1166
+ archivedAt: null;
1167
+ createdAt: string;
1168
+ };
1169
+ staged: {
1170
+ id: string;
1171
+ number: number;
1172
+ configId: string;
1173
+ configVersion: string;
1174
+ gitCommitSha: null;
1175
+ size: 'small';
1176
+ buildState: 'PREBUILT';
1177
+ runState: 'NEVER_RUN';
1178
+ archived: false;
1179
+ archivedAt: null;
1180
+ createdAt: string;
1181
+ };
1182
+ buildFailed: {
1183
+ id: string;
1184
+ number: number;
1185
+ configId: string;
1186
+ configVersion: string;
1187
+ gitCommitSha: null;
1188
+ size: 'small';
1189
+ buildState: 'FAILED';
1190
+ runState: 'NEVER_RUN';
1191
+ archived: false;
1192
+ archivedAt: null;
1193
+ createdAt: string;
1194
+ };
1195
+ runFailed: {
1196
+ id: string;
1197
+ number: number;
1198
+ configId: string;
1199
+ configVersion: string;
1200
+ gitCommitSha: null;
1201
+ size: 'small';
1202
+ buildState: 'PREBUILT';
1203
+ runState: 'FAILED';
1204
+ archived: false;
1205
+ archivedAt: null;
1206
+ createdAt: string;
1207
+ };
1208
+ };
1209
+ };
1210
+ runs: {
1211
+ getAppRun: typeof getAppRun;
1212
+ listAppRuns: typeof listAppRuns;
1213
+ fixtures: {
1214
+ running: {
1215
+ appId: string;
1216
+ runtimeSize: string;
1217
+ runtimeBackendType: string;
1218
+ imageVersion: string;
1219
+ mode: string;
1220
+ id: string;
1221
+ deploymentId: string;
1222
+ configVersion: string;
1223
+ state: 'running';
1224
+ createdAt: string;
1225
+ startedAt: string;
1226
+ stoppedAt: null;
1227
+ startupLogs: null;
1228
+ failureReason: null;
1229
+ };
1230
+ finished: {
1231
+ appId: string;
1232
+ runtimeSize: string;
1233
+ runtimeBackendType: string;
1234
+ imageVersion: string;
1235
+ mode: string;
1236
+ id: string;
1237
+ deploymentId: string;
1238
+ configVersion: string;
1239
+ state: 'finished';
1240
+ createdAt: string;
1241
+ startedAt: string;
1242
+ stoppedAt: string;
1243
+ startupLogs: null;
1244
+ failureReason: null;
1245
+ };
1246
+ failed: {
1247
+ appId: string;
1248
+ runtimeSize: string;
1249
+ runtimeBackendType: string;
1250
+ imageVersion: string;
1251
+ mode: string;
1252
+ id: string;
1253
+ deploymentId: string;
1254
+ configVersion: string;
1255
+ state: 'failed';
1256
+ createdAt: string;
1257
+ startedAt: null;
1258
+ stoppedAt: string;
1259
+ startupLogs: string;
1260
+ failureReason: {
1261
+ reason: string;
1262
+ message: string;
1263
+ };
1264
+ };
1265
+ legacy: {
1266
+ appId: string;
1267
+ runtimeSize: string;
1268
+ runtimeBackendType: string;
1269
+ imageVersion: string;
1270
+ mode: string;
1271
+ id: string;
1272
+ deploymentId: null;
1273
+ configVersion: string;
1274
+ state: 'running';
1275
+ createdAt: string;
1276
+ startedAt: string;
1277
+ stoppedAt: null;
1278
+ startupLogs: null;
1279
+ failureReason: null;
1280
+ };
1281
+ };
1282
+ };
1283
+ };
1284
+ developerPortal: {
1285
+ listPublishedApps: typeof listPublishedApps;
1286
+ listVendorApps: typeof listVendorApps;
1287
+ listAllApps: typeof listAllApps;
1288
+ listAllVendors: typeof listAllVendors;
1289
+ getVendor: typeof getVendor;
1290
+ listVendors: typeof listVendors;
1291
+ listUsers: typeof listUsers;
1292
+ listServiceAccounts: typeof listServiceAccounts;
1293
+ listAppChanges: typeof listAppChanges;
1294
+ fixtures: {
1295
+ apps: {
1296
+ published: {
1297
+ id: string;
1298
+ vendor: {
1299
+ id: string;
1300
+ name: string;
1301
+ address: string;
1302
+ email: string;
1303
+ type?: string;
1304
+ } & {
1305
+ [key: string]: unknown;
1306
+ };
1307
+ name: string;
1308
+ type: "extractor";
1309
+ shortDescription: string;
1310
+ longDescription: string;
1311
+ licenseUrl: string;
1312
+ documentationUrl: string;
1313
+ sourceCodeUrl: string;
1314
+ categories: string[];
1315
+ complexity: "easy";
1316
+ uiOptions: string[];
1317
+ defaultBucket: true;
1318
+ defaultBucketStage: "in";
1319
+ stagingStorageInput: "local";
1320
+ stagingStorageOutput: "local";
1321
+ logger: "standard";
1322
+ isPublic: true;
1323
+ isDeprecated: false;
1324
+ fees: false;
1325
+ repository: {
1326
+ type: "ecr";
1327
+ uri: string;
1328
+ tag: string;
1329
+ };
1330
+ icon: {
1331
+ '64': string;
1332
+ '128': string;
1333
+ };
1334
+ version: number;
1335
+ createdBy: string;
1336
+ updatedOn: string;
1337
+ uri: string;
1338
+ isPublished: true;
1339
+ publishedVersion: number;
1340
+ publishingStatus: "public";
1341
+ };
1342
+ requested: {
1343
+ id: string;
1344
+ vendor: {
1345
+ id: string;
1346
+ name: string;
1347
+ address: string;
1348
+ email: string;
1349
+ type?: string;
1350
+ } & {
1351
+ [key: string]: unknown;
1352
+ };
1353
+ name: string;
1354
+ type: "writer";
1355
+ shortDescription: string;
1356
+ longDescription: string;
1357
+ licenseUrl: string;
1358
+ documentationUrl: string;
1359
+ uiOptions: string[];
1360
+ repository: {
1361
+ type: "quay";
1362
+ uri: string;
1363
+ tag: string;
1364
+ };
1365
+ icon: {
1366
+ '64': string;
1367
+ '128': string;
1368
+ };
1369
+ isPublic: false;
1370
+ isDeprecated: false;
1371
+ version: number;
1372
+ createdBy: string;
1373
+ updatedOn: string;
1374
+ uri: string;
1375
+ isPublished: false;
1376
+ publishingStatus: "requested";
1377
+ publishingRequest: {
1378
+ createdOn: string;
1379
+ rejectionReason: null;
1380
+ };
1381
+ };
1382
+ rejected: {
1383
+ id: string;
1384
+ vendor: {
1385
+ id: string;
1386
+ name: string;
1387
+ address: string;
1388
+ email: string;
1389
+ type?: string;
1390
+ } & {
1391
+ [key: string]: unknown;
1392
+ };
1393
+ name: string;
1394
+ type: "application";
1395
+ shortDescription: string;
1396
+ isPublic: false;
1397
+ isDeprecated: false;
1398
+ version: number;
1399
+ createdBy: string;
1400
+ uri: string;
1401
+ isPublished: false;
1402
+ publishingStatus: "rejected";
1403
+ publishingRequest: {
1404
+ createdOn: string;
1405
+ rejectionReason: string;
1406
+ };
1407
+ };
1408
+ deprecated: {
1409
+ id: string;
1410
+ vendor: {
1411
+ id: string;
1412
+ name: string;
1413
+ address: string;
1414
+ email: string;
1415
+ type?: string;
1416
+ } & {
1417
+ [key: string]: unknown;
1418
+ };
1419
+ name: string;
1420
+ type: "extractor";
1421
+ shortDescription: string;
1422
+ isPublic: true;
1423
+ isDeprecated: true;
1424
+ expiredOn: string;
1425
+ replacementApp: string;
1426
+ version: number;
1427
+ uri: string;
1428
+ isPublished: true;
1429
+ publishedVersion: number;
1430
+ publishingStatus: "public";
1431
+ };
1432
+ dataApp: {
1433
+ id: string;
1434
+ vendor: {
1435
+ id: string;
1436
+ name: string;
1437
+ address: string;
1438
+ email: string;
1439
+ type?: string;
1440
+ } & {
1441
+ [key: string]: unknown;
1442
+ };
1443
+ name: string;
1444
+ type: "data-app";
1445
+ shortDescription: string;
1446
+ isPublic: false;
1447
+ isDeprecated: false;
1448
+ version: number;
1449
+ uri: string;
1450
+ isPublished: false;
1451
+ publishingStatus: "private";
1452
+ };
1453
+ codePattern: {
1454
+ id: string;
1455
+ vendor: {
1456
+ id: string;
1457
+ name: string;
1458
+ address: string;
1459
+ email: string;
1460
+ type?: string;
1461
+ } & {
1462
+ [key: string]: unknown;
1463
+ };
1464
+ name: string;
1465
+ type: "code-pattern";
1466
+ shortDescription: string;
1467
+ actions: string[];
1468
+ configurationSchema: {
1469
+ supported_components: string[];
1470
+ };
1471
+ isPublic: false;
1472
+ version: number;
1473
+ uri: string;
1474
+ isPublished: false;
1475
+ publishingStatus: "private";
1476
+ };
1477
+ otherType: {
1478
+ id: string;
1479
+ vendor: {
1480
+ id: string;
1481
+ name: string;
1482
+ address: string;
1483
+ email: string;
1484
+ type?: string;
1485
+ } & {
1486
+ [key: string]: unknown;
1487
+ };
1488
+ name: string;
1489
+ type: "other";
1490
+ isPublic: true;
1491
+ version: number;
1492
+ uri: string;
1493
+ isPublished: true;
1494
+ publishedVersion: number;
1495
+ publishingStatus: "public";
1496
+ };
1497
+ };
1498
+ vendors: {
1499
+ keboola: {
1500
+ id: string;
1501
+ name: string;
1502
+ email: string;
1503
+ address: string;
1504
+ type: string;
1505
+ projectUrl: null;
1506
+ isTrusted: 1;
1507
+ };
1508
+ thirdParty: {
1509
+ id: string;
1510
+ name: string;
1511
+ email: string;
1512
+ address: string;
1513
+ projectUrl: string;
1514
+ type: string;
1515
+ isTrusted: 0;
1516
+ };
1517
+ detail: {
1518
+ id: string;
1519
+ name: string;
1520
+ email: string;
1521
+ address: string;
1522
+ projectUrl: string;
1523
+ type: string;
1524
+ isTrusted: false;
1525
+ };
1526
+ pending: {
1527
+ id: string;
1528
+ name: string;
1529
+ email: string;
1530
+ address: string;
1531
+ type: string;
1532
+ projectUrl: null;
1533
+ isApproved: false;
1534
+ isPublic: false;
1535
+ isTrusted: false;
1536
+ };
1537
+ keboolaAdmin: {
1538
+ id: string;
1539
+ name: string;
1540
+ email: string;
1541
+ address: string;
1542
+ type: string;
1543
+ projectUrl: null;
1544
+ isApproved: true;
1545
+ isPublic: true;
1546
+ isTrusted: true;
1547
+ };
1548
+ thirdPartyAdmin: {
1549
+ id: string;
1550
+ name: string;
1551
+ email: string;
1552
+ address: string;
1553
+ projectUrl: string;
1554
+ type: string;
1555
+ isApproved: true;
1556
+ isPublic: true;
1557
+ isTrusted: false;
1558
+ };
1559
+ };
1560
+ users: {
1561
+ human: {
1562
+ username: string;
1563
+ name: string;
1564
+ vendors: string[];
1565
+ createdOn: string;
1566
+ };
1567
+ newest: {
1568
+ username: string;
1569
+ name: string;
1570
+ vendors: string[];
1571
+ createdOn: string;
1572
+ };
1573
+ vendorless: {
1574
+ username: string;
1575
+ name: string;
1576
+ vendors: never[];
1577
+ createdOn: string;
1578
+ };
1579
+ keboolaStaff: {
1580
+ username: string;
1581
+ name: string;
1582
+ vendors: string[];
1583
+ createdOn: string;
1584
+ };
1585
+ };
1586
+ serviceAccounts: {
1587
+ created: {
1588
+ username: string;
1589
+ description: string;
1590
+ createdOn: string;
1591
+ password: string;
1592
+ };
1593
+ existing: {
1594
+ username: string;
1595
+ description: string;
1596
+ createdOn: string;
1597
+ };
1598
+ };
1599
+ changes: {
1600
+ single: {
1601
+ appId: string;
1602
+ createdOn: string;
1603
+ createdBy: string;
1604
+ changes: ({
1605
+ attribute: string;
1606
+ oldValue: string;
1607
+ newValue: string;
1608
+ } | {
1609
+ attribute: string;
1610
+ oldValue: {
1611
+ type: string;
1612
+ uri: string;
1613
+ tag: string;
1614
+ };
1615
+ newValue: {
1616
+ type: string;
1617
+ uri: string;
1618
+ tag: string;
1619
+ };
1620
+ })[];
870
1621
  };
871
- isTyped: false;
872
- isAlias: false;
1622
+ };
873
1623
  };
1624
+ };
874
1625
  };
875
-
876
- export { appFixtures, deploymentFixtures, fixtures, getApp, getAppRun, getDeployment, getTable, listAppRuns, listApps, listDeployments, listTables, runFixtures, tableFixtures };
1626
+ //#endregion
1627
+ export { DEFAULT_BASE_URL, type Table, type TableDetail, appFixtures, deploymentFixtures, developerPortalFixtures, fixtures, getApp, getAppRun, getDeployment, getDevBranches, getStackInfo, getTable, getVendor, listAllApps, listAllVendors, listAppChanges, listAppRuns, listApps, listDeployments, listPublishedApps, listServiceAccounts, listTables, listUsers, listVendorApps, listVendors, runFixtures, tableFixtures, verifyStorageToken };
1628
+ //# sourceMappingURL=index.d.ts.map