@superdurable/connector-linear 0.1.0 → 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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `@superdurable/connector-linear` provides the seven Linear GraphQL operations declared in `connector.yaml` for Dex TypeScript Flows: `searchIssues`, `getIssue`, `createIssue`, `updateIssue`, `addComment`, `findUserByEmail`, and `listWorkflowStates`. The signed `issueEventReceived` webhook Trigger remains Go only.
4
4
 
5
- Install with `npm install @superdurable/connector-linear@0.1.0`. The package requires `@superdurable/connectors-sdk@0.5.0` and Node.js 22 or 24. Generated models, Step factories, mock outcomes, OAuth refresh declarations, and credential decoders are under `src/generated/`; edit the manifest or Go source and rerun `connectorctl generate` instead of editing those files.
5
+ Install with `npm install @superdurable/connector-linear@0.1.1`. The package requires `@superdurable/connectors-sdk@0.5.0` and Node.js 22 or 24. Generated models, Step factories, mock outcomes, OAuth refresh declarations, and credential decoders are under `src/generated/`; edit the manifest or Go source and rerun `connectorctl generate` instead of editing those files.
6
6
 
7
7
  ## Connection and example
8
8
 
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "connectorId": "linear",
3
- "releaseTag": "connectors/linear/go/v0.24.0",
3
+ "releaseTag": "connectors/linear/go/v0.24.1",
4
4
  "package": {
5
5
  "ecosystem": "npm",
6
6
  "name": "@superdurable/connector-linear",
7
- "version": "0.1.0"
7
+ "version": "0.1.1"
8
8
  },
9
9
  "factories": [
10
10
  {
11
11
  "name": "newSearchIssuesStep",
12
12
  "kind": "query",
13
13
  "operationId": "searchIssues",
14
+ "inputType": "SearchIssuesInput",
15
+ "description": "List one bounded page of issue summaries that match a typed filter, such as a team, workflow state types, an assignee email, labels, a title, or changes after a time, continuing with Linear's pagination cursor.",
14
16
  "fields": {
15
17
  "stepType": "stepType",
16
18
  "annotations": "annotations",
@@ -38,12 +40,142 @@
38
40
  "field": "defect",
39
41
  "optional": true
40
42
  }
41
- ]
43
+ ],
44
+ "inputSchema": {
45
+ "$defs": {
46
+ "IssueSearchFilter": {
47
+ "additionalProperties": false,
48
+ "description": "IssueSearchFilter selects issues; every set field must match, and an empty filter matches every issue the connection can see. Lists match any of their values.",
49
+ "properties": {
50
+ "assigneeEmail": {
51
+ "description": "AssigneeEmail keeps issues assigned to the user with this email, compared without case.",
52
+ "type": "string"
53
+ },
54
+ "assigneeId": {
55
+ "description": "AssigneeID keeps issues assigned to this user UUID.",
56
+ "type": "string"
57
+ },
58
+ "createdAfter": {
59
+ "description": "CreatedAfter keeps issues created strictly after this time.",
60
+ "format": "date-time",
61
+ "type": [
62
+ "string",
63
+ "null"
64
+ ]
65
+ },
66
+ "labelIds": {
67
+ "description": "LabelIDs keeps issues that carry at least one of these labels.",
68
+ "items": {
69
+ "type": "string"
70
+ },
71
+ "type": "array"
72
+ },
73
+ "labelNames": {
74
+ "description": "LabelNames keeps issues that carry a label with one of these exact names, such as Bug.",
75
+ "items": {
76
+ "type": "string"
77
+ },
78
+ "type": "array"
79
+ },
80
+ "projectId": {
81
+ "description": "ProjectID keeps issues of this project UUID.",
82
+ "type": "string"
83
+ },
84
+ "stateIds": {
85
+ "description": "StateIDs keeps issues in one of these workflow states.",
86
+ "items": {
87
+ "type": "string"
88
+ },
89
+ "type": "array"
90
+ },
91
+ "stateTypes": {
92
+ "description": "StateTypes keeps issues whose workflow state has one of these types, such as started.",
93
+ "items": {
94
+ "enum": [
95
+ "backlog",
96
+ "canceled",
97
+ "completed",
98
+ "duplicate",
99
+ "started",
100
+ "triage",
101
+ "unstarted"
102
+ ],
103
+ "type": "string"
104
+ },
105
+ "type": "array"
106
+ },
107
+ "teamId": {
108
+ "description": "TeamID limits the search to one team's UUID, such as the teamPicker unit's teamId.",
109
+ "type": "string"
110
+ },
111
+ "teamKey": {
112
+ "description": "TeamKey limits the search to the team with this key, such as ENG; set at most one of TeamID and TeamKey.",
113
+ "type": "string"
114
+ },
115
+ "title": {
116
+ "description": "Title keeps issues whose title is exactly this text.",
117
+ "type": "string"
118
+ },
119
+ "titleContains": {
120
+ "description": "TitleContains keeps issues whose title contains this text, compared without case.",
121
+ "type": "string"
122
+ },
123
+ "unassigned": {
124
+ "description": "IsUnassigned keeps only unassigned issues; it excludes AssigneeID and AssigneeEmail.",
125
+ "type": "boolean"
126
+ },
127
+ "updatedAfter": {
128
+ "description": "UpdatedAfter keeps issues changed strictly after this time; it is the changed-since watermark.",
129
+ "format": "date-time",
130
+ "type": [
131
+ "string",
132
+ "null"
133
+ ]
134
+ }
135
+ },
136
+ "type": "object"
137
+ }
138
+ },
139
+ "additionalProperties": false,
140
+ "description": "SearchIssuesInput requests one page. A later page repeats the same Filter, Order, and IncludesArchived with the previous page's NextCursor.",
141
+ "properties": {
142
+ "cursor": {
143
+ "description": "Cursor continues after a previous page's NextCursor; blank reads the first page.",
144
+ "type": "string"
145
+ },
146
+ "filter": {
147
+ "$ref": "#/$defs/IssueSearchFilter",
148
+ "description": "Filter selects the issues."
149
+ },
150
+ "includesArchived": {
151
+ "description": "IncludesArchived also returns archived issues.",
152
+ "type": "boolean"
153
+ },
154
+ "order": {
155
+ "description": "Order is createdAt or updatedAt; blank uses createdAt.",
156
+ "enum": [
157
+ "createdAt",
158
+ "updatedAt"
159
+ ],
160
+ "type": "string"
161
+ },
162
+ "pageSize": {
163
+ "description": "PageSize is 1 to MaxSearchPageSize; zero requests DefaultSearchPageSize.",
164
+ "type": "integer"
165
+ }
166
+ },
167
+ "required": [
168
+ "filter"
169
+ ],
170
+ "type": "object"
171
+ }
42
172
  },
