-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
7879 lines (7879 loc) · 231 KB
/
openapi.yaml
File metadata and controls
7879 lines (7879 loc) · 231 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
components:
schemas:
APIKey:
additionalProperties: false
properties:
created_at:
format: date-time
type: string
expires_at:
format: date-time
type: string
identifier:
type: string
last_used_at:
format: date-time
type:
- string
- "null"
name:
type: string
scopes:
type: string
required:
- name
- identifier
- last_used_at
- created_at
type: object
Account:
additionalProperties: false
properties:
execution_region:
type: string
is_self_hosted_only:
type: boolean
name:
type: string
slug:
deprecated: true
description: This property is deprecated. Use name instead.
type: string
required:
- name
- is_self_hosted_only
- execution_region
type: object
AcknowledgeAlertResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/AcknowledgeAlertResponse.json
format: uri
readOnly: true
type: string
status:
type: string
required:
- status
type: object
AcknowledgeAllAlertsResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/AcknowledgeAllAlertsResponse.json
format: uri
readOnly: true
type: string
count:
description: Number of alerts that were acknowledged
format: int64
type: integer
status:
type: string
required:
- status
- count
type: object
Alert:
additionalProperties: false
properties:
acked:
type: boolean
alert_type:
type: string
created_at:
format: date-time
type: string
detail:
oneOf:
- $ref: "#/components/schemas/RunFailureAlert"
type: object
seq:
format: int64
type: integer
status:
type: string
required:
- alert_type
- seq
- detail
- created_at
- status
- acked
type: object
App:
additionalProperties: false
properties:
created_at:
description: The date and time this app was created.
format: date-time
type: string
health_status:
deprecated: true
description: This property is deprecated. It will always be 'healthy'.
enum:
- healthy
- warning
type: string
is_externally_accessible:
type: boolean
last_run:
$ref: "#/components/schemas/Run"
deprecated: true
description: "Deprecated: always null, previously latest run of this app. Use \"runs\" in app summary instead."
name:
description: The name of the app.
type: string
next_run_at:
description: The next time this app will run as part of it's schedule, null if none.
format: date-time
type:
- string
- "null"
owner:
description: The account slug that owns this app.
type: string
pending_timeout:
default: 600
description: The maximum time in seconds that a run can stay in the pending state before being marked as cancelled.
format: int64
type: integer
retry_policy:
$ref: "#/components/schemas/RunRetryPolicy"
description: The retry policy for failed runs of this app.
run_results:
$ref: "#/components/schemas/RunResults"
description: The stats of all the runs of this app.
running_timeout:
default: 0
description: The number of seconds that a run can stay running before it gets cancelled. Value of 0 (default) means no timeout.
format: int64
type: integer
schedule:
deprecated: true
description: The schedule associated with this app, null if none.
type:
- string
- "null"
short_description:
description: A short description of the app. Can be empty.
type: string
slug:
deprecated: true
description: This property is deprecated. Use name instead.
type: string
status:
description: The status of the app.
enum:
- active
- disabled
type: string
subdomain:
description: The subdomain that this app is accessible via. Must be externally accessible first.
type: string
version:
description: The current version of this app, null if none.
type:
- string
- "null"
required:
- name
- owner
- short_description
- version
- schedule
- created_at
- next_run_at
- health_status
- is_externally_accessible
- pending_timeout
- running_timeout
type: object
AppStatistics:
additionalProperties: false
properties:
all_apps:
format: int64
type: integer
disabled_apps:
format: int64
type: integer
healthy_apps:
format: int64
type: integer
running_apps:
format: int64
type: integer
required:
- all_apps
- healthy_apps
- running_apps
- disabled_apps
type: object
AppSummary:
additionalProperties: false
properties:
app:
$ref: "#/components/schemas/App"
runs:
items:
$ref: "#/components/schemas/Run"
type: array
required:
- app
- runs
type: object
AppVersion:
additionalProperties: false
properties:
created_at:
format: date-time
type: string
parameters:
items:
$ref: "#/components/schemas/Parameter"
type: array
towerfile:
description: The Towerfile that this version was created from.
type: string
version:
type: string
required:
- version
- parameters
- created_at
- towerfile
type: object
AuthenticationContext:
additionalProperties: false
properties:
work_os_access_token:
description: The WorkOS access token for SSO authentication.
type: string
required:
- work_os_access_token
type: object
BatchScheduleParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/BatchScheduleParams.json
format: uri
readOnly: true
type: string
ids:
description: The IDs of the schedules to modify
items:
type: string
minItems: 1
type: array
required:
- ids
type: object
BatchScheduleResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/BatchScheduleResponse.json
format: uri
readOnly: true
type: string
schedules:
items:
$ref: "#/components/schemas/Schedule"
type: array
required:
- schedules
type: object
CancelRunResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CancelRunResponse.json
format: uri
readOnly: true
type: string
run:
$ref: "#/components/schemas/Run"
required:
- run
type: object
Catalog:
additionalProperties: false
properties:
CreatedAt:
format: date-time
type: string
environment:
type: string
name:
type: string
properties:
items:
$ref: "#/components/schemas/CatalogProperty"
type: array
slug:
deprecated: true
description: This property is deprecated. Use name instead.
type: string
type:
type: string
required:
- type
- name
- environment
- properties
- CreatedAt
type: object
CatalogProperty:
additionalProperties: false
properties:
environment_variable:
description: The environment variable name this property is injected as at runtime.
type: string
name:
type: string
preview:
type: string
required:
- name
- preview
type: object
ClaimDeviceLoginTicketParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/ClaimDeviceLoginTicketParams.json
format: uri
readOnly: true
type: string
refresh_token:
description: The refresh token for the session to delegate to the device.
type: string
user_code:
description: The user code to claim.
type: string
required:
- user_code
- refresh_token
type: object
ClaimDeviceLoginTicketResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/ClaimDeviceLoginTicketResponse.json
format: uri
readOnly: true
type: string
claimed:
description: Whether the code was successfully claimed.
type: boolean
required:
- claimed
type: object
CreateAPIKeyParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAPIKeyParams.json
format: uri
readOnly: true
type: string
expires_at:
description: When this API key expires.
format: date-time
type:
- string
- "null"
name:
type: string
scopes:
description: Space separated scopes that this API key is valid for.
type:
- string
- "null"
team:
description: The team this API key is associated with. This field is optional. You must be a member of the team that you're creating the API key for, and if you're using an API key to create a new API key, the API key you use to authenticate this request must be a personal API key.
type:
- string
- "null"
required:
- name
type: object
CreateAPIKeyResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAPIKeyResponse.json
format: uri
readOnly: true
type: string
api_key:
$ref: "#/components/schemas/APIKey"
description: Created API key
required:
- api_key
type: object
CreateAccountParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAccountParams.json
format: uri
readOnly: true
type: string
email:
type: string
password:
type: string
required:
- email
- password
type: object
CreateAccountParamsFlagsStruct:
additionalProperties: false
properties:
is_test_account:
type: boolean
required:
- is_test_account
type: object
CreateAccountResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAccountResponse.json
format: uri
readOnly: true
type: string
session:
$ref: "#/components/schemas/Session"
required:
- session
type: object
CreateAppParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAppParams.json
format: uri
readOnly: true
type: string
is_externally_accessible:
default: false
description: Indicates that web traffic should be routed to this app and that its runs should get a hostname assigned to it.
type: boolean
name:
description: The name of the app.
maxLength: 100
minLength: 1
type: string
short_description:
description: A description of the app.
type: string
slug:
description: The slug of the app. Legacy CLI will send it but we don't need it.
type: string
subdomain:
description: The subdomain this app is accessible under. Requires is_externally_accessible to be true.
type:
- string
- "null"
required:
- name
type: object
CreateAppResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateAppResponse.json
format: uri
readOnly: true
type: string
app:
$ref: "#/components/schemas/App"
required:
- app
type: object
CreateCatalogParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateCatalogParams.json
format: uri
readOnly: true
type: string
environment:
type: string
name:
type: string
properties:
items:
$ref: "#/components/schemas/EncryptedCatalogProperty"
type: array
type:
enum:
- snowflake-open-catalog
- apache-polaris
- cloudflare-r2-catalog
- lakekeeper
- tower-catalog
- s3-tables
type: string
required:
- name
- type
- environment
- properties
type: object
CreateCatalogResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateCatalogResponse.json
format: uri
readOnly: true
type: string
catalog:
$ref: "#/components/schemas/Catalog"
required:
- catalog
type: object
CreateDeviceLoginTicketResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateDeviceLoginTicketResponse.json
format: uri
readOnly: true
type: string
device_code:
description: The unique code identifying this device login request.
type: string
expires_in:
description: Number of seconds until this request expires.
format: int64
type: integer
generated_at:
description: When this device login request was created.
format: date-time
type: string
interval:
description: Number of seconds to wait between polling attempts.
format: int64
type: integer
login_url:
description: The URL where the user should go to enter the user code.
type: string
user_code:
description: The code that the user needs to enter to authenticate.
type: string
verification_url:
description: The URL that the device should poll to check authentication status.
type: string
required:
- device_code
- user_code
- login_url
- verification_url
- generated_at
- expires_in
- interval
type: object
CreateEnvironmentParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateEnvironmentParams.json
format: uri
readOnly: true
type: string
name:
description: The name of the environment
maxLength: 100
minLength: 1
type: string
required:
- name
type: object
CreateEnvironmentResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateEnvironmentResponse.json
format: uri
readOnly: true
type: string
environment:
$ref: "#/components/schemas/Environment"
required:
- environment
type: object
CreateGuestParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateGuestParams.json
format: uri
readOnly: true
type: string
app:
description: The name of the externally accessible app this guest can access.
type: string
expires_in:
default: 259200
description: The number of seconds the guest session should last. Defaults to 72 hours.
format: int64
type: integer
name:
description: Optional display name for the guest.
type: string
redirect_url:
description: Where to redirect the guest after they log in. Defaults to the app's subdomain.
type: string
required:
- app
type: object
CreateGuestResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateGuestResponse.json
format: uri
readOnly: true
type: string
guest:
$ref: "#/components/schemas/Guest"
description: The created guest.
login_url:
description: The URL to share with the guest for logging in.
type: string
login_url_expires_at:
description: When the login URL expires.
format: date-time
type: string
required:
- guest
- login_url
- login_url_expires_at
type: object
CreateSandboxSecretsParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSandboxSecretsParams.json
format: uri
readOnly: true
type: string
environment:
description: Environment to create secrets in
type: string
secret_keys:
description: List of secret keys to create with Tower defaults
items:
type: string
type: array
required:
- environment
- secret_keys
type: object
CreateSandboxSecretsResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSandboxSecretsResponse.json
format: uri
readOnly: true
type: string
created:
description: List of secret keys that were created
items:
type: string
type: array
required:
- created
type: object
CreateScheduleParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateScheduleParams.json
format: uri
readOnly: true
type: string
app_name:
description: The name of the app to create a schedule for
minLength: 1
type: string
app_version:
deprecated: true
description: This property is deprecated and ignored. Schedules inherit the version from their environment.
type:
- string
- "null"
cron:
description: The cron expression defining when the app should run
minLength: 1
type: string
environment:
default: default
description: The environment to run the app in
type: string
name:
description: The name for this schedule. Must be unique per environment. If not set, one will be generated for you.
type:
- string
- "null"
overlap_policy:
default: allow
description: The overlap policy for the schedule
enum:
- skip
- allow
type:
- string
- "null"
parameters:
description: Parameters to pass when running the app
items:
$ref: "#/components/schemas/RunParameterInput"
type: array
status:
description: The status of the schedule (defaults to active)
enum:
- active
- disabled
type:
- string
- "null"
timezone:
default: UTC
description: The IANA timezone identifier that the cron expression should be evaluated in (e.g., 'America/New_York', 'Europe/London'). Defaults to 'UTC'.
type:
- string
- "null"
required:
- app_name
- cron
type: object
CreateScheduleResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateScheduleResponse.json
format: uri
readOnly: true
type: string
schedule:
$ref: "#/components/schemas/Schedule"
required:
- schedule
type: object
CreateSecretParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSecretParams.json
format: uri
readOnly: true
type: string
encrypted_value:
type: string
environment:
type: string
name:
type: string
preview:
type: string
required:
- name
- environment
- encrypted_value
- preview
type: object
CreateSecretResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSecretResponse.json
format: uri
readOnly: true
type: string
secret:
$ref: "#/components/schemas/Secret"
required:
- secret
type: object
CreateSessionParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSessionParams.json
format: uri
readOnly: true
type: string
code:
description: One-time password verification code for two-factor authentication. If the user has two-factor authentication enabled, this code is required to log in.
type: string
password:
type: string
username:
type: string
required:
- username
- password
type: object
CreateSessionResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateSessionResponse.json
format: uri
readOnly: true
type: string
session:
$ref: "#/components/schemas/Session"
description: The new session information.
required:
- session
type: object
CreateTeamParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateTeamParams.json
format: uri
readOnly: true
type: string
name:
description: The name of the team to create
type: string
required:
- name
type: object
CreateTeamResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateTeamResponse.json
format: uri
readOnly: true
type: string
team:
$ref: "#/components/schemas/Team"
description: The team that was just created
required:
- team
type: object
CreateWebhookParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateWebhookParams.json
format: uri
readOnly: true
type: string
name:
description: The name of the webhook.
type: string
url:
description: The webhook URL.
type: string
required:
- name
- url
type: object
CreateWebhookResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/CreateWebhookResponse.json
format: uri
readOnly: true
type: string
signing_key:
type: string
webhook:
$ref: "#/components/schemas/Webhook"
required:
- webhook
- signing_key
type: object
DeleteAPIKeyParams:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/DeleteAPIKeyParams.json
format: uri
readOnly: true
type: string
identifier:
type: string
required:
- identifier
type: object
DeleteAPIKeyResponse:
additionalProperties: false
properties:
$schema:
description: A URL to the JSON Schema for this object.
examples:
- https://api.tower.dev/v1/schemas/DeleteAPIKeyResponse.json
format: uri
readOnly: true
type: string
api_key:
$ref: "#/components/schemas/APIKey"
description: Created API key
required:
- api_key
type: object
DeleteAppResponse:
additionalProperties: false
properties: