@knpkv/codecommit-web 0.9.1 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/client/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  2. package/dist/client/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  3. package/dist/client/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  4. package/dist/client/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  5. package/dist/client/assets/geist-mono-cyrillic-ext-wght-normal-I4S5GZfc.woff2 +0 -0
  6. package/dist/client/assets/geist-mono-cyrillic-wght-normal-BmXc_FBt.woff2 +0 -0
  7. package/dist/client/assets/geist-mono-latin-ext-wght-normal-DrnZ1wKl.woff2 +0 -0
  8. package/dist/client/assets/geist-mono-latin-wght-normal-B_7UjwxQ.woff2 +0 -0
  9. package/dist/client/assets/geist-mono-symbols2-wght-normal-GZpp1pK2.woff2 +0 -0
  10. package/dist/client/assets/geist-mono-vietnamese-wght-normal-D8KDMBhC.woff2 +0 -0
  11. package/dist/client/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  12. package/dist/client/assets/index-Dv7jNWIj.js +90 -0
  13. package/dist/client/assets/index-olbvD6Ke.css +1 -0
  14. package/dist/client/index.html +2 -2
  15. package/dist/main.js +1 -1
  16. package/dist/main.js.map +1 -1
  17. package/dist/server/Api.d.ts +457 -468
  18. package/dist/server/Api.d.ts.map +1 -1
  19. package/dist/server/Api.js +218 -200
  20. package/dist/server/Api.js.map +1 -1
  21. package/dist/server/Server.d.ts +3 -3
  22. package/dist/server/Server.d.ts.map +1 -1
  23. package/dist/server/Server.js +25 -23
  24. package/dist/server/Server.js.map +1 -1
  25. package/dist/server/handlers/accounts-live.d.ts +1 -1
  26. package/dist/server/handlers/accounts-live.d.ts.map +1 -1
  27. package/dist/server/handlers/accounts-live.js +1 -1
  28. package/dist/server/handlers/accounts-live.js.map +1 -1
  29. package/dist/server/handlers/audit-live.d.ts +6 -1
  30. package/dist/server/handlers/audit-live.d.ts.map +1 -1
  31. package/dist/server/handlers/audit-live.js +13 -13
  32. package/dist/server/handlers/audit-live.js.map +1 -1
  33. package/dist/server/handlers/config-live.d.ts +2 -1
  34. package/dist/server/handlers/config-live.d.ts.map +1 -1
  35. package/dist/server/handlers/config-live.js +15 -14
  36. package/dist/server/handlers/config-live.js.map +1 -1
  37. package/dist/server/handlers/events-live.d.ts +17 -1
  38. package/dist/server/handlers/events-live.d.ts.map +1 -1
  39. package/dist/server/handlers/events-live.js +14 -13
  40. package/dist/server/handlers/events-live.js.map +1 -1
  41. package/dist/server/handlers/notifications-live.d.ts +12 -1
  42. package/dist/server/handlers/notifications-live.d.ts.map +1 -1
  43. package/dist/server/handlers/notifications-live.js +22 -14
  44. package/dist/server/handlers/notifications-live.js.map +1 -1
  45. package/dist/server/handlers/permissions-live.d.ts +7 -1
  46. package/dist/server/handlers/permissions-live.d.ts.map +1 -1
  47. package/dist/server/handlers/permissions-live.js +1 -1
  48. package/dist/server/handlers/permissions-live.js.map +1 -1
  49. package/dist/server/handlers/prs-live.d.ts +14 -1
  50. package/dist/server/handlers/prs-live.d.ts.map +1 -1
  51. package/dist/server/handlers/prs-live.js +23 -20
  52. package/dist/server/handlers/prs-live.js.map +1 -1
  53. package/dist/server/handlers/sandbox-live.d.ts +1 -1
  54. package/dist/server/handlers/sandbox-live.d.ts.map +1 -1
  55. package/dist/server/handlers/sandbox-live.js +5 -5
  56. package/dist/server/handlers/sandbox-live.js.map +1 -1
  57. package/dist/server/handlers/stats-live.d.ts +11 -1
  58. package/dist/server/handlers/stats-live.d.ts.map +1 -1
  59. package/dist/server/handlers/stats-live.js +7 -7
  60. package/dist/server/handlers/stats-live.js.map +1 -1
  61. package/dist/server/handlers/subscriptions-live.d.ts +1 -1
  62. package/dist/server/handlers/subscriptions-live.d.ts.map +1 -1
  63. package/dist/server/handlers/subscriptions-live.js +1 -1
  64. package/dist/server/handlers/subscriptions-live.js.map +1 -1
  65. package/package.json +26 -29
  66. package/dist/client/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
  67. package/dist/client/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
  68. package/dist/client/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
  69. package/dist/client/assets/geist-mono-cyrillic-wght-normal-BZdD_g9V.woff2 +0 -0
  70. package/dist/client/assets/geist-mono-latin-ext-wght-normal-b6lpi8_2.woff2 +0 -0
  71. package/dist/client/assets/geist-mono-latin-wght-normal-Cjtb1TV-.woff2 +0 -0
  72. package/dist/client/assets/index-DN8dAucd.js +0 -456
  73. package/dist/client/assets/index-DTVrh9Vx.css +0 -1
@@ -16,508 +16,497 @@
16
16
  *
17
17
  * @module
18
18
  */
19
- import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "@effect/platform";
20
19
  import { Account, PullRequest } from "@knpkv/codecommit-core/Domain.js";
21
20
  import { WeeklyStats } from "@knpkv/codecommit-core/StatsService/WeeklyStats.js";
22
21
  import { Schema } from "effect";