43
173
  {
44
174
  "name": "newGetIssueStep",
45
175
  "kind": "query",
46
176
  "operationId": "getIssue",
177
+ "inputType": "GetIssueInput",
178
+ "description": "Read one issue by UUID or identifier, such as ENG-123, with its description, workflow state, team, assignee, labels, project, cycle, and timestamps.",
47
179
  "fields": {
48
180
  "stepType": "stepType",
49
181
  "annotations": "annotations",
@@ -76,12 +208,28 @@
76
208
  "field": "defect",
77
209
  "optional": true
78
210
  }
79
- ]
211
+ ],
212
+ "inputSchema": {
213
+ "additionalProperties": false,
214
+ "description": "GetIssueInput names the issue to read.",
215
+ "properties": {
216
+ "issueId": {
217
+ "description": "IssueID is the issue's UUID or its identifier, such as ENG-123. An identifier finds the issue only under its current team key; after a move to another team, use the UUID.",
218
+ "type": "string"
219
+ }
220
+ },
221
+ "required": [
222
+ "issueId"
223
+ ],
224
+ "type": "object"
225
+ }
80
226
  },
81
227
  {
82
228
  "name": "newCreateIssueStep",
83
229
  "kind": "mutation",
84
230
  "operationId": "createIssue",
231
+ "inputType": "CreateIssueInput",
232
+ "description": "Create one issue in a team with a title, Markdown description, workflow state, assignee, labels, priority, and due date; every attempt of the Step sends the same client-supplied issue UUID, so a repeated dispatch finds the first issue instead of creating another.",
85
233
  "fields": {
86
234
  "stepType": "stepType",
87
235
  "annotations": "annotations",
@@ -104,12 +252,68 @@
104
252
  "field": "defect",
105
253
  "optional": true
106
254
  }
107
- ]
255
+ ],
256
+ "inputSchema": {
257
+ "additionalProperties": false,
258
+ "description": "CreateIssueInput describes one new issue.",
259
+ "properties": {
260
+ "assigneeId": {
261
+ "description": "AssigneeID is the assignee's user UUID from findUserByEmail; blank leaves the issue unassigned.",
262
+ "type": "string"
263
+ },
264
+ "description": {
265
+ "description": "Description is optional Markdown of at most MaxMarkdownCharacters characters.",
266
+ "type": "string"
267
+ },
268
+ "dueDate": {
269
+ "description": "DueDate is an optional YYYY-MM-DD date.",
270
+ "type": "string"
271
+ },
272
+ "labelIds": {
273
+ "description": "LabelIDs are up to MaxLabelIDs label UUIDs of the team or workspace.",
274
+ "items": {
275
+ "type": "string"
276
+ },
277
+ "type": "array"
278
+ },
279
+ "parentId": {
280
+ "description": "ParentID makes the issue a sub-issue of this issue UUID or identifier, such as ENG-123.",
281
+ "type": "string"
282
+ },
283
+ "priority": {
284
+ "description": "Priority is 0 (none), 1 (urgent), 2 (high), 3 (medium), or 4 (low); nil leaves Linear's default.",
285
+ "type": "integer"
286
+ },
287
+ "projectId": {
288
+ "description": "ProjectID is an optional project UUID.",
289
+ "type": "string"
290
+ },
291
+ "stateId": {
292
+ "description": "StateID is a workflow state of the team from listWorkflowStates; blank uses the team's default state.",
293
+ "type": "string"
294
+ },
295
+ "teamId": {
296
+ "description": "TeamID is the UUID of the team that owns the issue, such as the teamPicker unit's teamId.",
297
+ "type": "string"
298
+ },
299
+ "title": {
300
+ "description": "Title is the issue title, 1 to MaxIssueTitleCharacters characters on one line.",
301
+ "type": "string"
302
+ }
303
+ },
304
+ "required": [
305
+ "teamId",
306
+ "title"
307
+ ],
308
+ "type": "object"
309
+ }
108
310
  },
