@superdurable/connector-linear 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +16 -2
- package/dex-connector.json +257 -0
- package/dist/chunk-E64K42A5.js +563 -0
- package/dist/connection-CCTEpuH6.d.ts +756 -0
- package/dist/index.d.ts +437 -0
- package/dist/index.js +1261 -0
- package/dist/mock.d.ts +203 -0
- package/dist/mock.js +515 -0
- package/package.json +61 -4
|
@@ -0,0 +1,756 @@
|
|
|
1
|
+
import { RefreshingCredentialProvider, 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
|
+
/** Largest Linear GraphQL response body, in bytes, that one call reads; a larger answer to a read selects invalidResponse and a larger answer to a write is read back by its ID instead. Enter a positive integer only to change this safety limit, for example when issue descriptions are very long. Blank uses the default. */
|
|
7
|
+
maxResponseBytes?: number;
|
|
8
|
+
/** Largest Linear webhook request body, in bytes, that the issueEventReceived endpoint accepts; a larger body is answered 413 before its Linear-Signature is checked, so Linear retries it. Each delivery carries the issue with its description, so raise it only for very long descriptions; enter a positive integer. Blank uses the default. */
|
|
9
|
+
webhookMaxBodyBytes?: number;
|
|
10
|
+
/** Largest difference between the signed webhookTimestamp inside a Linear webhook body and this server's clock, as a positive Go duration such as 90s or 2m. An older or future-dated delivery is answered 400, which stops replayed requests; Linear's webhook guide at https://linear.app/developers/webhooks recommends one minute. Raise it only when this server's clock drifts. Blank uses the default. Runtime value in milliseconds. */
|
|
11
|
+
webhookSignatureToleranceMs?: number;
|
|
12
|
+
}
|
|
13
|
+
/** Runtime schema for manifest configuration. */
|
|
14
|
+
declare const ConfigSchema: z.ZodObject<{
|
|
15
|
+
maxResponseBytes: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
webhookMaxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
webhookSignatureToleranceMs: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/** Private connector credentials resolved by the host. */
|
|
20
|
+
interface Credentials {
|
|
21
|
+
/** Selected authorization method. */
|
|
22
|
+
authMethodId?: string;
|
|
23
|
+
/** Secret Linear personal API key created at https://linear.app/settings/account/security under Personal API keys > New API key, with Read and Write permission and access to the teams the Flows use. It begins with lin_api_ and is sent only to api.linear.app as the raw Authorization header, never as a Bearer token. Dex Web stores it only in this credential field; revoking the key in Linear stops it at once. Required: no operation can run without it. */
|
|
24
|
+
apiKey?: SecretString;
|
|
25
|
+
/** Secret Linear OAuth access token produced automatically by the authorization; Dex refreshes it before its 24-hour expiry, so never enter it manually, and blank means Connect has not completed. */
|
|
26
|
+
accessToken?: SecretString;
|
|
27
|
+
/** Non-secret Client ID of your Linear OAuth application, copied from https://linear.app/settings/api/applications after opening the application; it is an opaque hexadecimal string, and blank means authorization and refresh cannot start. */
|
|
28
|
+
oauthClientId?: string;
|
|
29
|
+
/** Secret Client secret shown on the same OAuth application page at https://linear.app/settings/api/applications; Dex Web stores it only in this credential field and sends it only to Linear's token endpoint, and blank means authorization and refresh cannot start. */
|
|
30
|
+
oauthClientSecret?: SecretString;
|
|
31
|
+
/** Secret rotating Linear refresh token produced automatically by the authorization; every refresh returns a replacement that Dex stores, so never enter it manually, and blank or rejected means the connection must be authorized again. */
|
|
32
|
+
refreshToken?: SecretString;
|
|
33
|
+
/** Secret webhook signing secret of your OAuth application, shown at https://linear.app/settings/api/applications > the application > Webhooks after you enable webhooks with the Issues event and the application's public HTTPS webhook URL. The issueEventReceived endpoint checks every Linear-Signature HMAC with it; it is stored only here. Blank is fine for operations only; the endpoint then answers 503 so Linear retries. */
|
|
34
|
+
webhookSigningSecret?: SecretString;
|
|
35
|
+
}
|
|
36
|
+
/** Decode private credential fields for the selected authorization method. */
|
|
37
|
+
declare function decodeCredentials(value: unknown): Credentials;
|
|
38
|
+
/** Decode shared credential fields for the selected authorization method. */
|
|
39
|
+
declare function decodeSharedCredentials(value: unknown): Credentials;
|
|
40
|
+
/** Host-owned source of private connector credentials. */
|
|
41
|
+
type CredentialSource = RefreshingCredentialProvider<Credentials>;
|
|
42
|
+
/** IssueSearchFilter selects issues; every set field must match, and an empty filter matches every issue
|
|
43
|
+
* the connection can see. Lists match any of their values. */
|
|
44
|
+
interface IssueSearchFilter {
|
|
45
|
+
/** TeamID limits the search to one team's UUID, such as the teamPicker unit's teamId. */
|
|
46
|
+
"teamId"?: string | undefined;
|
|
47
|
+
/** TeamKey limits the search to the team with this key, such as ENG; set at most one of TeamID and TeamKey. */
|
|
48
|
+
"teamKey"?: string | undefined;
|
|
49
|
+
/** StateTypes keeps issues whose workflow state has one of these types, such as started. */
|
|
50
|
+
"stateTypes"?: Array<"backlog" | "canceled" | "completed" | "duplicate" | "started" | "triage" | "unstarted" | (string & {})> | undefined;
|
|
51
|
+
/** StateIDs keeps issues in one of these workflow states. */
|
|
52
|
+
"stateIds"?: Array<string> | undefined;
|
|
53
|
+
/** AssigneeID keeps issues assigned to this user UUID. */
|
|
54
|
+
"assigneeId"?: string | undefined;
|
|
55
|
+
/** AssigneeEmail keeps issues assigned to the user with this email, compared without case. */
|
|
56
|
+
"assigneeEmail"?: string | undefined;
|
|
57
|
+
/** IsUnassigned keeps only unassigned issues; it excludes AssigneeID and AssigneeEmail. */
|
|
58
|
+
"unassigned"?: boolean | undefined;
|
|
59
|
+
/** LabelIDs keeps issues that carry at least one of these labels. */
|
|
60
|
+
"labelIds"?: Array<string> | undefined;
|
|
61
|
+
/** LabelNames keeps issues that carry a label with one of these exact names, such as Bug. */
|
|
62
|
+
"labelNames"?: Array<string> | undefined;
|
|
63
|
+
/** ProjectID keeps issues of this project UUID. */
|
|
64
|
+
"projectId"?: string | undefined;
|
|
65
|
+
/** Title keeps issues whose title is exactly this text. */
|
|
66
|
+
"title"?: string | undefined;
|
|
67
|
+
/** TitleContains keeps issues whose title contains this text, compared without case. */
|
|
68
|
+
"titleContains"?: string | undefined;
|
|
69
|
+
/** UpdatedAfter keeps issues changed strictly after this time; it is the changed-since watermark. */
|
|
70
|
+
"updatedAfter"?: string | null | undefined;
|
|
71
|
+
/** CreatedAfter keeps issues created strictly after this time. */
|
|
72
|
+
"createdAfter"?: string | null | undefined;
|
|
73
|
+
}
|
|
74
|
+
/** SearchIssuesInput requests one page. A later page repeats the same Filter, Order, and IncludesArchived
|
|
75
|
+
* with the previous page's NextCursor. */
|
|
76
|
+
interface SearchIssuesInput {
|
|
77
|
+
/** Filter selects the issues. */
|
|
78
|
+
"filter": IssueSearchFilter;
|
|
79
|
+
/** Order is createdAt or updatedAt; blank uses createdAt. */
|
|
80
|
+
"order"?: "createdAt" | "updatedAt" | (string & {}) | undefined;
|
|
81
|
+
/** PageSize is 1 to MaxSearchPageSize; zero requests DefaultSearchPageSize. */
|
|
82
|
+
"pageSize"?: number | undefined;
|
|
83
|
+
/** Cursor continues after a previous page's NextCursor; blank reads the first page. */
|
|
84
|
+
"cursor"?: string | undefined;
|
|
85
|
+
/** IncludesArchived also returns archived issues. */
|
|
86
|
+
"includesArchived"?: boolean | undefined;
|
|
87
|
+
}
|
|
88
|
+
/** TeamReference identifies the team that owns an issue or workflow state. */
|
|
89
|
+
interface TeamReference {
|
|
90
|
+
/** ID is the team's UUID. */
|
|
91
|
+
"id": string;
|
|
92
|
+
/** Key is the team's identifier prefix, such as ENG in ENG-123. */
|
|
93
|
+
"key": string;
|
|
94
|
+
/** Name is the team's display name. */
|
|
95
|
+
"name": string;
|
|
96
|
+
}
|
|
97
|
+
/** WorkflowStateReference identifies an issue's workflow state, Linear's issue status. */
|
|
98
|
+
interface WorkflowStateReference {
|
|
99
|
+
/** ID is the workflow state's UUID. */
|
|
100
|
+
"id": string;
|
|
101
|
+
/** Name is the team's own name for the state, such as In Progress. */
|
|
102
|
+
"name": string;
|
|
103
|
+
/** Type is the state's category, such as started. */
|
|
104
|
+
"type": "backlog" | "canceled" | "completed" | "duplicate" | "started" | "triage" | "unstarted" | (string & {});
|
|
105
|
+
}
|
|
106
|
+
/** IssueSummary is the partial issue that searches and writes return. */
|
|
107
|
+
interface IssueSummary {
|
|
108
|
+
/** ID is the issue's UUID, which never changes. */
|
|
109
|
+
"id": string;
|
|
110
|
+
/** Identifier is the team key and number, such as ENG-123; it changes when the issue moves to another team. */
|
|
111
|
+
"identifier": string;
|
|
112
|
+
/** Title is the issue's title. */
|
|
113
|
+
"title": string;
|
|
114
|
+
/** URL is the issue's page in Linear. */
|
|
115
|
+
"url": string;
|
|
116
|
+
/** Team is the team that owns the issue. */
|
|
117
|
+
"team": TeamReference;
|
|
118
|
+
/** State is the issue's current workflow state. */
|
|
119
|
+
"state": WorkflowStateReference;
|
|
120
|
+
/** AssigneeID is the assigned user's UUID, or blank when the issue is unassigned. */
|
|
121
|
+
"assigneeId"?: string | undefined;
|
|
122
|
+
/** Priority is 0 for no priority, 1 urgent, 2 high, 3 medium, or 4 low. */
|
|
123
|
+
"priority": number;
|
|
124
|
+
/** LabelIDs are the UUIDs of the issue's labels. */
|
|
125
|
+
"labelIds"?: Array<string> | undefined;
|
|
126
|
+
/** DueDate is the YYYY-MM-DD due date, or blank. */
|
|
127
|
+
"dueDate"?: string | undefined;
|
|
128
|
+
/** CreatedAt is when the issue was created. */
|
|
129
|
+
"createdAt": string;
|
|
130
|
+
/** UpdatedAt is when the issue last changed; searches compare UpdatedAfter with it. */
|
|
131
|
+
"updatedAt": string;
|
|
132
|
+
/** ArchivedAt is when the issue was archived, or nil. */
|
|
133
|
+
"archivedAt"?: string | null | undefined;
|
|
134
|
+
}
|
|
135
|
+
/** SearchIssuesOutput is one page of issue summaries. */
|
|
136
|
+
interface SearchIssuesOutput {
|
|
137
|
+
/** Issues are the page's issue summaries in Linear's order. */
|
|
138
|
+
"issues": Array<IssueSummary> | null;
|
|
139
|
+
/** NextCursor continues the search; blank means this was the last page. */
|
|
140
|
+
"nextCursor"?: string | undefined;
|
|
141
|
+
}
|
|
142
|
+
/** GetIssueInput names the issue to read. */
|
|
143
|
+
interface GetIssueInput {
|
|
144
|
+
/** IssueID is the issue's UUID or its identifier, such as ENG-123. An identifier finds the issue only
|
|
145
|
+
* under its current team key; after a move to another team, use the UUID. */
|
|
146
|
+
"issueId": string;
|
|
147
|
+
}
|
|
148
|
+
/** UserReference identifies a Linear user without the user's email address. */
|
|
149
|
+
interface UserReference {
|
|
150
|
+
/** ID is the user's UUID. */
|
|
151
|
+
"id": string;
|
|
152
|
+
/** Name is the user's full name. */
|
|
153
|
+
"name"?: string | undefined;
|
|
154
|
+
/** DisplayName is the user's short display name. */
|
|
155
|
+
"displayName"?: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
/** IssueLabel is one label applied to an issue. */
|
|
158
|
+
interface IssueLabel {
|
|
159
|
+
/** ID is the label's UUID. */
|
|
160
|
+
"id": string;
|
|
161
|
+
/** Name is the label's name, such as Bug. */
|
|
162
|
+
"name": string;
|
|
163
|
+
/** Color is the label's hex color, such as #eb5757. */
|
|
164
|
+
"color"?: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
/** ProjectReference identifies the project an issue belongs to. */
|
|
167
|
+
interface ProjectReference {
|
|
168
|
+
/** ID is the project's UUID. */
|
|
169
|
+
"id": string;
|
|
170
|
+
/** Name is the project's name. */
|
|
171
|
+
"name": string;
|
|
172
|
+
}
|
|
173
|
+
/** CycleReference identifies the cycle an issue is planned in. */
|
|
174
|
+
interface CycleReference {
|
|
175
|
+
/** ID is the cycle's UUID. */
|
|
176
|
+
"id": string;
|
|
177
|
+
/** Number is the cycle's number within its team. */
|
|
178
|
+
"number": number;
|
|
179
|
+
/** Name is the cycle's optional name. */
|
|
180
|
+
"name"?: string | undefined;
|
|
181
|
+
}
|
|
182
|
+
/** IssueReference identifies another issue, such as a parent. */
|
|
183
|
+
interface IssueReference {
|
|
184
|
+
/** ID is the issue's UUID. */
|
|
185
|
+
"id": string;
|
|
186
|
+
/** Identifier is the issue's team-scoped identifier, such as ENG-123. */
|
|
187
|
+
"identifier": string;
|
|
188
|
+
}
|
|
189
|
+
/** Issue is one issue as getIssue reads it: the summary fields plus its description and relations. */
|
|
190
|
+
interface Issue {
|
|
191
|
+
/** ID is the issue's UUID, which never changes. */
|
|
192
|
+
"id": string;
|
|
193
|
+
/** Identifier is the team key and number, such as ENG-123; it changes when the issue moves to another team. */
|
|
194
|
+
"identifier": string;
|
|
195
|
+
/** Title is the issue's title. */
|
|
196
|
+
"title": string;
|
|
197
|
+
/** URL is the issue's page in Linear. */
|
|
198
|
+
"url": string;
|
|
199
|
+
/** Team is the team that owns the issue. */
|
|
200
|
+
"team": TeamReference;
|
|
201
|
+
/** State is the issue's current workflow state. */
|
|
202
|
+
"state": WorkflowStateReference;
|
|
203
|
+
/** AssigneeID is the assigned user's UUID, or blank when the issue is unassigned. */
|
|
204
|
+
"assigneeId"?: string | undefined;
|
|
205
|
+
/** Priority is 0 for no priority, 1 urgent, 2 high, 3 medium, or 4 low. */
|
|
206
|
+
"priority": number;
|
|
207
|
+
/** LabelIDs are the UUIDs of the issue's labels. */
|
|
208
|
+
"labelIds"?: Array<string> | undefined;
|
|
209
|
+
/** DueDate is the YYYY-MM-DD due date, or blank. */
|
|
210
|
+
"dueDate"?: string | undefined;
|
|
211
|
+
/** CreatedAt is when the issue was created. */
|
|
212
|
+
"createdAt": string;
|
|
213
|
+
/** UpdatedAt is when the issue last changed; searches compare UpdatedAfter with it. */
|
|
214
|
+
"updatedAt": string;
|
|
215
|
+
/** ArchivedAt is when the issue was archived, or nil. */
|
|
216
|
+
"archivedAt"?: string | null | undefined;
|
|
217
|
+
/** Number is the issue's number within its team, such as 123 in ENG-123. */
|
|
218
|
+
"number": number;
|
|
219
|
+
/** PriorityLabel is Linear's name for Priority, such as High. */
|
|
220
|
+
"priorityLabel"?: string | undefined;
|
|
221
|
+
/** Estimate is the issue's estimate in the team's points, or nil. */
|
|
222
|
+
"estimate"?: number | undefined;
|
|
223
|
+
/** Description is the issue's Markdown description, at most MaxDescriptionCharacters characters. */
|
|
224
|
+
"description"?: string | undefined;
|
|
225
|
+
/** IsDescriptionTruncated reports that Description was cut at MaxDescriptionCharacters. */
|
|
226
|
+
"descriptionTruncated"?: boolean | undefined;
|
|
227
|
+
/** BranchName is the Git branch name Linear suggests for the issue. */
|
|
228
|
+
"branchName"?: string | undefined;
|
|
229
|
+
/** IsTrashed reports that the issue is in the trash. */
|
|
230
|
+
"trashed"?: boolean | undefined;
|
|
231
|
+
/** Assignee is the assigned user, or nil. */
|
|
232
|
+
"assignee"?: UserReference | undefined;
|
|
233
|
+
/** Creator is the user who created the issue, or nil for an integration. */
|
|
234
|
+
"creator"?: UserReference | undefined;
|
|
235
|
+
/** Labels are the issue's labels, at most 50. */
|
|
236
|
+
"labels"?: Array<IssueLabel> | undefined;
|
|
237
|
+
/** Project is the issue's project, or nil. */
|
|
238
|
+
"project"?: ProjectReference | undefined;
|
|
239
|
+
/** Cycle is the issue's cycle, or nil. */
|
|
240
|
+
"cycle"?: CycleReference | undefined;
|
|
241
|
+
/** Parent is the parent issue of a sub-issue, or nil. */
|
|
242
|
+
"parent"?: IssueReference | undefined;
|
|
243
|
+
/** StartedAt is when the issue entered a started state, or nil. */
|
|
244
|
+
"startedAt"?: string | null | undefined;
|
|
245
|
+
/** CompletedAt is when the issue was completed, or nil. */
|
|
246
|
+
"completedAt"?: string | null | undefined;
|
|
247
|
+
/** CanceledAt is when the issue was canceled, or nil. */
|
|
248
|
+
"canceledAt"?: string | null | undefined;
|
|
249
|
+
}
|
|
250
|
+
/** CreateIssueInput describes one new issue. */
|
|
251
|
+
interface CreateIssueInput {
|
|
252
|
+
/** TeamID is the UUID of the team that owns the issue, such as the teamPicker unit's teamId. */
|
|
253
|
+
"teamId": string;
|
|
254
|
+
/** Title is the issue title, 1 to MaxIssueTitleCharacters characters on one line. */
|
|
255
|
+
"title": string;
|
|
256
|
+
/** Description is optional Markdown of at most MaxMarkdownCharacters characters. */
|
|
257
|
+
"description"?: string | undefined;
|
|
258
|
+
/** StateID is a workflow state of the team from listWorkflowStates; blank uses the team's default state. */
|
|
259
|
+
"stateId"?: string | undefined;
|
|
260
|
+
/** AssigneeID is the assignee's user UUID from findUserByEmail; blank leaves the issue unassigned. */
|
|
261
|
+
"assigneeId"?: string | undefined;
|
|
262
|
+
/** LabelIDs are up to MaxLabelIDs label UUIDs of the team or workspace. */
|
|
263
|
+
"labelIds"?: Array<string> | undefined;
|
|
264
|
+
/** Priority is 0 (none), 1 (urgent), 2 (high), 3 (medium), or 4 (low); nil leaves Linear's default. */
|
|
265
|
+
"priority"?: number | undefined;
|
|
266
|
+
/** DueDate is an optional YYYY-MM-DD date. */
|
|
267
|
+
"dueDate"?: string | undefined;
|
|
268
|
+
/** ProjectID is an optional project UUID. */
|
|
269
|
+
"projectId"?: string | undefined;
|
|
270
|
+
/** ParentID makes the issue a sub-issue of this issue UUID or identifier, such as ENG-123. */
|
|
271
|
+
"parentId"?: string | undefined;
|
|
272
|
+
}
|
|
273
|
+
/** CreateIssueOutput is the created issue. On every other branch IssueID is blank and the requested team
|
|
274
|
+
* and title are echoed so the application can reconcile. */
|
|
275
|
+
interface CreateIssueOutput {
|
|
276
|
+
/** TeamID echoes the requested team. */
|
|
277
|
+
"teamId": string;
|
|
278
|
+
/** Title echoes the requested title. */
|
|
279
|
+
"title": string;
|
|
280
|
+
/** IssueID is the created issue's UUID, the client-supplied ID every attempt of the Step sent. */
|
|
281
|
+
"issueId"?: string | undefined;
|
|
282
|
+
/** Issue is the created issue as Linear returned or read it. */
|
|
283
|
+
"issue"?: IssueSummary | undefined;
|
|
284
|
+
/** IsReplayed reports that an earlier attempt of this Step had already created the issue, which this
|
|
285
|
+
* attempt read back by its UUID. */
|
|
286
|
+
"replayed"?: boolean | undefined;
|
|
287
|
+
}
|
|
288
|
+
/** UpdateIssueInput changes one issue. Every field is optional, but at least one change is required.
|
|
289
|
+
* Values are absolute and labels are added or removed as sets, so repeating the update changes nothing. */
|
|
290
|
+
interface UpdateIssueInput {
|
|
291
|
+
/** IssueID is the issue's UUID or its identifier, such as ENG-123. */
|
|
292
|
+
"issueId": string;
|
|
293
|
+
/** StateID moves the issue to this workflow state of its team, from listWorkflowStates. */
|
|
294
|
+
"stateId"?: string | undefined;
|
|
295
|
+
/** AssigneeID assigns the issue to this user UUID, from findUserByEmail. */
|
|
296
|
+
"assigneeId"?: string | undefined;
|
|
297
|
+
/** Unassigns removes the assignee; it excludes AssigneeID. */
|
|
298
|
+
"unassigns"?: boolean | undefined;
|
|
299
|
+
/** AddedLabelIDs adds these label UUIDs and keeps the issue's other labels. */
|
|
300
|
+
"addedLabelIds"?: Array<string> | undefined;
|
|
301
|
+
/** RemovedLabelIDs removes these label UUIDs; it cannot repeat an added label. */
|
|
302
|
+
"removedLabelIds"?: Array<string> | undefined;
|
|
303
|
+
/** Priority sets 0 (none), 1 (urgent), 2 (high), 3 (medium), or 4 (low); nil keeps it. */
|
|
304
|
+
"priority"?: number | undefined;
|
|
305
|
+
/** DueDate sets a YYYY-MM-DD due date; blank keeps it. */
|
|
306
|
+
"dueDate"?: string | undefined;
|
|
307
|
+
/** ClearsDueDate removes the due date; it excludes DueDate. */
|
|
308
|
+
"clearsDueDate"?: boolean | undefined;
|
|
309
|
+
/** Title replaces the title with 1 to MaxIssueTitleCharacters characters on one line; blank keeps it. */
|
|
310
|
+
"title"?: string | undefined;
|
|
311
|
+
}
|
|
312
|
+
/** UpdateIssueOutput is the issue after the change. */
|
|
313
|
+
interface UpdateIssueOutput {
|
|
314
|
+
/** IssueID echoes the requested issue UUID or identifier. */
|
|
315
|
+
"issueId": string;
|
|
316
|
+
/** Issue is the issue as Linear returned it after the change; nil on every other branch. */
|
|
317
|
+
"issue"?: IssueSummary | undefined;
|
|
318
|
+
}
|
|
319
|
+
/** AddCommentInput describes one comment. */
|
|
320
|
+
interface AddCommentInput {
|
|
321
|
+
/** IssueID is the issue's UUID or its identifier, such as ENG-123. */
|
|
322
|
+
"issueId": string;
|
|
323
|
+
/** Body is the comment's Markdown, 1 to MaxMarkdownCharacters characters. */
|
|
324
|
+
"body": string;
|
|
325
|
+
}
|
|
326
|
+
/** AddCommentOutput is the added comment. On every other branch only IssueID is set. */
|
|
327
|
+
interface AddCommentOutput {
|
|
328
|
+
/** IssueID echoes the requested issue UUID or identifier. */
|
|
329
|
+
"issueId": string;
|
|
330
|
+
/** CommentID is the comment's UUID, the client-supplied ID every attempt of the Step sent. */
|
|
331
|
+
"commentId"?: string | undefined;
|
|
332
|
+
/** URL is the comment's link in Linear. */
|
|
333
|
+
"url"?: string | undefined;
|
|
334
|
+
/** CreatedAt is when Linear created the comment. */
|
|
335
|
+
"createdAt"?: string | null | undefined;
|
|
336
|
+
/** IsReplayed reports that an earlier attempt of this Step had already added the comment, which this
|
|
337
|
+
* attempt read back by its UUID. */
|
|
338
|
+
"replayed"?: boolean | undefined;
|
|
339
|
+
}
|
|
340
|
+
/** FindUserByEmailInput names the email address to resolve. */
|
|
341
|
+
interface FindUserByEmailInput {
|
|
342
|
+
/** Email is the user's address, such as alice@example.com, compared without case. */
|
|
343
|
+
"email": string;
|
|
344
|
+
/** IncludesDisabled also finds a suspended or deactivated user; false finds only active users. */
|
|
345
|
+
"includesDisabled"?: boolean | undefined;
|
|
346
|
+
}
|
|
347
|
+
/** User is one workspace member. */
|
|
348
|
+
interface User {
|
|
349
|
+
/** ID is the user's UUID, which createIssue and updateIssue accept as AssigneeID. */
|
|
350
|
+
"id": string;
|
|
351
|
+
/** Name is the user's full name. */
|
|
352
|
+
"name": string;
|
|
353
|
+
/** DisplayName is the user's short display name. */
|
|
354
|
+
"displayName": string;
|
|
355
|
+
/** Email is the user's email address. */
|
|
356
|
+
"email": string;
|
|
357
|
+
/** IsActive reports that the user is not suspended or deactivated. */
|
|
358
|
+
"active": boolean;
|
|
359
|
+
/** IsAdmin reports a workspace admin. */
|
|
360
|
+
"admin"?: boolean | undefined;
|
|
361
|
+
/** IsGuest reports a guest limited to some teams. */
|
|
362
|
+
"guest"?: boolean | undefined;
|
|
363
|
+
/** URL is the user's profile in Linear. */
|
|
364
|
+
"url"?: string | undefined;
|
|
365
|
+
}
|
|
366
|
+
/** ListWorkflowStatesInput names the team whose workflow states to list. */
|
|
367
|
+
interface ListWorkflowStatesInput {
|
|
368
|
+
/** TeamID is the team's UUID, such as the teamPicker unit's teamId. */
|
|
369
|
+
"teamId": string;
|
|
370
|
+
}
|
|
371
|
+
/** WorkflowState is one of a team's workflow states, Linear's issue statuses. */
|
|
372
|
+
interface WorkflowState {
|
|
373
|
+
/** ID is the state's UUID, which createIssue and updateIssue accept as StateID. */
|
|
374
|
+
"id": string;
|
|
375
|
+
/** Name is the team's own name for the state, such as In Progress. */
|
|
376
|
+
"name": string;
|
|
377
|
+
/** Type is the state's category, such as started. */
|
|
378
|
+
"type": "backlog" | "canceled" | "completed" | "duplicate" | "started" | "triage" | "unstarted" | (string & {});
|
|
379
|
+
/** Position orders the states of one type on the team's board. */
|
|
380
|
+
"position": number;
|
|
381
|
+
/** Color is the state's hex color. */
|
|
382
|
+
"color"?: string | undefined;
|
|
383
|
+
}
|
|
384
|
+
/** ListWorkflowStatesOutput is a team's active workflow states, ordered by type from triage to canceled and
|
|
385
|
+
* then by position. */
|
|
386
|
+
interface ListWorkflowStatesOutput {
|
|
387
|
+
/** TeamID echoes the requested team. */
|
|
388
|
+
"teamId": string;
|
|
389
|
+
/** States are the team's workflow states. */
|
|
390
|
+
"states": Array<WorkflowState> | null;
|
|
391
|
+
}
|
|
392
|
+
/** Runtime validator for IssueSearchFilter. */
|
|
393
|
+
declare const IssueSearchFilterSchema: z.ZodObject<{
|
|
394
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
395
|
+
teamKey: z.ZodOptional<z.ZodString>;
|
|
396
|
+
stateTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
397
|
+
stateIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
398
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
399
|
+
assigneeEmail: z.ZodOptional<z.ZodString>;
|
|
400
|
+
unassigned: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
402
|
+
labelNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
403
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
404
|
+
title: z.ZodOptional<z.ZodString>;
|
|
405
|
+
titleContains: z.ZodOptional<z.ZodString>;
|
|
406
|
+
updatedAfter: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
407
|
+
createdAfter: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
/** Runtime validator for SearchIssuesInput. */
|
|
410
|
+
declare const SearchIssuesInputSchema: z.ZodObject<{
|
|
411
|
+
filter: z.ZodObject<{
|
|
412
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
413
|
+
teamKey: z.ZodOptional<z.ZodString>;
|
|
414
|
+
stateTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
415
|
+
stateIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
416
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
417
|
+
assigneeEmail: z.ZodOptional<z.ZodString>;
|
|
418
|
+
unassigned: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
420
|
+
labelNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
421
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
422
|
+
title: z.ZodOptional<z.ZodString>;
|
|
423
|
+
titleContains: z.ZodOptional<z.ZodString>;
|
|
424
|
+
updatedAfter: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
425
|
+
createdAfter: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
426
|
+
}, z.core.$strict>;
|
|
427
|
+
order: z.ZodOptional<z.ZodString>;
|
|
428
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
429
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
430
|
+
includesArchived: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
}, z.core.$strict>;
|
|
432
|
+
/** Runtime validator for TeamReference. */
|
|
433
|
+
declare const TeamReferenceSchema: z.ZodObject<{
|
|
434
|
+
id: z.ZodString;
|
|
435
|
+
key: z.ZodString;
|
|
436
|
+
name: z.ZodString;
|
|
437
|
+
}, z.core.$strict>;
|
|
438
|
+
/** Runtime validator for WorkflowStateReference. */
|
|
439
|
+
declare const WorkflowStateReferenceSchema: z.ZodObject<{
|
|
440
|
+
id: z.ZodString;
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
type: z.ZodString;
|
|
443
|
+
}, z.core.$strict>;
|
|
444
|
+
/** Runtime validator for IssueSummary. */
|
|
445
|
+
declare const IssueSummarySchema: z.ZodObject<{
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
identifier: z.ZodString;
|
|
448
|
+
title: z.ZodString;
|
|
449
|
+
url: z.ZodString;
|
|
450
|
+
team: z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
key: z.ZodString;
|
|
453
|
+
name: z.ZodString;
|
|
454
|
+
}, z.core.$strict>;
|
|
455
|
+
state: z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
type: z.ZodString;
|
|
459
|
+
}, z.core.$strict>;
|
|
460
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
461
|
+
priority: z.ZodNumber;
|
|
462
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
463
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
464
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
465
|
+
updatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
466
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
467
|
+
}, z.core.$strict>;
|
|
468
|
+
/** Runtime validator for SearchIssuesOutput. */
|
|
469
|
+
declare const SearchIssuesOutputSchema: z.ZodObject<{
|
|
470
|
+
issues: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
471
|
+
id: z.ZodString;
|
|
472
|
+
identifier: z.ZodString;
|
|
473
|
+
title: z.ZodString;
|
|
474
|
+
url: z.ZodString;
|
|
475
|
+
team: z.ZodObject<{
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
key: z.ZodString;
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
}, z.core.$strict>;
|
|
480
|
+
state: z.ZodObject<{
|
|
481
|
+
id: z.ZodString;
|
|
482
|
+
name: z.ZodString;
|
|
483
|
+
type: z.ZodString;
|
|
484
|
+
}, z.core.$strict>;
|
|
485
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
486
|
+
priority: z.ZodNumber;
|
|
487
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
488
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
489
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
490
|
+
updatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
491
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
492
|
+
}, z.core.$strict>>>;
|
|
493
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, z.core.$strict>;
|
|
495
|
+
/** Runtime validator for GetIssueInput. */
|
|
496
|
+
declare const GetIssueInputSchema: z.ZodObject<{
|
|
497
|
+
issueId: z.ZodString;
|
|
498
|
+
}, z.core.$strict>;
|
|
499
|
+
/** Runtime validator for UserReference. */
|
|
500
|
+
declare const UserReferenceSchema: z.ZodObject<{
|
|
501
|
+
id: z.ZodString;
|
|
502
|
+
name: z.ZodOptional<z.ZodString>;
|
|
503
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, z.core.$strict>;
|
|
505
|
+
/** Runtime validator for IssueLabel. */
|
|
506
|
+
declare const IssueLabelSchema: z.ZodObject<{
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
name: z.ZodString;
|
|
509
|
+
color: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strict>;
|
|
511
|
+
/** Runtime validator for ProjectReference. */
|
|
512
|
+
declare const ProjectReferenceSchema: z.ZodObject<{
|
|
513
|
+
id: z.ZodString;
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
/** Runtime validator for CycleReference. */
|
|
517
|
+
declare const CycleReferenceSchema: z.ZodObject<{
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
number: z.ZodNumber;
|
|
520
|
+
name: z.ZodOptional<z.ZodString>;
|
|
521
|
+
}, z.core.$strict>;
|
|
522
|
+
/** Runtime validator for IssueReference. */
|
|
523
|
+
declare const IssueReferenceSchema: z.ZodObject<{
|
|
524
|
+
id: z.ZodString;
|
|
525
|
+
identifier: z.ZodString;
|
|
526
|
+
}, z.core.$strict>;
|
|
527
|
+
/** Runtime validator for Issue. */
|
|
528
|
+
declare const IssueSchema: z.ZodObject<{
|
|
529
|
+
id: z.ZodString;
|
|
530
|
+
identifier: z.ZodString;
|
|
531
|
+
title: z.ZodString;
|
|
532
|
+
url: z.ZodString;
|
|
533
|
+
team: z.ZodObject<{
|
|
534
|
+
id: z.ZodString;
|
|
535
|
+
key: z.ZodString;
|
|
536
|
+
name: z.ZodString;
|
|
537
|
+
}, z.core.$strict>;
|
|
538
|
+
state: z.ZodObject<{
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
type: z.ZodString;
|
|
542
|
+
}, z.core.$strict>;
|
|
543
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
544
|
+
priority: z.ZodNumber;
|
|
545
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
546
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
547
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
548
|
+
updatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
549
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
550
|
+
number: z.ZodNumber;
|
|
551
|
+
priorityLabel: z.ZodOptional<z.ZodString>;
|
|
552
|
+
estimate: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
description: z.ZodOptional<z.ZodString>;
|
|
554
|
+
descriptionTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
555
|
+
branchName: z.ZodOptional<z.ZodString>;
|
|
556
|
+
trashed: z.ZodOptional<z.ZodBoolean>;
|
|
557
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
id: z.ZodString;
|
|
559
|
+
name: z.ZodOptional<z.ZodString>;
|
|
560
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, z.core.$strict>>;
|
|
562
|
+
creator: z.ZodOptional<z.ZodObject<{
|
|
563
|
+
id: z.ZodString;
|
|
564
|
+
name: z.ZodOptional<z.ZodString>;
|
|
565
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
566
|
+
}, z.core.$strict>>;
|
|
567
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
568
|
+
id: z.ZodString;
|
|
569
|
+
name: z.ZodString;
|
|
570
|
+
color: z.ZodOptional<z.ZodString>;
|
|
571
|
+
}, z.core.$strict>>>;
|
|
572
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
id: z.ZodString;
|
|
574
|
+
name: z.ZodString;
|
|
575
|
+
}, z.core.$strict>>;
|
|
576
|
+
cycle: z.ZodOptional<z.ZodObject<{
|
|
577
|
+
id: z.ZodString;
|
|
578
|
+
number: z.ZodNumber;
|
|
579
|
+
name: z.ZodOptional<z.ZodString>;
|
|
580
|
+
}, z.core.$strict>>;
|
|
581
|
+
parent: z.ZodOptional<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
identifier: z.ZodString;
|
|
584
|
+
}, z.core.$strict>>;
|
|
585
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
586
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
587
|
+
canceledAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
588
|
+
}, z.core.$strict>;
|
|
589
|
+
/** Runtime validator for CreateIssueInput. */
|
|
590
|
+
declare const CreateIssueInputSchema: z.ZodObject<{
|
|
591
|
+
teamId: z.ZodString;
|
|
592
|
+
title: z.ZodString;
|
|
593
|
+
description: z.ZodOptional<z.ZodString>;
|
|
594
|
+
stateId: z.ZodOptional<z.ZodString>;
|
|
595
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
596
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
597
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
598
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
599
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
600
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
601
|
+
}, z.core.$strict>;
|
|
602
|
+
/** Runtime validator for CreateIssueOutput. */
|
|
603
|
+
declare const CreateIssueOutputSchema: z.ZodObject<{
|
|
604
|
+
teamId: z.ZodString;
|
|
605
|
+
title: z.ZodString;
|
|
606
|
+
issueId: z.ZodOptional<z.ZodString>;
|
|
607
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
608
|
+
id: z.ZodString;
|
|
609
|
+
identifier: z.ZodString;
|
|
610
|
+
title: z.ZodString;
|
|
611
|
+
url: z.ZodString;
|
|
612
|
+
team: z.ZodObject<{
|
|
613
|
+
id: z.ZodString;
|
|
614
|
+
key: z.ZodString;
|
|
615
|
+
name: z.ZodString;
|
|
616
|
+
}, z.core.$strict>;
|
|
617
|
+
state: z.ZodObject<{
|
|
618
|
+
id: z.ZodString;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
type: z.ZodString;
|
|
621
|
+
}, z.core.$strict>;
|
|
622
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
623
|
+
priority: z.ZodNumber;
|
|
624
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
626
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
627
|
+
updatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
628
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
629
|
+
}, z.core.$strict>>;
|
|
630
|
+
replayed: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
}, z.core.$strict>;
|
|
632
|
+
/** Runtime validator for UpdateIssueInput. */
|
|
633
|
+
declare const UpdateIssueInputSchema: z.ZodObject<{
|
|
634
|
+
issueId: z.ZodString;
|
|
635
|
+
stateId: z.ZodOptional<z.ZodString>;
|
|
636
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
637
|
+
unassigns: z.ZodOptional<z.ZodBoolean>;
|
|
638
|
+
addedLabelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
639
|
+
removedLabelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
640
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
641
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
642
|
+
clearsDueDate: z.ZodOptional<z.ZodBoolean>;
|
|
643
|
+
title: z.ZodOptional<z.ZodString>;
|
|
644
|
+
}, z.core.$strict>;
|
|
645
|
+
/** Runtime validator for UpdateIssueOutput. */
|
|
646
|
+
declare const UpdateIssueOutputSchema: z.ZodObject<{
|
|
647
|
+
issueId: z.ZodString;
|
|
648
|
+
issue: z.ZodOptional<z.ZodObject<{
|
|
649
|
+
id: z.ZodString;
|
|
650
|
+
identifier: z.ZodString;
|
|
651
|
+
title: z.ZodString;
|
|
652
|
+
url: z.ZodString;
|
|
653
|
+
team: z.ZodObject<{
|
|
654
|
+
id: z.ZodString;
|
|
655
|
+
key: z.ZodString;
|
|
656
|
+
name: z.ZodString;
|
|
657
|
+
}, z.core.$strict>;
|
|
658
|
+
state: z.ZodObject<{
|
|
659
|
+
id: z.ZodString;
|
|
660
|
+
name: z.ZodString;
|
|
661
|
+
type: z.ZodString;
|
|
662
|
+
}, z.core.$strict>;
|
|
663
|
+
assigneeId: z.ZodOptional<z.ZodString>;
|
|
664
|
+
priority: z.ZodNumber;
|
|
665
|
+
labelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
666
|
+
dueDate: z.ZodOptional<z.ZodString>;
|
|
667
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
668
|
+
updatedAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
669
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
670
|
+
}, z.core.$strict>>;
|
|
671
|
+
}, z.core.$strict>;
|
|
672
|
+
/** Runtime validator for AddCommentInput. */
|
|
673
|
+
declare const AddCommentInputSchema: z.ZodObject<{
|
|
674
|
+
issueId: z.ZodString;
|
|
675
|
+
body: z.ZodString;
|
|
676
|
+
}, z.core.$strict>;
|
|
677
|
+
/** Runtime validator for AddCommentOutput. */
|
|
678
|
+
declare const AddCommentOutputSchema: z.ZodObject<{
|
|
679
|
+
issueId: z.ZodString;
|
|
680
|
+
commentId: z.ZodOptional<z.ZodString>;
|
|
681
|
+
url: z.ZodOptional<z.ZodString>;
|
|
682
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
683
|
+
replayed: z.ZodOptional<z.ZodBoolean>;
|
|
684
|
+
}, z.core.$strict>;
|
|
685
|
+
/** Runtime validator for FindUserByEmailInput. */
|
|
686
|
+
declare const FindUserByEmailInputSchema: z.ZodObject<{
|
|
687
|
+
email: z.ZodString;
|
|
688
|
+
includesDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
689
|
+
}, z.core.$strict>;
|
|
690
|
+
/** Runtime validator for User. */
|
|
691
|
+
declare const UserSchema: z.ZodObject<{
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
name: z.ZodString;
|
|
694
|
+
displayName: z.ZodString;
|
|
695
|
+
email: z.ZodString;
|
|
696
|
+
active: z.ZodBoolean;
|
|
697
|
+
admin: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
guest: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
url: z.ZodOptional<z.ZodString>;
|
|
700
|
+
}, z.core.$strict>;
|
|
701
|
+
/** Runtime validator for ListWorkflowStatesInput. */
|
|
702
|
+
declare const ListWorkflowStatesInputSchema: z.ZodObject<{
|
|
703
|
+
teamId: z.ZodString;
|
|
704
|
+
}, z.core.$strict>;
|
|
705
|
+
/** Runtime validator for WorkflowState. */
|
|
706
|
+
declare const WorkflowStateSchema: z.ZodObject<{
|
|
707
|
+
id: z.ZodString;
|
|
708
|
+
name: z.ZodString;
|
|
709
|
+
type: z.ZodString;
|
|
710
|
+
position: z.ZodNumber;
|
|
711
|
+
color: z.ZodOptional<z.ZodString>;
|
|
712
|
+
}, z.core.$strict>;
|
|
713
|
+
/** Runtime validator for ListWorkflowStatesOutput. */
|
|
714
|
+
declare const ListWorkflowStatesOutputSchema: z.ZodObject<{
|
|
715
|
+
teamId: z.ZodString;
|
|
716
|
+
states: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
717
|
+
id: z.ZodString;
|
|
718
|
+
name: z.ZodString;
|
|
719
|
+
type: z.ZodString;
|
|
720
|
+
position: z.ZodNumber;
|
|
721
|
+
color: z.ZodOptional<z.ZodString>;
|
|
722
|
+
}, z.core.$strict>>>;
|
|
723
|
+
}, z.core.$strict>;
|
|
724
|
+
|
|
725
|
+
/** Typed operations supplied by a client or mock. */
|
|
726
|
+
interface Operations {
|
|
727
|
+
/** Invoke searchIssues through this connection. */
|
|
728
|
+
searchIssues(): Query<SearchIssuesInput, SearchIssuesOutput>;
|
|
729
|
+
/** Invoke getIssue through this connection. */
|
|
730
|
+
getIssue(): Query<GetIssueInput, Issue>;
|
|
731
|
+
/** Invoke createIssue through this connection. */
|
|
732
|
+
createIssue(): Mutation<CreateIssueInput, CreateIssueOutput>;
|
|
733
|
+
/** Invoke updateIssue through this connection. */
|
|
734
|
+
updateIssue(): Mutation<UpdateIssueInput, UpdateIssueOutput>;
|
|
735
|
+
/** Invoke addComment through this connection. */
|
|
736
|
+
addComment(): Mutation<AddCommentInput, AddCommentOutput>;
|
|
737
|
+
/** Invoke findUserByEmail through this connection. */
|
|
738
|
+
findUserByEmail(): Query<FindUserByEmailInput, User>;
|
|
739
|
+
/** Invoke listWorkflowStates through this connection. */
|
|
740
|
+
listWorkflowStates(): Query<ListWorkflowStatesInput, ListWorkflowStatesOutput>;
|
|
741
|
+
}
|
|
742
|
+
/** Named connector connection kept outside Flow state. */
|
|
743
|
+
declare class Connection<BoundOperations = Operations> {
|
|
744
|
+
/** Stable provider and connection name. */
|
|
745
|
+
readonly reference: ConnectionRef;
|
|
746
|
+
/** Bound provider operations. */
|
|
747
|
+
readonly operations: BoundOperations;
|
|
748
|
+
/** Validate a reference and bind operations. */
|
|
749
|
+
constructor(reference: ConnectionRef, operations: BoundOperations);
|
|
750
|
+
}
|
|
751
|
+
/** Bind a client to a named connection. */
|
|
752
|
+
declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
|
|
753
|
+
/** Bind scripted operations to a named connection. */
|
|
754
|
+
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
755
|
+
|
|
756
|
+
export { WorkflowStateSchema as $, type AddCommentInput as A, type IssueSummary as B, Connection as C, IssueSummarySchema as D, ListWorkflowStatesInputSchema as E, type FindUserByEmailInput as F, type GetIssueInput as G, ListWorkflowStatesOutputSchema as H, type Issue as I, ProjectReferenceSchema as J, SearchIssuesInputSchema as K, type ListWorkflowStatesInput as L, SearchIssuesOutputSchema as M, TeamReferenceSchema as N, type Operations as O, type ProjectReference as P, UpdateIssueInputSchema as Q, UpdateIssueOutputSchema as R, type SearchIssuesInput as S, type TeamReference as T, type User as U, type UserReference as V, UserReferenceSchema as W, UserSchema as X, type WorkflowState as Y, type WorkflowStateReference as Z, WorkflowStateReferenceSchema as _, type AddCommentOutput as a, decodeCredentials as a0, decodeSharedCredentials as a1, newConnection as a2, newConnectionWithOperations as a3, type CreateIssueInput as b, type CreateIssueOutput as c, type ListWorkflowStatesOutput as d, type SearchIssuesOutput as e, type UpdateIssueInput as f, type UpdateIssueOutput as g, type CredentialSource as h, type Config as i, type Credentials as j, AddCommentInputSchema as k, AddCommentOutputSchema as l, ConfigSchema as m, CreateIssueInputSchema as n, CreateIssueOutputSchema as o, type CycleReference as p, CycleReferenceSchema as q, FindUserByEmailInputSchema as r, GetIssueInputSchema as s, type IssueLabel as t, IssueLabelSchema as u, type IssueReference as v, IssueReferenceSchema as w, IssueSchema as x, type IssueSearchFilter as y, IssueSearchFilterSchema as z };
|