23
- declare const ApiError_base: Schema.TaggedErrorClass<ApiError, "ApiError", {
24
- readonly _tag: Schema.tag<"ApiError">;
25
- } & {
26
- message: typeof Schema.String;
27
- }>;
22
+ import { HttpApi, HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
23
+ declare const ApiError_base: Schema.Class<ApiError, Schema.TaggedStruct<"ApiError", {
24
+ readonly message: Schema.String;
25
+ }>, import("effect/Cause").YieldableError>;
28
26
  export declare class ApiError extends ApiError_base {
29
27
  }
30
28
  export declare const CachedPullRequestResponse: Schema.Struct<{
31
- id: typeof Schema.String;
32
- awsAccountId: typeof Schema.String;
33
- accountProfile: typeof Schema.String;
34
- accountRegion: typeof Schema.String;
35
- title: typeof Schema.String;
36
- description: Schema.NullOr<typeof Schema.String>;
37
- author: typeof Schema.String;
38
- repositoryName: typeof Schema.String;
39
- creationDate: typeof Schema.String;
40
- lastModifiedDate: typeof Schema.String;
41
- status: typeof Schema.String;
42
- sourceBranch: typeof Schema.String;
43
- destinationBranch: typeof Schema.String;
44
- isMergeable: typeof Schema.Number;
45
- isApproved: typeof Schema.Number;
46
- commentCount: Schema.NullOr<typeof Schema.Number>;
47
- link: typeof Schema.String;
48
- fetchedAt: typeof Schema.String;
29
+ readonly id: Schema.String;
30
+ readonly awsAccountId: Schema.String;
31
+ readonly accountProfile: Schema.String;
32
+ readonly accountRegion: Schema.String;
33
+ readonly title: Schema.String;
34
+ readonly description: Schema.NullOr<Schema.String>;
35
+ readonly author: Schema.String;
36
+ readonly repositoryName: Schema.String;
37
+ readonly creationDate: Schema.String;
38
+ readonly lastModifiedDate: Schema.String;
39
+ readonly status: Schema.String;
40
+ readonly sourceBranch: Schema.String;
41
+ readonly destinationBranch: Schema.String;
42
+ readonly isMergeable: Schema.Number;
43
+ readonly isApproved: Schema.Number;
44
+ readonly commentCount: Schema.NullOr<Schema.Number>;
45
+ readonly link: Schema.String;
46
+ readonly fetchedAt: Schema.String;
49
47
  }>;
50
48
  export declare const NotificationResponse: Schema.Struct<{
51
- id: typeof Schema.Number;
52
- pullRequestId: typeof Schema.String;
53
- awsAccountId: typeof Schema.String;
54
- type: typeof Schema.String;
55
- title: typeof Schema.String;
56
- profile: typeof Schema.String;
57
- message: typeof Schema.String;
58
- createdAt: typeof Schema.String;
59
- read: typeof Schema.Number;
49
+ readonly id: Schema.Number;
50
+ readonly pullRequestId: Schema.String;
51
+ readonly awsAccountId: Schema.String;
52
+ readonly type: Schema.String;
53
+ readonly title: Schema.String;
54
+ readonly profile: Schema.String;
55
+ readonly message: Schema.String;
56
+ readonly createdAt: Schema.String;
57
+ readonly read: Schema.Number;
60
58
  }>;
61
- declare const PrsGroup_base: HttpApiGroup.HttpApiGroup<"prs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, import("effect/Chunk").Chunk<PullRequest>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", never, never, never, never, string, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"search", "GET", never, {
62
- readonly q: string;
63
- readonly limit?: number | undefined;
64
- readonly offset?: number | undefined;
65
- }, never, never, {
66
- readonly items: readonly {
67
- readonly awsAccountId: string;
68
- readonly id: string;
69
- readonly title: string;
70
- readonly author: string;
71
- readonly repositoryName: string;
72
- readonly creationDate: string;
73
- readonly lastModifiedDate: string;
74
- readonly link: string;
75
- readonly status: string;
76
- readonly sourceBranch: string;
77
- readonly destinationBranch: string;
78
- readonly isMergeable: number;
79
- readonly isApproved: number;
80
- readonly description: string | null;
81
- readonly commentCount: number | null;
82
- readonly fetchedAt: string;
83
- readonly accountProfile: string;
84
- readonly accountRegion: string;
85
- }[];
86
- readonly total: number;
87
- readonly hasMore: boolean;
88
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refreshSingle", "POST", {
89
- readonly awsAccountId: string;
90
- readonly prId: string & import("effect/Brand").Brand<"PullRequestId">;
91
- }, never, never, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
92
- readonly title: string;
93
- readonly repositoryName: string;
94
- readonly account: Account;
95
- readonly sourceBranch: string;
96
- readonly destinationBranch: string;
97
- readonly description?: string | undefined;
98
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"open", "POST", never, never, {
99
- readonly profile: string;
100
- readonly link: string;
101
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"comments", "GET", never, {
102
- readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
103
- readonly region: string & import("effect/Brand").Brand<"AwsRegion">;
104
- readonly repositoryName: string;
105
- readonly pullRequestId: string;
106
- }, never, never, readonly {
107
- readonly filePath?: string | undefined;
108
- readonly beforeCommitId?: string | undefined;
109
- readonly afterCommitId?: string | undefined;
110
- readonly comments: readonly import("@knpkv/codecommit-core/Domain.js").CommentThreadJsonEncoded[];
111
- }[], ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createApprovalRule", "POST", never, never, {
112
- readonly requiredApprovals: number;
113
- readonly poolMembers: readonly string[];
114
- readonly account: Account;
115
- readonly pullRequestId: string;
116
- readonly approvalRuleName: string;
117
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateApprovalRule", "PUT", never, never, {
118
- readonly requiredApprovals: number;
119
- readonly poolMembers: readonly string[];
120
- readonly account: Account;
121
- readonly pullRequestId: string;
122
- readonly approvalRuleName: string;
123
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteApprovalRule", "DELETE", never, never, {
124
- readonly account: Account;
125
- readonly pullRequestId: string;
126
- readonly approvalRuleName: string;
127
- }, never, string, ApiError, never, never>, never, never, false>;
59
+ declare const PrsGroup_base: HttpApiGroup.HttpApiGroup<"prs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/prs/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Chunk<typeof PullRequest>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/api/prs/refresh", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"search", "GET", "/api/prs/search", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
60
+ readonly q: Schema.String;
61
+ readonly limit: Schema.optional<Schema.NumberFromString>;
62
+ readonly offset: Schema.optional<Schema.NumberFromString>;
63
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
64
+ readonly items: Schema.$Array<Schema.Struct<{
65
+ readonly id: Schema.String;
66
+ readonly awsAccountId: Schema.String;
67
+ readonly accountProfile: Schema.String;
68
+ readonly accountRegion: Schema.String;
69
+ readonly title: Schema.String;
70
+ readonly description: Schema.NullOr<Schema.String>;
71
+ readonly author: Schema.String;
72
+ readonly repositoryName: Schema.String;
73
+ readonly creationDate: Schema.String;
74
+ readonly lastModifiedDate: Schema.String;
75
+ readonly status: Schema.String;
76
+ readonly sourceBranch: Schema.String;
77
+ readonly destinationBranch: Schema.String;
78
+ readonly isMergeable: Schema.Number;
79
+ readonly isApproved: Schema.Number;
80
+ readonly commentCount: Schema.NullOr<Schema.Number>;
81
+ readonly link: Schema.String;
82
+ readonly fetchedAt: Schema.String;
83
+ }>>;
84
+ readonly total: Schema.Number;
85
+ readonly hasMore: Schema.Boolean;
86
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refreshSingle", "POST", "/api/prs/:awsAccountId/:prId/refresh", HttpApiEndpoint.StringTree<Schema.Struct<{
87
+ readonly awsAccountId: Schema.String;
88
+ readonly prId: Schema.brand<Schema.String, "PullRequestId">;
89
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api/prs/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
90
+ readonly repositoryName: Schema.String;
91
+ readonly title: Schema.String;
92
+ readonly description: Schema.optional<Schema.String>;
93
+ readonly sourceBranch: Schema.String;
94
+ readonly destinationBranch: Schema.String;
95
+ readonly account: typeof Account;
96
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"open", "POST", "/api/prs/open", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
97
+ readonly profile: Schema.String;
98
+ readonly link: Schema.String;
99
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"comments", "GET", "/api/prs/comments", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
100
+ readonly pullRequestId: Schema.String;
101
+ readonly repositoryName: Schema.String;
102
+ readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
103
+ readonly region: Schema.brand<Schema.String, "AwsRegion">;
104
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
105
+ readonly filePath: Schema.optional<Schema.String>;
106
+ readonly beforeCommitId: Schema.optional<Schema.String>;
107
+ readonly afterCommitId: Schema.optional<Schema.String>;
108
+ readonly comments: Schema.$Array<Schema.Schema<import("@knpkv/codecommit-core/Domain.js").CommentThreadJsonEncoded>>;
109
+ }>>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createApprovalRule", "POST", "/api/prs/approval-rules", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
110
+ readonly pullRequestId: Schema.String;
111
+ readonly approvalRuleName: Schema.String;
112
+ readonly requiredApprovals: Schema.Number;
113
+ readonly poolMembers: Schema.$Array<Schema.String>;
114
+ readonly account: typeof Account;
115
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateApprovalRule", "PUT", "/api/prs/approval-rules", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
116
+ readonly pullRequestId: Schema.String;
117
+ readonly approvalRuleName: Schema.String;
118
+ readonly requiredApprovals: Schema.Number;
119
+ readonly poolMembers: Schema.$Array<Schema.String>;
120
+ readonly account: typeof Account;
121
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteApprovalRule", "DELETE", "/api/prs/approval-rules", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
122
+ readonly pullRequestId: Schema.String;
123
+ readonly approvalRuleName: Schema.String;
124
+ readonly account: typeof Account;
125
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
128
126
  export declare class PrsGroup extends PrsGroup_base {
129
127
  }