109
311
  {
110
312
  "name": "newUpdateIssueStep",
111
313
  "kind": "mutation",
112
314
  "operationId": "updateIssue",
315
+ "inputType": "UpdateIssueInput",
316
+ "description": "Move one issue to a workflow state, assign or unassign it, add or remove labels, and set its priority, due date, or title with absolute values, so a repeated update leaves the issue unchanged.",
113
317
  "fields": {
114
318
  "stepType": "stepType",
115
319
  "annotations": "annotations",
@@ -142,12 +346,70 @@
142
346
  "field": "defect",
143
347
  "optional": true
144
348
  }
145
- ]
349
+ ],
350
+ "inputSchema": {
351
+ "additionalProperties": false,
352
+ "description": "UpdateIssueInput changes one issue. Every field is optional, but at least one change is required. Values are absolute and labels are added or removed as sets, so repeating the update changes nothing.",
353
+ "properties": {
354
+ "addedLabelIds": {
355
+ "description": "AddedLabelIDs adds these label UUIDs and keeps the issue's other labels.",
356
+ "items": {
357
+ "type": "string"
358
+ },
359
+ "type": "array"
360
+ },
361
+ "assigneeId": {
362
+ "description": "AssigneeID assigns the issue to this user UUID, from findUserByEmail.",
363
+ "type": "string"
364
+ },
365
+ "clearsDueDate": {
366
+ "description": "ClearsDueDate removes the due date; it excludes DueDate.",
367
+ "type": "boolean"
368
+ },
369
+ "dueDate": {
370
+ "description": "DueDate sets a YYYY-MM-DD due date; blank keeps it.",
371
+ "type": "string"
372
+ },
373
+ "issueId": {
374
+ "description": "IssueID is the issue's UUID or its identifier, such as ENG-123.",
375
+ "type": "string"
376
+ },
377
+ "priority": {
378
+ "description": "Priority sets 0 (none), 1 (urgent), 2 (high), 3 (medium), or 4 (low); nil keeps it.",
379
+ "type": "integer"
380
+ },
381
+ "removedLabelIds": {
382
+ "description": "RemovedLabelIDs removes these label UUIDs; it cannot repeat an added label.",
383
+ "items": {
384
+ "type": "string"
385
+ },
386
+ "type": "array"
387
+ },
388
+ "stateId": {
389
+ "description": "StateID moves the issue to this workflow state of its team, from listWorkflowStates.",
390
+ "type": "string"
391
+ },
392
+ "title": {
393
+ "description": "Title replaces the title with 1 to MaxIssueTitleCharacters characters on one line; blank keeps it.",
394
+ "type": "string"
395
+ },
396
+ "unassigns": {
397
+ "description": "Unassigns removes the assignee; it excludes AssigneeID.",
398
+ "type": "boolean"
399
+ }
400
+ },
401
+ "required": [
402
+ "issueId"
403
+ ],
404
+ "type": "object"
405
+ }
146
406
  },
147
407
  {
148
408
  "name": "newAddCommentStep",
149
409
  "kind": "mutation",
150
410
  "operationId": "addComment",
411
+ "inputType": "AddCommentInput",
412
+ "description": "Add one Markdown comment to an issue; every attempt of the Step sends the same client-supplied comment UUID, so a repeated dispatch finds the first comment instead of posting another.",
151
413
  "fields": {
152
414
  "stepType": "stepType",
153
415
  "annotations": "annotations",
@@ -175,12 +437,33 @@
175
437
  "field": "defect",
176
438
  "optional": true
177
439
  }
178
- ]
440
+ ],
441
+ "inputSchema": {
442
+ "additionalProperties": false,
443
+ "description": "AddCommentInput describes one comment.",
444
+ "properties": {
445
+ "body": {
446
+ "description": "Body is the comment's Markdown, 1 to MaxMarkdownCharacters characters.",
447
+ "type": "string"
448
+ },
449
+ "issueId": {
450
+ "description": "IssueID is the issue's UUID or its identifier, such as ENG-123.",
451
+ "type": "string"
452
+ }
453
+ },
454
+ "required": [
455
+ "body",
456
+ "issueId"
457
+ ],
458
+ "type": "object"
459
+ }
179
460
  },
180
461
  {
181
462
  "name": "newFindUserByEmailStep",
182
463
  "kind": "query",
183
464
  "operationId": "findUserByEmail",
465
+ "inputType": "FindUserByEmailInput",
466
+ "description": "Find the workspace user with an email address, compared without case, to resolve an assignee.",
184
467
  "fields": {
185
468
  "stepType": "stepType",
186
469
  "annotations": "annotations",
@@ -213,12 +496,32 @@
213
496
  "field": "defect",
214
497
  "optional": true
215
498
  }
216
- ]
499
+ ],
500
+ "inputSchema": {
501
+ "additionalProperties": false,
502
+ "description": "FindUserByEmailInput names the email address to resolve.",
503
+ "properties": {
504
+ "email": {
505
+ "description": "Email is the user's address, such as alice@example.com, compared without case.",
506
+ "type": "string"
507
+ },
508
+ "includesDisabled": {
509
+ "description": "IncludesDisabled also finds a suspended or deactivated user; false finds only active users.",
510
+ "type": "boolean"
511
+ }
512
+ },
513
+ "required": [
514
+ "email"
515
+ ],
516
+ "type": "object"
517
+ }
217
518
  },
218
519
  {
219
520
  "name": "newListWorkflowStatesStep",
220
521
  "kind": "query",
221
522
  "operationId": "listWorkflowStates",
523
+ "inputType": "ListWorkflowStatesInput",
524
+ "description": "List a team's workflow states, Linear's issue statuses, with their names and types such as backlog, unstarted, started, completed, and canceled, so a Flow can choose the state to move an issue to.",
222
525
  "fields": {
223
526
  "stepType": "stepType",
224
527
  "annotations": "annotations",
@@ -251,7 +554,21 @@
251
554
  "field": "defect",
252
555
  "optional": true
253
556
  }
254
- ]
557
+ ],
558
+ "inputSchema": {
559
+ "additionalProperties": false,
560
+ "description": "ListWorkflowStatesInput names the team whose workflow states to list.",
561
+ "properties": {
562
+ "teamId": {
563
+ "description": "TeamID is the team's UUID, such as the teamPicker unit's teamId.",
564
+ "type": "string"
565
+ }
566
+ },
567
+ "required": [
568
+ "teamId"
569
+ ],
570
+ "type": "object"
571
+ }
255
572
  }
256
573
  ]
257
574
  }
