@knpkv/codecommit-web 0.11.0 → 0.11.2

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 (48) hide show
  1. package/dist/client/assets/index-DHUFjL8d.css +1 -0
  2. package/dist/client/assets/index-DSDtEnV5.js +90 -0
  3. package/dist/client/index.html +2 -2
  4. package/dist/main.js +4 -2
  5. package/dist/main.js.map +1 -1
  6. package/dist/server/Api.d.ts +56 -56
  7. package/dist/server/Server.d.ts.map +1 -1
  8. package/dist/server/Server.js +2 -1
  9. package/dist/server/Server.js.map +1 -1
  10. package/dist/server/handlers/accounts-live.d.ts +1 -1
  11. package/dist/server/handlers/accounts-live.d.ts.map +1 -1
  12. package/dist/server/handlers/audit-live.d.ts +1 -1
  13. package/dist/server/handlers/audit-live.d.ts.map +1 -1
  14. package/dist/server/handlers/config-live.d.ts +1 -1
  15. package/dist/server/handlers/config-live.d.ts.map +1 -1
  16. package/dist/server/handlers/config-live.js +8 -5
  17. package/dist/server/handlers/config-live.js.map +1 -1
  18. package/dist/server/handlers/events-live.d.ts +1 -1
  19. package/dist/server/handlers/events-live.d.ts.map +1 -1
  20. package/dist/server/handlers/events-live.js +8 -2
  21. package/dist/server/handlers/events-live.js.map +1 -1
  22. package/dist/server/handlers/notifications-live.d.ts +1 -1
  23. package/dist/server/handlers/notifications-live.d.ts.map +1 -1
  24. package/dist/server/handlers/notifications-live.js +3 -2
  25. package/dist/server/handlers/notifications-live.js.map +1 -1
  26. package/dist/server/handlers/permissions-live.d.ts +1 -1
  27. package/dist/server/handlers/permissions-live.d.ts.map +1 -1
  28. package/dist/server/handlers/permissions-live.js +2 -1
  29. package/dist/server/handlers/permissions-live.js.map +1 -1
  30. package/dist/server/handlers/prs-live.d.ts +1 -1
  31. package/dist/server/handlers/prs-live.d.ts.map +1 -1
  32. package/dist/server/handlers/prs-live.js +17 -12
  33. package/dist/server/handlers/prs-live.js.map +1 -1
  34. package/dist/server/handlers/sandbox-live.d.ts +1 -1
  35. package/dist/server/handlers/sandbox-live.d.ts.map +1 -1
  36. package/dist/server/handlers/sandbox-live.js +3 -2
  37. package/dist/server/handlers/sandbox-live.js.map +1 -1
  38. package/dist/server/handlers/stats-live.d.ts +1 -1
  39. package/dist/server/handlers/stats-live.d.ts.map +1 -1
  40. package/dist/server/handlers/subscriptions-live.d.ts +1 -1
  41. package/dist/server/handlers/subscriptions-live.d.ts.map +1 -1
  42. package/dist/tooling/production-prototype-boundary.d.ts +6 -0
  43. package/dist/tooling/production-prototype-boundary.d.ts.map +1 -0
  44. package/dist/tooling/production-prototype-boundary.js +21 -0
  45. package/dist/tooling/production-prototype-boundary.js.map +1 -0
  46. package/package.json +15 -15
  47. package/dist/client/assets/index-Dv7jNWIj.js +0 -90
  48. package/dist/client/assets/index-olbvD6Ke.css +0 -1
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>codecommit</title>
7
- <script type="module" crossorigin src="/assets/index-Dv7jNWIj.js"></script>
8
- <link rel="stylesheet" crossorigin href="/assets/index-olbvD6Ke.css">
7
+ <script type="module" crossorigin src="/assets/index-DSDtEnV5.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-DHUFjL8d.css">
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
package/dist/main.js CHANGED
@@ -1,5 +1,7 @@
1
- import { Effect } from "effect";
1
+ import { Context, Effect } from "effect";
2
2
  import { CodeCommitServerLive } from "./server/Server.js";