130
- declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpoint.HttpApiEndpoint<"stream", "GET", never, never, never, never, string, never, never, never>, never, never, false>;
128
+ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpoint.HttpApiEndpoint<"stream", "GET", "/api/events/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never>, false>;
131
129
  export declare class EventsGroup extends EventsGroup_base {
132
130
  }
133
- declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, {
134
- readonly accounts: readonly {
135
- readonly profile: string;
136
- readonly regions: readonly string[];
137
- readonly enabled: boolean;
138
- }[];
139
- readonly autoDetect: boolean;
140
- readonly autoRefresh: boolean;
141
- readonly refreshIntervalSeconds: number;
142
- readonly currentUser?: string | undefined;
143
- readonly sandbox?: {
144
- readonly image: string;
145
- readonly extensions: readonly string[];
146
- readonly setupCommands: readonly string[];
147
- readonly env: {
148
- readonly [x: string]: string;
149
- };
150
- readonly enableClaudeCode: boolean;
151
- readonly volumeMounts: readonly {
152
- readonly hostPath: string;
153
- readonly containerPath: string;
154
- readonly readonly: boolean;
155
- }[];
156
- readonly cloneDepth: number;
157
- } | undefined;
158
- }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"path", "GET", never, never, never, never, {
159
- readonly path: string;
160
- readonly exists: boolean;
161
- readonly modifiedAt?: string | undefined;
162
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"database", "GET", never, never, never, never, {
163
- readonly path: string;
164
- readonly exists: boolean;
165
- readonly modifiedAt?: string | undefined;
166
- readonly sizeBytes: number;
167
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"validate", "GET", never, never, never, never, {
168
- readonly status: "valid" | "missing" | "corrupted";
169
- readonly path: string;
170
- readonly errors: readonly string[];
171
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"save", "POST", never, never, {
172
- readonly accounts: readonly {
173
- readonly profile: string;
174
- readonly regions: readonly string[];
175
- readonly enabled: boolean;
176
- }[];
177
- readonly autoDetect: boolean;
178
- readonly autoRefresh: boolean;
179
- readonly refreshIntervalSeconds: number;
180
- readonly sandbox?: {
181
- readonly image: string;
182
- readonly extensions: readonly string[];
183
- readonly setupCommands: readonly string[];
184
- readonly env: {
185
- readonly [x: string]: string;
186
- };
187
- readonly enableClaudeCode: boolean;
188
- readonly volumeMounts: readonly {
189
- readonly hostPath: string;
190
- readonly containerPath: string;
191
- readonly readonly: boolean;
192
- }[];
193
- readonly cloneDepth: number;
194
- } | undefined;
195
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", never, never, never, never, {
196
- readonly backupPath?: string | undefined;
197
- readonly config: {
198
- readonly accounts: readonly {
199
- readonly profile: string;
200
- readonly regions: readonly string[];
201
- readonly enabled: boolean;
202
- }[];
203
- readonly autoDetect: boolean;
204
- readonly autoRefresh: boolean;
205
- readonly refreshIntervalSeconds: number;
206
- readonly currentUser?: string | undefined;
207
- readonly sandbox?: {
208
- readonly image: string;
209
- readonly extensions: readonly string[];
210
- readonly setupCommands: readonly string[];
211
- readonly env: {
212
- readonly [x: string]: string;
213
- };
214
- readonly enableClaudeCode: boolean;
215
- readonly volumeMounts: readonly {
216
- readonly hostPath: string;
217
- readonly containerPath: string;
218
- readonly readonly: boolean;
219
- }[];
220
- readonly cloneDepth: number;
221
- } | undefined;
222
- };
223
- }, ApiError, never, never>, never, never, false>;
131
+ declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/config/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
132
+ readonly accounts: Schema.$Array<Schema.Struct<{
133
+ readonly profile: Schema.String;
134
+ readonly regions: Schema.$Array<Schema.String>;
135
+ readonly enabled: Schema.Boolean;
136
+ }>>;
137
+ readonly autoDetect: Schema.Boolean;
138
+ readonly autoRefresh: Schema.Boolean;
139
+ readonly refreshIntervalSeconds: Schema.Number;
140
+ readonly currentUser: Schema.optional<Schema.String>;
141
+ readonly sandbox: Schema.optional<Schema.Struct<{
142
+ readonly image: Schema.String;
143
+ readonly extensions: Schema.$Array<Schema.String>;
144
+ readonly setupCommands: Schema.$Array<Schema.String>;
145
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
146
+ readonly volumeMounts: Schema.$Array<Schema.Struct<{
147
+ readonly hostPath: Schema.String;
148
+ readonly containerPath: Schema.String;
149
+ readonly readonly: Schema.Boolean;
150
+ }>>;
151
+ readonly cloneDepth: Schema.Number;
152
+ }>>;
153
+ }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"path", "GET", "/api/config/path", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
154
+ readonly path: Schema.String;
155
+ readonly exists: Schema.Boolean;
156
+ readonly modifiedAt: Schema.optional<Schema.String>;
157
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"database", "GET", "/api/config/database", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
158
+ readonly path: Schema.String;
159
+ readonly sizeBytes: Schema.Number;
160
+ readonly exists: Schema.Boolean;
161
+ readonly modifiedAt: Schema.optional<Schema.String>;
162
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"validate", "GET", "/api/config/validate", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
163
+ readonly status: Schema.Literals<readonly ["valid", "missing", "corrupted"]>;
164
+ readonly path: Schema.String;
165
+ readonly errors: Schema.$Array<Schema.String>;
166
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"save", "POST", "/api/config/save", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
167
+ readonly accounts: Schema.$Array<Schema.Struct<{
168
+ readonly profile: Schema.String;
169
+ readonly regions: Schema.$Array<Schema.String>;
170
+ readonly enabled: Schema.Boolean;
171
+ }>>;
172
+ readonly autoDetect: Schema.Boolean;
173
+ readonly autoRefresh: Schema.Boolean;
174
+ readonly refreshIntervalSeconds: Schema.Number;
175
+ readonly sandbox: Schema.optional<Schema.Struct<{
176
+ readonly image: Schema.String;
177
+ readonly extensions: Schema.$Array<Schema.String>;
178
+ readonly setupCommands: Schema.$Array<Schema.String>;
179
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
180
+ readonly volumeMounts: Schema.$Array<Schema.Struct<{
181
+ readonly hostPath: Schema.String;
182
+ readonly containerPath: Schema.String;
183
+ readonly readonly: Schema.Boolean;
184
+ }>>;
185
+ readonly cloneDepth: Schema.Number;
186
+ }>>;
187
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", "/api/config/reset", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
188
+ readonly backupPath: Schema.optional<Schema.String>;
189
+ readonly config: Schema.Struct<{
190
+ readonly accounts: Schema.$Array<Schema.Struct<{
191
+ readonly profile: Schema.String;
192
+ readonly regions: Schema.$Array<Schema.String>;
193
+ readonly enabled: Schema.Boolean;
194
+ }>>;
195
+ readonly autoDetect: Schema.Boolean;
196
+ readonly autoRefresh: Schema.Boolean;
197
+ readonly refreshIntervalSeconds: Schema.Number;
198
+ readonly currentUser: Schema.optional<Schema.String>;
199
+ readonly sandbox: Schema.optional<Schema.Struct<{
200
+ readonly image: Schema.String;
201
+ readonly extensions: Schema.$Array<Schema.String>;
202
+ readonly setupCommands: Schema.$Array<Schema.String>;
203
+ readonly env: Schema.$Record<Schema.String, Schema.String>;
204
+ readonly volumeMounts: Schema.$Array<Schema.Struct<{
205
+ readonly hostPath: Schema.String;
206
+ readonly containerPath: Schema.String;
207
+ readonly readonly: Schema.Boolean;
208
+ }>>;
209
+ readonly cloneDepth: Schema.Number;
210
+ }>>;
211
+ }>;
212
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
224
213
  export declare class ConfigGroup extends ConfigGroup_base {
225
214
  }
226
- declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"accounts", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, import("effect/Chunk").Chunk<Account>, never, never, never>, never, never, false>;
215
+ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"accounts", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/accounts/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Chunk<typeof Account>>, HttpApiEndpoint.Json<never>, never, never>, false>;
227
216
  export declare class AccountsGroup extends AccountsGroup_base {
228
217
  }
229
- declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"subscribe", "POST", never, never, {
230
- readonly awsAccountId: string;
231
- readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
232
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unsubscribe", "POST", never, never, {
233
- readonly awsAccountId: string;
234
- readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
235
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
236
- readonly awsAccountId: string;
237
- readonly pullRequestId: string;
238
- }[], never, never, never>, never, never, false>;
218
+ declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"subscribe", "POST", "/api/subscriptions/subscribe", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
219
+ readonly awsAccountId: Schema.String;
220
+ readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
221
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unsubscribe", "POST", "/api/subscriptions/unsubscribe", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
222
+ readonly awsAccountId: Schema.String;
223
+ readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
224
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/subscriptions/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
225
+ readonly awsAccountId: Schema.String;
226
+ readonly pullRequestId: Schema.String;
227
+ }>>>, HttpApiEndpoint.Json<never>, never, never>, false>;
239
228
  export declare class SubscriptionsGroup extends SubscriptionsGroup_base {
240
229
  }
241
- declare const NotificationsGroup_base: HttpApiGroup.HttpApiGroup<"notifications", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
242
- readonly filter?: "prs" | "system" | undefined;
243
- readonly limit?: number | undefined;
244
- readonly cursor?: number | undefined;
245
- readonly unreadOnly?: number | undefined;
246
- }, never, never, {
247
- readonly items: readonly {
248
- readonly profile: string;
249
- readonly awsAccountId: string;
250
- readonly id: number;
251
- readonly title: string;
252
- readonly pullRequestId: string;
253
- readonly createdAt: string;
254
- readonly type: string;
255
- readonly message: string;
256
- readonly read: number;
257
- }[];
258
- readonly nextCursor?: number | undefined;
259
- }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"count", "GET", never, never, never, never, {
260
- readonly unread: number;
261
- }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markRead", "POST", never, never, {
262
- readonly id: number;
263
- }, never, string, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markUnread", "POST", never, never, {
264
- readonly id: number;
265
- }, never, string, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markAllRead", "POST", never, never, never, never, string, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogin", "POST", never, never, {
266
- readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
267
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogout", "POST", never, never, never, never, string, ApiError, never, never>, never, never, false>;
230
+ declare const NotificationsGroup_base: HttpApiGroup.HttpApiGroup<"notifications", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/notifications/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
231
+ readonly limit: Schema.optional<Schema.NumberFromString>;
232
+ readonly cursor: Schema.optional<Schema.NumberFromString>;
233
+ readonly filter: Schema.optional<Schema.Literals<readonly ["system", "prs"]>>;
234
+ readonly unreadOnly: Schema.optional<Schema.NumberFromString>;
235
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
236
+ readonly items: Schema.$Array<Schema.Struct<{
237
+ readonly id: Schema.Number;
238
+ readonly pullRequestId: Schema.String;
239
+ readonly awsAccountId: Schema.String;
240
+ readonly type: Schema.String;
241
+ readonly title: Schema.String;
242
+ readonly profile: Schema.String;
243
+ readonly message: Schema.String;
244
+ readonly createdAt: Schema.String;
245
+ readonly read: Schema.Number;
246
+ }>>;
247
+ readonly nextCursor: Schema.optional<Schema.Number>;
248
+ }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"count", "GET", "/api/notifications/count", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
249
+ readonly unread: Schema.Number;
250
+ }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markRead", "POST", "/api/notifications/read", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
251
+ readonly id: Schema.Number;
252
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markUnread", "POST", "/api/notifications/unread", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
253
+ readonly id: Schema.Number;
254
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markAllRead", "POST", "/api/notifications/read-all", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogin", "POST", "/api/notifications/sso-login", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
255
+ readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
256
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogout", "POST", "/api/notifications/sso-logout", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
268
257
  export declare class NotificationsGroup extends NotificationsGroup_base {
269
258
  }