@@ -29,69 +29,83 @@ var ConfigSchema = z.object({
29
29
  "webhookMaxBodyBytes": z.number().int().optional(),
30
30
  "webhookSignatureToleranceMs": z.number().int().optional()
31
31
  });
32
+ var CredentialMaterialError = class extends TypeError {
33
+ constructor(message) {
34
+ super(message);
35
+ this.name = "CredentialMaterialError";
36
+ }
37
+ };
38
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
39
+ "project credential decoding failed",
40
+ "shared project credential decoding failed",
41
+ "project credential decoding failed: this connector version does not support shared credentials"
42
+ ]);
43
+ function isCredentialMaterialError(error) {
44
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
45
+ }
32
46
  function decodeCredentials(value) {
33
- if (!value || typeof value !== "object" || Array.isArray(value)) throw new TypeError("credential fields are invalid");
47
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
34
48
  const fields = value;
35
49
  const allowed = /* @__PURE__ */ new Set(["auth_method", "api_key", "access_token", "oauth_client_id", "oauth_client_secret", "refresh_token", "webhook_signing_secret"]);
36
- if (Object.keys(fields).some((key) => !allowed.has(key))) throw new TypeError("stored credential does not match the connector credential fields");
37
- if (fields["api_key"] != null && !(typeof fields["api_key"] === "string")) throw new TypeError("credential api_key has an invalid type");
38
- if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new TypeError("credential access_token has an invalid type");
39
- if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new TypeError("credential oauth_client_id has an invalid type");
40
- if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new TypeError("credential oauth_client_secret has an invalid type");
41
- if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new TypeError("credential refresh_token has an invalid type");
42
- if (fields["webhook_signing_secret"] != null && !(typeof fields["webhook_signing_secret"] === "string")) throw new TypeError("credential webhook_signing_secret has an invalid type");
50
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
51
+ if (fields["api_key"] != null && !(typeof fields["api_key"] === "string")) throw new CredentialMaterialError("credential api_key has an invalid type");
52
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
53
+ if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new CredentialMaterialError("credential oauth_client_id has an invalid type");
54
+ if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new CredentialMaterialError("credential oauth_client_secret has an invalid type");
55
+ if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new CredentialMaterialError("credential refresh_token has an invalid type");
56
+ if (fields["webhook_signing_secret"] != null && !(typeof fields["webhook_signing_secret"] === "string")) throw new CredentialMaterialError("credential webhook_signing_secret has an invalid type");
43
57
  const selectedMethod = fields["auth_method"] ?? "";
44
- if (typeof selectedMethod !== "string") throw new TypeError("credential auth_method is invalid");
58
+ if (typeof selectedMethod !== "string") throw new CredentialMaterialError("credential auth_method is invalid");
45
59
  const method = selectedMethod || "personal-api-key";
46
60
  const credentials = { authMethodId: method };
47
61
  if (method === "personal-api-key") {
48
- if (!fields["api_key"]) throw new TypeError("credential api_key is required");
62
+ if (!fields["api_key"]) throw new CredentialMaterialError("credential api_key is required");
49
63
  if (fields["api_key"]) credentials.apiKey = new SecretString(fields["api_key"]);
50
64
  credentials.webhookSigningSecret = new SecretString(fields["webhook_signing_secret"] ?? "");
51
65
  } else if (method === "linear-oauth") {
52
- if (!fields["oauth_client_id"]) throw new TypeError("credential oauth_client_id is required");
66
+ if (!fields["oauth_client_id"]) throw new CredentialMaterialError("credential oauth_client_id is required");
53
67
  if (fields["oauth_client_id"]) credentials.oauthClientId = fields["oauth_client_id"];
54
- if (!fields["oauth_client_secret"]) throw new TypeError("credential oauth_client_secret is required");
68
+ if (!fields["oauth_client_secret"]) throw new CredentialMaterialError("credential oauth_client_secret is required");
55
69
  if (fields["oauth_client_secret"]) credentials.oauthClientSecret = new SecretString(fields["oauth_client_secret"]);
56
- if (!fields["access_token"]) throw new TypeError("credential access_token is required");
70
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
57
71
  if (fields["access_token"]) credentials.accessToken = new SecretString(fields["access_token"]);
58
- if (!fields["refresh_token"]) throw new TypeError("credential refresh_token is required");
72
+ if (!fields["refresh_token"]) throw new CredentialMaterialError("credential refresh_token is required");
59
73
  if (fields["refresh_token"]) credentials.refreshToken = new SecretString(fields["refresh_token"]);
60
74
  credentials.webhookSigningSecret = new SecretString(fields["webhook_signing_secret"] ?? "");
61
75
  } else {
62
- throw new TypeError("credential auth_method is invalid");
76
+ throw new CredentialMaterialError("credential auth_method is invalid");
63
77
  }
64
78
  return credentials;
65
79
  }
