@superdurable/connector-gitlab 0.0.0-stage → 0.1.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Super Durable
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
- # Temporary Holding Version
1
+ # GitLab TypeScript connector
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@superdurable/connector-gitlab` supplies the `getProject`, `listIssues`, and `updateIssueLabels` operations for Dex Flows. The package is generated from `../connector.yaml`; `src/client.ts`, `src/operations.ts`, and `src/project.ts` own the provider adapter.
4
+
5
+ Use `newProjectConnection(project, ConnectionName)` to bind the `gitlab` connection declared in your Dex project. The runnable [get-project example](examples/get-project/README.md) shows the Worker and starter. It uses `DEX_FLOW_SERVICE_ADDRESS` when set. Configure `access_token` in Dex Web Connections; never place it in Flow input. The token needs `read_api` for reads and `api` for label updates.
6
+
7
+ `updateIssueLabels` replaces the complete label set. An empty, null, or omitted `labels` value sends an empty form field and clears all labels.
8
+
9
+ Run `npm ci && npm run check` for the package suite. For a real Dex integration test, start `dexcli dev` and set `DEX_FLOW_SERVICE_ADDRESS` to its gRPC address before `npm run test:integration`.
@@ -0,0 +1,189 @@
1
+ {
2
+ "connectorId": "gitlab",
3
+ "releaseTag": "connectors/gitlab/go/v0.2.1",
4
+ "package": {
5
+ "ecosystem": "npm",
6
+ "name": "@superdurable/connector-gitlab",
7
+ "version": "0.1.1"
8
+ },
9
+ "factories": [
10
+ {
11
+ "name": "newGetProjectStep",
12
+ "kind": "query",
13
+ "operationId": "getProject",
14
+ "inputType": "GetProjectInput",
15
+ "description": "Read one GitLab project by numeric ID or namespace path.",
16
+ "fields": {
17
+ "stepType": "stepType",
18
+ "annotations": "annotations",
19
+ "connectionName": "connectionName",
20
+ "resultAttribute": "resultAttribute"
21
+ },
22
+ "branches": [
23
+ {
24
+ "id": "found",
25
+ "field": "found",
26
+ "optional": false
27
+ },
28
+ {
29
+ "id": "notFound",
30
+ "field": "notFound",
31
+ "optional": true
32
+ },
33
+ {
34
+ "id": "providerRejected",
35
+ "field": "providerRejected",
36
+ "optional": true
37
+ },
38
+ {
39
+ "id": "invalidResponse",
40
+ "field": "invalidResponse",
41
+ "optional": true
42
+ },
43
+ {
44
+ "id": "defect",
45
+ "field": "defect",
46
+ "optional": true
47
+ }
48
+ ],
49
+ "inputSchema": {
50
+ "additionalProperties": false,
51
+ "description": "GetProjectInput identifies a project by numeric ID or namespace path.",
52
+ "properties": {
53
+ "projectId": {
54
+ "description": "ProjectID is a numeric ID or namespace path, such as meridian/web.",
55
+ "type": "string"
56
+ }
57
+ },
58
+ "required": [
59
+ "projectId"
60
+ ],
61
+ "type": "object"
62
+ }
63
+ },
64
+ {
65
+ "name": "newListIssuesStep",
66
+ "kind": "query",
67
+ "operationId": "listIssues",
68
+ "inputType": "ListIssuesInput",
69
+ "description": "List the first page of issues for a GitLab project.",
70
+ "fields": {
71
+ "stepType": "stepType",
72
+ "annotations": "annotations",
73
+ "connectionName": "connectionName",
74
+ "resultAttribute": "resultAttribute"
75
+ },
76
+ "branches": [
77
+ {
78
+ "id": "listed",
79
+ "field": "listed",
80
+ "optional": false
81
+ },
82
+ {
83
+ "id": "notFound",
84
+ "field": "notFound",
85
+ "optional": true
86
+ },
87
+ {
88
+ "id": "providerRejected",
89
+ "field": "providerRejected",
90
+ "optional": true
91
+ },
92
+ {
93
+ "id": "invalidResponse",
94
+ "field": "invalidResponse",
95
+ "optional": true
96
+ },
97
+ {
98
+ "id": "defect",
99
+ "field": "defect",
100
+ "optional": true
101
+ }
102
+ ],
103
+ "inputSchema": {
104
+ "additionalProperties": false,
105
+ "description": "ListIssuesInput identifies the project whose issues are listed.",
106
+ "properties": {
107
+ "projectId": {
108
+ "description": "ProjectID is a numeric ID or namespace path.",
109
+ "type": "string"
110
+ }
111
+ },
112
+ "required": [
113
+ "projectId"
114
+ ],
115
+ "type": "object"
116
+ }
117
+ },
118
+ {
119
+ "name": "newUpdateIssueLabelsStep",
120
+ "kind": "mutation",
121
+ "operationId": "updateIssueLabels",
122
+ "inputType": "UpdateIssueLabelsInput",
123
+ "description": "Replace one GitLab issue's complete label set; repeating the request is safe.",
124
+ "fields": {
125
+ "stepType": "stepType",
126
+ "annotations": "annotations",
127
+ "connectionName": "connectionName",
128
+ "resultAttribute": "resultAttribute"
129
+ },
130
+ "branches": [
131
+ {
132
+ "id": "updated",
133
+ "field": "updated",
134
+ "optional": false
135
+ },
136
+ {
137
+ "id": "notFound",
138
+ "field": "notFound",
139
+ "optional": true
140
+ },
141
+ {
142
+ "id": "providerRejected",
143
+ "field": "providerRejected",
144
+ "optional": true
145
+ },
146
+ {
147
+ "id": "invalidResponse",
148
+ "field": "invalidResponse",
149
+ "optional": true
150
+ },
151
+ {
152
+ "id": "defect",
153
+ "field": "defect",
154
+ "optional": true
155
+ }
156
+ ],
157
+ "inputSchema": {
158
+ "additionalProperties": false,
159
+ "description": "UpdateIssueLabelsInput replaces every label on one issue; an empty list clears them.",
160
+ "properties": {
161
+ "issueIid": {
162
+ "description": "IssueIID is the positive project-local issue number.",
163
+ "type": "integer"
164
+ },
165
+ "labels": {
166
+ "description": "Labels is the desired complete label set; empty clears all labels.",
167
+ "items": {
168
+ "type": "string"
169
+ },
170
+ "type": [
171
+ "array",
172
+ "null"
173
+ ]
174
+ },
175
+ "projectId": {
176
+ "description": "ProjectID is a numeric ID or namespace path.",
177
+ "type": "string"
178
+ }
179
+ },
180
+ "required": [
181
+ "issueIid",
182
+ "labels",
183
+ "projectId"
184
+ ],
185
+ "type": "object"
186
+ }
187
+ }
188
+ ]
189
+ }
@@ -0,0 +1,209 @@
1
+ // src/generated/models.ts
2
+ import { z } from "zod";
3
+ import { SecretString } from "@superdurable/connectors-sdk";
4
+ var ConfigSchema = z.object({
5
+ "baseUrl": z.string().optional(),
6
+ "timeoutMs": z.number().int().optional(),
7
+ "maxResponseBytes": z.number().int().optional()
8
+ });
9
+ var CredentialMaterialError = class extends TypeError {
10
+ constructor(message) {
11
+ super(message);
12
+ this.name = "CredentialMaterialError";
13
+ }
14
+ };
15
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
16
+ "project credential decoding failed",
17
+ "shared project credential decoding failed",
18
+ "project credential decoding failed: this connector version does not support shared credentials"
19
+ ]);
20
+ function isCredentialMaterialError(error) {
21
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
22
+ }
23
+ function decodeCredentials(value) {
24
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
25
+ const fields = value;
26
+ const allowed = /* @__PURE__ */ new Set(["access_token"]);
27
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
28
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
29
+ const credentials = {};
30
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
31
+ credentials.accessToken = new SecretString(fields["access_token"] ?? "");
32
+ return credentials;
33
+ }
34
+ var GetProjectInputSchema = z.strictObject({
35
+ "projectId": z.string()
36
+ });
37
+ var ProjectSchema = z.strictObject({
38
+ "id": z.number().int(),
39
+ "name": z.string(),
40
+ "path_with_namespace": z.string(),
41
+ "web_url": z.string()
42
+ });
43
+ var ListIssuesInputSchema = z.strictObject({
44
+ "projectId": z.string()
45
+ });
46
+ var IssueSchema = z.strictObject({
47
+ "id": z.number().int(),
48
+ "iid": z.number().int(),
49
+ "title": z.string(),
50
+ "labels": z.array(z.string()).nullable(),
51
+ "web_url": z.string()
52
+ });
53
+ var IssuesPageSchema = z.strictObject({
54
+ "issues": z.array(IssueSchema).nullable()
55
+ });
56
+ var UpdateIssueLabelsInputSchema = z.strictObject({
57
+ "projectId": z.string(),
58
+ "issueIid": z.number().int(),
59
+ "labels": z.array(z.string()).nullable()
60
+ });
61
+
62
+ // src/generated/definitions.ts
63
+ var ConnectorID = "gitlab";
64
+ var ProviderID = "gitlab";
65
+ var GetProjectBranch = {
66
+ Found: "found",
67
+ NotFound: "notFound",
68
+ ProviderRejected: "providerRejected",
69
+ InvalidResponse: "invalidResponse",
70
+ Defect: "defect"
71
+ };
72
+ var GetProjectBranchFound = GetProjectBranch.Found;
73
+ var GetProjectBranchNotFound = GetProjectBranch.NotFound;
74
+ var GetProjectBranchProviderRejected = GetProjectBranch.ProviderRejected;
75
+ var GetProjectBranchInvalidResponse = GetProjectBranch.InvalidResponse;
76
+ var GetProjectBranchDefect = GetProjectBranch.Defect;
77
+ var GetProjectDefinition = {
78
+ operation: { connectorId: ConnectorID, operationId: "getProject" },
79
+ branches: [
80
+ { id: "found", description: "Read one GitLab project by numeric ID or namespace path." },
81
+ { id: "notFound", description: "The requested resource does not exist or is inaccessible.", optional: true },
82
+ { id: "providerRejected", description: "The provider rejected the request.", optional: true },
83
+ { id: "invalidResponse", description: "The provider returned malformed or oversized JSON.", optional: true },
84
+ { id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
85
+ ],
86
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
87
+ };
88
+ var GetProjectMetadata = { kind: "query", idempotency: "none", authorization: "required" };
89
+ var ListIssuesBranch = {
90
+ Listed: "listed",
91
+ NotFound: "notFound",
92
+ ProviderRejected: "providerRejected",
93
+ InvalidResponse: "invalidResponse",
94
+ Defect: "defect"
95
+ };
96
+ var ListIssuesBranchListed = ListIssuesBranch.Listed;
97
+ var ListIssuesBranchNotFound = ListIssuesBranch.NotFound;
98
+ var ListIssuesBranchProviderRejected = ListIssuesBranch.ProviderRejected;
99
+ var ListIssuesBranchInvalidResponse = ListIssuesBranch.InvalidResponse;
100
+ var ListIssuesBranchDefect = ListIssuesBranch.Defect;
101
+ var ListIssuesDefinition = {
102
+ operation: { connectorId: ConnectorID, operationId: "listIssues" },
103
+ branches: [
104
+ { id: "listed", description: "List the first page of issues for a GitLab project." },
105
+ { id: "notFound", description: "The requested resource does not exist or is inaccessible.", optional: true },
106
+ { id: "providerRejected", description: "The provider rejected the request.", optional: true },
107
+ { id: "invalidResponse", description: "The provider returned malformed or oversized JSON.", optional: true },
108
+ { id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
109
+ ],
110
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
111
+ };
112
+ var ListIssuesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
113
+ var UpdateIssueLabelsBranch = {
114
+ Updated: "updated",
115
+ NotFound: "notFound",
116
+ ProviderRejected: "providerRejected",
117
+ InvalidResponse: "invalidResponse",
118
+ Defect: "defect"
119
+ };
120
+ var UpdateIssueLabelsBranchUpdated = UpdateIssueLabelsBranch.Updated;
121
+ var UpdateIssueLabelsBranchNotFound = UpdateIssueLabelsBranch.NotFound;
122
+ var UpdateIssueLabelsBranchProviderRejected = UpdateIssueLabelsBranch.ProviderRejected;
123
+ var UpdateIssueLabelsBranchInvalidResponse = UpdateIssueLabelsBranch.InvalidResponse;
124
+ var UpdateIssueLabelsBranchDefect = UpdateIssueLabelsBranch.Defect;
125
+ var UpdateIssueLabelsDefinition = {
126
+ operation: { connectorId: ConnectorID, operationId: "updateIssueLabels" },
127
+ branches: [
128
+ { id: "updated", description: "Replace one GitLab issue's complete label set; repeating the request is safe." },
129
+ { id: "notFound", description: "The requested resource does not exist or is inaccessible.", optional: true },
130
+ { id: "providerRejected", description: "The provider rejected the request.", optional: true },
131
+ { id: "invalidResponse", description: "Kept for compatibility and no longer selected: a malformed or oversized answer now retries, because replacing the complete label set again is safe.", optional: true },
132
+ { id: "defect", description: "Local input or connection credentials are invalid.", optional: true }
133
+ ],
134
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
135
+ };
136
+ var UpdateIssueLabelsMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
137
+
138
+ // src/generated/connection.ts
139
+ import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
140
+ var Connection = class {
141
+ /** Stable provider and connection name. */
142
+ reference;
143
+ /** Bound provider operations. */
144
+ operations;
145
+ /** Validate a reference and bind operations. */
146
+ constructor(reference, operations) {
147
+ this.reference = ConnectionRefSchema.parse(reference);
148
+ if (this.reference.provider !== ProviderID) throw new TypeError("connection provider differs from the manifest");
149
+ if (!operations) throw new TypeError("connector operations are required");
150
+ this.operations = operations;
151
+ }
152
+ };
153
+ function newConnection(client, reference) {
154
+ if (!client) throw new TypeError("connector client is required");
155
+ return new Connection(reference, client);
156
+ }
157
+ function newConnectionWithOperations(operations, reference) {
158
+ return new Connection(reference, operations);
159
+ }
160
+ function newProjectConnection(project, connectionName, createClient) {
161
+ if (!project) throw new TypeError("loaded project is required");
162
+ const reference = ConnectionRefSchema.parse({ provider: ProviderID, name: connectionName });
163
+ const selected = project.configuration.connections.find((entry) => entry.connectorId === ConnectorID && entry.connectionName === connectionName);
164
+ if (!selected || selected.provider !== ProviderID) throw new TypeError("project connection is not configured");
165
+ return newConnection(createClient(project, connectionName), reference);
166
+ }
167
+
168
+ export {
169
+ ConfigSchema,
170
+ CredentialMaterialError,
171
+ isCredentialMaterialError,
172
+ decodeCredentials,
173
+ GetProjectInputSchema,
174
+ ProjectSchema,
175
+ ListIssuesInputSchema,
176
+ IssueSchema,
177
+ IssuesPageSchema,
178
+ UpdateIssueLabelsInputSchema,
179
+ ConnectorID,
180
+ ProviderID,
181
+ GetProjectBranch,
182
+ GetProjectBranchFound,
183
+ GetProjectBranchNotFound,
184
+ GetProjectBranchProviderRejected,
185
+ GetProjectBranchInvalidResponse,
186
+ GetProjectBranchDefect,
187
+ GetProjectDefinition,
188
+ GetProjectMetadata,
189
+ ListIssuesBranch,
190
+ ListIssuesBranchListed,
191
+ ListIssuesBranchNotFound,
192
+ ListIssuesBranchProviderRejected,
193
+ ListIssuesBranchInvalidResponse,
194
+ ListIssuesBranchDefect,
195
+ ListIssuesDefinition,
196
+ ListIssuesMetadata,
197
+ UpdateIssueLabelsBranch,
198
+ UpdateIssueLabelsBranchUpdated,
199
+ UpdateIssueLabelsBranchNotFound,
200
+ UpdateIssueLabelsBranchProviderRejected,
201
+ UpdateIssueLabelsBranchInvalidResponse,
202
+ UpdateIssueLabelsBranchDefect,
203
+ UpdateIssueLabelsDefinition,
204
+ UpdateIssueLabelsMetadata,
205
+ Connection,
206
+ newConnection,
207
+ newConnectionWithOperations,
208
+ newProjectConnection
209
+ };
@@ -0,0 +1,145 @@
1
+ import { CredentialProvider, SecretString, Query, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
2
+ import { z } from 'zod';
3
+
4
+ /** Connector configuration; omitted fields use manifest defaults. */
5
+ interface Config {
6
+ /** GitLab REST API base URL. Leave blank for the displayed GitLab.com endpoint; use your self-managed instance HTTPS URL ending in /api/v4, a compatible gateway, or a loopback test server. */
7
+ baseUrl?: string;
8
+ /** Positive Go duration bounding one HTTP request; leave blank for the displayed default, or override for a slower network. Runtime value in milliseconds. */
9
+ timeoutMs?: number;
10
+ /** Positive byte limit for one response; leave blank for the displayed default, or override for larger pages. */
11
+ maxResponseBytes?: number;
12
+ }
13
+ /** Runtime schema for manifest configuration. */
14
+ declare const ConfigSchema: z.ZodObject<{
15
+ baseUrl: z.ZodOptional<z.ZodString>;
16
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
17
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
18
+ }, z.core.$strip>;
19
+ /** Private connector credentials resolved by the host. */
20
+ interface Credentials {
21
+ /** Secret GitLab personal access token from User Settings > Access Tokens at https://gitlab.com/-/user_settings/personal_access_tokens. Create a token with read_api for reads or api for label updates, and copy it. Blank prevents requests. */
22
+ accessToken: SecretString;
23
+ }
24
+ /** Stored credential material that fails the connector credential checks, so no retry can succeed. */
25
+ declare class CredentialMaterialError extends TypeError {
26
+ constructor(message: string);
27
+ }
28
+ /** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
29
+ declare function isCredentialMaterialError(error: unknown): boolean;
30
+ /** Decode private credential fields for the connector. */
31
+ declare function decodeCredentials(value: unknown): Credentials;
32
+ /** Host-owned source of private connector credentials. */
33
+ type CredentialSource = CredentialProvider<Credentials>;
34
+ /** GetProjectInput identifies a project by numeric ID or namespace path. */
35
+ interface GetProjectInput {
36
+ /** ProjectID is a numeric ID or namespace path, such as meridian/web. */
37
+ "projectId": string;
38
+ }
39
+ /** Project is a GitLab project summary. */
40
+ interface Project {
41
+ /** ID is the project's numeric identifier. */
42
+ "id": number;
43
+ /** Name is the project display name. */
44
+ "name": string;
45
+ /** PathWithNamespace is the full group and project path. */
46
+ "path_with_namespace": string;
47
+ /** WebURL links to the project's GitLab page. */
48
+ "web_url": string;
49
+ }
50
+ /** ListIssuesInput identifies the project whose issues are listed. */
51
+ interface ListIssuesInput {
52
+ /** ProjectID is a numeric ID or namespace path. */
53
+ "projectId": string;
54
+ }
55
+ /** Issue is a GitLab issue summary. */
56
+ interface Issue {
57
+ /** ID is the global issue identifier. */
58
+ "id": number;
59
+ /** IID is the issue number inside its project. */
60
+ "iid": number;
61
+ /** Title is the issue title. */
62
+ "title": string;
63
+ /** Labels is the issue's complete label set. */
64
+ "labels": Array<string> | null;
65
+ /** WebURL links to the issue in GitLab. */
66
+ "web_url": string;
67
+ }
68
+ /** IssuesPage contains GitLab's default issue page. */
69
+ interface IssuesPage {
70
+ /** Issues contains one provider page, possibly empty. */
71
+ "issues": Array<Issue> | null;
72
+ }
73
+ /** UpdateIssueLabelsInput replaces every label on one issue; an empty list clears them. */
74
+ interface UpdateIssueLabelsInput {
75
+ /** ProjectID is a numeric ID or namespace path. */
76
+ "projectId": string;
77
+ /** IssueIID is the positive project-local issue number. */
78
+ "issueIid": number;
79
+ /** Labels is the desired complete label set; empty clears all labels. */
80
+ "labels": Array<string> | null;
81
+ }
82
+ /** Runtime validator for GetProjectInput. */
83
+ declare const GetProjectInputSchema: z.ZodObject<{
84
+ projectId: z.ZodString;
85
+ }, z.core.$strict>;
86
+ /** Runtime validator for Project. */
87
+ declare const ProjectSchema: z.ZodObject<{
88
+ id: z.ZodNumber;
89
+ name: z.ZodString;
90
+ path_with_namespace: z.ZodString;
91
+ web_url: z.ZodString;
92
+ }, z.core.$strict>;
93
+ /** Runtime validator for ListIssuesInput. */
94
+ declare const ListIssuesInputSchema: z.ZodObject<{
95
+ projectId: z.ZodString;
96
+ }, z.core.$strict>;
97
+ /** Runtime validator for Issue. */
98
+ declare const IssueSchema: z.ZodObject<{
99
+ id: z.ZodNumber;
100
+ iid: z.ZodNumber;
101
+ title: z.ZodString;
102
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
103
+ web_url: z.ZodString;
104
+ }, z.core.$strict>;
105
+ /** Runtime validator for IssuesPage. */
106
+ declare const IssuesPageSchema: z.ZodObject<{
107
+ issues: z.ZodNullable<z.ZodArray<z.ZodObject<{
108
+ id: z.ZodNumber;
109
+ iid: z.ZodNumber;
110
+ title: z.ZodString;
111
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
112
+ web_url: z.ZodString;
113
+ }, z.core.$strict>>>;
114
+ }, z.core.$strict>;
115
+ /** Runtime validator for UpdateIssueLabelsInput. */
116
+ declare const UpdateIssueLabelsInputSchema: z.ZodObject<{
117
+ projectId: z.ZodString;
118
+ issueIid: z.ZodNumber;
119
+ labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
120
+ }, z.core.$strict>;
121
+
122
+ /** Typed operations supplied by a client or mock. */
123
+ interface Operations {
124
+ /** Invoke getProject through this connection. */
125
+ getProject(): Query<GetProjectInput, Project>;
126
+ /** Invoke listIssues through this connection. */
127
+ listIssues(): Query<ListIssuesInput, IssuesPage>;
128
+ /** Invoke updateIssueLabels through this connection. */
129
+ updateIssueLabels(): Mutation<UpdateIssueLabelsInput, Issue>;
130
+ }
131
+ /** Named connector connection kept outside Flow state. */
132
+ declare class Connection<BoundOperations = Operations> {
133
+ /** Stable provider and connection name. */
134
+ readonly reference: ConnectionRef;
135
+ /** Bound provider operations. */
136
+ readonly operations: BoundOperations;
137
+ /** Validate a reference and bind operations. */
138
+ constructor(reference: ConnectionRef, operations: BoundOperations);
139
+ }
140
+ /** Bind a client to a named connection. */
141
+ declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
142
+ /** Bind scripted operations to a named connection. */
143
+ declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
144
+
145
+ export { Connection as C, type GetProjectInput as G, type IssuesPage as I, type ListIssuesInput as L, type Operations as O, type Project as P, type UpdateIssueLabelsInput as U, type Issue as a, type Config as b, type Credentials as c, ConfigSchema as d, CredentialMaterialError as e, type CredentialSource as f, GetProjectInputSchema as g, IssueSchema as h, IssuesPageSchema as i, ListIssuesInputSchema as j, ProjectSchema as k, UpdateIssueLabelsInputSchema as l, decodeCredentials as m, isCredentialMaterialError as n, newConnection as o, newConnectionWithOperations as p };