@kitman-sh/sdk 0.10.82 → 0.10.83

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 (79) hide show
  1. package/dist/build/index.js +2 -2
  2. package/dist/{chunk-fc5r66fq.js → chunk-3pz068kn.js} +11 -5
  3. package/dist/{chunk-0f530caz.js → chunk-cqknxyv9.js} +88 -47
  4. package/dist/loop/index.js +7 -1
  5. package/dist/program/index.js +2 -2
  6. package/package.json +1 -1
  7. package/types/packages/core/src/a2a.d.ts +577 -0
  8. package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
  9. package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
  10. package/types/packages/core/src/approval-queue.d.ts +126 -0
  11. package/types/packages/core/src/audit.d.ts +52 -0
  12. package/types/packages/core/src/change-delivery.d.ts +39 -0
  13. package/types/packages/core/src/change-request-review.d.ts +361 -0
  14. package/types/packages/core/src/change-request.d.ts +288 -0
  15. package/types/packages/core/src/connection.d.ts +33 -0
  16. package/types/packages/core/src/context-feedback.d.ts +89 -0
  17. package/types/packages/core/src/data-lifecycle.d.ts +195 -0
  18. package/types/packages/core/src/decision.d.ts +48 -0
  19. package/types/packages/core/src/delivery-operation.d.ts +125 -0
  20. package/types/packages/core/src/delivery-policy.d.ts +174 -0
  21. package/types/packages/core/src/enterprise-forge.d.ts +19 -0
  22. package/types/packages/core/src/epic-delivery.d.ts +38 -0
  23. package/types/packages/core/src/external-effect.d.ts +313 -0
  24. package/types/packages/core/src/fix-flow.d.ts +149 -0
  25. package/types/packages/core/src/following.d.ts +59 -0
  26. package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
  27. package/types/packages/core/src/github-delivery.d.ts +78 -0
  28. package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
  29. package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
  30. package/types/packages/core/src/global-search.d.ts +42 -0
  31. package/types/packages/core/src/id.d.ts +1 -0
  32. package/types/packages/core/src/integration.d.ts +276 -0
  33. package/types/packages/core/src/intent.d.ts +260 -0
  34. package/types/packages/core/src/kit-install.d.ts +130 -0
  35. package/types/packages/core/src/live.d.ts +8231 -0
  36. package/types/packages/core/src/marketplace.d.ts +168 -0
  37. package/types/packages/core/src/me.d.ts +31 -0
  38. package/types/packages/core/src/memory.d.ts +93 -0
  39. package/types/packages/core/src/my-teams.d.ts +1599 -0
  40. package/types/packages/core/src/notification.d.ts +250 -0
  41. package/types/packages/core/src/observability.d.ts +175 -0
  42. package/types/packages/core/src/owner.d.ts +15 -0
  43. package/types/packages/core/src/personal-development-profile.d.ts +11 -0
  44. package/types/packages/core/src/platform-release.d.ts +60 -0
  45. package/types/packages/core/src/program-credential.d.ts +10 -0
  46. package/types/packages/core/src/provider-safe-text.d.ts +2 -0
  47. package/types/packages/core/src/push.d.ts +68 -0
  48. package/types/packages/core/src/run-display.d.ts +22 -0
  49. package/types/packages/core/src/run-file.d.ts +190 -0
  50. package/types/packages/core/src/run-graph.d.ts +67 -0
  51. package/types/packages/core/src/run-journal.d.ts +28 -0
  52. package/types/packages/core/src/run-launch.d.ts +82 -0
  53. package/types/packages/core/src/runner-eligibility.d.ts +62 -0
  54. package/types/packages/core/src/runner-routing.d.ts +11 -0
  55. package/types/packages/core/src/runner-trust.d.ts +67 -0
  56. package/types/packages/core/src/runner.d.ts +4076 -0
  57. package/types/packages/core/src/scope-directory.d.ts +100 -0
  58. package/types/packages/core/src/session.d.ts +90 -0
  59. package/types/packages/core/src/step-brief.d.ts +70 -0
  60. package/types/packages/core/src/storage.d.ts +49 -0
  61. package/types/packages/core/src/sync-kit.d.ts +595 -0
  62. package/types/packages/core/src/task-detail.d.ts +511 -0
  63. package/types/packages/core/src/task-execution-record.d.ts +620 -0
  64. package/types/packages/core/src/task-key.d.ts +9 -0
  65. package/types/packages/core/src/task.d.ts +588 -0
  66. package/types/packages/core/src/team-context.d.ts +43 -0
  67. package/types/packages/core/src/transcript.d.ts +250 -0
  68. package/types/packages/core/src/trust-panel.d.ts +27 -0
  69. package/types/packages/core/src/work-unit.d.ts +33 -1
  70. package/types/packages/core/src/workspace.d.ts +167 -0
  71. package/types/packages/live/src/rpc/runner-client.d.ts +15 -0
  72. package/types/packages/live/src/rpc/runner-group.d.ts +1515 -1486
  73. package/types/packages/sdk/src/loop/activities.d.ts +3 -0
  74. package/types/packages/sdk/src/loop/index.d.ts +1 -0
  75. package/types/packages/sdk/src/loop/resolve.d.ts +13 -0
  76. package/types/packages/sdk/src/loop/steps.d.ts +5 -0
  77. package/types/packages/sdk/src/loop/sync.d.ts +8 -1
  78. package/types/packages/sdk/src/loop/test-loop.d.ts +7 -0
  79. package/types/packages/sdk/src/program/engine.d.ts +2 -1