270
259
  export declare const SandboxResponse: Schema.Struct<{
271
- id: typeof Schema.String;
272
- pullRequestId: typeof Schema.String;
273
- awsAccountId: typeof Schema.String;
274
- repositoryName: typeof Schema.String;
275
- sourceBranch: typeof Schema.String;
276
- containerId: Schema.NullOr<typeof Schema.String>;
277
- port: Schema.NullOr<typeof Schema.Number>;
278
- status: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
279
- statusDetail: Schema.NullOr<typeof Schema.String>;
280
- logs: Schema.NullOr<typeof Schema.String>;
281
- error: Schema.NullOr<typeof Schema.String>;
282
- createdAt: typeof Schema.String;
283
- lastActivityAt: typeof Schema.String;
260
+ readonly id: Schema.String;
261
+ readonly pullRequestId: Schema.String;
262
+ readonly awsAccountId: Schema.String;
263
+ readonly repositoryName: Schema.String;
264
+ readonly sourceBranch: Schema.String;
265
+ readonly containerId: Schema.NullOr<Schema.String>;
266
+ readonly port: Schema.NullOr<Schema.Number>;
267
+ readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
268
+ readonly statusDetail: Schema.NullOr<Schema.String>;
269
+ readonly logs: Schema.NullOr<Schema.String>;
270
+ readonly error: Schema.NullOr<Schema.String>;
271
+ readonly createdAt: Schema.String;
272
+ readonly lastActivityAt: Schema.String;
284
273
  }>;