66
80
  function decodeSharedCredentials(value) {
67
- if (!value || typeof value !== "object" || Array.isArray(value)) throw new TypeError("credential fields are invalid");
81
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
68
82
  const fields = value;
69
83
  const allowed = /* @__PURE__ */ new Set(["auth_method", "api_key", "access_token", "oauth_client_id", "oauth_client_secret", "refresh_token", "webhook_signing_secret"]);
70
- if (Object.keys(fields).some((key) => !allowed.has(key))) throw new TypeError("stored credential does not match the connector credential fields");
71
- if (fields["api_key"] != null && !(typeof fields["api_key"] === "string")) throw new TypeError("credential api_key has an invalid type");
72
- if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new TypeError("credential access_token has an invalid type");
73
- if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new TypeError("credential oauth_client_id has an invalid type");
74
- if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new TypeError("credential oauth_client_secret has an invalid type");
75
- if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new TypeError("credential refresh_token has an invalid type");
76
- if (fields["webhook_signing_secret"] != null && !(typeof fields["webhook_signing_secret"] === "string")) throw new TypeError("credential webhook_signing_secret has an invalid type");
84
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
85
+ if (fields["api_key"] != null && !(typeof fields["api_key"] === "string")) throw new CredentialMaterialError("credential api_key has an invalid type");
86
+ if (fields["access_token"] != null && !(typeof fields["access_token"] === "string")) throw new CredentialMaterialError("credential access_token has an invalid type");
87
+ if (fields["oauth_client_id"] != null && !(typeof fields["oauth_client_id"] === "string")) throw new CredentialMaterialError("credential oauth_client_id has an invalid type");
88
+ if (fields["oauth_client_secret"] != null && !(typeof fields["oauth_client_secret"] === "string")) throw new CredentialMaterialError("credential oauth_client_secret has an invalid type");
89
+ if (fields["refresh_token"] != null && !(typeof fields["refresh_token"] === "string")) throw new CredentialMaterialError("credential refresh_token has an invalid type");
90
+ if (fields["webhook_signing_secret"] != null && !(typeof fields["webhook_signing_secret"] === "string")) throw new CredentialMaterialError("credential webhook_signing_secret has an invalid type");
77
91
  const selectedMethod = fields["auth_method"] ?? "";
78
- if (typeof selectedMethod !== "string") throw new TypeError("credential auth_method is invalid");
92
+ if (typeof selectedMethod !== "string") throw new CredentialMaterialError("credential auth_method is invalid");
79
93
  const method = selectedMethod || "personal-api-key";
80
94
  const credentials = { authMethodId: method };
81
95
  if (method === "personal-api-key") {
82
- if (!fields["api_key"]) throw new TypeError("credential api_key is required");
96
+ if (!fields["api_key"]) throw new CredentialMaterialError("credential api_key is required");
83
97
  if (fields["api_key"]) credentials.apiKey = new SecretString(fields["api_key"]);
84
98
  credentials.webhookSigningSecret = new SecretString(fields["webhook_signing_secret"] ?? "");
85
99
  } else if (method === "linear-oauth") {
86
- if (!fields["oauth_client_id"]) throw new TypeError("credential oauth_client_id is required");
100
+ if (!fields["oauth_client_id"]) throw new CredentialMaterialError("credential oauth_client_id is required");
87
101
  if (fields["oauth_client_id"]) credentials.oauthClientId = fields["oauth_client_id"];
88
102
  if (fields["oauth_client_secret"]) credentials.oauthClientSecret = new SecretString(fields["oauth_client_secret"]);
89
- if (!fields["access_token"]) throw new TypeError("credential access_token is required");
103
+ if (!fields["access_token"]) throw new CredentialMaterialError("credential access_token is required");
90
104
  if (fields["access_token"]) credentials.accessToken = new SecretString(fields["access_token"]);
91
105
  if (fields["refresh_token"]) credentials.refreshToken = new SecretString(fields["refresh_token"]);
92
106
  credentials.webhookSigningSecret = new SecretString(fields["webhook_signing_secret"] ?? "");
93
107
  } else {
94
- throw new TypeError("credential auth_method is invalid");
108
+ throw new CredentialMaterialError("credential auth_method is invalid");
95
109
  }
96
110
  return credentials;
97
111
  }