@@ -0,0 +1,26 @@
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
+ }];
@@ -0,0 +1,76 @@
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 {};
@@ -0,0 +1,42 @@
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 teamId: 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 {};
@@ -0,0 +1 @@
1
+ export declare function createId(): string;
@@ -0,0 +1,276 @@
1
+ import * as Schema from 'effect/Schema';
2
+ export declare const ChangeRequestProvider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
3
+ export declare const ForgeCapability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
4
+ /** The environment variables a forge connection may name for its custom CA. */
5
+ export declare const customCaReferencePattern: RegExp;
6
+ export declare const ForgeConnection: Schema.Struct<{
7
+ readonly id: Schema.String;
8
+ readonly workspaceId: Schema.String;
9
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
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", "access_token"]>;
12
+ /** Where a token-connected forge's API is, as the person gave it. */
13
+ readonly baseUrl: Schema.optionalKey<Schema.String>;
14
+ readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
15
+ /** Whether the forge's events reach Kitman; `off` connects it for reading and delivery only. */
16
+ readonly eventIngress: Schema.Literals<readonly ["webhooks", "off"]>;
17
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
18
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
19
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
20
+ readonly credentialConfigured: Schema.Boolean;
21
+ readonly webhookActive: Schema.Boolean;
22
+ readonly tls: Schema.Struct<{
23
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
24
+ }>;
25
+ readonly supportEvidence: Schema.$Array<Schema.Struct<{
26
+ readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
27
+ readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
28
+ readonly observedAt: Schema.String;
29
+ }>>;
30
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
31
+ readonly lastTestedAt: Schema.optionalKey<Schema.String>;
32
+ readonly healthMessage: Schema.optionalKey<Schema.String>;
33
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
34
+ readonly createdAt: Schema.String;
35
+ readonly updatedAt: Schema.String;
36
+ }>;
37
+ export declare const ForgeConnectionList: Schema.Struct<{
38
+ readonly items: Schema.$Array<Schema.Struct<{
39
+ readonly id: Schema.String;
40
+ readonly workspaceId: Schema.String;
41
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
42
+ readonly host: Schema.String;
43
+ readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token", "gitlab_oauth", "access_token"]>;
44
+ /** Where a token-connected forge's API is, as the person gave it. */
45
+ readonly baseUrl: Schema.optionalKey<Schema.String>;
46
+ readonly status: Schema.Literals<readonly ["connected", "degraded", "disconnected"]>;
47
+ /** Whether the forge's events reach Kitman; `off` connects it for reading and delivery only. */
48
+ readonly eventIngress: Schema.Literals<readonly ["webhooks", "off"]>;
49
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
50
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
51
+ readonly capabilities: Schema.$Array<Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>>;
52
+ readonly credentialConfigured: Schema.Boolean;
53
+ readonly webhookActive: Schema.Boolean;
54
+ readonly tls: Schema.Struct<{
55
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
56
+ }>;
57
+ readonly supportEvidence: Schema.$Array<Schema.Struct<{
58
+ readonly capability: Schema.Literals<readonly ["repository_read", "repository_write", "change_request_read", "change_request_write", "check_write", "webhook_manage"]>;
59
+ readonly support: Schema.Literals<readonly ["certified", "detected", "unsupported"]>;
60
+ readonly observedAt: Schema.String;
61
+ }>>;
62
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
63
+ readonly lastTestedAt: Schema.optionalKey<Schema.String>;
64
+ readonly healthMessage: Schema.optionalKey<Schema.String>;
65
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
66
+ readonly createdAt: Schema.String;
67
+ readonly updatedAt: Schema.String;
68
+ }>>;
69
+ }>;
70
+ /** A forge to connect with an access token, checked against the forge before anything is stored. */
71
+ export declare const ForgeTokenConnect: Schema.Struct<{
72
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
73
+ readonly baseUrl: Schema.String;
74
+ readonly accessToken: Schema.String;
75
+ readonly tls: Schema.optionalKey<Schema.Struct<{
76
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
77
+ }>>;
78
+ }>;
79
+ export declare const ForgeConnectionWrite: Schema.Struct<{
80
+ readonly provider: Schema.Literals<readonly ["github", "gitlab"]>;
81
+ readonly host: Schema.String;
82
+ readonly authKind: Schema.Literals<readonly ["github_app", "gitlab_personal_access_token", "gitlab_group_token", "gitlab_project_token"]>;
83
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
84
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
85
+ readonly appId: Schema.optionalKey<Schema.String>;
86
+ readonly installationId: Schema.optionalKey<Schema.String>;
87
+ readonly accessToken: Schema.optionalKey<Schema.String>;
88
+ readonly privateKey: Schema.optionalKey<Schema.String>;
89
+ readonly webhookSecret: Schema.optionalKey<Schema.String>;
90
+ readonly expiresAt: Schema.optionalKey<Schema.String>;
91
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
92
+ readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
93
+ readonly tls: Schema.optionalKey<Schema.Struct<{
94
+ readonly customCaRef: Schema.optionalKey<Schema.String>;
95
+ }>>;
96
+ }>;
97
+ /** Where to send the person to install the deployment's GitHub App, carrying a signed `state`. */
98
+ export declare const GithubConnectStart: Schema.Struct<{
99
+ readonly url: Schema.String;
100
+ }>;
101
+ /** What GitHub hands back to the App's setup URL after an installation. */
102
+ export declare const GithubConnectComplete: Schema.Struct<{
103
+ readonly state: Schema.optionalKey<Schema.String>;
104
+ readonly code: Schema.optionalKey<Schema.String>;
105
+ readonly installationId: Schema.String;
106
+ }>;
107
+ export declare const GitlabConnectStart: Schema.Struct<{
108
+ readonly url: Schema.String;
109
+ }>;
110
+ /** What GitLab hands back to the OAuth redirect after the person authorizes Kitman. */
111
+ export declare const GitlabConnectComplete: Schema.Struct<{
112
+ readonly state: Schema.String;
113
+ readonly code: Schema.String;
114
+ }>;
115
+ /** The scopes a GitLab token needs for everything Kitman does with it, webhooks included. */
116
+ export declare const GitlabTokenScopes: readonly ['api'];
117
+ /** The instance's new personal access token page, with Kitman's name and scopes filled in. */
118
+ export declare function gitlabTokenPageUrl(host: string): string;
119
+ export declare const ForgeRepository: Schema.Struct<{
120
+ readonly providerRepositoryId: Schema.String;
121
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
122
+ readonly host: Schema.String;
123
+ readonly owner: Schema.String;
124
+ readonly name: Schema.String;
125
+ readonly fullPath: Schema.String;
126
+ readonly repositoryUrl: Schema.String;
127
+ readonly defaultTargetBranch: Schema.String;
128
+ }>;
129
+ /** One page of the repositories a connection reaches, each saying whether the Workspace has bound it already. */
130
+ export declare const ForgeRepositoryList: Schema.Struct<{
131
+ readonly items: Schema.$Array<Schema.Struct<{
132
+ readonly providerRepositoryId: Schema.String;
133
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
134
+ readonly host: Schema.String;
135
+ readonly owner: Schema.String;
136
+ readonly name: Schema.String;
137
+ readonly fullPath: Schema.String;
138
+ readonly repositoryUrl: Schema.String;
139
+ readonly defaultTargetBranch: Schema.String;
140
+ readonly bound: Schema.Boolean;
141
+ }>>;
142
+ readonly nextPage: Schema.optionalKey<Schema.Int>;
143
+ }>;
144
+ /** A GitLab group a connection reaches, by full path; choosing it chooses the projects it holds, subgroups included. */
145
+ export declare const ForgeGroup: Schema.Struct<{
146
+ readonly fullPath: Schema.String;
147
+ readonly name: Schema.String;
148
+ }>;
149
+ /** The groups a connection reaches; a GitHub connection reaches none. */
150
+ export declare const ForgeGroupList: Schema.Struct<{
151
+ readonly items: Schema.$Array<Schema.Struct<{
152
+ readonly fullPath: Schema.String;
153
+ readonly name: Schema.String;
154
+ }>>;
155
+ }>;
156
+ /** The most repositories one bind takes, once its groups are expanded. */
157
+ export declare const ForgeBindLimit = 200;
158
+ /**
159
+ * Repositories and GitLab groups, by full path, to bind into the Workspace, or into one of its Teams when `teamId` names it.
160
+ * A group stands for the projects it holds now.
161
+ */
162
+ export declare const ForgeRepositoryBind: Schema.Struct<{
163
+ readonly repositories: Schema.$Array<Schema.String>;
164
+ readonly groups: Schema.optionalKey<Schema.$Array<Schema.String>>;
165
+ readonly teamId: Schema.optionalKey<Schema.String>;
166
+ }>;
167
+ /** The repositories bound now, and those the Workspace had bound already and kept as they were. */
168
+ export declare const ForgeRepositoryBindResult: Schema.Struct<{
169
+ readonly bound: Schema.$Array<Schema.Struct<{
170
+ readonly id: Schema.String;
171
+ readonly workspaceId: Schema.String;
172
+ readonly teamId: Schema.optionalKey<Schema.String>;
173
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
174
+ readonly host: Schema.String;
175
+ readonly owner: Schema.String;
176
+ readonly name: Schema.String;
177
+ readonly repositoryUrl: Schema.optionalKey<Schema.String>;
178
+ readonly pathPrefix: Schema.optionalKey<Schema.String>;
179
+ readonly defaultTargetBranch: Schema.String;
180
+ readonly expectedBranch: Schema.optionalKey<Schema.String>;
181
+ readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
182
+ readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
183
+ readonly kind: Schema.Literal<"none">;
184
+ }>, Schema.Struct<{
185
+ readonly kind: Schema.Literal<"local_env">;
186
+ readonly envName: Schema.String;
187
+ }>, Schema.Struct<{
188
+ readonly kind: Schema.Literal<"runner_secret">;
189
+ readonly runnerSecretName: Schema.String;
190
+ readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
191
+ }>, Schema.Struct<{
192
+ readonly kind: Schema.Literal<"ssh_agent">;
193
+ }>]>>;
194
+ readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
195
+ readonly webhook: Schema.optionalKey<Schema.Struct<{
196
+ readonly status: Schema.Literals<readonly ["active", "missing", "unavailable"]>;
197
+ readonly message: Schema.optionalKey<Schema.String>;
198
+ }>>;
199
+ readonly createdAt: Schema.String;
200
+ readonly updatedAt: Schema.String;
201
+ }>>;
202
+ readonly alreadyBound: Schema.$Array<Schema.Struct<{
203
+ readonly id: Schema.String;
204
+ readonly workspaceId: Schema.String;
205
+ readonly teamId: Schema.optionalKey<Schema.String>;
206
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops", "generic_git"]>;
207
+ readonly host: Schema.String;
208
+ readonly owner: Schema.String;
209
+ readonly name: Schema.String;
210
+ readonly repositoryUrl: Schema.optionalKey<Schema.String>;
211
+ readonly pathPrefix: Schema.optionalKey<Schema.String>;
212
+ readonly defaultTargetBranch: Schema.String;
213
+ readonly expectedBranch: Schema.optionalKey<Schema.String>;
214
+ readonly expectedCommitSha: Schema.optionalKey<Schema.String>;
215
+ readonly credentialRefs: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
216
+ readonly kind: Schema.Literal<"none">;
217
+ }>, Schema.Struct<{
218
+ readonly kind: Schema.Literal<"local_env">;
219
+ readonly envName: Schema.String;
220
+ }>, Schema.Struct<{
221
+ readonly kind: Schema.Literal<"runner_secret">;
222
+ readonly runnerSecretName: Schema.String;
223
+ readonly providerType: Schema.Union<readonly [Schema.Literal<"env">, Schema.Literal<"file">, Schema.Literal<"exec">]>;
224
+ }>, Schema.Struct<{
225
+ readonly kind: Schema.Literal<"ssh_agent">;
226
+ }>]>>;
227
+ readonly status: Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"disabled">]>;
228
+ readonly webhook: Schema.optionalKey<Schema.Struct<{
229
+ readonly status: Schema.Literals<readonly ["active", "missing", "unavailable"]>;
230
+ readonly message: Schema.optionalKey<Schema.String>;
231
+ }>>;
232
+ readonly createdAt: Schema.String;
233
+ readonly updatedAt: Schema.String;
234
+ }>>;
235
+ }>;
236
+ export declare const ChangeRequestProviderIntegrationMetadata: Schema.Struct<{
237
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
238
+ readonly host: Schema.String;
239
+ readonly authKind: Schema.Union<readonly [Schema.Literal<"github_app">, Schema.Literal<"gitlab_app">, Schema.Literal<"oauth_app">, Schema.Literal<"webhook_only">]>;
240
+ readonly externalAccountId: Schema.optionalKey<Schema.String>;
241
+ readonly externalAccountLogin: Schema.optionalKey<Schema.String>;
242
+ readonly appId: Schema.optionalKey<Schema.String>;
243
+ readonly appSlug: Schema.optionalKey<Schema.String>;
244
+ readonly installationId: Schema.optionalKey<Schema.String>;
245
+ readonly scopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
246
+ readonly webhookActive: Schema.optionalKey<Schema.Boolean>;
247
+ readonly connectedAt: Schema.optionalKey<Schema.String>;
248
+ }>;
249
+ 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">]>;
250
+ export declare const ChangeRequestProviderWebhookReceipt: Schema.Struct<{
251
+ readonly provider: Schema.Literals<readonly ["github", "gitlab", "forgejo", "gitea", "gitee", "bitbucket", "azure-devops"]>;
252
+ readonly eventName: Schema.String;
253
+ readonly deliveryId: Schema.optionalKey<Schema.String>;
254
+ 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">]>>;
255
+ readonly changeRequestCount: Schema.Int;
256
+ readonly admittedLoopDispatchCount: Schema.Int;
257
+ }>;
258
+ export type ChangeRequestProvider = (typeof ChangeRequestProvider)['Type'];
259
+ export type ForgeCapability = (typeof ForgeCapability)['Type'];
260
+ export type ForgeConnection = (typeof ForgeConnection)['Type'];
261
+ export type ForgeConnectionList = (typeof ForgeConnectionList)['Type'];
262
+ export type ForgeConnectionWrite = (typeof ForgeConnectionWrite)['Type'];
263
+ export type ForgeTokenConnect = (typeof ForgeTokenConnect)['Type'];
264
+ export type GitlabConnectStart = GithubConnectStart;
265
+ export type GitlabConnectComplete = (typeof GitlabConnectComplete)['Type'];
266
+ export type GithubConnectStart = (typeof GithubConnectStart)['Type'];
267
+ export type GithubConnectComplete = (typeof GithubConnectComplete)['Type'];
268
+ export type ForgeRepository = (typeof ForgeRepository)['Type'];
269
+ export type ForgeRepositoryList = (typeof ForgeRepositoryList)['Type'];
270
+ export type ForgeRepositoryBind = (typeof ForgeRepositoryBind)['Type'];
271
+ export type ForgeGroup = (typeof ForgeGroup)['Type'];
272
+ export type ForgeGroupList = (typeof ForgeGroupList)['Type'];
273
+ export type ForgeRepositoryBindResult = (typeof ForgeRepositoryBindResult)['Type'];
274
+ export type ChangeRequestProviderIntegrationMetadata = (typeof ChangeRequestProviderIntegrationMetadata)['Type'];
275
+ export type ProviderChangeRequestWebhookEvent = (typeof ProviderChangeRequestWebhookEvent)['Type'];
276
+ export type ChangeRequestProviderWebhookReceipt = (typeof ChangeRequestProviderWebhookReceipt)['Type'];