285
- declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
286
- readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
287
- readonly region: string;
288
- readonly awsAccountId: string;
289
- readonly repositoryName: string;
290
- readonly sourceBranch: string;
291
- readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
292
- }, never, {
293
- readonly error: string | null;
294
- readonly awsAccountId: string;
295
- readonly id: string;
296
- readonly repositoryName: string;
297
- readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
298
- readonly sourceBranch: string;
299
- readonly pullRequestId: string;
300
- readonly createdAt: string;
301
- readonly lastActivityAt: string;
302
- readonly containerId: string | null;
303
- readonly port: number | null;
304
- readonly statusDetail: string | null;
305
- readonly logs: string | null;
306
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
307
- readonly error: string | null;
308
- readonly awsAccountId: string;
309
- readonly id: string;
310
- readonly repositoryName: string;
311
- readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
312
- readonly sourceBranch: string;
313
- readonly pullRequestId: string;
314
- readonly createdAt: string;
315
- readonly lastActivityAt: string;
316
- readonly containerId: string | null;
317
- readonly port: number | null;
318
- readonly statusDetail: string | null;
319
- readonly logs: string | null;
320
- }[], ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", {
321
- readonly sandboxId: string & import("effect/Brand").Brand<"SandboxId">;
322
- }, never, never, never, {
323
- readonly error: string | null;
324
- readonly awsAccountId: string;
325
- readonly id: string;
326
- readonly repositoryName: string;
327
- readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
328
- readonly sourceBranch: string;
329
- readonly pullRequestId: string;
330
- readonly createdAt: string;
331
- readonly lastActivityAt: string;
332
- readonly containerId: string | null;
333
- readonly port: number | null;
334
- readonly statusDetail: string | null;
335
- readonly logs: string | null;
336
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stop", "POST", {
337
- readonly sandboxId: string & import("effect/Brand").Brand<"SandboxId">;
338
- }, never, never, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"restart", "POST", {
339
- readonly sandboxId: string & import("effect/Brand").Brand<"SandboxId">;
340
- }, never, never, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
341
- readonly sandboxId: string & import("effect/Brand").Brand<"SandboxId">;
342
- }, never, never, never, string, ApiError, never, never>, never, never, false>;
274
+ declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api/sandbox/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
275
+ readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
276
+ readonly awsAccountId: Schema.String;
277
+ readonly repositoryName: Schema.String;
278
+ readonly sourceBranch: Schema.String;
279
+ readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
280
+ readonly region: Schema.String;
281
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
282
+ readonly id: Schema.String;
283
+ readonly pullRequestId: Schema.String;
284
+ readonly awsAccountId: Schema.String;
285
+ readonly repositoryName: Schema.String;
286
+ readonly sourceBranch: Schema.String;
287
+ readonly containerId: Schema.NullOr<Schema.String>;
288
+ readonly port: Schema.NullOr<Schema.Number>;
289
+ readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
290
+ readonly statusDetail: Schema.NullOr<Schema.String>;
291
+ readonly logs: Schema.NullOr<Schema.String>;
292
+ readonly error: Schema.NullOr<Schema.String>;
293
+ readonly createdAt: Schema.String;
294
+ readonly lastActivityAt: Schema.String;
295
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/sandbox/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
296
+ readonly id: Schema.String;
297
+ readonly pullRequestId: Schema.String;
298
+ readonly awsAccountId: Schema.String;
299
+ readonly repositoryName: Schema.String;
300
+ readonly sourceBranch: Schema.String;
301
+ readonly containerId: Schema.NullOr<Schema.String>;
302
+ readonly port: Schema.NullOr<Schema.Number>;
303
+ readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
304
+ readonly statusDetail: Schema.NullOr<Schema.String>;
305
+ readonly logs: Schema.NullOr<Schema.String>;
306
+ readonly error: Schema.NullOr<Schema.String>;
307
+ readonly createdAt: Schema.String;
308
+ readonly lastActivityAt: Schema.String;
309
+ }>>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/sandbox/:sandboxId", HttpApiEndpoint.StringTree<Schema.Struct<{
310
+ readonly sandboxId: Schema.brand<Schema.String, "SandboxId">;
311
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
312
+ readonly id: Schema.String;
313
+ readonly pullRequestId: Schema.String;
314
+ readonly awsAccountId: Schema.String;
315
+ readonly repositoryName: Schema.String;
316
+ readonly sourceBranch: Schema.String;
317
+ readonly containerId: Schema.NullOr<Schema.String>;
318
+ readonly port: Schema.NullOr<Schema.Number>;
319
+ readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
320
+ readonly statusDetail: Schema.NullOr<Schema.String>;
321
+ readonly logs: Schema.NullOr<Schema.String>;
322
+ readonly error: Schema.NullOr<Schema.String>;
323
+ readonly createdAt: Schema.String;
324
+ readonly lastActivityAt: Schema.String;
325
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stop", "POST", "/api/sandbox/:sandboxId/stop", HttpApiEndpoint.StringTree<Schema.Struct<{
326
+ readonly sandboxId: Schema.brand<Schema.String, "SandboxId">;
327
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"restart", "POST", "/api/sandbox/:sandboxId/restart", HttpApiEndpoint.StringTree<Schema.Struct<{
328
+ readonly sandboxId: Schema.brand<Schema.String, "SandboxId">;
329
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", "/api/sandbox/:sandboxId", HttpApiEndpoint.StringTree<Schema.Struct<{
330
+ readonly sandboxId: Schema.brand<Schema.String, "SandboxId">;
331
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
343
332
  export declare class SandboxGroup extends SandboxGroup_base {
344
333
  }
345
334
  export { WeeklyStats };
346
- declare const StatsGroup_base: HttpApiGroup.HttpApiGroup<"stats", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", never, {
347
- readonly author?: string | undefined;
348
- readonly account?: string | undefined;
349
- readonly week: string;
350
- readonly repo?: string | undefined;
351
- }, never, never, {
352
- readonly week: string;
353
- readonly weekStart: string;
354
- readonly weekEnd: string;
355
- readonly dataAvailableSince: string | null;
356
- readonly prsCreated: number;
357
- readonly prsMerged: number;
358
- readonly prsClosed: number;
359
- readonly totalComments: number;
360
- readonly topContributors: readonly {
361
- readonly author: string;
362
- readonly prCount: number;
363
- }[];
364
- readonly topReviewers: readonly {
365
- readonly author: string;
366
- readonly commentCount: number;
367
- }[];
368
- readonly topApprovers: readonly {
369
- readonly author: string;
370
- readonly approvalCount: number;
371
- }[];
372
- readonly medianTimeToMerge: number | null;
373
- readonly medianTimeToFirstReview: number | null;
374
- readonly medianTimeToAddressFeedback: number | null;
375
- readonly mergeTimeDetails: readonly {
376
- readonly awsAccountId: string;
377
- readonly author: string;
378
- readonly repositoryName: string;
379
- readonly prId: string;
380
- readonly prTitle: string;
381
- readonly durationMs: number;
382
- readonly fromLabel: string;
383
- readonly toLabel: string;
384
- }[];
385
- readonly firstReviewDetails: readonly {
386
- readonly awsAccountId: string;
387
- readonly author: string;
388
- readonly repositoryName: string;
389
- readonly prId: string;
390
- readonly prTitle: string;
391
- readonly durationMs: number;
392
- readonly fromLabel: string;
393
- readonly toLabel: string;
394
- }[];
395
- readonly feedbackDetails: readonly {
396
- readonly awsAccountId: string;
397
- readonly author: string;
398
- readonly repositoryName: string;
399
- readonly prId: string;
400
- readonly prTitle: string;
401
- readonly durationMs: number;
402
- readonly fromLabel: string;
403
- readonly toLabel: string;
404
- }[];
405
- readonly mostActivePRs: readonly {
406
- readonly awsAccountId: string;
407
- readonly id: string;
408
- readonly title: string;
409
- readonly author: string;
410
- readonly repositoryName: string;
411
- readonly commentCount: number;
412
- }[];
413
- readonly prSizeDistribution: {
414
- readonly small: number;
415
- readonly medium: number;
416
- readonly large: number;
417
- readonly extraLarge: number;
418
- };
419
- readonly avgDiffSize: {
420
- readonly filesAdded: number;
421
- readonly filesModified: number;
422
- readonly filesDeleted: number;
423
- } | null;
424
- readonly diffSizeByContributor: readonly {
425
- readonly author: string;
426
- readonly prCount: number;
427
- readonly avgFilesChanged: number;
428
- }[];
429
- readonly stalePRs: readonly {
430
- readonly awsAccountId: string;
431
- readonly id: string;
432
- readonly title: string;
433
- readonly author: string;
434
- readonly repositoryName: string;
435
- readonly daysSinceActivity: number;
436
- }[];
437
- readonly reviewCoverage: number | null;
438
- readonly approvalRate: number | null;
439
- readonly busFactor: {
440
- readonly topContributorShare: number;
441
- readonly uniqueContributors: number;
442
- } | null;
443
- readonly availableRepos: readonly string[];
444
- readonly availableAuthors: readonly string[];
445
- readonly availableAccounts: readonly string[];
446
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sync", "POST", never, never, {
447
- readonly week: string;
448
- }, never, string, ApiError, never, never>, never, never, false>;
335
+ declare const StatsGroup_base: HttpApiGroup.HttpApiGroup<"stats", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/stats/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
336
+ readonly week: Schema.String;
337
+ readonly repo: Schema.optional<Schema.String>;
338
+ readonly author: Schema.optional<Schema.String>;
339
+ readonly account: Schema.optional<Schema.String>;
340
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
341
+ readonly week: Schema.String;
342
+ readonly weekStart: Schema.String;
343
+ readonly weekEnd: Schema.String;
344
+ readonly dataAvailableSince: Schema.NullOr<Schema.String>;
345
+ readonly prsCreated: Schema.Number;
346
+ readonly prsMerged: Schema.Number;
347
+ readonly prsClosed: Schema.Number;
348
+ readonly totalComments: Schema.Number;
349
+ readonly topContributors: Schema.$Array<Schema.Struct<{
350
+ readonly author: Schema.String;
351
+ readonly prCount: Schema.Number;
352
+ }>>;
353
+ readonly topReviewers: Schema.$Array<Schema.Struct<{
354
+ readonly author: Schema.String;
355
+ readonly commentCount: Schema.Number;
356
+ }>>;
357
+ readonly topApprovers: Schema.$Array<Schema.Struct<{
358
+ readonly author: Schema.String;
359
+ readonly approvalCount: Schema.Number;
360
+ }>>;
361
+ readonly medianTimeToMerge: Schema.NullOr<Schema.Number>;
362
+ readonly medianTimeToFirstReview: Schema.NullOr<Schema.Number>;
363
+ readonly medianTimeToAddressFeedback: Schema.NullOr<Schema.Number>;
364
+ readonly mergeTimeDetails: Schema.$Array<Schema.Struct<{
365
+ readonly prId: Schema.String;
366
+ readonly prTitle: Schema.String;
367
+ readonly author: Schema.String;
368
+ readonly repositoryName: Schema.String;
369
+ readonly awsAccountId: Schema.String;
370
+ readonly durationMs: Schema.Number;
371
+ readonly fromLabel: Schema.String;
372
+ readonly toLabel: Schema.String;
373
+ }>>;
374
+ readonly firstReviewDetails: Schema.$Array<Schema.Struct<{
375
+ readonly prId: Schema.String;
376
+ readonly prTitle: Schema.String;
377
+ readonly author: Schema.String;
378
+ readonly repositoryName: Schema.String;
379
+ readonly awsAccountId: Schema.String;
380
+ readonly durationMs: Schema.Number;
381
+ readonly fromLabel: Schema.String;
382
+ readonly toLabel: Schema.String;
383
+ }>>;
384
+ readonly feedbackDetails: Schema.$Array<Schema.Struct<{
385
+ readonly prId: Schema.String;
386
+ readonly prTitle: Schema.String;
387
+ readonly author: Schema.String;
388
+ readonly repositoryName: Schema.String;
389
+ readonly awsAccountId: Schema.String;
390
+ readonly durationMs: Schema.Number;
391
+ readonly fromLabel: Schema.String;
392
+ readonly toLabel: Schema.String;
393
+ }>>;
394
+ readonly mostActivePRs: Schema.$Array<Schema.Struct<{
395
+ readonly id: Schema.String;
396
+ readonly title: Schema.String;
397
+ readonly author: Schema.String;
398
+ readonly repositoryName: Schema.String;
399
+ readonly commentCount: Schema.Number;
400
+ readonly awsAccountId: Schema.String;
401
+ }>>;
402
+ readonly prSizeDistribution: Schema.Struct<{
403
+ readonly small: Schema.Number;
404
+ readonly medium: Schema.Number;
405
+ readonly large: Schema.Number;
406
+ readonly extraLarge: Schema.Number;
407
+ }>;
408
+ readonly avgDiffSize: Schema.NullOr<Schema.Struct<{
409
+ readonly filesAdded: Schema.Number;
410
+ readonly filesModified: Schema.Number;
411
+ readonly filesDeleted: Schema.Number;
412
+ }>>;
413
+ readonly diffSizeByContributor: Schema.$Array<Schema.Struct<{
414
+ readonly author: Schema.String;
415
+ readonly avgFilesChanged: Schema.Number;
416
+ readonly prCount: Schema.Number;
417
+ }>>;
418
+ readonly stalePRs: Schema.$Array<Schema.Struct<{
419
+ readonly id: Schema.String;
420
+ readonly title: Schema.String;
421
+ readonly author: Schema.String;
422
+ readonly repositoryName: Schema.String;
423
+ readonly daysSinceActivity: Schema.Number;
424
+ readonly awsAccountId: Schema.String;
425
+ }>>;
426
+ readonly reviewCoverage: Schema.NullOr<Schema.Number>;
427
+ readonly approvalRate: Schema.NullOr<Schema.Number>;
428
+ readonly busFactor: Schema.NullOr<Schema.Struct<{
429
+ readonly topContributorShare: Schema.Number;
430
+ readonly uniqueContributors: Schema.Number;
431
+ }>>;
432
+ readonly availableRepos: Schema.$Array<Schema.String>;
433
+ readonly availableAuthors: Schema.$Array<Schema.String>;
434
+ readonly availableAccounts: Schema.$Array<Schema.String>;
435
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sync", "POST", "/api/stats/sync", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
436
+ readonly week: Schema.String;
437
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
449
438
  export declare class StatsGroup extends StatsGroup_base {
450
439
  }