@@ -363,7 +377,7 @@ var UpdateIssueDefinition = {
363
377
  { id: "updated", description: "Linear applied the change and returned the issue." },
364
378
  { id: "notFound", description: "The issue does not exist, was deleted, or the connection cannot see its team; nothing was changed.", optional: true },
365
379
  { id: "providerRejected", description: "Linear conclusively rejected the change, such as a workflow state or label of another team, an unknown assignee, or missing permission.", optional: true },
366
- { id: "invalidResponse", description: "Linear returned an invalid or oversized issue, so the change may have been applied; repeating the Step is safe.", optional: true },
380
+ { id: "invalidResponse", description: "Kept for compatibility and no longer selected: an invalid or oversized issue after the change now retries, because repeating the absolute update is safe.", optional: true },
367
381
  { id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
368
382
  ],
369
383
  stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
@@ -475,6 +489,8 @@ function newProjectCredentialProvider(project, connectionName, decode, encode, d
475
489
 
476
490
  export {
477
491
  ConfigSchema,
492
+ CredentialMaterialError,
493
+ isCredentialMaterialError,
478
494
  decodeCredentials,
479
495
  decodeSharedCredentials,
480
496
  IssueSearchFilterSchema,
@@ -33,6 +33,12 @@ interface Credentials {
33
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
34
  webhookSigningSecret?: SecretString;
35
35
  }
36
+ /** Stored credential material that fails the connector credential checks, so no retry can succeed. */
37
+ declare class CredentialMaterialError extends TypeError {
38
+ constructor(message: string);
39
+ }
40
+ /** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
41
+ declare function isCredentialMaterialError(error: unknown): boolean;
36
42
  /** Decode private credential fields for the selected authorization method. */
37
43
  declare function decodeCredentials(value: unknown): Credentials;
38
44
  /** Decode shared credential fields for the selected authorization method. */
@@ -753,4 +759,4 @@ declare function newConnection(client: Operations, reference: ConnectionRef): Co
753
759
  /** Bind scripted operations to a named connection. */
754
760
  declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
755
761
 
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 };
762
+ export { WorkflowStateReferenceSchema as $, type AddCommentInput as A, IssueSearchFilterSchema as B, Connection as C, type IssueSummary as D, IssueSummarySchema as E, type FindUserByEmailInput as F, type GetIssueInput as G, ListWorkflowStatesInputSchema as H, type Issue as I, ListWorkflowStatesOutputSchema as J, ProjectReferenceSchema as K, type ListWorkflowStatesInput as L, SearchIssuesInputSchema as M, SearchIssuesOutputSchema as N, type Operations as O, type ProjectReference as P, TeamReferenceSchema as Q, UpdateIssueInputSchema as R, type SearchIssuesInput as S, type TeamReference as T, type User as U, UpdateIssueOutputSchema as V, type UserReference as W, UserReferenceSchema as X, UserSchema as Y, type WorkflowState as Z, type WorkflowStateReference as _, type AddCommentOutput as a, WorkflowStateSchema as a0, decodeCredentials as a1, decodeSharedCredentials as a2, isCredentialMaterialError as a3, newConnection as a4, newConnectionWithOperations as a5, 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, CredentialMaterialError as p, type CycleReference as q, CycleReferenceSchema as r, FindUserByEmailInputSchema as s, GetIssueInputSchema as t, type IssueLabel as u, IssueLabelSchema as v, type IssueReference as w, IssueReferenceSchema as x, IssueSchema as y, type IssueSearchFilter as z };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AddCommentInput, a as AddCommentOutput, C as Connection, b as CreateIssueInput, c as CreateIssueOutput, F as FindUserByEmailInput, U as User, G as GetIssueInput, I as Issue, L as ListWorkflowStatesInput, d as ListWorkflowStatesOutput, S as SearchIssuesInput, e as SearchIssuesOutput, f as UpdateIssueInput, g as UpdateIssueOutput, h as CredentialSource, i as Config, j as Credentials, O as Operations } from './connection-CCTEpuH6.js';
2
- export { k as AddCommentInputSchema, l as AddCommentOutputSchema, m as ConfigSchema, n as CreateIssueInputSchema, o as CreateIssueOutputSchema, p as CycleReference, q as CycleReferenceSchema, r as FindUserByEmailInputSchema, s as GetIssueInputSchema, t as IssueLabel, u as IssueLabelSchema, v as IssueReference, w as IssueReferenceSchema, x as IssueSchema, y as IssueSearchFilter, z as IssueSearchFilterSchema, B as IssueSummary, D as IssueSummarySchema, E as ListWorkflowStatesInputSchema, H as ListWorkflowStatesOutputSchema, P as ProjectReference, J as ProjectReferenceSchema, K as SearchIssuesInputSchema, M as SearchIssuesOutputSchema, T as TeamReference, N as TeamReferenceSchema, Q as UpdateIssueInputSchema, R as UpdateIssueOutputSchema, V as UserReference, W as UserReferenceSchema, X as UserSchema, Y as WorkflowState, Z as WorkflowStateReference, _ as WorkflowStateReferenceSchema, $ as WorkflowStateSchema, a0 as decodeCredentials, a1 as decodeSharedCredentials, a2 as newConnection, a3 as newConnectionWithOperations } from './connection-CCTEpuH6.js';
1
+ import { A as AddCommentInput, a as AddCommentOutput, C as Connection, b as CreateIssueInput, c as CreateIssueOutput, F as FindUserByEmailInput, U as User, G as GetIssueInput, I as Issue, L as ListWorkflowStatesInput, d as ListWorkflowStatesOutput, S as SearchIssuesInput, e as SearchIssuesOutput, f as UpdateIssueInput, g as UpdateIssueOutput, h as CredentialSource, i as Config, j as Credentials, O as Operations } from './connection-DOHnQID8.js';
2
+ export { k as AddCommentInputSchema, l as AddCommentOutputSchema, m as ConfigSchema, n as CreateIssueInputSchema, o as CreateIssueOutputSchema, p as CredentialMaterialError, q as CycleReference, r as CycleReferenceSchema, s as FindUserByEmailInputSchema, t as GetIssueInputSchema, u as IssueLabel, v as IssueLabelSchema, w as IssueReference, x as IssueReferenceSchema, y as IssueSchema, z as IssueSearchFilter, B as IssueSearchFilterSchema, D as IssueSummary, E as IssueSummarySchema, H as ListWorkflowStatesInputSchema, J as ListWorkflowStatesOutputSchema, P as ProjectReference, K as ProjectReferenceSchema, M as SearchIssuesInputSchema, N as SearchIssuesOutputSchema, T as TeamReference, Q as TeamReferenceSchema, R as UpdateIssueInputSchema, V as UpdateIssueOutputSchema, W as UserReference, X as UserReferenceSchema, Y as UserSchema, Z as WorkflowState, _ as WorkflowStateReference, $ as WorkflowStateReferenceSchema, a0 as WorkflowStateSchema, a1 as decodeCredentials, a2 as decodeSharedCredentials, a3 as isCredentialMaterialError, a4 as newConnection, a5 as newConnectionWithOperations } from './connection-DOHnQID8.js';
3
3
  import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
4
4
  import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, Failure, ReceiptDraft } from '@superdurable/connectors-sdk';
5
5
  import { StepTarget } from '@superdurable/dex';
@@ -94,7 +94,7 @@ declare const UpdateIssueBranchUpdated: "updated";
94
94
  declare const UpdateIssueBranchNotFound: "notFound";
95
95
  /** Linear conclusively rejected the change, such as a workflow state or label of another team, an unknown assignee, or missing permission. */
96
96
  declare const UpdateIssueBranchProviderRejected: "providerRejected";
97
- /** Linear returned an invalid or oversized issue, so the change may have been applied; repeating the Step is safe. */
97
+ /** Kept for compatibility and no longer selected: an invalid or oversized issue after the change now retries, because repeating the absolute update is safe. */
98
98
  declare const UpdateIssueBranchInvalidResponse: "invalidResponse";
99
99
  /** Local input, connection configuration, or connector definition is invalid. */
100
100
  declare const UpdateIssueBranchDefect: "defect";
@@ -253,7 +253,7 @@ interface UpdateIssueStepConfig<StepInput, OperationInput = UpdateIssueInput, Op
253
253
  notFound?: StepTarget<MutationResult<OperationOutput>>;
