-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathindex.schemas.ts
More file actions
2301 lines (1939 loc) · 57.3 KB
/
index.schemas.ts
File metadata and controls
2301 lines (1939 loc) · 57.3 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
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Rill Admin API
* Rill Admin API enables programmatic management of Rill Cloud resources, including organizations, projects, and user access. It provides endpoints for creating, updating, and deleting these resources, as well as managing authentication and permissions.
* OpenAPI spec version: version not set
*/
export interface GetAlertMetaResponseURLs {
openUrl?: string;
editUrl?: string;
unsubscribeUrl?: string;
}
export type GetReportMetaResponseDeliveryMetaUserAttrs = {
[key: string]: unknown;
};
export interface GetReportMetaResponseDeliveryMeta {
openUrl?: string;
exportUrl?: string;
editUrl?: string;
unsubscribeUrl?: string;
userId?: string;
userAttrs?: GetReportMetaResponseDeliveryMetaUserAttrs;
}
export interface ListGithubUserReposResponseRepo {
name?: string;
owner?: string;
description?: string;
remote?: string;
defaultBranch?: string;
}
export interface ProtobufAny {
"@type"?: string;
[key: string]: unknown;
}
/**
* `NullValue` is a singleton enumeration to represent the null value for the
`Value` type union.
The JSON representation for `NullValue` is JSON `null`.
- NULL_VALUE: Null value.
*/
export type ProtobufNullValue =
(typeof ProtobufNullValue)[keyof typeof ProtobufNullValue];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProtobufNullValue = {
NULL_VALUE: "NULL_VALUE",
} as const;
export interface RpcStatus {
code?: number;
message?: string;
details?: ProtobufAny[];
}
export type Runtimev1Operation =
(typeof Runtimev1Operation)[keyof typeof Runtimev1Operation];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const Runtimev1Operation = {
OPERATION_UNSPECIFIED: "OPERATION_UNSPECIFIED",
OPERATION_EQ: "OPERATION_EQ",
OPERATION_NEQ: "OPERATION_NEQ",
OPERATION_LT: "OPERATION_LT",
OPERATION_LTE: "OPERATION_LTE",
OPERATION_GT: "OPERATION_GT",
OPERATION_GTE: "OPERATION_GTE",
OPERATION_OR: "OPERATION_OR",
OPERATION_AND: "OPERATION_AND",
OPERATION_IN: "OPERATION_IN",
OPERATION_NIN: "OPERATION_NIN",
OPERATION_LIKE: "OPERATION_LIKE",
OPERATION_NLIKE: "OPERATION_NLIKE",
OPERATION_CAST: "OPERATION_CAST",
} as const;
export interface V1AddOrganizationMemberUserResponse {
pendingSignup?: boolean;
}
export interface V1AddOrganizationMemberUsergroupResponse {
[key: string]: unknown;
}
export interface V1AddProjectMemberUserResponse {
pendingSignup?: boolean;
}
export interface V1AddProjectMemberUsergroupResponse {
[key: string]: unknown;
}
export interface V1AddUsergroupMemberUserResponse {
[key: string]: unknown;
}
export type V1AlertOptionsResolverProperties = { [key: string]: unknown };
export interface V1AlertOptions {
displayName?: string;
refreshCron?: string;
refreshTimeZone?: string;
intervalDuration?: string;
resolver?: string;
resolverProperties?: V1AlertOptionsResolverProperties;
/** DEPRECATED: Use resolver and resolver_properties instead. */
queryName?: string;
/** DEPRECATED: Use resolver and resolver_properties instead. */
queryArgsJson?: string;
metricsViewName?: string;
renotify?: boolean;
renotifyAfterSeconds?: number;
emailRecipients?: string[];
slackUsers?: string[];
slackChannels?: string[];
slackWebhooks?: string[];
/** Annotation for the subpath of <UI host>/org/project to open for the report. */
webOpenPath?: string;
/** Annotation for the base64-encoded UI state to open for the report. */
webOpenState?: string;
}
export interface V1ApproveProjectAccessResponse {
[key: string]: unknown;
}
export interface V1BillingIssue {
org?: string;
type?: V1BillingIssueType;
level?: V1BillingIssueLevel;
metadata?: V1BillingIssueMetadata;
eventTime?: string;
createdOn?: string;
}
export type V1BillingIssueLevel =
(typeof V1BillingIssueLevel)[keyof typeof V1BillingIssueLevel];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1BillingIssueLevel = {
BILLING_ISSUE_LEVEL_UNSPECIFIED: "BILLING_ISSUE_LEVEL_UNSPECIFIED",
BILLING_ISSUE_LEVEL_WARNING: "BILLING_ISSUE_LEVEL_WARNING",
BILLING_ISSUE_LEVEL_ERROR: "BILLING_ISSUE_LEVEL_ERROR",
} as const;
export interface V1BillingIssueMetadata {
onTrial?: V1BillingIssueMetadataOnTrial;
trialEnded?: V1BillingIssueMetadataTrialEnded;
noPaymentMethod?: V1BillingIssueMetadataNoPaymentMethod;
noBillableAddress?: V1BillingIssueMetadataNoBillableAddress;
paymentFailed?: V1BillingIssueMetadataPaymentFailed;
subscriptionCancelled?: V1BillingIssueMetadataSubscriptionCancelled;
neverSubscribed?: V1BillingIssueMetadataNeverSubscribed;
}
export interface V1BillingIssueMetadataNeverSubscribed {
[key: string]: unknown;
}
export interface V1BillingIssueMetadataNoBillableAddress {
[key: string]: unknown;
}
export interface V1BillingIssueMetadataNoPaymentMethod {
[key: string]: unknown;
}
export interface V1BillingIssueMetadataOnTrial {
endDate?: string;
gracePeriodEndDate?: string;
}
export interface V1BillingIssueMetadataPaymentFailed {
invoices?: V1BillingIssueMetadataPaymentFailedMeta[];
}
export interface V1BillingIssueMetadataPaymentFailedMeta {
invoiceId?: string;
invoiceNumber?: string;
invoiceUrl?: string;
amountDue?: string;
currency?: string;
dueDate?: string;
failedOn?: string;
gracePeriodEndDate?: string;
}
export interface V1BillingIssueMetadataSubscriptionCancelled {
endDate?: string;
}
export interface V1BillingIssueMetadataTrialEnded {
endDate?: string;
gracePeriodEndDate?: string;
}
export type V1BillingIssueType =
(typeof V1BillingIssueType)[keyof typeof V1BillingIssueType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1BillingIssueType = {
BILLING_ISSUE_TYPE_UNSPECIFIED: "BILLING_ISSUE_TYPE_UNSPECIFIED",
BILLING_ISSUE_TYPE_ON_TRIAL: "BILLING_ISSUE_TYPE_ON_TRIAL",
BILLING_ISSUE_TYPE_TRIAL_ENDED: "BILLING_ISSUE_TYPE_TRIAL_ENDED",
BILLING_ISSUE_TYPE_NO_PAYMENT_METHOD: "BILLING_ISSUE_TYPE_NO_PAYMENT_METHOD",
BILLING_ISSUE_TYPE_NO_BILLABLE_ADDRESS:
"BILLING_ISSUE_TYPE_NO_BILLABLE_ADDRESS",
BILLING_ISSUE_TYPE_PAYMENT_FAILED: "BILLING_ISSUE_TYPE_PAYMENT_FAILED",
BILLING_ISSUE_TYPE_SUBSCRIPTION_CANCELLED:
"BILLING_ISSUE_TYPE_SUBSCRIPTION_CANCELLED",
BILLING_ISSUE_TYPE_NEVER_SUBSCRIBED: "BILLING_ISSUE_TYPE_NEVER_SUBSCRIBED",
} as const;
export interface V1BillingPlan {
id?: string;
name?: string;
planType?: V1BillingPlanType;
displayName?: string;
description?: string;
trialPeriodDays?: number;
default?: boolean;
quotas?: V1Quotas;
public?: boolean;
}
export type V1BillingPlanType =
(typeof V1BillingPlanType)[keyof typeof V1BillingPlanType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1BillingPlanType = {
BILLING_PLAN_TYPE_UNSPECIFIED: "BILLING_PLAN_TYPE_UNSPECIFIED",
BILLING_PLAN_TYPE_TRIAL: "BILLING_PLAN_TYPE_TRIAL",
BILLING_PLAN_TYPE_TEAM: "BILLING_PLAN_TYPE_TEAM",
BILLING_PLAN_TYPE_MANAGED: "BILLING_PLAN_TYPE_MANAGED",
BILLING_PLAN_TYPE_ENTERPRISE: "BILLING_PLAN_TYPE_ENTERPRISE",
BILLING_PLAN_TYPE_FREE: "BILLING_PLAN_TYPE_FREE",
BILLING_PLAN_TYPE_PRO: "BILLING_PLAN_TYPE_PRO",
} as const;
export interface V1Bookmark {
id?: string;
displayName?: string;
description?: string;
data?: string;
urlSearch?: string;
resourceKind?: string;
resourceName?: string;
projectId?: string;
userId?: string;
default?: boolean;
shared?: boolean;
createdOn?: string;
updatedOn?: string;
}
export interface V1CancelBillingSubscriptionResponse {
[key: string]: unknown;
}
export interface V1CompleteRequest {
/** Input message(s) for the AI to complete. */
messages?: V1CompletionMessage[];
tools?: V1Tool[];
outputJsonSchema?: string;
}
export interface V1CompleteResponse {
message?: V1CompletionMessage;
/** Number of tokens in the input. */
inputTokens?: number;
/** Number of tokens in the output. */
outputTokens?: number;
}
export interface V1CompletionMessage {
role?: string;
data?: string;
content?: V1ContentBlock[];
}
export interface V1Condition {
op?: Runtimev1Operation;
exprs?: V1Expression[];
}
export interface V1ConnectProjectToGithubResponse {
[key: string]: unknown;
}
export interface V1ContentBlock {
text?: string;
toolCall?: V1ToolCall;
toolResult?: V1ToolResult;
}
export interface V1CreateAlertResponse {
name?: string;
}
export type V1CreateAssetResponseSigningHeaders = { [key: string]: string };
export interface V1CreateAssetResponse {
assetId?: string;
signedUrl?: string;
signingHeaders?: V1CreateAssetResponseSigningHeaders;
}
export interface V1CreateBookmarkRequest {
displayName?: string;
description?: string;
urlSearch?: string;
resourceKind?: string;
resourceName?: string;
projectId?: string;
default?: boolean;
shared?: boolean;
}
export interface V1CreateBookmarkResponse {
bookmark?: V1Bookmark;
}
export interface V1CreateDeploymentResponse {
deployment?: V1Deployment;
}
export interface V1CreateManagedGitRepoResponse {
remote?: string;
username?: string;
password?: string;
defaultBranch?: string;
passwordExpiresAt?: string;
}
export interface V1CreateOrganizationRequest {
name?: string;
description?: string;
displayName?: string;
}
export interface V1CreateOrganizationResponse {
organization?: V1Organization;
}
export interface V1CreateProjectResponse {
project?: V1Project;
}
export interface V1CreateProjectWhitelistedDomainResponse {
[key: string]: unknown;
}
export interface V1CreateReportResponse {
name?: string;
}
export interface V1CreateServiceResponse {
service?: V1Service;
}
export interface V1CreateUsergroupResponse {
usergroup?: V1Usergroup;
}
export interface V1CreateWhitelistedDomainResponse {
[key: string]: unknown;
}
export interface V1DeleteAlertResponse {
[key: string]: unknown;
}
export interface V1DeleteDeploymentResponse {
deploymentId?: string;
}
export interface V1DeleteOrganizationResponse {
[key: string]: unknown;
}
export interface V1DeleteProjectResponse {
id?: string;
}
export interface V1DeleteReportResponse {
[key: string]: unknown;
}
export interface V1DeleteServiceResponse {
service?: V1Service;
}
export interface V1DeleteUserResponse {
[key: string]: unknown;
}
export interface V1DeleteUsergroupResponse {
[key: string]: unknown;
}
export interface V1DeleteVirtualFileResponse {
[key: string]: unknown;
}
export interface V1DenyProjectAccessResponse {
[key: string]: unknown;
}
export interface V1Deployment {
id?: string;
projectId?: string;
ownerUserId?: string;
environment?: string;
branch?: string;
editable?: boolean;
runtimeHost?: string;
runtimeInstanceId?: string;
status?: V1DeploymentStatus;
statusMessage?: string;
createdOn?: string;
updatedOn?: string;
}
export type V1DeploymentStatus =
(typeof V1DeploymentStatus)[keyof typeof V1DeploymentStatus];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1DeploymentStatus = {
DEPLOYMENT_STATUS_UNSPECIFIED: "DEPLOYMENT_STATUS_UNSPECIFIED",
DEPLOYMENT_STATUS_PENDING: "DEPLOYMENT_STATUS_PENDING",
DEPLOYMENT_STATUS_RUNNING: "DEPLOYMENT_STATUS_RUNNING",
DEPLOYMENT_STATUS_ERRORED: "DEPLOYMENT_STATUS_ERRORED",
DEPLOYMENT_STATUS_STOPPED: "DEPLOYMENT_STATUS_STOPPED",
DEPLOYMENT_STATUS_UPDATING: "DEPLOYMENT_STATUS_UPDATING",
DEPLOYMENT_STATUS_STOPPING: "DEPLOYMENT_STATUS_STOPPING",
DEPLOYMENT_STATUS_DELETING: "DEPLOYMENT_STATUS_DELETING",
DEPLOYMENT_STATUS_DELETED: "DEPLOYMENT_STATUS_DELETED",
} as const;
export interface V1EditAlertResponse {
[key: string]: unknown;
}
export interface V1EditReportResponse {
[key: string]: unknown;
}
export type V1ExportFormat =
(typeof V1ExportFormat)[keyof typeof V1ExportFormat];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1ExportFormat = {
EXPORT_FORMAT_UNSPECIFIED: "EXPORT_FORMAT_UNSPECIFIED",
EXPORT_FORMAT_CSV: "EXPORT_FORMAT_CSV",
EXPORT_FORMAT_XLSX: "EXPORT_FORMAT_XLSX",
EXPORT_FORMAT_PARQUET: "EXPORT_FORMAT_PARQUET",
} as const;
export interface V1Expression {
ident?: string;
val?: unknown;
cond?: V1Condition;
subquery?: V1Subquery;
}
export interface V1GenerateAlertYAMLResponse {
yaml?: string;
}
export interface V1GenerateReportYAMLResponse {
yaml?: string;
}
export type V1GetAlertMetaResponseRecipientUrls = {
[key: string]: GetAlertMetaResponseURLs;
};
export type V1GetAlertMetaResponseQueryForAttributes = {
[key: string]: unknown;
};
export interface V1GetAlertMetaResponse {
recipientUrls?: V1GetAlertMetaResponseRecipientUrls;
queryForAttributes?: V1GetAlertMetaResponseQueryForAttributes;
}
export interface V1GetAlertYAMLResponse {
yaml?: string;
}
export interface V1GetBillingProjectCredentialsRequest {
org?: string;
}
export interface V1GetBillingProjectCredentialsResponse {
runtimeHost?: string;
instanceId?: string;
accessToken?: string;
ttlSeconds?: number;
}
export interface V1GetBillingSubscriptionResponse {
organization?: V1Organization;
subscription?: V1Subscription;
billingPortalUrl?: string;
}
export interface V1GetBookmarkResponse {
bookmark?: V1Bookmark;
}
export interface V1GetCloneCredentialsResponse {
gitRepoUrl?: string;
gitUsername?: string;
gitPassword?: string;
gitPasswordExpiresAt?: string;
gitSubpath?: string;
gitPrimaryBranch?: string;
gitManagedRepo?: boolean;
archiveDownloadUrl?: string;
}
export interface V1GetCurrentMagicAuthTokenResponse {
token?: V1MagicAuthToken;
}
export interface V1GetCurrentUserResponse {
user?: V1User;
preferences?: V1UserPreferences;
}
export type V1GetDeploymentConfigResponseVariables = { [key: string]: string };
export type V1GetDeploymentConfigResponseAnnotations = {
[key: string]: string;
};
export type V1GetDeploymentConfigResponseDuckdbConnectorConfig = {
[key: string]: unknown;
};
export interface V1GetDeploymentConfigResponse {
variables?: V1GetDeploymentConfigResponseVariables;
annotations?: V1GetDeploymentConfigResponseAnnotations;
/** Frontend URL for the deployment. */
frontendUrl?: string;
/** Timestamp when the deployment was last updated. */
updatedOn?: string;
/** Whether the deployment is git based or archive based. */
usesArchive?: boolean;
duckdbConnectorConfig?: V1GetDeploymentConfigResponseDuckdbConnectorConfig;
}
export interface V1GetDeploymentCredentialsResponse {
runtimeHost?: string;
instanceId?: string;
accessToken?: string;
ttlSeconds?: number;
}
export interface V1GetDeploymentResponse {
runtimeHost?: string;
instanceId?: string;
accessToken?: string;
ttlSeconds?: number;
}
export interface V1GetGithubRepoStatusResponse {
hasAccess?: boolean;
grantAccessUrl?: string;
defaultBranch?: string;
}
export type V1GetGithubUserStatusResponseOrganizationInstallationPermissions = {
[key: string]: V1GithubPermission;
};
export interface V1GetGithubUserStatusResponse {
hasAccess?: boolean;
grantAccessUrl?: string;
accessToken?: string;
account?: string;
userInstallationPermission?: V1GithubPermission;
organizationInstallationPermissions?: V1GetGithubUserStatusResponseOrganizationInstallationPermissions;
/** DEPRECATED: Use organization_installation_permissions instead. */
orgs?: string[];
}
export interface V1GetIFrameResponse {
iframeSrc?: string;
runtimeHost?: string;
instanceId?: string;
accessToken?: string;
ttlSeconds?: number;
}
export interface V1GetOrganizationMemberUserResponse {
member?: V1OrganizationMemberUser;
}
export interface V1GetOrganizationNameForDomainResponse {
name?: string;
}
export interface V1GetOrganizationResponse {
organization?: V1Organization;
permissions?: V1OrganizationPermissions;
}
export interface V1GetPaymentsPortalURLResponse {
url?: string;
}
export interface V1GetProjectAccessRequestResponse {
email?: string;
}
export interface V1GetProjectByIDResponse {
project?: V1Project;
}
export interface V1GetProjectMemberUserResponse {
member?: V1ProjectMemberUser;
}
export interface V1GetProjectResponse {
project?: V1Project;
deployment?: V1Deployment;
jwt?: string;
projectPermissions?: V1ProjectPermissions;
}
/**
* Deprecated: Populated for backwards compatibility.
(Renamed from "variables" to "variables_map").
*/
export type V1GetProjectVariablesResponseVariablesMap = {
[key: string]: string;
};
export interface V1GetProjectVariablesResponse {
variables?: V1ProjectVariable[];
/** Deprecated: Populated for backwards compatibility.
(Renamed from "variables" to "variables_map"). */
variablesMap?: V1GetProjectVariablesResponseVariablesMap;
}
export interface V1GetRepoMetaResponse {
/** How long the returned config is valid for. Clients should call GetRepoMeta again after this time. */
expiresOn?: string;
/** When the returned config was last modified. This covers all fields in the response except the ephemeral credentials embedded in git_url and archive_download_url. */
lastUpdatedOn?: string;
/** Git remote for cloning (and maybe pushing) a Git repository.
The URL uses HTTPS with embedded username/password. */
gitUrl?: string;
/** Optional subpath within the Git repository to use as the project root. */
gitSubpath?: string;
/** The branch to use for the deployment. */
gitBranch?: string;
/** Whether editing is allowed. Set to true for dev deployments. */
editable?: boolean;
/** Primary branch of the project. */
primaryBranch?: string;
/** Whether the git repo is managed by Rill. */
managedGitRepo?: boolean;
/** Signed URL for downloading a tarball of project files. If this is set, the git_* fields will be empty (and vice versa). */
archiveDownloadUrl?: string;
/** A stable ID for the archive returned from archive_download_url. */
archiveId?: string;
/** The creation time of the archive returned from archive_download_url. */
archiveCreatedOn?: string;
}
export type V1GetReportMetaResponseDeliveryMeta = {
[key: string]: GetReportMetaResponseDeliveryMeta;
};
export interface V1GetReportMetaResponse {
deliveryMeta?: V1GetReportMetaResponseDeliveryMeta;
}
export interface V1GetServiceResponse {
service?: V1OrganizationMemberService;
projectMemberships?: V1ProjectMemberService[];
}
export interface V1GetUserResponse {
user?: V1User;
}
export interface V1GetUsergroupResponse {
usergroup?: V1Usergroup;
nextPageToken?: string;
}
export interface V1GetVirtualFileResponse {
file?: V1VirtualFile;
}
export type V1GithubPermission =
(typeof V1GithubPermission)[keyof typeof V1GithubPermission];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const V1GithubPermission = {
GITHUB_PERMISSION_UNSPECIFIED: "GITHUB_PERMISSION_UNSPECIFIED",
GITHUB_PERMISSION_READ: "GITHUB_PERMISSION_READ",
GITHUB_PERMISSION_WRITE: "GITHUB_PERMISSION_WRITE",
} as const;
export interface V1HibernateProjectResponse {
[key: string]: unknown;
}
export interface V1IssueMagicAuthTokenResponse {
token?: string;
url?: string;
}
export interface V1IssueRepresentativeAuthTokenRequest {
email?: string;
ttlMinutes?: string;
}
export interface V1IssueRepresentativeAuthTokenResponse {
token?: string;
}
export interface V1IssueServiceAuthTokenResponse {
token?: string;
}
export interface V1IssueUserAuthTokenResponse {
/** Newly issued auth token. */
token?: string;
}
export interface V1LeaveOrganizationResponse {
[key: string]: unknown;
}
export interface V1ListBookmarksResponse {
bookmarks?: V1Bookmark[];
}
export interface V1ListDeploymentsResponse {
deployments?: V1Deployment[];
}
export interface V1ListGithubUserReposResponse {
repos?: ListGithubUserReposResponseRepo[];
}
export interface V1ListMagicAuthTokensResponse {
tokens?: V1MagicAuthToken[];
nextPageToken?: string;
}
export interface V1ListOrganizationBillingIssuesResponse {
issues?: V1BillingIssue[];
}
export interface V1ListOrganizationInvitesResponse {
invites?: V1OrganizationInvite[];
totalCount?: number;
nextPageToken?: string;
}
export interface V1ListOrganizationMemberUsergroupsResponse {
members?: V1MemberUsergroup[];
nextPageToken?: string;
}
export interface V1ListOrganizationMemberUsersResponse {
members?: V1OrganizationMemberUser[];
totalCount?: number;
nextPageToken?: string;
}
export interface V1ListOrganizationsResponse {
organizations?: V1Organization[];
nextPageToken?: string;
}
export interface V1ListProjectInvitesResponse {
invites?: V1ProjectInvite[];
nextPageToken?: string;
}
export interface V1ListProjectMemberServicesResponse {
services?: V1ProjectMemberService[];
}
export interface V1ListProjectMemberUsergroupsResponse {
members?: V1MemberUsergroup[];
nextPageToken?: string;
}
export interface V1ListProjectMemberUsersResponse {
members?: V1ProjectMemberUser[];
nextPageToken?: string;
}
export interface V1ListProjectWhitelistedDomainsResponse {
domains?: V1WhitelistedDomain[];
}
export interface V1ListProjectsForFingerprintResponse {
projects?: V1Project[];
/** unauthorized_project is the name of a project that matches the git_remote+sub_path but the caller does not have access to. */
unauthorizedProject?: string;
}
/**
* Maps project IDs to the user's direct project membership. Only populated when include_roles is true.
*/
export type V1ListProjectsForOrganizationAndUserResponseProjectRoles = {
[key: string]: V1ProjectMemberUser;
};
export interface V1ListProjectsForOrganizationAndUserResponse {
projects?: V1Project[];
nextPageToken?: string;
/** Maps project IDs to the user's direct project membership. Only populated when include_roles is true. */
projectRoles?: V1ListProjectsForOrganizationAndUserResponseProjectRoles;
}
export interface V1ListProjectsForOrganizationResponse {
projects?: V1Project[];
nextPageToken?: string;
}
export interface V1ListProjectsForUserByNameResponse {
projects?: V1Project[];
}
export interface V1ListPublicBillingPlansResponse {
plans?: V1BillingPlan[];
}
export interface V1ListRolesResponse {
organizationRoles?: V1OrganizationRole[];
projectRoles?: V1ProjectRole[];
}
export interface V1ListServiceAuthTokensResponse {
tokens?: V1ServiceToken[];
}
export interface V1ListServicesResponse {
services?: V1OrganizationMemberService[];
}
export interface V1ListSuperusersResponse {
users?: V1User[];
}
export interface V1ListUserAuthTokensResponse {
/** List of auth tokens for the user. */
tokens?: V1UserAuthToken[];
/** Page token for the next page of results. If empty, there are no more pages. */
nextPageToken?: string;
}
export interface V1ListUsergroupMemberUsersResponse {
members?: V1UsergroupMemberUser[];
nextPageToken?: string;
}
export interface V1ListUsergroupsForOrganizationAndUserResponse {
usergroups?: V1Usergroup[];
nextPageToken?: string;
}
export interface V1ListUsergroupsForProjectAndUserResponse {
usergroups?: V1MemberUsergroup[];
}
export interface V1ListWhitelistedDomainsResponse {
domains?: V1WhitelistedDomain[];
}
export type V1MagicAuthTokenAttributes = { [key: string]: unknown };
export type V1MagicAuthTokenMetricsViewFilters = {
[key: string]: V1Expression;
};
export interface V1MagicAuthToken {
id?: string;
projectId?: string;
url?: string;
token?: string;
createdOn?: string;
expiresOn?: string;
usedOn?: string;
createdByUserId?: string;
createdByUserEmail?: string;
attributes?: V1MagicAuthTokenAttributes;
resources?: V1ResourceName[];
resourceType?: string;
resourceName?: string;
metricsViewFilters?: V1MagicAuthTokenMetricsViewFilters;
fields?: string[];
state?: string;
displayName?: string;
}
export interface V1MemberUsergroup {
groupId?: string;
groupName?: string;
groupManaged?: boolean;
roleName?: string;
usersCount?: number;
createdOn?: string;
updatedOn?: string;
restrictResources?: boolean;
resources?: V1ResourceName[];
}
export interface V1Organization {
id?: string;
name?: string;
displayName?: string;
description?: string;
logoUrl?: string;
logoDarkUrl?: string;
faviconUrl?: string;
thumbnailUrl?: string;
customDomain?: string;
defaultProjectRoleId?: string;
quotas?: V1OrganizationQuotas;
billingCustomerId?: string;
paymentCustomerId?: string;
billingEmail?: string;
billingPlanName?: string;
billingPlanDisplayName?: string;
createdOn?: string;
updatedOn?: string;
}
export interface V1OrganizationInvite {
email?: string;
roleName?: string;
invitedBy?: string;
}
export type V1OrganizationMemberServiceAttributes = { [key: string]: unknown };
export interface V1OrganizationMemberService {
id?: string;
name?: string;
orgId?: string;
orgName?: string;
roleName?: string;
/** True if the user has a project role in any project in the organization. */
hasProjectRoles?: boolean;
attributes?: V1OrganizationMemberServiceAttributes;
createdOn?: string;
updatedOn?: string;
}
export type V1OrganizationMemberUserAttributes = { [key: string]: unknown };
export interface V1OrganizationMemberUser {
userId?: string;
userEmail?: string;
userName?: string;
userPhotoUrl?: string;
roleName?: string;
projectsCount?: number;
usergroupsCount?: number;
attributes?: V1OrganizationMemberUserAttributes;
createdOn?: string;
updatedOn?: string;
}
export interface V1OrganizationPermissions {
admin?: boolean;
guest?: boolean;
readOrg?: boolean;
manageOrg?: boolean;
readProjects?: boolean;
createProjects?: boolean;
manageProjects?: boolean;
readOrgMembers?: boolean;
manageOrgMembers?: boolean;
manageOrgAdmins?: boolean;
}
export interface V1OrganizationQuotas {
projects?: number;
deployments?: number;
slotsTotal?: number;
slotsPerDeployment?: number;