451
440
  export declare const AuditLogEntryResponse: Schema.Struct<{
452
- id: typeof Schema.Number;
453
- timestamp: typeof Schema.String;
454
- operation: typeof Schema.String;
455
- accountProfile: typeof Schema.String;
456
- region: typeof Schema.String;
457
- permissionState: typeof Schema.String;
458
- context: typeof Schema.String;
459
- durationMs: Schema.NullOr<typeof Schema.Number>;
441
+ readonly id: Schema.Number;
442
+ readonly timestamp: Schema.String;
443
+ readonly operation: Schema.String;
444
+ readonly accountProfile: Schema.String;
445
+ readonly region: Schema.String;
446
+ readonly permissionState: Schema.String;
447
+ readonly context: Schema.String;
448
+ readonly durationMs: Schema.NullOr<Schema.Number>;
460
449
  }>;
461
- declare const PermissionsGroup_base: HttpApiGroup.HttpApiGroup<"permissions", HttpApiEndpoint.HttpApiEndpoint<"respond", "POST", never, never, {
462
- readonly id: string;
463
- readonly response: "always_allow" | "deny" | "allow_once";
464
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
465
- readonly description: string;
466
- readonly operation: string;
467
- readonly state: "always_allow" | "allow" | "deny";
468
- readonly category: "read" | "write";
469
- }[], never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "POST", never, never, {
470
- readonly operation: string;
471
- readonly state: "always_allow" | "allow" | "deny";
472
- }, never, string, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", never, never, never, never, string, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"auditSettings", "GET", never, never, never, never, {
473
- readonly enabled: boolean;
474
- readonly retentionDays: number;
475
- }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateAuditSettings", "POST", never, never, {
476
- readonly enabled?: boolean | undefined;
477
- readonly retentionDays?: number | undefined;
478
- }, never, string, ApiError, never, never>, never, never, false>;
450
+ declare const PermissionsGroup_base: HttpApiGroup.HttpApiGroup<"permissions", HttpApiEndpoint.HttpApiEndpoint<"respond", "POST", "/api/permissions/respond", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
451
+ readonly id: Schema.String;
452
+ readonly response: Schema.Literals<readonly ["allow_once", "always_allow", "deny"]>;
453
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/permissions/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
454
+ readonly operation: Schema.String;
455
+ readonly state: Schema.Literals<readonly ["always_allow", "allow", "deny"]>;
456
+ readonly category: Schema.Literals<readonly ["read", "write"]>;
457
+ readonly description: Schema.String;
458
+ }>>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "POST", "/api/permissions/update", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
459
+ readonly operation: Schema.String;
460
+ readonly state: Schema.Literals<readonly ["always_allow", "allow", "deny"]>;
461
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", "/api/permissions/reset", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"auditSettings", "GET", "/api/permissions/audit", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
462
+ readonly enabled: Schema.Boolean;
463
+ readonly retentionDays: Schema.Number;
464
+ }>>, HttpApiEndpoint.Json<never>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateAuditSettings", "POST", "/api/permissions/audit", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
465
+ readonly enabled: Schema.optional<Schema.Boolean>;
466
+ readonly retentionDays: Schema.optional<Schema.Number>;
467
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
479
468
  export declare class PermissionsGroup extends PermissionsGroup_base {
480
469
  }