254
254
  /** Linear conclusively rejected the change, such as a workflow state or label of another team, an unknown assignee, or missing permission. */
255
255
  providerRejected?: StepTarget<MutationResult<OperationOutput>>;
256
- /** Linear returned an invalid or oversized issue, so the change may have been applied; repeating the Step is safe. */
256
+ /** Kept for compatibility and no longer selected: an invalid or oversized issue after the change now retries, because repeating the absolute update is safe. */
257
257
  invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
258
258
  /** Local input, connection configuration, or connector definition is invalid. */
259
259
  defect?: StepTarget<MutationResult<OperationOutput>>;
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ import {
19
19
  CreateIssueInputSchema,
20
20
  CreateIssueMetadata,
21
21
  CreateIssueOutputSchema,
22
+ CredentialMaterialError,
22
23
  CycleReferenceSchema,
23
24
  FindUserByEmailBranch,
24
25
  FindUserByEmailBranchDefect,
@@ -81,11 +82,12 @@ import {
81
82
  WorkflowStateSchema,
82
83
  decodeCredentials,
83
84
  decodeSharedCredentials,
85
+ isCredentialMaterialError,
84
86
  newConnection,
85
87
  newConnectionWithOperations,
86
88
  newProjectConnection,
87
89
  newProjectCredentialProvider
88
- } from "./chunk-E64K42A5.js";
90
+ } from "./chunk-SYZELIEF.js";
89
91
 
90
92
  // src/generated/steps.ts
91
93
  import { goToBranch, newMutationStep, newQueryStep } from "@superdurable/connectors-sdk";
@@ -167,7 +169,7 @@ function newListWorkflowStatesStep(configuration) {
167
169
  import { BodyTooLargeError, isHeaderSafeCredential, parseRetryAfter, sendProviderRequest, validateBaseURL } from "@superdurable/connectors-sdk/providerhttp";
168
170
  import { ManifestCredentialRefreshDriver } from "@superdurable/connectors-sdk/oauthtoken";
169
171
  import { ReauthorizationRequiredError, resolveCredential, resolveCredentialAfterRejection } from "@superdurable/connectors-sdk";
170
- import { RefreshFailedError } from "@superdurable/connectors-sdk/projectconfig";
172
+ import { ConnectionNotSelectedError, CredentialBrokerRejectedError, ObjectNotFoundError, RefreshFailedError } from "@superdurable/connectors-sdk/projectconfig";
171
173
 
172
174
  // src/generated/refresh.ts
173
175
  var Authorization = {
@@ -239,7 +241,8 @@ var Authorization = {
239
241
  "invalid_grant",
240
242
  "invalid_client",
241
243
  "unauthorized_client"
242
- ]
244
+ ],
245
+ "tokenExchangeTimeout": "12s"
243
246
  },
