@kitman-sh/sdk 0.7.0 → 0.7.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 (62) hide show
  1. package/package.json +1 -1
  2. package/types/packages/live/src/rpc/runner-group.d.ts +260 -260
  3. package/types/packages/core/src/a2a.d.ts +0 -577
  4. package/types/packages/core/src/agent-capabilities.d.ts +0 -1434
  5. package/types/packages/core/src/agent-launch-snapshot.d.ts +0 -44
  6. package/types/packages/core/src/approval-queue.d.ts +0 -126
  7. package/types/packages/core/src/audit.d.ts +0 -52
  8. package/types/packages/core/src/change-delivery.d.ts +0 -39
  9. package/types/packages/core/src/change-request-review.d.ts +0 -146
  10. package/types/packages/core/src/change-request.d.ts +0 -432
  11. package/types/packages/core/src/connection.d.ts +0 -33
  12. package/types/packages/core/src/context-feedback.d.ts +0 -89
  13. package/types/packages/core/src/data-lifecycle.d.ts +0 -195
  14. package/types/packages/core/src/decision.d.ts +0 -48
  15. package/types/packages/core/src/delivery-operation.d.ts +0 -125
  16. package/types/packages/core/src/delivery-policy.d.ts +0 -174
  17. package/types/packages/core/src/engineering-resources.d.ts +0 -26
  18. package/types/packages/core/src/enterprise-code-host.d.ts +0 -18
  19. package/types/packages/core/src/epic-delivery.d.ts +0 -38
  20. package/types/packages/core/src/external-effect.d.ts +0 -313
  21. package/types/packages/core/src/fix-flow.d.ts +0 -149
  22. package/types/packages/core/src/following.d.ts +0 -59
  23. package/types/packages/core/src/github-delivery-fixtures.d.ts +0 -28
  24. package/types/packages/core/src/github-delivery.d.ts +0 -78
  25. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +0 -26
  26. package/types/packages/core/src/gitlab-delivery.d.ts +0 -76
  27. package/types/packages/core/src/global-search.d.ts +0 -42
  28. package/types/packages/core/src/id.d.ts +0 -1
  29. package/types/packages/core/src/integration.d.ts +0 -255
  30. package/types/packages/core/src/intent.d.ts +0 -260
  31. package/types/packages/core/src/json.d.ts +0 -10
  32. package/types/packages/core/src/kit-taxonomy.d.ts +0 -21
  33. package/types/packages/core/src/live.d.ts +0 -8309
  34. package/types/packages/core/src/me.d.ts +0 -31
  35. package/types/packages/core/src/memory.d.ts +0 -88
  36. package/types/packages/core/src/my-teams.d.ts +0 -1230
  37. package/types/packages/core/src/notification.d.ts +0 -181
  38. package/types/packages/core/src/observability.d.ts +0 -175
  39. package/types/packages/core/src/package.d.ts +0 -369
  40. package/types/packages/core/src/personal-development-profile.d.ts +0 -11
  41. package/types/packages/core/src/platform-release.d.ts +0 -60
  42. package/types/packages/core/src/program-credential.d.ts +0 -10
  43. package/types/packages/core/src/project.d.ts +0 -66
  44. package/types/packages/core/src/provider-safe-text.d.ts +0 -2
  45. package/types/packages/core/src/repo-binding.d.ts +0 -131
  46. package/types/packages/core/src/run-journal.d.ts +0 -28
  47. package/types/packages/core/src/run-launch.d.ts +0 -67
  48. package/types/packages/core/src/runner-eligibility.d.ts +0 -43
  49. package/types/packages/core/src/runner-routing.d.ts +0 -11
  50. package/types/packages/core/src/runner-trust.d.ts +0 -67
  51. package/types/packages/core/src/runner.d.ts +0 -3750
  52. package/types/packages/core/src/scope-directory.d.ts +0 -100
  53. package/types/packages/core/src/secret.d.ts +0 -37
  54. package/types/packages/core/src/session.d.ts +0 -90
  55. package/types/packages/core/src/step-brief.d.ts +0 -50
  56. package/types/packages/core/src/sync-kit.d.ts +0 -587
  57. package/types/packages/core/src/task-detail.d.ts +0 -491
  58. package/types/packages/core/src/task-execution-record.d.ts +0 -620
  59. package/types/packages/core/src/task-key.d.ts +0 -9
  60. package/types/packages/core/src/task.d.ts +0 -543
  61. package/types/packages/core/src/work-unit.d.ts +0 -740
  62. package/types/packages/core/src/workspace.d.ts +0 -96
