oz-node-sdk 0.1.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.
@@ -0,0 +1,1113 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "oz-api",
5
+ "description": "",
6
+ "contact": {
7
+ "name": "Geoff Seemueller",
8
+ "email": "geoff@seemueller.io"
9
+ },
10
+ "license": {
11
+ "name": ""
12
+ },
13
+ "version": "0.1.0"
14
+ },
15
+ "paths": {
16
+ "/api/csrf": {
17
+ "get": {
18
+ "tags": [
19
+ "api"
20
+ ],
21
+ "operationId": "api_csrf",
22
+ "responses": {
23
+ "200": {
24
+ "description": "CSRF token",
25
+ "content": {
26
+ "application/json": {
27
+ "schema": {
28
+ "$ref": "#/components/schemas/CsrfTokenResponse"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ },
36
+ "/api/keys": {
37
+ "get": {
38
+ "tags": [
39
+ "api"
40
+ ],
41
+ "operationId": "api_list_keys",
42
+ "responses": {
43
+ "200": {
44
+ "description": "API keys",
45
+ "content": {
46
+ "application/json": {
47
+ "schema": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/components/schemas/ApiKeyInfo"
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ },
58
+ "post": {
59
+ "tags": [
60
+ "api"
61
+ ],
62
+ "operationId": "api_create_key",
63
+ "requestBody": {
64
+ "content": {
65
+ "application/json": {
66
+ "schema": {
67
+ "$ref": "#/components/schemas/CreateApiKeyRequest"
68
+ }
69
+ }
70
+ },
71
+ "required": true
72
+ },
73
+ "responses": {
74
+ "201": {
75
+ "description": "Created key",
76
+ "content": {
77
+ "application/json": {
78
+ "schema": {
79
+ "$ref": "#/components/schemas/CreateApiKeyResponse"
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "400": {
85
+ "description": "Invalid request"
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "/api/keys/{id}": {
91
+ "delete": {
92
+ "tags": [
93
+ "api"
94
+ ],
95
+ "operationId": "api_revoke_key",
96
+ "parameters": [
97
+ {
98
+ "name": "id",
99
+ "in": "path",
100
+ "description": "API key id",
101
+ "required": true,
102
+ "schema": {
103
+ "type": "string"
104
+ }
105
+ }
106
+ ],
107
+ "responses": {
108
+ "204": {
109
+ "description": "Key revoked"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "/api/me": {
115
+ "get": {
116
+ "tags": [
117
+ "api"
118
+ ],
119
+ "operationId": "api_me",
120
+ "responses": {
121
+ "200": {
122
+ "description": "Current profile",
123
+ "content": {
124
+ "application/json": {
125
+ "schema": {
126
+ "$ref": "#/components/schemas/Profile"
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "/api/projects": {
135
+ "get": {
136
+ "tags": [
137
+ "api"
138
+ ],
139
+ "operationId": "api_list_projects",
140
+ "responses": {
141
+ "200": {
142
+ "description": "Visible projects",
143
+ "content": {
144
+ "application/json": {
145
+ "schema": {
146
+ "type": "array",
147
+ "items": {
148
+ "$ref": "#/components/schemas/Project"
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ "post": {
157
+ "tags": [
158
+ "api"
159
+ ],
160
+ "operationId": "api_create_project",
161
+ "requestBody": {
162
+ "content": {
163
+ "application/json": {
164
+ "schema": {
165
+ "$ref": "#/components/schemas/CreateProjectBody"
166
+ }
167
+ }
168
+ },
169
+ "required": true
170
+ },
171
+ "responses": {
172
+ "201": {
173
+ "description": "Created project",
174
+ "content": {
175
+ "application/json": {
176
+ "schema": {
177
+ "$ref": "#/components/schemas/Project"
178
+ }
179
+ }
180
+ }
181
+ },
182
+ "400": {
183
+ "description": "Invalid request"
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "/api/projects/{slug}/members": {
189
+ "get": {
190
+ "tags": [
191
+ "api"
192
+ ],
193
+ "operationId": "api_list_members",
194
+ "parameters": [
195
+ {
196
+ "name": "slug",
197
+ "in": "path",
198
+ "description": "Project slug",
199
+ "required": true,
200
+ "schema": {
201
+ "type": "string"
202
+ }
203
+ }
204
+ ],
205
+ "responses": {
206
+ "200": {
207
+ "description": "Project members",
208
+ "content": {
209
+ "application/json": {
210
+ "schema": {
211
+ "type": "array",
212
+ "items": {
213
+ "$ref": "#/components/schemas/ProjectMember"
214
+ }
215
+ }
216
+ }
217
+ }
218
+ }
219
+ }
220
+ },
221
+ "post": {
222
+ "tags": [
223
+ "api"
224
+ ],
225
+ "operationId": "api_add_member",
226
+ "parameters": [
227
+ {
228
+ "name": "slug",
229
+ "in": "path",
230
+ "description": "Project slug",
231
+ "required": true,
232
+ "schema": {
233
+ "type": "string"
234
+ }
235
+ }
236
+ ],
237
+ "requestBody": {
238
+ "content": {
239
+ "application/json": {
240
+ "schema": {
241
+ "$ref": "#/components/schemas/ProjectMemberBody"
242
+ }
243
+ }
244
+ },
245
+ "required": true
246
+ },
247
+ "responses": {
248
+ "201": {
249
+ "description": "Member added"
250
+ }
251
+ }
252
+ },
253
+ "delete": {
254
+ "tags": [
255
+ "api"
256
+ ],
257
+ "operationId": "api_remove_member",
258
+ "parameters": [
259
+ {
260
+ "name": "slug",
261
+ "in": "path",
262
+ "description": "Project slug",
263
+ "required": true,
264
+ "schema": {
265
+ "type": "string"
266
+ }
267
+ },
268
+ {
269
+ "name": "login",
270
+ "in": "query",
271
+ "description": "Member login",
272
+ "required": true,
273
+ "schema": {
274
+ "type": "string"
275
+ }
276
+ }
277
+ ],
278
+ "responses": {
279
+ "204": {
280
+ "description": "Member removed"
281
+ }
282
+ }
283
+ }
284
+ },
285
+ "/api/secrets/delete": {
286
+ "post": {
287
+ "tags": [
288
+ "api"
289
+ ],
290
+ "operationId": "api_delete_secret",
291
+ "requestBody": {
292
+ "content": {
293
+ "application/json": {
294
+ "schema": {
295
+ "$ref": "#/components/schemas/SecretSelectorBody"
296
+ }
297
+ }
298
+ },
299
+ "required": true
300
+ },
301
+ "responses": {
302
+ "204": {
303
+ "description": "Secret deleted"
304
+ }
305
+ }
306
+ }
307
+ },
308
+ "/api/secrets/list": {
309
+ "post": {
310
+ "tags": [
311
+ "api"
312
+ ],
313
+ "operationId": "api_list_secrets",
314
+ "requestBody": {
315
+ "content": {
316
+ "application/json": {
317
+ "schema": {
318
+ "$ref": "#/components/schemas/ProjectSelectorBody"
319
+ }
320
+ }
321
+ },
322
+ "required": true
323
+ },
324
+ "responses": {
325
+ "200": {
326
+ "description": "Secret metadata",
327
+ "content": {
328
+ "application/json": {
329
+ "schema": {
330
+ "type": "array",
331
+ "items": {
332
+ "$ref": "#/components/schemas/SecretMeta"
333
+ }
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "/api/secrets/read": {
342
+ "post": {
343
+ "tags": [
344
+ "api"
345
+ ],
346
+ "operationId": "api_read_secret",
347
+ "requestBody": {
348
+ "content": {
349
+ "application/json": {
350
+ "schema": {
351
+ "$ref": "#/components/schemas/SecretSelectorBody"
352
+ }
353
+ }
354
+ },
355
+ "required": true
356
+ },
357
+ "responses": {
358
+ "200": {
359
+ "description": "Secret value",
360
+ "content": {
361
+ "application/json": {
362
+ "schema": {
363
+ "$ref": "#/components/schemas/SecretValue"
364
+ }
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
370
+ },
371
+ "/api/secrets/write": {
372
+ "put": {
373
+ "tags": [
374
+ "api"
375
+ ],
376
+ "operationId": "api_write_secret",
377
+ "requestBody": {
378
+ "content": {
379
+ "application/json": {
380
+ "schema": {
381
+ "$ref": "#/components/schemas/SecretWriteBody"
382
+ }
383
+ }
384
+ },
385
+ "required": true
386
+ },
387
+ "responses": {
388
+ "200": {
389
+ "description": "Stored secret",
390
+ "content": {
391
+ "application/json": {
392
+ "schema": {
393
+ "$ref": "#/components/schemas/SecretValue"
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ },
401
+ "/auth/github": {
402
+ "get": {
403
+ "tags": [
404
+ "auth"
405
+ ],
406
+ "operationId": "github_oauth",
407
+ "responses": {
408
+ "302": {
409
+ "description": "Redirects to GitHub OAuth authorization"
410
+ }
411
+ }
412
+ }
413
+ },
414
+ "/auth/github/callback": {
415
+ "get": {
416
+ "tags": [
417
+ "auth"
418
+ ],
419
+ "operationId": "github_oauth_callback",
420
+ "parameters": [
421
+ {
422
+ "name": "code",
423
+ "in": "query",
424
+ "description": "OAuth authorization code",
425
+ "required": true,
426
+ "schema": {
427
+ "type": "string"
428
+ }
429
+ },
430
+ {
431
+ "name": "state",
432
+ "in": "query",
433
+ "description": "OAuth state",
434
+ "required": true,
435
+ "schema": {
436
+ "type": "string"
437
+ }
438
+ }
439
+ ],
440
+ "responses": {
441
+ "302": {
442
+ "description": "Completes sign-in flow"
443
+ }
444
+ }
445
+ }
446
+ },
447
+ "/auth/logout": {
448
+ "post": {
449
+ "tags": [
450
+ "auth"
451
+ ],
452
+ "operationId": "auth_logout",
453
+ "responses": {
454
+ "204": {
455
+ "description": "Signed out"
456
+ },
457
+ "403": {
458
+ "description": "Invalid CSRF token"
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "/v1/projects": {
464
+ "get": {
465
+ "tags": [
466
+ "api"
467
+ ],
468
+ "operationId": "v1_list_projects",
469
+ "responses": {
470
+ "200": {
471
+ "description": "Projects",
472
+ "content": {
473
+ "application/json": {
474
+ "schema": {
475
+ "type": "array",
476
+ "items": {
477
+ "$ref": "#/components/schemas/Project"
478
+ }
479
+ }
480
+ }
481
+ }
482
+ }
483
+ }
484
+ }
485
+ },
486
+ "/v1/projects/{slug}/secrets": {
487
+ "get": {
488
+ "tags": [
489
+ "api"
490
+ ],
491
+ "operationId": "v1_list_project_secrets",
492
+ "parameters": [
493
+ {
494
+ "name": "slug",
495
+ "in": "path",
496
+ "description": "Project slug",
497
+ "required": true,
498
+ "schema": {
499
+ "type": "string"
500
+ }
501
+ }
502
+ ],
503
+ "responses": {
504
+ "200": {
505
+ "description": "Secret metadata",
506
+ "content": {
507
+ "application/json": {
508
+ "schema": {
509
+ "type": "array",
510
+ "items": {
511
+ "$ref": "#/components/schemas/SecretMeta"
512
+ }
513
+ }
514
+ }
515
+ }
516
+ }
517
+ }
518
+ }
519
+ },
520
+ "/v1/projects/{slug}/secrets/{key}": {
521
+ "get": {
522
+ "tags": [
523
+ "api"
524
+ ],
525
+ "operationId": "v1_get_secret",
526
+ "parameters": [
527
+ {
528
+ "name": "slug",
529
+ "in": "path",
530
+ "description": "Project slug",
531
+ "required": true,
532
+ "schema": {
533
+ "type": "string"
534
+ }
535
+ },
536
+ {
537
+ "name": "key",
538
+ "in": "path",
539
+ "description": "Secret key",
540
+ "required": true,
541
+ "schema": {
542
+ "type": "string"
543
+ }
544
+ }
545
+ ],
546
+ "responses": {
547
+ "200": {
548
+ "description": "Secret value",
549
+ "content": {
550
+ "application/json": {
551
+ "schema": {
552
+ "$ref": "#/components/schemas/SecretValue"
553
+ }
554
+ }
555
+ }
556
+ }
557
+ }
558
+ },
559
+ "put": {
560
+ "tags": [
561
+ "api"
562
+ ],
563
+ "operationId": "v1_write_secret",
564
+ "parameters": [
565
+ {
566
+ "name": "slug",
567
+ "in": "path",
568
+ "description": "Project slug",
569
+ "required": true,
570
+ "schema": {
571
+ "type": "string"
572
+ }
573
+ },
574
+ {
575
+ "name": "key",
576
+ "in": "path",
577
+ "description": "Secret key",
578
+ "required": true,
579
+ "schema": {
580
+ "type": "string"
581
+ }
582
+ }
583
+ ],
584
+ "requestBody": {
585
+ "content": {
586
+ "application/json": {
587
+ "schema": {
588
+ "$ref": "#/components/schemas/PathSecretWriteBody"
589
+ }
590
+ }
591
+ },
592
+ "required": true
593
+ },
594
+ "responses": {
595
+ "200": {
596
+ "description": "Stored secret",
597
+ "content": {
598
+ "application/json": {
599
+ "schema": {
600
+ "$ref": "#/components/schemas/SecretValue"
601
+ }
602
+ }
603
+ }
604
+ }
605
+ }
606
+ },
607
+ "delete": {
608
+ "tags": [
609
+ "api"
610
+ ],
611
+ "operationId": "v1_delete_secret",
612
+ "parameters": [
613
+ {
614
+ "name": "slug",
615
+ "in": "path",
616
+ "description": "Project slug",
617
+ "required": true,
618
+ "schema": {
619
+ "type": "string"
620
+ }
621
+ },
622
+ {
623
+ "name": "key",
624
+ "in": "path",
625
+ "description": "Secret key",
626
+ "required": true,
627
+ "schema": {
628
+ "type": "string"
629
+ }
630
+ }
631
+ ],
632
+ "responses": {
633
+ "204": {
634
+ "description": "Secret deleted"
635
+ }
636
+ }
637
+ }
638
+ },
639
+ "/v2/projects": {
640
+ "get": {
641
+ "tags": [
642
+ "api"
643
+ ],
644
+ "operationId": "v2_list_projects",
645
+ "responses": {
646
+ "200": {
647
+ "description": "Projects",
648
+ "content": {
649
+ "application/json": {
650
+ "schema": {
651
+ "type": "array",
652
+ "items": {
653
+ "$ref": "#/components/schemas/Project"
654
+ }
655
+ }
656
+ }
657
+ }
658
+ }
659
+ }
660
+ }
661
+ },
662
+ "/v2/secrets/delete": {
663
+ "post": {
664
+ "tags": [
665
+ "api"
666
+ ],
667
+ "operationId": "v2_delete_secret",
668
+ "requestBody": {
669
+ "content": {
670
+ "application/json": {
671
+ "schema": {
672
+ "$ref": "#/components/schemas/SecretSelectorBody"
673
+ }
674
+ }
675
+ },
676
+ "required": true
677
+ },
678
+ "responses": {
679
+ "204": {
680
+ "description": "Secret deleted"
681
+ }
682
+ }
683
+ }
684
+ },
685
+ "/v2/secrets/list": {
686
+ "post": {
687
+ "tags": [
688
+ "api"
689
+ ],
690
+ "operationId": "v2_list_secrets",
691
+ "requestBody": {
692
+ "content": {
693
+ "application/json": {
694
+ "schema": {
695
+ "$ref": "#/components/schemas/ProjectSelectorBody"
696
+ }
697
+ }
698
+ },
699
+ "required": true
700
+ },
701
+ "responses": {
702
+ "200": {
703
+ "description": "Secret metadata",
704
+ "content": {
705
+ "application/json": {
706
+ "schema": {
707
+ "type": "array",
708
+ "items": {
709
+ "$ref": "#/components/schemas/SecretMeta"
710
+ }
711
+ }
712
+ }
713
+ }
714
+ }
715
+ }
716
+ }
717
+ },
718
+ "/v2/secrets/read": {
719
+ "post": {
720
+ "tags": [
721
+ "api"
722
+ ],
723
+ "operationId": "v2_read_secret",
724
+ "requestBody": {
725
+ "content": {
726
+ "application/json": {
727
+ "schema": {
728
+ "$ref": "#/components/schemas/SecretSelectorBody"
729
+ }
730
+ }
731
+ },
732
+ "required": true
733
+ },
734
+ "responses": {
735
+ "200": {
736
+ "description": "Secret value",
737
+ "content": {
738
+ "application/json": {
739
+ "schema": {
740
+ "$ref": "#/components/schemas/SecretValue"
741
+ }
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ },
748
+ "/v2/secrets/write": {
749
+ "put": {
750
+ "tags": [
751
+ "api"
752
+ ],
753
+ "operationId": "v2_write_secret",
754
+ "requestBody": {
755
+ "content": {
756
+ "application/json": {
757
+ "schema": {
758
+ "$ref": "#/components/schemas/SecretWriteBody"
759
+ }
760
+ }
761
+ },
762
+ "required": true
763
+ },
764
+ "responses": {
765
+ "200": {
766
+ "description": "Stored secret",
767
+ "content": {
768
+ "application/json": {
769
+ "schema": {
770
+ "$ref": "#/components/schemas/SecretValue"
771
+ }
772
+ }
773
+ }
774
+ }
775
+ }
776
+ }
777
+ }
778
+ },
779
+ "components": {
780
+ "schemas": {
781
+ "ApiKeyInfo": {
782
+ "type": "object",
783
+ "required": [
784
+ "id",
785
+ "name",
786
+ "key_prefix",
787
+ "scopes"
788
+ ],
789
+ "properties": {
790
+ "id": {
791
+ "type": "string"
792
+ },
793
+ "key_prefix": {
794
+ "type": "string"
795
+ },
796
+ "name": {
797
+ "type": "string"
798
+ },
799
+ "scopes": {
800
+ "type": "array",
801
+ "items": {
802
+ "$ref": "#/components/schemas/ApiKeyScope"
803
+ }
804
+ }
805
+ }
806
+ },
807
+ "ApiKeyPermission": {
808
+ "type": "string",
809
+ "enum": [
810
+ "read",
811
+ "write"
812
+ ]
813
+ },
814
+ "ApiKeyScope": {
815
+ "type": "object",
816
+ "required": [
817
+ "project_id",
818
+ "permission"
819
+ ],
820
+ "properties": {
821
+ "permission": {
822
+ "$ref": "#/components/schemas/ApiKeyPermission"
823
+ },
824
+ "project_id": {
825
+ "type": "string"
826
+ }
827
+ }
828
+ },
829
+ "CreateApiKeyRequest": {
830
+ "type": "object",
831
+ "required": [
832
+ "name",
833
+ "scopes"
834
+ ],
835
+ "properties": {
836
+ "name": {
837
+ "type": "string"
838
+ },
839
+ "scopes": {
840
+ "type": "array",
841
+ "items": {
842
+ "$ref": "#/components/schemas/KeyScopeBody"
843
+ }
844
+ }
845
+ }
846
+ },
847
+ "CreateApiKeyResponse": {
848
+ "type": "object",
849
+ "required": [
850
+ "id",
851
+ "name",
852
+ "key",
853
+ "key_prefix",
854
+ "scopes"
855
+ ],
856
+ "properties": {
857
+ "id": {
858
+ "type": "string"
859
+ },
860
+ "key": {
861
+ "type": "string"
862
+ },
863
+ "key_prefix": {
864
+ "type": "string"
865
+ },
866
+ "name": {
867
+ "type": "string"
868
+ },
869
+ "scopes": {
870
+ "type": "array",
871
+ "items": {
872
+ "$ref": "#/components/schemas/ApiKeyScope"
873
+ }
874
+ }
875
+ }
876
+ },
877
+ "CreateProjectBody": {
878
+ "type": "object",
879
+ "required": [
880
+ "slug",
881
+ "name"
882
+ ],
883
+ "properties": {
884
+ "name": {
885
+ "type": "string"
886
+ },
887
+ "slug": {
888
+ "type": "string"
889
+ }
890
+ }
891
+ },
892
+ "CsrfTokenResponse": {
893
+ "type": "object",
894
+ "required": [
895
+ "token"
896
+ ],
897
+ "properties": {
898
+ "token": {
899
+ "type": "string"
900
+ }
901
+ }
902
+ },
903
+ "KeyScopeBody": {
904
+ "type": "object",
905
+ "required": [
906
+ "project_id",
907
+ "permission"
908
+ ],
909
+ "properties": {
910
+ "permission": {
911
+ "$ref": "#/components/schemas/ApiKeyPermission"
912
+ },
913
+ "project_id": {
914
+ "type": "string"
915
+ }
916
+ }
917
+ },
918
+ "MemberRole": {
919
+ "type": "string",
920
+ "enum": [
921
+ "read",
922
+ "write",
923
+ "admin"
924
+ ]
925
+ },
926
+ "PathSecretWriteBody": {
927
+ "type": "object",
928
+ "required": [
929
+ "value"
930
+ ],
931
+ "properties": {
932
+ "value": {
933
+ "type": "string"
934
+ }
935
+ }
936
+ },
937
+ "Profile": {
938
+ "type": "object",
939
+ "required": [
940
+ "id",
941
+ "github_id",
942
+ "login"
943
+ ],
944
+ "properties": {
945
+ "avatar_url": {
946
+ "type": [
947
+ "string",
948
+ "null"
949
+ ]
950
+ },
951
+ "github_id": {
952
+ "type": "integer",
953
+ "format": "int64"
954
+ },
955
+ "id": {
956
+ "type": "string"
957
+ },
958
+ "login": {
959
+ "type": "string"
960
+ },
961
+ "name": {
962
+ "type": [
963
+ "string",
964
+ "null"
965
+ ]
966
+ }
967
+ }
968
+ },
969
+ "Project": {
970
+ "type": "object",
971
+ "required": [
972
+ "id",
973
+ "slug",
974
+ "name",
975
+ "owner_profile_id"
976
+ ],
977
+ "properties": {
978
+ "id": {
979
+ "type": "string"
980
+ },
981
+ "name": {
982
+ "type": "string"
983
+ },
984
+ "owner_profile_id": {
985
+ "type": "string"
986
+ },
987
+ "slug": {
988
+ "type": "string"
989
+ }
990
+ }
991
+ },
992
+ "ProjectMember": {
993
+ "type": "object",
994
+ "required": [
995
+ "profile_id",
996
+ "login",
997
+ "role"
998
+ ],
999
+ "properties": {
1000
+ "login": {
1001
+ "type": "string"
1002
+ },
1003
+ "profile_id": {
1004
+ "type": "string"
1005
+ },
1006
+ "role": {
1007
+ "$ref": "#/components/schemas/MemberRole"
1008
+ }
1009
+ }
1010
+ },
1011
+ "ProjectMemberBody": {
1012
+ "type": "object",
1013
+ "required": [
1014
+ "login",
1015
+ "role"
1016
+ ],
1017
+ "properties": {
1018
+ "login": {
1019
+ "type": "string"
1020
+ },
1021
+ "role": {
1022
+ "$ref": "#/components/schemas/MemberRole"
1023
+ }
1024
+ }
1025
+ },
1026
+ "ProjectSelectorBody": {
1027
+ "type": "object",
1028
+ "required": [
1029
+ "project"
1030
+ ],
1031
+ "properties": {
1032
+ "project": {
1033
+ "type": "string"
1034
+ }
1035
+ }
1036
+ },
1037
+ "SecretMeta": {
1038
+ "type": "object",
1039
+ "required": [
1040
+ "key_name",
1041
+ "version",
1042
+ "updated_at"
1043
+ ],
1044
+ "properties": {
1045
+ "key_name": {
1046
+ "type": "string"
1047
+ },
1048
+ "updated_at": {
1049
+ "type": "string"
1050
+ },
1051
+ "version": {
1052
+ "type": "integer",
1053
+ "format": "int64"
1054
+ }
1055
+ }
1056
+ },
1057
+ "SecretSelectorBody": {
1058
+ "type": "object",
1059
+ "required": [
1060
+ "project",
1061
+ "key"
1062
+ ],
1063
+ "properties": {
1064
+ "key": {
1065
+ "type": "string"
1066
+ },
1067
+ "project": {
1068
+ "type": "string"
1069
+ }
1070
+ }
1071
+ },
1072
+ "SecretValue": {
1073
+ "type": "object",
1074
+ "required": [
1075
+ "key_name",
1076
+ "value",
1077
+ "version"
1078
+ ],
1079
+ "properties": {
1080
+ "key_name": {
1081
+ "type": "string"
1082
+ },
1083
+ "value": {
1084
+ "type": "string"
1085
+ },
1086
+ "version": {
1087
+ "type": "integer",
1088
+ "format": "int64"
1089
+ }
1090
+ }
1091
+ },
1092
+ "SecretWriteBody": {
1093
+ "type": "object",
1094
+ "required": [
1095
+ "project",
1096
+ "key",
1097
+ "value"
1098
+ ],
1099
+ "properties": {
1100
+ "key": {
1101
+ "type": "string"
1102
+ },
1103
+ "project": {
1104
+ "type": "string"
1105
+ },
1106
+ "value": {
1107
+ "type": "string"
1108
+ }
1109
+ }
1110
+ }
1111
+ }
1112
+ }
1113
+ }