244
247
  "scopes": [
245
248
  "write"
@@ -585,8 +588,8 @@ function writeExchange(exchange, output, receipt) {
585
588
  return newMutationBranch(exchange.disposition === "defect" ? "defect" : "providerRejected", output, receipt, exchange.failure);
586
589
  }
587
590
  function updateExchange(exchange, output, receipt) {
588
- if (exchange.disposition === "retry") return newMutationRetry(exchange.failure, exchange.retryAfterMs);
589
- return newMutationBranch(exchange.disposition === "invalid" ? "invalidResponse" : exchange.disposition === "defect" ? "defect" : "providerRejected", output, receipt, exchange.failure);
591
+ if (exchange.disposition === "retry" || exchange.disposition === "invalid") return newMutationRetry(exchange.failure, exchange.retryAfterMs);
592
+ return newMutationBranch(exchange.disposition === "defect" ? "defect" : "providerRejected", output, receipt, exchange.failure);
590
593
  }
591
594
  function readBackWorthy(exchange) {
592
595
  return exchange.disposition === "invalid" || exchange.disposition === "retry" && ["AVAILABILITY", "TRANSPORT"].includes(exchange.failure?.kind ?? "") || exchange.disposition === "rejected" && ["VALIDATION", "PROVIDER_REJECTION", "QUOTA_EXHAUSTED"].includes(exchange.failure?.kind ?? "");
@@ -971,16 +974,23 @@ var LinearClient = class {
971
974
  }
972
975
  /** Resolve credentials once for an operation and classify host failures. */
973
976
  async open(call, operation) {
977
+ const unusable = { failed: this.failed(operation, "defect", "AUTHENTICATION", "Linear connection credentials are unavailable or unusable") };
978
+ let credentials;
974
979
  try {
975
- const credentials = await resolveCredential(this.credentials, call, this.refreshDriver, call.context.cancellationSignal);
976
- const token = credentials.authMethodId === "linear-oauth" ? credentials.accessToken?.reveal() : credentials.apiKey?.reveal();
977
- if (!["linear-oauth", "personal-api-key"].includes(credentials.authMethodId ?? "") || !token || !isHeaderSafeCredential(token)) throw new TypeError("unusable Linear credential");
978
- return { credentials };
980
+ credentials = await resolveCredential(this.credentials, call, this.refreshDriver, call.context.cancellationSignal);
979
981
  } catch (error) {
980
982
  if (error instanceof ReauthorizationRequiredError) return { failed: this.failed(operation, "rejected", "AUTHENTICATION", "Linear authorization must be renewed in Dex Web Connections") };
981
983
  if (error instanceof RefreshFailedError) return { failed: this.failed(operation, "retry", "AVAILABILITY", "Linear OAuth token refresh is temporarily unavailable") };
982
- return { failed: this.failed(operation, "defect", "AUTHENTICATION", "Linear connection credentials are unavailable or unusable") };
984
+ if (error instanceof ConnectionNotSelectedError || error instanceof CredentialBrokerRejectedError || error instanceof ObjectNotFoundError || isCredentialMaterialError(error)) return unusable;
985
+ return { failed: this.failed(operation, "retry", "AVAILABILITY", "Linear connection credentials could not be read, so nothing was sent") };
986
+ }
987
+ let token;
988
+ try {
989
+ token = credentials.authMethodId === "linear-oauth" ? credentials.accessToken?.reveal() : credentials.apiKey?.reveal();
990
+ } catch {
983
991
  }
992
+ if (!["linear-oauth", "personal-api-key"].includes(credentials?.authMethodId ?? "") || !token || !isHeaderSafeCredential(token)) return unusable;
993
+ return { credentials };
984
994
  }
985
995
  /** Send one named GraphQL request, then refresh and resend a rejected OAuth token once. */
986
996
  async exchange(call, operation, credentials, operationName, query, variables) {
@@ -1059,6 +1069,7 @@ function header(headers, name) {
1059
1069
  const value = headers[name] ?? headers[name.toLowerCase()] ?? headers[name.replace(/(^|-)([a-z])/g, (_, prefix, letter) => prefix + letter.toUpperCase())];
1060
1070
  return Array.isArray(value) ? value[0] ?? "" : value ?? "";
1061
1071
  }
1072
+ var definiteRefusalStatuses = /* @__PURE__ */ new Set([400, 401, 403, 404, 411, 413, 414, 415, 422]);
1062
1073
  function classify(operation, status, summary, retryAfterMs, requestId) {
1063
1074
  const code = summary.code ?? "", errorType = summary.errorType ?? "";
1064
1075
  let disposition = "rejected";
@@ -1106,9 +1117,10 @@ function classify(operation, status, summary, retryAfterMs, requestId) {
1106
1117
  disposition = "defect";
1107
1118
  kind = "PROTOCOL";
1108
1119
  verb = "rejected the connector's GraphQL request";
1109
- } else if (status >= 300 && status < 400) {
1110
- kind = "PROTOCOL";
1111
- verb = "redirected the request";
1120
+ } else if (!definiteRefusalStatuses.has(status)) {
1121
+ disposition = "retry";
1122
+ kind = "AVAILABILITY";
1123
+ verb = "answered with an unexpected status";
1112
1124
  }
1113
1125
  const suffix = [code, errorType].filter(Boolean).join("; ");
1114
1126
  const failure2 = { kind, provider: "linear", operation, message: `Linear ${verb} (HTTP ${status})${suffix ? ` [${suffix}]` : ""}` };
@@ -1180,6 +1192,7 @@ export {
1180
1192
  CreateIssueMetadata,
1181
1193
  CreateIssueOperation,
1182
1194
  CreateIssueOutputSchema,
1195
+ CredentialMaterialError,
1183
1196
  CycleReferenceSchema,
1184
1197
  FindUserByEmailBranch,
1185
1198
  FindUserByEmailBranchDefect,
@@ -1248,6 +1261,7 @@ export {
1248
1261
  WorkflowStateSchema,
1249
1262
  decodeCredentials,
1250
1263
  decodeSharedCredentials,
1264
+ isCredentialMaterialError,
1251
1265
  newAddCommentStep,
1252
1266
  newConnection,
1253
1267
  newConnectionWithOperations,
package/dist/mock.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { MockQuery, MockMutation, Case } from '@superdurable/connectors-sdk/connectormock';
2
2
  import { Failure } from '@superdurable/connectors-sdk';
3
- import { O as Operations, C as Connection, S as SearchIssuesInput, e as SearchIssuesOutput, G as GetIssueInput, I as Issue, b as CreateIssueInput, c as CreateIssueOutput, f as UpdateIssueInput, g as UpdateIssueOutput, A as AddCommentInput, a as AddCommentOutput, F as FindUserByEmailInput, U as User, L as ListWorkflowStatesInput, d as ListWorkflowStatesOutput, p as CycleReference, t as IssueLabel, v as IssueReference, y as IssueSearchFilter, B as IssueSummary, P as ProjectReference, T as TeamReference, V as UserReference, Y as WorkflowState, Z as WorkflowStateReference } from './connection-CCTEpuH6.js';
3
+ import { O as Operations, C as Connection, S as SearchIssuesInput, e as SearchIssuesOutput, G as GetIssueInput, I as Issue, b as CreateIssueInput, c as CreateIssueOutput, f as UpdateIssueInput, g as UpdateIssueOutput, A as AddCommentInput, a as AddCommentOutput, F as FindUserByEmailInput, U as User, L as ListWorkflowStatesInput, d as ListWorkflowStatesOutput, q as CycleReference, u as IssueLabel, w as IssueReference, z as IssueSearchFilter, D as IssueSummary, P as ProjectReference, T as TeamReference, W as UserReference, Z as WorkflowState, _ as WorkflowStateReference } from './connection-DOHnQID8.js';
4
4
  import 'zod';
5
5
 
6
6
  /** Go zero value for IssueSearchFilter in scripted cases. */
package/dist/mock.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  WorkflowStateReferenceSchema,
34
34
  WorkflowStateSchema,
35
35
  newConnectionWithOperations
36
- } from "./chunk-E64K42A5.js";
36
+ } from "./chunk-SYZELIEF.js";
37
37
 
38
38
  // src/generated/mock.ts
39
39
  import { branchCase, retryCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdurable/connector-linear",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Linear issue operations for Dex Flows",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,8 @@
25
25
  "./mock": {
26
26
  "types": "./dist/mock.d.ts",
27
27
  "import": "./dist/mock.js"
28
- }
28
+ },
29
+ "./dex-connector.json": "./dex-connector.json"
29
30
  },
30
31
  "files": [
31
32
  "dist",