481
- declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
482
- readonly from?: string | undefined;
483
- readonly accountProfile?: string | undefined;
484
- readonly search?: string | undefined;
485
- readonly limit?: number | undefined;
486
- readonly offset?: number | undefined;
487
- readonly operation?: string | undefined;
488
- readonly permissionState?: string | undefined;
489
- readonly to?: string | undefined;
490
- }, never, never, {
491
- readonly items: readonly {
492
- readonly region: string;
493
- readonly id: number;
494
- readonly timestamp: string;
495
- readonly durationMs: number | null;
496
- readonly accountProfile: string;
497
- readonly operation: string;
498
- readonly permissionState: string;
499
- readonly context: string;
500
- }[];
501
- readonly total: number;
502
- readonly nextCursor?: number | undefined;
503
- }, ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"export", "GET", never, {
504
- readonly from?: string | undefined;
505
- readonly to?: string | undefined;
506
- }, never, never, readonly {
507
- readonly region: string;
508
- readonly id: number;
509
- readonly timestamp: string;
510
- readonly durationMs: number | null;
511
- readonly accountProfile: string;
512
- readonly operation: string;
513
- readonly permissionState: string;
514
- readonly context: string;
515
- }[], ApiError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clear", "DELETE", never, never, never, never, {
516
- readonly deleted: number;
517
- }, ApiError, never, never>, never, never, false>;
470
+ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/audit/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
471
+ readonly limit: Schema.optional<Schema.NumberFromString>;
472
+ readonly offset: Schema.optional<Schema.NumberFromString>;
473
+ readonly operation: Schema.optional<Schema.String>;
474
+ readonly accountProfile: Schema.optional<Schema.String>;
475
+ readonly permissionState: Schema.optional<Schema.String>;
476
+ readonly from: Schema.optional<Schema.String>;
477
+ readonly to: Schema.optional<Schema.String>;
478
+ readonly search: Schema.optional<Schema.String>;
479
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
480
+ readonly items: Schema.$Array<Schema.Struct<{
481
+ readonly id: Schema.Number;
482
+ readonly timestamp: Schema.String;
483
+ readonly operation: Schema.String;
484
+ readonly accountProfile: Schema.String;
485
+ readonly region: Schema.String;
486
+ readonly permissionState: Schema.String;
487
+ readonly context: Schema.String;
488
+ readonly durationMs: Schema.NullOr<Schema.Number>;
489
+ }>>;
490
+ readonly total: Schema.Number;
491
+ readonly nextCursor: Schema.optional<Schema.Number>;
492
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"export", "GET", "/api/audit/export", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
493
+ readonly from: Schema.optional<Schema.String>;
494
+ readonly to: Schema.optional<Schema.String>;
495
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
496
+ readonly id: Schema.Number;
497
+ readonly timestamp: Schema.String;
498
+ readonly operation: Schema.String;
499
+ readonly accountProfile: Schema.String;
500
+ readonly region: Schema.String;
501
+ readonly permissionState: Schema.String;
502
+ readonly context: Schema.String;
503
+ readonly durationMs: Schema.NullOr<Schema.Number>;
504
+ }>>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clear", "DELETE", "/api/audit/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
505
+ readonly deleted: Schema.Number;
506
+ }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
518
507
  export declare class AuditGroup extends AuditGroup_base {
519
508
  }
520
- declare const CodeCommitApi_base: HttpApi.HttpApi<"CodeCommitApi", typeof PrsGroup | typeof EventsGroup | typeof ConfigGroup | typeof AccountsGroup | typeof SubscriptionsGroup | typeof NotificationsGroup | typeof SandboxGroup | typeof StatsGroup | typeof PermissionsGroup | typeof AuditGroup, import("@effect/platform/HttpApiError").HttpApiDecodeError, never>;
509
+ declare const CodeCommitApi_base: HttpApi.HttpApi<"CodeCommitApi", typeof PrsGroup | typeof EventsGroup | typeof ConfigGroup | typeof AccountsGroup | typeof SubscriptionsGroup | typeof NotificationsGroup | typeof SandboxGroup | typeof StatsGroup | typeof PermissionsGroup | typeof AuditGroup>;
521
510
  export declare class CodeCommitApi extends CodeCommitApi_base {
522
511
  }
523
512
  //# sourceMappingURL=Api.d.ts.map