3
3
  const program = CodeCommitServerLive.pipe(Effect.catchCause((cause) => Effect.logError("Server error", cause)), Effect.asVoid);
4
- Effect.runPromise(program);
4
+ const RuntimeContextMarker = Context.Service("@knpkv/codecommit-web/RuntimeContextMarker");
5
+ const runtimeContext = Context.make(RuntimeContextMarker, undefined);
6
+ Effect.runPromiseWith(runtimeContext)(Effect.scoped(program));
5
7
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,CACvC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EACpE,MAAM,CAAC,MAAM,CACS,CAAA;AAExB,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAEzD,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,CACvC,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EACpE,MAAM,CAAC,MAAM,CACd,CAAA;AACD,MAAM,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAmB,4CAA4C,CAAC,CAAA;AAC5G,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,CAAA;AAEpE,MAAM,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAA"}
@@ -56,11 +56,11 @@ export declare const NotificationResponse: Schema.Struct<{
56
56
  readonly createdAt: Schema.String;
57
57
  readonly read: Schema.Number;
58
58
  }>;
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<{
59
+ declare const PrsGroup_base: HttpApiGroup.HttpApiGroup<"prs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/prs/", never, never, never, never, Schema.toCodecJson<Schema.Chunk<typeof PullRequest>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refresh", "POST", "/api/prs/refresh", never, never, never, never, Schema.toCodecJson<Schema.String>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"search", "GET", "/api/prs/search", never, Schema.toCodecStringTree<Schema.Struct<{
60
60
  readonly q: Schema.String;
61
61
  readonly limit: Schema.optional<Schema.NumberFromString>;
62
62
  readonly offset: Schema.optional<Schema.NumberFromString>;
63
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
63
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
64
64
  readonly items: Schema.$Array<Schema.Struct<{
65
65
  readonly id: Schema.String;
66
66
  readonly awsAccountId: Schema.String;
@@ -83,52 +83,52 @@ declare const PrsGroup_base: HttpApiGroup.HttpApiGroup<"prs", HttpApiEndpoint.Ht
83
83
  }>>;
84
84
  readonly total: Schema.Number;
85
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<{
86
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"refreshSingle", "POST", "/api/prs/:awsAccountId/:prId/refresh", Schema.toCodecStringTree<Schema.Struct<{
87
87
  readonly awsAccountId: Schema.String;
88
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<{
89
+ }>>, never, never, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api/prs/", never, never, Schema.toCodecJson<Schema.Struct<{
90
90
  readonly repositoryName: Schema.String;
91
91
  readonly title: Schema.String;
92
92
  readonly description: Schema.optional<Schema.String>;
93
93
  readonly sourceBranch: Schema.String;
94
94
  readonly destinationBranch: Schema.String;
95
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<{
96
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"open", "POST", "/api/prs/open", never, never, Schema.toCodecJson<Schema.Struct<{
97
97
  readonly profile: Schema.String;
98
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<{
99
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"comments", "GET", "/api/prs/comments", never, Schema.toCodecStringTree<Schema.Struct<{
100
100
  readonly pullRequestId: Schema.String;
101
101
  readonly repositoryName: Schema.String;
102
102
  readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
103
103
  readonly region: Schema.brand<Schema.String, "AwsRegion">;
104
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
104
+ }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
105
105
  readonly filePath: Schema.optional<Schema.String>;
106
106
  readonly beforeCommitId: Schema.optional<Schema.String>;
107
107
  readonly afterCommitId: Schema.optional<Schema.String>;
108
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<{
109
+ }>>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createApprovalRule", "POST", "/api/prs/approval-rules", never, never, Schema.toCodecJson<Schema.Struct<{
110
110
  readonly pullRequestId: Schema.String;
111
111
  readonly approvalRuleName: Schema.String;
112
112
  readonly requiredApprovals: Schema.Number;
113
113
  readonly poolMembers: Schema.$Array<Schema.String>;
114
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<{
115
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateApprovalRule", "PUT", "/api/prs/approval-rules", never, never, Schema.toCodecJson<Schema.Struct<{
116
116
  readonly pullRequestId: Schema.String;
117
117
  readonly approvalRuleName: Schema.String;
118
118
  readonly requiredApprovals: Schema.Number;
119
119
  readonly poolMembers: Schema.$Array<Schema.String>;
120
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<{
121
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteApprovalRule", "DELETE", "/api/prs/approval-rules", never, never, Schema.toCodecJson<Schema.Struct<{
122
122
  readonly pullRequestId: Schema.String;
123
123
  readonly approvalRuleName: Schema.String;
124
124
  readonly account: typeof Account;
125
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
125
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
126
126
  export declare class PrsGroup extends PrsGroup_base {
127
127
  }
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>;
128
+ declare const EventsGroup_base: HttpApiGroup.HttpApiGroup<"events", HttpApiEndpoint.HttpApiEndpoint<"stream", "GET", "/api/events/", never, never, never, never, Schema.toCodecJson<Schema.String>, never, never, never>, false>;
129
129
  export declare class EventsGroup extends EventsGroup_base {
130
130
  }
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<{
131
+ declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/config/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
132
132
  readonly accounts: Schema.$Array<Schema.Struct<{
133
133
  readonly profile: Schema.String;
134
134
  readonly regions: Schema.$Array<Schema.String>;
@@ -150,20 +150,20 @@ declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpo
150
150
  }>>;
151
151
  readonly cloneDepth: Schema.Number;
152
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<{
153
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"path", "GET", "/api/config/path", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
154
154
  readonly path: Schema.String;
155
155
  readonly exists: Schema.Boolean;
156
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<{
157
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"database", "GET", "/api/config/database", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
158
158
  readonly path: Schema.String;
159
159
  readonly sizeBytes: Schema.Number;
160
160
  readonly exists: Schema.Boolean;
161
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<{
162
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"validate", "GET", "/api/config/validate", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
163
163
  readonly status: Schema.Literals<readonly ["valid", "missing", "corrupted"]>;
164
164
  readonly path: Schema.String;
165
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<{
166
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"save", "POST", "/api/config/save", never, never, Schema.toCodecJson<Schema.Struct<{
167
167
  readonly accounts: Schema.$Array<Schema.Struct<{
168
168
  readonly profile: Schema.String;
169
169
  readonly regions: Schema.$Array<Schema.String>;
@@ -184,7 +184,7 @@ declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpo
184
184
  }>>;
185
185
  readonly cloneDepth: Schema.Number;
186
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<{
187
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", "/api/config/reset", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
188
188
  readonly backupPath: Schema.optional<Schema.String>;
189
189
  readonly config: Schema.Struct<{
190
190
  readonly accounts: Schema.$Array<Schema.Struct<{
@@ -209,30 +209,30 @@ declare const ConfigGroup_base: HttpApiGroup.HttpApiGroup<"config", HttpApiEndpo
209
209
  readonly cloneDepth: Schema.Number;
210
210
  }>>;
211
211
  }>;
212
- }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
212
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
213
213
  export declare class ConfigGroup extends ConfigGroup_base {
214
214
  }
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>;
215
+ declare const AccountsGroup_base: HttpApiGroup.HttpApiGroup<"accounts", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/accounts/", never, never, never, never, Schema.toCodecJson<Schema.Chunk<typeof Account>>, never, never, never>, false>;
216
216
  export declare class AccountsGroup extends AccountsGroup_base {
217
217
  }
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<{
218
+ declare const SubscriptionsGroup_base: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"subscribe", "POST", "/api/subscriptions/subscribe", never, never, Schema.toCodecJson<Schema.Struct<{
219
219
  readonly awsAccountId: Schema.String;
220
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<{
221
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"unsubscribe", "POST", "/api/subscriptions/unsubscribe", never, never, Schema.toCodecJson<Schema.Struct<{
222
222
  readonly awsAccountId: Schema.String;
223
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<{
224
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/subscriptions/", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
225
225
  readonly awsAccountId: Schema.String;
226
226
  readonly pullRequestId: Schema.String;
227
- }>>>, HttpApiEndpoint.Json<never>, never, never>, false>;
227
+ }>>>, never, never, never>, false>;
228
228
  export declare class SubscriptionsGroup extends SubscriptionsGroup_base {
229
229
  }
230
- declare const NotificationsGroup_base: HttpApiGroup.HttpApiGroup<"notifications", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/notifications/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
230
+ declare const NotificationsGroup_base: HttpApiGroup.HttpApiGroup<"notifications", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/notifications/", never, Schema.toCodecStringTree<Schema.Struct<{
231
231
  readonly limit: Schema.optional<Schema.NumberFromString>;
232
232
  readonly cursor: Schema.optional<Schema.NumberFromString>;
233
233
  readonly filter: Schema.optional<Schema.Literals<readonly ["system", "prs"]>>;
234
234
  readonly unreadOnly: Schema.optional<Schema.NumberFromString>;
235
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
235
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
236
236
  readonly items: Schema.$Array<Schema.Struct<{
237
237
  readonly id: Schema.Number;
238
238
  readonly pullRequestId: Schema.String;
@@ -245,15 +245,15 @@ declare const NotificationsGroup_base: HttpApiGroup.HttpApiGroup<"notifications"
245
245
  readonly read: Schema.Number;
246
246
  }>>;
247
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<{
248
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"count", "GET", "/api/notifications/count", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
249
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<{
250
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markRead", "POST", "/api/notifications/read", never, never, Schema.toCodecJson<Schema.Struct<{
251
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<{
252
+ }>>, never, Schema.toCodecJson<Schema.String>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markUnread", "POST", "/api/notifications/unread", never, never, Schema.toCodecJson<Schema.Struct<{
253
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<{
254
+ }>>, never, Schema.toCodecJson<Schema.String>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"markAllRead", "POST", "/api/notifications/read-all", never, never, never, never, Schema.toCodecJson<Schema.String>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogin", "POST", "/api/notifications/sso-login", never, never, Schema.toCodecJson<Schema.Struct<{
255
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>;
256
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"ssoLogout", "POST", "/api/notifications/sso-logout", never, never, never, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
257
257
  export declare class NotificationsGroup extends NotificationsGroup_base {
258
258
  }
259
259
  export declare const SandboxResponse: Schema.Struct<{
@@ -271,14 +271,14 @@ export declare const SandboxResponse: Schema.Struct<{
271
271
  readonly createdAt: Schema.String;
272
272
  readonly lastActivityAt: Schema.String;
273
273
  }>;
274
- declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api/sandbox/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
274
+ declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/api/sandbox/", never, never, Schema.toCodecJson<Schema.Struct<{
275
275
  readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
276
276
  readonly awsAccountId: Schema.String;
277
277
  readonly repositoryName: Schema.String;
278
278
  readonly sourceBranch: Schema.String;
279
279
  readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
280
280
  readonly region: Schema.String;
281
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
281
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
282
282
  readonly id: Schema.String;
283
283
  readonly pullRequestId: Schema.String;
284
284
  readonly awsAccountId: Schema.String;
@@ -292,7 +292,7 @@ declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEnd
292
292
  readonly error: Schema.NullOr<Schema.String>;
293
293
  readonly createdAt: Schema.String;
294
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<{
295
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/sandbox/", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
296
296
  readonly id: Schema.String;
297
297
  readonly pullRequestId: Schema.String;
298
298
  readonly awsAccountId: Schema.String;
@@ -306,9 +306,9 @@ declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEnd
306
306
  readonly error: Schema.NullOr<Schema.String>;
307
307
  readonly createdAt: Schema.String;
308
308
  readonly lastActivityAt: Schema.String;
309
- }>>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/sandbox/:sandboxId", HttpApiEndpoint.StringTree<Schema.Struct<{
309
+ }>>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/sandbox/:sandboxId", Schema.toCodecStringTree<Schema.Struct<{
310
310
  readonly sandboxId: Schema.brand<Schema.String, "SandboxId">;
311
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
311
+ }>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
312
312
  readonly id: Schema.String;
313
313
  readonly pullRequestId: Schema.String;
314
314
  readonly awsAccountId: Schema.String;
@@ -322,22 +322,22 @@ declare const SandboxGroup_base: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEnd
322
322
  readonly error: Schema.NullOr<Schema.String>;
323
323
  readonly createdAt: Schema.String;
324
324
  readonly lastActivityAt: Schema.String;
325
- }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stop", "POST", "/api/sandbox/:sandboxId/stop", HttpApiEndpoint.StringTree<Schema.Struct<{
325
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"stop", "POST", "/api/sandbox/:sandboxId/stop", Schema.toCodecStringTree<Schema.Struct<{
326
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<{
327
+ }>>, never, never, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"restart", "POST", "/api/sandbox/:sandboxId/restart", Schema.toCodecStringTree<Schema.Struct<{
328
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<{
329
+ }>>, never, never, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", "/api/sandbox/:sandboxId", Schema.toCodecStringTree<Schema.Struct<{
330
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>;
331
+ }>>, never, never, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
332
332
  export declare class SandboxGroup extends SandboxGroup_base {
333
333
  }
334
334
  export { WeeklyStats };
335
- declare const StatsGroup_base: HttpApiGroup.HttpApiGroup<"stats", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/stats/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
335
+ declare const StatsGroup_base: HttpApiGroup.HttpApiGroup<"stats", HttpApiEndpoint.HttpApiEndpoint<"get", "GET", "/api/stats/", never, Schema.toCodecStringTree<Schema.Struct<{
336
336
  readonly week: Schema.String;
337
337
  readonly repo: Schema.optional<Schema.String>;
338
338
  readonly author: Schema.optional<Schema.String>;
339
339
  readonly account: Schema.optional<Schema.String>;
340
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
340
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
341
341
  readonly week: Schema.String;
342
342
  readonly weekStart: Schema.String;
343
343
  readonly weekEnd: Schema.String;
@@ -432,9 +432,9 @@ declare const StatsGroup_base: HttpApiGroup.HttpApiGroup<"stats", HttpApiEndpoin
432
432
  readonly availableRepos: Schema.$Array<Schema.String>;
433
433
  readonly availableAuthors: Schema.$Array<Schema.String>;
434
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<{
435
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sync", "POST", "/api/stats/sync", never, never, Schema.toCodecJson<Schema.Struct<{
436
436
  readonly week: Schema.String;
437
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
437
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
438
438
  export declare class StatsGroup extends StatsGroup_base {
439
439
  }
440
440
  export declare const AuditLogEntryResponse: Schema.Struct<{
@@ -447,27 +447,27 @@ export declare const AuditLogEntryResponse: Schema.Struct<{
447
447
  readonly context: Schema.String;
448
448
  readonly durationMs: Schema.NullOr<Schema.Number>;
449
449
  }>;
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<{
450
+ declare const PermissionsGroup_base: HttpApiGroup.HttpApiGroup<"permissions", HttpApiEndpoint.HttpApiEndpoint<"respond", "POST", "/api/permissions/respond", never, never, Schema.toCodecJson<Schema.Struct<{
451
451
  readonly id: Schema.String;
452
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<{
453
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/permissions/", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
454
454
  readonly operation: Schema.String;
455
455
  readonly state: Schema.Literals<readonly ["always_allow", "allow", "deny"]>;
456
456
  readonly category: Schema.Literals<readonly ["read", "write"]>;
457
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<{
458
+ }>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "POST", "/api/permissions/update", never, never, Schema.toCodecJson<Schema.Struct<{
459
459
  readonly operation: Schema.String;
460
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<{
461
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reset", "POST", "/api/permissions/reset", never, never, never, never, Schema.toCodecJson<Schema.String>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"auditSettings", "GET", "/api/permissions/audit", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
462
462
  readonly enabled: Schema.Boolean;
463
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<{
464
+ }>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateAuditSettings", "POST", "/api/permissions/audit", never, never, Schema.toCodecJson<Schema.Struct<{
465
465
  readonly enabled: Schema.optional<Schema.Boolean>;
466
466
  readonly retentionDays: Schema.optional<Schema.Number>;
467
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.String>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
467
+ }>>, never, Schema.toCodecJson<Schema.String>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
468
468
  export declare class PermissionsGroup extends PermissionsGroup_base {
469
469
  }
470
- declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/audit/", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<Schema.Struct<{
470
+ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", "/api/audit/", never, Schema.toCodecStringTree<Schema.Struct<{
471
471
  readonly limit: Schema.optional<Schema.NumberFromString>;
472
472
  readonly offset: Schema.optional<Schema.NumberFromString>;
473
473
  readonly operation: Schema.optional<Schema.String>;
@@ -476,7 +476,7 @@ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoin
476
476
  readonly from: Schema.optional<Schema.String>;
477
477
  readonly to: Schema.optional<Schema.String>;
478
478
  readonly search: Schema.optional<Schema.String>;
479
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
479
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
480
480
  readonly items: Schema.$Array<Schema.Struct<{
481
481
  readonly id: Schema.Number;
482
482
  readonly timestamp: Schema.String;
@@ -489,10 +489,10 @@ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoin
489
489
  }>>;
490
490
  readonly total: Schema.Number;
491
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<{
492
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"export", "GET", "/api/audit/export", never, Schema.toCodecStringTree<Schema.Struct<{
493
493
  readonly from: Schema.optional<Schema.String>;
494
494
  readonly to: Schema.optional<Schema.String>;
495
- }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.$Array<Schema.Struct<{
495
+ }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
496
496
  readonly id: Schema.Number;
497
497
  readonly timestamp: Schema.String;
498
498
  readonly operation: Schema.String;
@@ -501,9 +501,9 @@ declare const AuditGroup_base: HttpApiGroup.HttpApiGroup<"audit", HttpApiEndpoin
501
501
  readonly permissionState: Schema.String;
502
502
  readonly context: Schema.String;
503
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<{
504
+ }>>>, Schema.toCodecJson<typeof ApiError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"clear", "DELETE", "/api/audit/", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
505
505
  readonly deleted: Schema.Number;
506
- }>>, HttpApiEndpoint.Json<typeof ApiError>, never, never>, false>;
506
+ }>>, Schema.toCodecJson<typeof ApiError>, never, never>, false>;
507
507
  export declare class AuditGroup extends AuditGroup_base {
508
508
  }
509
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>;
@@ -1 +1 @@
1
- {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../src/server/Server.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAS,MAAM,EAAY,MAAM,EAAE,KAAK,EAAkB,MAAM,QAAQ,CAAA;AAkU/E,eAAO,MAAM,UAAU,GAAI,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,uCAMpE,CAAA;AAEH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,uCAAyB,CAAA;AAE1E,eAAO,MAAM,IAAI,uBAAoD,CAAA;AAoBrE,eAAO,MAAM,oBAAoB,sCAW/B,CAAA"}
1
+ {"version":3,"file":"Server.d.ts","sourceRoot":"","sources":["../../src/server/Server.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAS,MAAM,EAAY,MAAM,EAAE,KAAK,EAAkB,MAAM,QAAQ,CAAA;AAmU/E,eAAO,MAAM,UAAU,GAAI,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,uCAMpE,CAAA;AAEH,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,uCAAyB,CAAA;AAE1E,eAAO,MAAM,IAAI,uBAAoD,CAAA;AAoBrE,eAAO,MAAM,oBAAoB,sCAW/B,CAAA"}
@@ -113,8 +113,9 @@ const AuditPrune = Layer.effectDiscard(Effect.gen(function* () {
113
113
  const AutoRefresh = Layer.effectDiscard(Effect.gen(function* () {
114
114
  const prService = yield* PRService.PRService;
115
115
  const configService = yield* ConfigService.ConfigService;
116
+ const defaultRefreshConfig = { autoRefresh: true, refreshIntervalSeconds: 300 };
116
117
  const refreshIteration = Effect.gen(function* () {
117
- const config = yield* configService.load.pipe(Effect.catchIf(() => true, () => Effect.succeed({ autoRefresh: true, refreshIntervalSeconds: 300 })));
118
+ const config = yield* configService.load.pipe(Effect.catchIf(() => true, () => Effect.succeed(defaultRefreshConfig)));
118
119
  if (config.autoRefresh) {
119
120
  yield* Effect.sleep(Duration.seconds(config.refreshIntervalSeconds));
120
121
  yield* prService.refresh;
@@ -1 +1 @@
1
- {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../src/server/Server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,YAAY,EACb,MAAM,wBAAwB,CAAA;AAC/B,OAAO,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AAC,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { PRService } from "@knpkv/codecommit-core";
2
- export declare const AccountsLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"CodeCommitApi", "accounts">, never, PRService.PRService>;
2
+ export declare const AccountsLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"CodeCommitApi", "accounts">, never, PRService.PRService>;
3
3
  //# sourceMappingURL=accounts-live.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/accounts-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAK1D,eAAO,MAAM,YAAY,gJAiBpB,CAAA"}
1
+ {"version":3,"file":"accounts-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/accounts-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAK1D,eAAO,MAAM,YAAY,+IAiBpB,CAAA"}
@@ -4,5 +4,5 @@
4
4
  * @module
5
5
  */
6
6
  import { AuditLogRepo } from "@knpkv/codecommit-core/PermissionService/AuditLog.js";
7
- export declare const AuditLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"CodeCommitApi", "audit">, never, AuditLogRepo>;
7
+ export declare const AuditLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"CodeCommitApi", "audit">, never, AuditLogRepo>;
8
8
  //# sourceMappingURL=audit-live.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/audit-live.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAA;AAKnF,eAAO,MAAM,SAAS,sIAqCrB,CAAA"}
1
+ {"version":3,"file":"audit-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/audit-live.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAA;AAKnF,eAAO,MAAM,SAAS,qIAqCrB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { ConfigService, PRService } from "@knpkv/codecommit-core";
2
2
  import * as FileSystem from "effect/FileSystem";
3
- export declare const ConfigLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").ApiGroup<"CodeCommitApi", "config">, never, ConfigService.ConfigService | PRService.PRService | import("effect/unstable/http/HttpRouter").Request<"Requires", FileSystem.FileSystem>>;
3
+ export declare const ConfigLive: import("effect/Layer").Layer<import("effect/unstable/httpapi/HttpApiGroup").Service<"CodeCommitApi", "config">, never, ConfigService.ConfigService | PRService.PRService | import("effect/unstable/http/HttpRouter").Request<"Requires", FileSystem.FileSystem>>;
4
4
  //# sourceMappingURL=config-live.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/config-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGjE,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAI/C,eAAO,MAAM,UAAU,mQAuHlB,CAAA"}
1
+ {"version":3,"file":"config-live.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/config-live.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGjE,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAU/C,eAAO,MAAM,UAAU,kQAkIlB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ConfigService, PRService } from "@knpkv/codecommit-core";
2
2
  import { AwsProfileName, AwsRegion } from "@knpkv/codecommit-core/Domain.js";
3
- import { Config, Effect, Option, Schema, SubscriptionRef } from "effect";
3
+ import { Config, Effect, Option, Predicate, Schema, SubscriptionRef } from "effect";
4
4
  import * as FileSystem from "effect/FileSystem";
5
5
  import { HttpApiBuilder } from "effect/unstable/httpapi";
6
6
  import { ApiError, CodeCommitApi } from "../Api.js";
@@ -38,7 +38,7 @@ export const ConfigLive = HttpApiBuilder.group(CodeCommitApi, "config", (handler
38
38
  ? yield* fs.stat(path).pipe(Effect.map((s) => Option.map(s.mtime, (d) => new Date(Number(d)).toISOString()).pipe(Option.getOrUndefined)), Effect.catchIf(() => true, () => Effect.succeed(undefined)))
39
39
  : undefined;
40
40
  return { path, exists, modifiedAt };
41
- }).pipe(Effect.mapError((e) => new ApiError({ message: e instanceof Error ? e.message : String(e) }))))
41
+ }).pipe(Effect.mapError((e) => new ApiError({ message: Predicate.isError(e) ? e.message : String(e) }))))
42
42
  .handle("database", () => Effect.gen(function* () {
43
43
  const fs = yield* FileSystem.FileSystem;
44
44
  const home = yield* Config.string("HOME").pipe(Config.orElse(() => Config.string("USERPROFILE")));
@@ -51,11 +51,11 @@ export const ConfigLive = HttpApiBuilder.group(CodeCommitApi, "config", (handler
51
51
  })), Effect.catchIf(() => true, () => Effect.succeed(undefined)))
52
52
  : undefined;
53
53
  return { path, sizeBytes: stat?.size ?? 0, exists, modifiedAt: stat?.modifiedAt };
54
- }).pipe(Effect.mapError((e) => new ApiError({ message: String(e) }))))
54
+ }).pipe(Effect.mapError((e) => new ApiError({ message: Predicate.isError(e) ? e.message : String(e) }))))
55
55
  .handle("validate", () => Effect.gen(function* () {
56
56
  const result = yield* configService.validate;
57
57
  return { status: result.status, path: result.path, errors: result.errors };
58
- }).pipe(Effect.mapError((e) => new ApiError({ message: e instanceof Error ? e.message : String(e) }))))
58
+ }).pipe(Effect.mapError((e) => new ApiError({ message: String(e) }))))
59
59
  .handle("save", ({ payload }) => Effect.gen(function* () {
60
60
  const existing = yield* configService.load.pipe(Effect.catchIf(() => true, () => Effect.succeed({ sandbox: ConfigService.defaultSandboxConfig })));
61
61
  const accounts = yield* Effect.forEach(payload.accounts, (a) => Effect.all({
@@ -74,7 +74,10 @@ export const ConfigLive = HttpApiBuilder.group(CodeCommitApi, "config", (handler
74
74
  return "ok";
75
75
  }).pipe(Effect.mapError((e) => new ApiError({ message: String(e) }))))
76
76
  .handle("reset", () => Effect.gen(function* () {
77
- const backupPath = yield* configService.backup.pipe(Effect.map((p) => p), Effect.catchIf(() => true, () => Effect.succeed(undefined)));
77
+ const backupPath = yield* configService.backup.pipe(Effect.map((p) => p), Effect.catchIf(() => true, () => {
78
+ const backupPath = undefined;
79
+ return Effect.succeed(backupPath);
80
+ }));
78
81
  const config = yield* configService.reset;
79
82
  yield* prService.refresh.pipe(Effect.catchIf(() => true, (e) => Effect.logWarning("refresh after config reset failed", e)));
80
83
  const state = yield* SubscriptionRef.get(prService.state);