@@ -1,26 +0,0 @@
1
- /** Non-secret certification fixtures. They intentionally describe two independent rows. */
2
- export declare const GitLabDeliveryCertificationFixtures: readonly [{
3
- readonly rowId: 'DELIVERY-GITLAB-COM-EPIC-INTEGRATION-V1';
4
- readonly hostClass: 'gitlab_com';
5
- readonly host: 'gitlab.com';
6
- readonly projectId: 'fixture-gitlab-com-project';
7
- readonly owner: 'kitman-fixtures';
8
- readonly repositoryName: 'epic-delivery';
9
- readonly adapterVersion: 'gitlab.v1';
10
- readonly accountScopeDigest: string;
11
- readonly apiBaseUrl: 'https://gitlab.com/api/v4';
12
- readonly protectionProfile: 'protected-default-human-merge';
13
- readonly authMode: 'runner_secret_ref';
14
- }, {
15
- readonly rowId: 'DELIVERY-GITLAB-SELF-MANAGED-EPIC-INTEGRATION-V1';
16
- readonly hostClass: 'gitlab_self_managed';
17
- readonly host: 'gitlab.example.test';
18
- readonly projectId: 'fixture-gitlab-self-managed-project';
19
- readonly owner: 'kitman-fixtures';
20
- readonly repositoryName: 'epic-delivery';
21
- readonly adapterVersion: 'gitlab.v1';
22
- readonly accountScopeDigest: string;
23
- readonly apiBaseUrl: 'https://gitlab.example.test/api/v4';
24
- readonly protectionProfile: 'protected-default-human-merge';
25
- readonly authMode: 'runner_secret_ref';
26
- }];
@@ -1,76 +0,0 @@
1
- import type { JsonValue } from './runtime-type';
2
- import type { DeliveryAttempt, DeliveryPolicy, DeliveryPolicyOperation } from './delivery-policy';
3
- export declare const GitLabProviderOperations: readonly ['create_branch', 'update_branch', 'create_merge_request', 'update_merge_request', 'read_checks', 'request_review', 'record_review', 'update_description', 'reply_discussion', 'set_draft_state', 'publish_commit_status', 'set_merge_request_state', 'enqueue_merge_train', 'delete_merged_branch', 'merge_merge_request', 'revert_merge_request', 'reconcile', 'conflict'];
4
- type GitLabProviderOperation = (typeof GitLabProviderOperations)[number];
5
- type GitLabHostClass = 'gitlab_com' | 'gitlab_self_managed';
6
- type GitLabObservationClassification = 'found_same' | 'not_found' | 'found_conflict';
7
- export declare function assertGitLabProviderOperation(deliveryOperation: DeliveryPolicyOperation, providerOperation: GitLabProviderOperation): void;
8
- export declare function gitlabProviderOperationForDeliveryOperation(deliveryOperation: DeliveryPolicyOperation): GitLabProviderOperation;
9
- export interface DeclaredGitLabProject {
10
- readonly rowId: string;
11
- readonly hostClass: GitLabHostClass;
12
- readonly host: string;
13
- readonly projectId: string;
14
- readonly owner: string;
15
- readonly repositoryName: string;
16
- readonly adapterVersion: string;
17
- readonly accountScopeDigest: string;
18
- readonly apiBaseUrl: string;
19
- }
20
- export interface GitLabDeliveryExpectation {
21
- readonly operation: GitLabProviderOperation;
22
- readonly deliveryOperation: DeliveryPolicyOperation;
23
- readonly projectId: string;
24
- readonly host: string;
25
- readonly sourceBranch?: string;
26
- readonly targetBranch?: string;
27
- readonly sourceSha?: string;
28
- readonly targetSha?: string;
29
- readonly mergeRequestIid?: string;
30
- readonly title?: string;
31
- readonly effectMarker: string;
32
- }
33
- export interface GitLabProviderObservation {
34
- readonly operation: GitLabProviderOperation;
35
- readonly projectId: string;
36
- readonly host: string;
37
- readonly providerObjectId?: string;
38
- readonly mergeRequestIid?: string;
39
- readonly sourceBranch?: string;
40
- readonly targetBranch?: string;
41
- readonly sourceSha?: string;
42
- readonly targetSha?: string;
43
- readonly effectMarker?: string;
44
- readonly resultingSha?: string;
45
- }
46
- type GitLabIdentityPin = 'sourceBranch' | 'targetBranch' | 'sourceSha' | 'targetSha' | 'mergeRequestIid';
47
- export declare function gitLabIdentityPinsForOperation(operation: GitLabProviderOperation): readonly GitLabIdentityPin[];
48
- export declare function normalizeGitLabDeliveryExpectation(expectation: GitLabDeliveryExpectation, attempt: Pick<DeliveryAttempt, 'source' | 'target'>): GitLabDeliveryExpectation;
49
- declare const GitLabDeliveryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
50
- readonly _tag: "GitLabDeliveryError";
51
- } & Readonly<A>;
52
- export declare class GitLabDeliveryError extends GitLabDeliveryError_base<{
53
- readonly code: string;
54
- readonly message: string;
55
- }> {
56
- constructor(code: string, message: string);
57
- }
58
- export declare function isDeclaredGitLabHost(input: Pick<DeclaredGitLabProject, 'hostClass' | 'host'>): boolean;
59
- export declare function assertDeclaredGitLabProject(project: DeclaredGitLabProject): void;
60
- export declare function assertSafeGitLabRef(ref: string): void;
61
- export declare function assertGitLabDeliveryTarget(input: {
62
- readonly policy: DeliveryPolicy;
63
- readonly operation: DeliveryPolicyOperation;
64
- readonly targetBranch: string;
65
- }): void;
66
- export declare function gitLabRequestMarker(input: {
67
- readonly effectKey: string;
68
- readonly policyDigest: string;
69
- }): string;
70
- export declare function classifyGitLabProviderObservation(expected: GitLabDeliveryExpectation, observed: GitLabProviderObservation | null): GitLabObservationClassification;
71
- export declare function assertExactGitLabSha(expected: string, observed: string, kind: 'source' | 'target'): void;
72
- export type GitLabProviderEvidence = {
73
- readonly [key: string]: JsonValue;
74
- };
75
- export declare function safeGitLabProviderEvidence<Evidence extends GitLabProviderEvidence>(input: Evidence): Evidence;
76
- export {};
@@ -1,42 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- declare const GlobalSearchKinds: readonly ['task', 'loop', 'runner'];
3
- export type GlobalSearchKind = (typeof GlobalSearchKinds)[number];
4
- export declare const GlobalSearchQuery: Schema.Struct<{
5
- readonly query: Schema.optionalKey<Schema.String>;
6
- readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.FiniteFromString]>>;
7
- readonly cursor: Schema.optionalKey<Schema.String>;
8
- }>;
9
- export type GlobalSearchQuery = (typeof GlobalSearchQuery)['Type'];
10
- export declare const GlobalSearchItem: Schema.Struct<{
11
- readonly id: Schema.String;
12
- readonly kind: Schema.Literals<readonly ["task", "loop", "runner"]>;
13
- readonly title: Schema.String;
14
- readonly subtitle: Schema.String;
15
- readonly to: Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>;
16
- }>;
17
- export type GlobalSearchItem = (typeof GlobalSearchItem)['Type'];
18
- export declare const GlobalSearchPage: Schema.Struct<{
19
- readonly scope: Schema.Struct<{
20
- readonly workspaceId: Schema.String;
21
- readonly projectId: Schema.String;
22
- }>;
23
- readonly query: Schema.String;
24
- readonly items: Schema.$Array<Schema.Struct<{
25
- readonly id: Schema.String;
26
- readonly kind: Schema.Literals<readonly ["task", "loop", "runner"]>;
27
- readonly title: Schema.String;
28
- readonly subtitle: Schema.String;
29
- readonly to: Schema.Union<readonly [Schema.String, Schema.String, Schema.String]>;
30
- }>>;
31
- readonly pageInfo: Schema.Union<readonly [Schema.Struct<{
32
- readonly limit: Schema.Int;
33
- readonly hasNextPage: Schema.Literal<false>;
34
- }>, Schema.Struct<{
35
- readonly limit: Schema.Int;
36
- readonly hasNextPage: Schema.Literal<true>;
37
- readonly nextCursor: Schema.String;
38
- }>]>;
39
- readonly completeness: Schema.Union<readonly [Schema.Literal<"complete">, Schema.Literal<"partial">]>;
40
- }>;
41
- export type GlobalSearchPage = (typeof GlobalSearchPage)['Type'];
42
- export {};
@@ -1 +0,0 @@
1
- export declare function createId(): string;
@@ -1,255 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- export declare const ChangeRequestProvider: Schema.Literals<readonly ["github", "gitlab"]>;
3
- export declare const CodeHostCapability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
4
- /** The environment variables a code-host connection may name for its custom CA. */
5
- export declare const customCaReferencePattern: RegExp;
6
- export declare const CodeHostConnection: Schema.Struct<{
7
- readonly id: Schema.String;
8
- readonly workspaceId: Schema.String;
9
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
10
- readonly host: Schema.String;
11
- readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token", "gitlab_oauth"]>;
12
- readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
13
- readonly externalAccountId: Schema.optionalKey<Schema.String>;
14
- readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
15
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
16
- readonly credentialConfigured: Schema.Boolean;
17
- readonly webhookActive: Schema.Boolean;
18
- readonly tls: Schema.Struct<{
19
- readonly customCaRef: Schema.optionalKey<Schema.String>;
20
- }>;
21
- readonly supportEvidence: Schema.$Array<Schema.Struct<{
22
- readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
23
- readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
24
- readonly observedAt: Schema.String;
25
- }>>;
26
- readonly expiresAt: Schema.optionalKey<Schema.String>;
27
- readonly lastTestedAt: Schema.optionalKey<Schema.String>;
28
- readonly healthMessage: Schema.optionalKey<Schema.String>;
29
- readonly connectedAt: Schema.optionalKey<Schema.String>;
30
- readonly createdAt: Schema.String;
31
- readonly updatedAt: Schema.String;
32
- }>;
33
- export declare const CodeHostConnectionList: Schema.Struct<{
34
- readonly items: Schema.$Array<Schema.Struct<{
35
- readonly id: Schema.String;
36
- readonly workspaceId: Schema.String;
37
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
38
- readonly host: Schema.String;
39
- readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token", "gitlab_oauth"]>;
40
- readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
41
- readonly externalAccountId: Schema.optionalKey<Schema.String>;
42
- readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
43
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
44
- readonly credentialConfigured: Schema.Boolean;
45
- readonly webhookActive: Schema.Boolean;
46
- readonly tls: Schema.Struct<{
47
- readonly customCaRef: Schema.optionalKey<Schema.String>;
48
- }>;
49
- readonly supportEvidence: Schema.$Array<Schema.Struct<{
50
- readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
51
- readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
52
- readonly observedAt: Schema.String;
53
- }>>;
54
- readonly expiresAt: Schema.optionalKey<Schema.String>;
55
- readonly lastTestedAt: Schema.optionalKey<Schema.String>;
56
- readonly healthMessage: Schema.optionalKey<Schema.String>;
57
- readonly connectedAt: Schema.optionalKey<Schema.String>;
58
- readonly createdAt: Schema.String;
59
- readonly updatedAt: Schema.String;
60
- }>>;
61
- }>;
62
- export declare const CodeHostConnectionWrite: Schema.Struct<{
63
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
64
- readonly host: Schema.String;
65
- readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
66
- readonly externalAccountId: Schema.optionalKey<Schema.String>;
67
- readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
68
- readonly appId: Schema.optionalKey<Schema.String>;
69
- readonly installationId: Schema.optionalKey<Schema.String>;
70
- readonly accessToken: Schema.optionalKey<Schema.String>;
71
- readonly privateKey: Schema.optionalKey<Schema.String>;
72
- readonly webhookSecret: Schema.optionalKey<Schema.String>;
73
- readonly expiresAt: Schema.optionalKey<Schema.String>;
74
- readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
75
- readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
76
- readonly tls: Schema.optionalKey<Schema.Struct<{
77
- readonly customCaRef: Schema.optionalKey<Schema.String>;
78
- }>>;
79
- }>;
80
- /** Where to send the person to install the deployment's GitHub App, carrying a signed `state`. */
81
- export declare const GithubConnectStart: Schema.Struct<{
82
- readonly url: Schema.String;
83
- }>;
84
- /** What GitHub hands back to the App's setup URL after an installation. */
85
- export declare const GithubConnectComplete: Schema.Struct<{
86
- readonly state: Schema.optionalKey<Schema.String>;
87
- readonly code: Schema.optionalKey<Schema.String>;
88
- readonly installationId: Schema.String;
89
- }>;
90
- export declare const GitlabConnectStart: Schema.Struct<{
91
- readonly url: Schema.String;
92
- }>;
93
- /** What GitLab hands back to the OAuth redirect after the person authorizes Kitman. */
94
- export declare const GitlabConnectComplete: Schema.Struct<{
95
- readonly state: Schema.String;
96
- readonly code: Schema.String;
97
- }>;
98
- /** The scopes a GitLab token needs for everything Kitman does with it, webhooks included. */
99
- export declare const GitlabTokenScopes: readonly ['api'];
100
- /** The instance's new personal access token page, with Kitman's name and scopes filled in. */
101
- export declare function gitlabTokenPageUrl(host: string): string;
102
- export declare const CodeHostRepository: Schema.Struct<{
103
- readonly providerRepositoryId: Schema.String;
104
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
105
- readonly host: Schema.String;
106
- readonly owner: Schema.String;
107
- readonly name: Schema.String;
108
- readonly fullPath: Schema.String;
109
- readonly repositoryUrl: Schema.String;
110
- readonly defaultTargetBranch: Schema.String;
111
- }>;
112
- /** One page of the repositories a connection reaches, each saying whether the Workspace has bound it already. */
113
- export declare const CodeHostRepositoryList: Schema.Struct<{
114
- readonly items: Schema.$Array<Schema.Struct<{
115
- readonly providerRepositoryId: Schema.String;
116
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
117
- readonly host: Schema.String;
118
- readonly owner: Schema.String;
119
- readonly name: Schema.String;
120
- readonly fullPath: Schema.String;
121
- readonly repositoryUrl: Schema.String;
122
- readonly defaultTargetBranch: Schema.String;
123
- readonly bound: Schema.Boolean;
124
- }>>;
125
- readonly nextPage: Schema.optionalKey<Schema.Int>;
126
- }>;
127
- /** Repositories, by full path, to bind into one Project: an existing one, or a new one of this name. */
128
- export declare const CodeHostRepositoryBind: Schema.Struct<{
129
- readonly repositories: Schema.$Array<Schema.String>;
130
- readonly project: Schema.Union<readonly [Schema.Struct<{
131
- readonly projectId: Schema.String;
132
- }>, Schema.Struct<{
133
- readonly name: Schema.String;
134
- }>]>;
135
- }>;
136
- /** The Project the repositories joined, those bound now, and those the Workspace had bound already and kept as they were. */
137
- export declare const CodeHostRepositoryBindResult: Schema.Struct<{
138
- readonly project: Schema.Struct<{
139
- readonly id: Schema.String;
140
- readonly workspaceId: Schema.String;
141
- readonly name: Schema.String;
142
- readonly slug: Schema.String;
143
- readonly description: Schema.optionalKey<Schema.String>;
144
- readonly sourceType: Schema.Literal<"manual">;
145
- readonly openTaskCount: Schema.Int;
146
- readonly blockedTaskCount: Schema.Int;
147
- readonly createdAt: Schema.String;
148
- readonly updatedAt: Schema.String;
149
- readonly defaultStatusMapping: Schema.$Record<Schema.String, Schema.String>;
150
- }>;
151
- readonly bound: Schema.$Array<Schema.Struct<{
152
- readonly id: Schema.String;
153
- readonly workspaceId: Schema.String;
154
- readonly projectId: Schema.String;
155
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
156
- readonly host: Schema.String;
157
- readonly owner: Schema.String;
158
- readonly name: Schema.String;
159
- readonly repositoryUrl: Schema.optionalKey<Schema.String>;
160
- readonly pathPrefix: Schema.optionalKey<Schema.String>;
161
- readonly defaultTargetBranch: Schema.String;
162
- readonly expectedBranch: Schema.optionalKey<Schema.String>;
163
- readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
164
- readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
165
- readonly kind: Schema.Literal<"none">;
166
- }>, Schema.Struct<{
167
- readonly kind: Schema.Literal<"local_env">;
168
- readonly envName: Schema.String;
169
- }>, Schema.Struct<{
170
- readonly kind: Schema.Literal<"runner_secret">;
171
- readonly runnerSecretName: Schema.String;
172
- readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
173
- }>, Schema.Struct<{
174
- readonly kind: Schema.Literal<"ssh_agent">;
175
- }>]>>;
176
- readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
177
- readonly webhook: Schema.optionalKey<Schema.Struct<{
178
- readonly status: Schema.Literals<readonly ["active", "missing"]>;
179
- readonly message: Schema.optionalKey<Schema.String>;
180
- }>>;
181
- readonly createdAt: Schema.String;
182
- readonly updatedAt: Schema.String;
183
- }>>;
184
- readonly alreadyBound: Schema.$Array<Schema.Struct<{
185
- readonly id: Schema.String;
186
- readonly workspaceId: Schema.String;
187
- readonly projectId: Schema.String;
188
- readonly provider: Schema.Union<readonly [Schema.Literal<"github">, Schema.Literal<"gitlab">, Schema.Literal<"generic_git">]>;
189
- readonly host: Schema.String;
190
- readonly owner: Schema.String;
191
- readonly name: Schema.String;
192
- readonly repositoryUrl: Schema.optionalKey<Schema.String>;
193
- readonly pathPrefix: Schema.optionalKey<Schema.String>;
194
- readonly defaultTargetBranch: Schema.String;
195
- readonly expectedBranch: Schema.optionalKey<Schema.String>;
196
- readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
197
- readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
198
- readonly kind: Schema.Literal<"none">;
199
- }>, Schema.Struct<{
200
- readonly kind: Schema.Literal<"local_env">;
201
- readonly envName: Schema.String;
202
- }>, Schema.Struct<{
203
- readonly kind: Schema.Literal<"runner_secret">;
204
- readonly runnerSecretName: Schema.String;
205
- readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
206
- }>, Schema.Struct<{
207
- readonly kind: Schema.Literal<"ssh_agent">;
208
- }>]>>;
209
- readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
210
- readonly webhook: Schema.optionalKey<Schema.Struct<{
211
- readonly status: Schema.Literals<readonly ["active", "missing"]>;
212
- readonly message: Schema.optionalKey<Schema.String>;
213
- }>>;
214
- readonly createdAt: Schema.String;
215
- readonly updatedAt: Schema.String;
216
- }>>;
217
- }>;
218
- export declare const ChangeRequestProviderIntegrationMetadata: Schema.Struct<{
219
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
220
- readonly host: Schema.String;
221
- readonly authKind: Schema.Union<readonly [Schema.Literal<"github_app">, Schema.Literal<"gitlab_app">, Schema.Literal<"oauth_app">, Schema.Literal<"webhook_only">]>;
222
- readonly externalAccountId: Schema.optionalKey<Schema.String>;
223
- readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
224
- readonly appId: Schema.optionalKey<Schema.String>;
225
- readonly appSlug: Schema.optionalKey<Schema.String>;
226
- readonly installationId: Schema.optionalKey<Schema.String>;
227
- readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
228
- readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
229
- readonly connectedAt: Schema.optionalKey<Schema.String>;
230
- }>;
231
- export declare const ProviderChangeRequestWebhookEvent: Schema.Union<readonly [Schema.Literal<"change_request_opened">, Schema.Literal<"change_request_updated">, Schema.Literal<"change_request_ready_for_review">, Schema.Literal<"change_request_checks_changed">, Schema.Literal<"change_request_merged">]>;
232
- export declare const ChangeRequestProviderWebhookReceipt: Schema.Struct<{
233
- readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
234
- readonly eventName: Schema.String;
235
- readonly deliveryId: Schema.optionalKey<Schema.String>;
236
- readonly normalizedEvent: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"change_request_opened">, Schema.Literal<"change_request_updated">, Schema.Literal<"change_request_ready_for_review">, Schema.Literal<"change_request_checks_changed">, Schema.Literal<"change_request_merged">]>>;
237
- readonly changeRequestCount: Schema.Int;
238
- readonly admittedLoopDispatchCount: Schema.Int;
239
- }>;
240
- export type ChangeRequestProvider = (typeof ChangeRequestProvider)['Type'];
241
- export type CodeHostCapability = (typeof CodeHostCapability)['Type'];
242
- export type CodeHostConnection = (typeof CodeHostConnection)['Type'];
243
- export type CodeHostConnectionList = (typeof CodeHostConnectionList)['Type'];
244
- export type CodeHostConnectionWrite = (typeof CodeHostConnectionWrite)['Type'];
245
- export type GitlabConnectStart = GithubConnectStart;
246
- export type GitlabConnectComplete = (typeof GitlabConnectComplete)['Type'];
247
- export type GithubConnectStart = (typeof GithubConnectStart)['Type'];
248
- export type GithubConnectComplete = (typeof GithubConnectComplete)['Type'];
249
- export type CodeHostRepository = (typeof CodeHostRepository)['Type'];
250
- export type CodeHostRepositoryList = (typeof CodeHostRepositoryList)['Type'];
251
- export type CodeHostRepositoryBind = (typeof CodeHostRepositoryBind)['Type'];
252
- export type CodeHostRepositoryBindResult = (typeof CodeHostRepositoryBindResult)['Type'];
253
- export type ChangeRequestProviderIntegrationMetadata = (typeof ChangeRequestProviderIntegrationMetadata)['Type'];
254
- export type ProviderChangeRequestWebhookEvent = (typeof ProviderChangeRequestWebhookEvent)['Type'];
255
- export type ChangeRequestProviderWebhookReceipt = (typeof ChangeRequestProviderWebhookReceipt)['Type'];