@gitkraken/core-gitlens 0.5.115 → 0.6.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/dist/git/models/issue.d.ts +14 -1
  3. package/dist/git/models/issue.d.ts.map +1 -1
  4. package/dist/git/models/issue.js +5 -1
  5. package/dist/git/models/issue.js.map +1 -1
  6. package/dist/git/models/pullRequest.d.ts +8 -2
  7. package/dist/git/models/pullRequest.d.ts.map +1 -1
  8. package/dist/git/remotes/azure-devops.d.ts +11 -1
  9. package/dist/git/remotes/azure-devops.d.ts.map +1 -1
  10. package/dist/git/remotes/azure-devops.js +47 -12
  11. package/dist/git/remotes/azure-devops.js.map +1 -1
  12. package/dist/git/utils/issue.utils.d.ts.map +1 -1
  13. package/dist/git/utils/issue.utils.js +9 -0
  14. package/dist/git/utils/issue.utils.js.map +1 -1
  15. package/dist/plus/git-github/api/github.d.ts +3 -2
  16. package/dist/plus/git-github/api/github.d.ts.map +1 -1
  17. package/dist/plus/git-github/api/github.js.map +1 -1
  18. package/dist/plus/integrations/manager.d.ts +43 -6
  19. package/dist/plus/integrations/manager.d.ts.map +1 -1
  20. package/dist/plus/integrations/providers/azure/azure.d.ts +13 -0
  21. package/dist/plus/integrations/providers/azure/azure.d.ts.map +1 -1
  22. package/dist/plus/integrations/providers/azure/azure.js +79 -16
  23. package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
  24. package/dist/plus/integrations/providers/azure/models.d.ts +37 -10
  25. package/dist/plus/integrations/providers/azure/models.d.ts.map +1 -1
  26. package/dist/plus/integrations/providers/azure/models.js +118 -52
  27. package/dist/plus/integrations/providers/azure/models.js.map +1 -1
  28. package/dist/plus/integrations/providers/azureDevOps.d.ts +1 -0
  29. package/dist/plus/integrations/providers/azureDevOps.d.ts.map +1 -1
  30. package/dist/plus/integrations/providers/azureDevOps.js +19 -7
  31. package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
  32. package/dist/plus/integrations/providers/models.d.ts.map +1 -1
  33. package/dist/plus/integrations/providers/models.js +15 -4
  34. package/dist/plus/integrations/providers/models.js.map +1 -1
  35. package/dist/plus/integrations/reads/broaden.d.ts.map +1 -1
  36. package/dist/plus/integrations/reads/broaden.js +26 -14
  37. package/dist/plus/integrations/reads/broaden.js.map +1 -1
  38. package/dist/plus/integrations/reads/counts.d.ts.map +1 -1
  39. package/dist/plus/integrations/reads/counts.js +39 -15
  40. package/dist/plus/integrations/reads/counts.js.map +1 -1
  41. package/dist/plus/integrations/reads/filters.d.ts +33 -11
  42. package/dist/plus/integrations/reads/filters.d.ts.map +1 -1
  43. package/dist/plus/integrations/reads/filters.js +114 -25
  44. package/dist/plus/integrations/reads/filters.js.map +1 -1
  45. package/dist/plus/integrations/reads/resolveRepository.d.ts.map +1 -1
  46. package/dist/plus/integrations/reads/resolveRepository.js +2 -0
  47. package/dist/plus/integrations/reads/resolveRepository.js.map +1 -1
  48. package/dist/plus/integrations/reads/searchIssues.d.ts +1 -5
  49. package/dist/plus/integrations/reads/searchIssues.d.ts.map +1 -1
  50. package/dist/plus/integrations/reads/searchIssues.js +12 -6
  51. package/dist/plus/integrations/reads/searchIssues.js.map +1 -1
  52. package/dist/plus/integrations/reads/searchPullRequests.d.ts +1 -0
  53. package/dist/plus/integrations/reads/searchPullRequests.d.ts.map +1 -1
  54. package/dist/plus/integrations/reads/searchPullRequests.js +8 -3
  55. package/dist/plus/integrations/reads/searchPullRequests.js.map +1 -1
  56. package/dist/plus/integrations/reads/warnings.d.ts +16 -0
  57. package/dist/plus/integrations/reads/warnings.d.ts.map +1 -1
  58. package/dist/plus/integrations/reads/warnings.js +18 -0
  59. package/dist/plus/integrations/reads/warnings.js.map +1 -1
  60. package/docs/integrations.md +59 -2
  61. package/docs/kepler-read-api-parity.md +15 -12
  62. package/package.json +1 -1
  63. package/src/git/models/issue.ts +15 -0
  64. package/src/git/models/pullRequest.ts +6 -2
  65. package/src/git/remotes/azure-devops.ts +68 -14
  66. package/src/git/utils/issue.utils.ts +10 -0
  67. package/src/plus/git-github/api/github.ts +3 -2
  68. package/src/plus/integrations/manager.ts +43 -6
  69. package/src/plus/integrations/providers/azure/azure.ts +147 -16
  70. package/src/plus/integrations/providers/azure/models.ts +165 -63
  71. package/src/plus/integrations/providers/azureDevOps.ts +22 -13
  72. package/src/plus/integrations/providers/models.ts +22 -5
  73. package/src/plus/integrations/reads/broaden.ts +35 -16
  74. package/src/plus/integrations/reads/counts.ts +62 -15
  75. package/src/plus/integrations/reads/filters.ts +131 -29
  76. package/src/plus/integrations/reads/resolveRepository.ts +3 -0
  77. package/src/plus/integrations/reads/searchIssues.ts +23 -13
  78. package/src/plus/integrations/reads/searchPullRequests.ts +16 -2
  79. package/src/plus/integrations/reads/warnings.ts +19 -0
@@ -1 +1 @@
1
- {"version":3,"file":"searchPullRequests.js","sourceRoot":"","sources":["../../../../src/plus/integrations/reads/searchPullRequests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAI5E,OAAO,EACN,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,GAC7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EACN,6BAA6B,EAC7B,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,yBAAyB,EACzB,YAAY,EACZ,iCAAiC,EACjC,iBAAiB,EACjB,2CAA2C,GAC3C,MAAM,eAAe,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC3C,GAAwB,EACxB,OAaC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAA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cAAc,EAAE,OAAO,CAAC,MAAM;oBAC9B,eAAe,EAAE,KAAK;iBACtB,CAAC;YACJ,YAAY,EAAE,KAAK,CAAC,MAAM;YAC1B,SAAS,EAAE,SAAS,IAAI,SAAS;SACjC;QACD,OAAO,EAAE,YAAY,CAAC,OAAO;QAC7B,MAAM,EAAE,YAAY,CAAC,MAAM;QAC3B,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,SAAS;KAC7C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"searchPullRequests.js","sourceRoot":"","sources":["../../../../src/plus/integrations/reads/searchPullRequests.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAI5E,OAAO,EACN,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,GAC7B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,gCAAgC,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EACN,6BAA6B,EAC7B,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,GACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,yBAAyB,EACzB,YAAY,EACZ,iCAAiC,EACjC,iBAAiB,EACjB,2CAA2C,EAC3C,0BAA0B,GAC1B,MAAM,eAAe,CAAC;AAEvB;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC3C,GAAwB,EACxB,OAcC;IAED,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,CAAC,OAAwB,EAAE,EAAE,CAAC,WAAW,CAAmB,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CAAC;IAEhG,IAAI,yBAAyB,CAAC,O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EAAE,IAAI;oBACnB,cAAc,EAAE,OAAO,CAAC,MAAM;oBAC9B,eAAe,EAAE,KAAK;iBACtB,CAAC;YACJ,YAAY,EAAE,KAAK,CAAC,MAAM;YAC1B,SAAS,EAAE,SAAS,IAAI,SAAS;SACjC;QACD,OAAO,EAAE,YAAY,CAAC,OAAO;QAC7B,MAAM,EAAE,YAAY,CAAC,MAAM;QAC3B,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,SAAS;KAC7C,CAAC;AACH,CAAC"}
@@ -71,6 +71,22 @@ export declare function unsupportedAccountWideIssueFiltersWarning(id: Integratio
71
71
  export declare function unsupportedAccountWidePullRequestFiltersWarning(id: IntegrationIds, domain: string | undefined, connectionId: string | undefined, filters: PullRequestFilter[]): ProviderWarning;
72
72
  /** Warning for a repo-scoped PR read whose requested filters the provider supports none of. */
73
73
  export declare function unsupportedFiltersWarning(id: IntegrationIds, domain: string | undefined, connectionId: string | undefined): ProviderWarning;
74
+ /**
75
+ * The one sentence every `unusable-scope` refusal uses — the five surfaces that validate a search scope (both
76
+ * searches, both count probes, and issue broadening) differ only in the noun and in whether they name a count
77
+ * key, so the reason a scope is unusable is written once. `prefix` is what the count probes put in front of it
78
+ * to name their key.
79
+ *
80
+ * NAMES the offending values, because which failure mode applied is not deducible from the value: a quote makes
81
+ * `git"kraken` a request for the real and different org `gitkraken`, a space makes `my org` a search of `my`
82
+ * filtered by the text `org`, and a value of only quotes or whitespace leaves no scope at all. The caller is the
83
+ * only layer that knows which scope it meant.
84
+ *
85
+ * Says how to fix it rather than what was stripped: a consumer cannot mirror this rule (unlike free-text
86
+ * sanitizing, whose rules are published for exactly that), so "pass the scope as the provider names it" is the
87
+ * actionable half.
88
+ */
89
+ export declare function unusableSearchScopeMessage(noun: string, scopes: readonly string[], prefix?: string): string;
74
90
  /** Warning for a filtered pull-request search the provider cannot run as requested. */
75
91
  export declare function unsupportedPullRequestSearchCriteriaWarning(id: IntegrationIds, domain: string | undefined, connectionId: string | undefined, rejection: PullRequestSearchCriteriaRejection): ProviderWarning;
76
92
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../../../../src/plus/integrations/reads/warnings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACX,WAAW,EAEX,YAAY,EACZ,iBAAiB,EAEjB,kBAAkB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAmC,MAAM,eAAe,CAAC;AACtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AACrG,OAAO,KAAK,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAEzF;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC3B,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,EAAE,MAAM,GACb,eAAe,CASjB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,YAAY,CAAC,EAAE,MAAM,GACnB,eAAe,CAYjB;AAED,6GAA6G;AAC7G,wBAAgB,yBAAyB,CACxC,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,EAAE,MAAM,GACb,eAAe,CAOjB;AAED,gHAAgH;AAChH,wBAAgB,8BAA8B,CAC7C,EAAE,EAAE,cAAc,EAClB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,OAAO,EAAE,MAAM,GACb,eAAe,CAOjB;AAED,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,aAAa,GAAG,WA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GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,IAAI,EAAE,kBAAkB,GACtB,eAAe,GAAG,SAAS,CAuB7B;AAED,uHAAuH;AACvH,wBAAgB,wBAAwB,CACvC,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,GAC9B,eAAe,CAOjB"}
@@ -146,6 +146,24 @@ export function unsupportedAccountWidePullRequestFiltersWarning(id, domain, conn
146
146
  export function unsupportedFiltersWarning(id, domain, connectionId) {
147
147
  return otherWarning(id, domain, connectionId, `The requested pull request filters are not supported by '${id}'; skipped to avoid returning unfiltered results.`);
148
148
  }
149
+ /**
150
+ * The one sentence every `unusable-scope` refusal uses — the five surfaces that validate a search scope (both
151
+ * searches, both count probes, and issue broadening) differ only in the noun and in whether they name a count
152
+ * key, so the reason a scope is unusable is written once. `prefix` is what the count probes put in front of it
153
+ * to name their key.
154
+ *
155
+ * NAMES the offending values, because which failure mode applied is not deducible from the value: a quote makes
156
+ * `git"kraken` a request for the real and different org `gitkraken`, a space makes `my org` a search of `my`
157
+ * filtered by the text `org`, and a value of only quotes or whitespace leaves no scope at all. The caller is the
158
+ * only layer that knows which scope it meant.
159
+ *
160
+ * Says how to fix it rather than what was stripped: a consumer cannot mirror this rule (unlike free-text
161
+ * sanitizing, whose rules are published for exactly that), so "pass the scope as the provider names it" is the
162
+ * actionable half.
163
+ */
164
+ export function unusableSearchScopeMessage(noun, scopes, prefix) {
165
+ return `${prefix != null ? `${prefix}: ` : ''}The requested ${noun} (${scopes.map(s => JSON.stringify(s)).join(', ')}) cannot be used as given: a scope name cannot contain quotes, or an inner space or control character, which a query would drop or read as a second qualifier — searching a different scope, or none. Pass the scope exactly as the provider names it.`;
166
+ }
149
167
  /** Warning for a filtered pull-request search the provider cannot run as requested. */
150
168
  export function unsupportedPullRequestSearchCriteriaWarning(id, domain, connectionId, rejection) {
151
169
  let message;
@@ -1 +1 @@
1
- {"version":3,"file":"warnings.js","sourceRoot":"","sources":["../../../../src/plus/integrations/reads/warnings.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAC3B,EAAkB,EAClB,MAA0B,EAC1B,YAAgC,EAChC,OAAe;IAEf,OAAO;QACN,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACb,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAClC,EAAkB,EAClB,MAA0B,EAC1B,YAAqB;IAErB,OAAO;QACN,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,YAAY;QAC1B,OAAO,EACN,YAAY,IAAI,IAAI;YACnB,CAAC,CAAC,eAAe,YAAY,UAAU,EAAE,8DAA8D;YACvG,CAAC,CAAC,6BAA6B,EAAE,sBAAsB;QACzD,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,KAAK;KACb,CAAC;AACH,CAAC;AAED,6GAA6G;AAC7G,MAAM,UAAU,yBAAyB,CACxC,EAAkB,EAClB,MAA0B,EAC1B,YAAgC,EAChC,OAAe;IAEf,OAAO,YAAY,CAClB,EAAE,EACF,MAAM,EACN,YAAY,EACZ,GAAG,OAAO,yBAAyB,EAAE,wCAAwC,CAC7E,CAAC;AACH,CAAC;AAED,gHAAgH;AAChH,MAAM,UAAU,8BAA8B,CAC7C,EAAkB,EAClB,YAAgC,EAChC,OAAe;IAEf,OAAO,YAAY,CAClB,EAAE,EACF,SAAS,EACT,YAAY,EACZ,GAAG,OAAO,yBAAyB,EAAE,8CAA8C,CACnF,CAAC;AACH,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S,6CAA6C,CACrK;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,gBAAgB;YACtB,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,UAAU;YACtB,IAAI,EAAE,IAAI;SACV;KACD,CAAC;AACH,CAAC;AAED,uHAAuH;AACvH,MAAM,UAAU,wBAAwB,CACvC,EAAkB,EAClB,MAA0B,EAC1B,YAAgC;IAEhC,OAAO,YAAY,CAClB,EAAE,EACF,MAAM,EACN,YAAY,EACZ,gCAAgC,EAAE,2DAA2D,CAC7F,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"warnings.js","sourceRoot":"","sources":["../../../../src/plus/integrations/reads/warnings.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAC3B,EAAkB,EAClB,MAA0B,EAC1B,YAAgC,EAChC,OAAe;IAEf,OAAO;QACN,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,YAAY;QAC1B,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACb,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAClC,EAAkB,EAClB,MAA0B,EAC1B,YAAqB;IAErB,OAAO;QACN,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,YAAY;QAC1B,OAAO,EACN,YAAY,IAAI,IAAI;YACnB,CAAC,CAAC,eAAe,YAAY,UAAU,EAAE,8DAA8D;YACvG,CAAC,CAAC,6BAA6B,EAAE,sBAAsB;QACzD,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,KAAK;KACb,CAAC;AACH,CAAC;AAED,6GAA6G;AAC7G,MAAM,UAAU,yBAAyB,CACxC,EAAkB,EAClB,MAA0B,EAC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F;YACzF,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,UAAU;YACtB,IAAI,EAAE,IAAI;SACV;KACD,CAAC;AACH,CAAC;AAED,0GAA0G;AAC1G,MAAM,UAAU,iCAAiC,CAChD,EAAkB,EAClB,MAA0B,EAC1B,YAAgC,EAChC,UAA8B,EAC9B,IAAwB;IAExB,MAAM,KAAK,GAAG,iBAAiB,CAAC,EAAE,CAAC,EAAE,4BAA4B,CAAC;IAClE,IAAI,KAAK,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,IAAI,UAAU,IAAI,KAAK;QAAE,OAAO,SAAS,CAAC;IAEjF,2GAA2G;IAC3G,2GAA2G;IAC3G,iCAAiC;IACjC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3C,OAAO;QACN,GAAG,YAAY,CACd,EAAE,EACF,MAAM,EACN,YAAY,EACZ,+BAA+B,UAAU,kBAAkB,EAAE,oBAAoB,KAAK,gBAAgB,KAAK,IAAI,SAAS,6CAA6C,CACrK;QACD,QAAQ,EAAE;YACT,IAAI,EAAE,gBAAgB;YACtB,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,KAAK;YACZ,UAAU,EAAE,UAAU;YACtB,IAAI,EAAE,IAAI;SACV;KACD,CAAC;AACH,CAAC;AAED,uHAAuH;AACvH,MAAM,UAAU,wBAAwB,CACvC,EAAkB,EAClB,MAA0B,EAC1B,YAAgC;IAEhC,OAAO,YAAY,CAClB,EAAE,EACF,MAAM,EACN,YAAY,EACZ,gCAAgC,EAAE,2DAA2D,CAC7F,CAAC;AACH,CAAC"}
@@ -216,6 +216,19 @@ provider-reported pre-ceiling facet count, matching the per-search ceiling's uni
216
216
  still-reachable row count. Free text is sanitized so qualifier-shaped tokens such as `org:other` are removed
217
217
  rather than allowed to change the structured scope.
218
218
 
219
+ The `repos`/`org` scope is held to a stricter rule than that free text, and the same one §5.1 documents: a
220
+ scope name carrying a quote, an inner space or a control character is **refused** (warning + `fetchFailed`),
221
+ not sanitized, and the refusal names the value; edge whitespace and control characters are stripped and
222
+ accepted. `countPullRequests` validates each scope through the same rule, so a count never previews a query
223
+ the read would refuse.
224
+
225
+ `itemsPerPage` is **per relationship × state facet**, not per page — one axis more than §5.1's
226
+ per-relationship fan-out, since each facet is its own aliased provider query. A page of a 3-relationship,
227
+ 2-state search returns up to `6 × itemsPerPage` items before deduplication, and fewer where the facets
228
+ overlap; deduplication does **not** bring the page back to the requested size, since it removes only the rows
229
+ the facets share. As in §5.1: size the list off `page.itemsPerPage`, not off the value you sent; a provider
230
+ may cap the `itemsPerPage` it honors below what you asked for.
231
+
219
232
  ### 5.1 The filtered issue search and its count probe
220
233
 
221
234
  `searchIssuesPage` answers "every issue in this scope matching X", which no other issue read can: the
@@ -237,18 +250,29 @@ const result = await manager.searchIssuesPage({
237
250
  });
238
251
  ```
239
252
 
240
- Three parts of the contract that are decisions, not incidentals:
253
+ Parts of the contract that are decisions, not incidentals:
241
254
 
242
255
  - **Scope is mandatory.** Pass `repos`, `org`, or a user relationship (`authored` / `assigned` / `mentioned`).
243
256
  `any-assignee` and `unassigned` do **not** scope anything — they describe the issue, not the caller, so
244
257
  either one alone matches every such issue on the host. A call carrying only those is refused (warning +
245
258
  `fetchFailed`), as is one scoping by repository **id**: a search names repositories by path, so ids would
246
259
  silently widen the read to the whole org.
260
+ - **A scope name must name the same scope after sanitizing.** Unlike the free-form values below, a scope
261
+ carrying a quote, an inner space or a control character is **refused** (warning + `fetchFailed`) rather than
262
+ sanitized, and the refusal names the offending value. Sanitizing answers "what can I still send?", which for
263
+ a scope is the wrong question — the sanitized value may name a real but **different** scope. Leading and
264
+ trailing whitespace and control characters are the exception and are accepted: stripping them does not
265
+ change which scope the query names, so refusing them would reject a name the provider resolves correctly. A
266
+ repository descriptor is checked as its JOINED `namespace/name` path, which is what a `repo:` qualifier
267
+ names — an edge character on a half is an interior character of the path, and both halves must be
268
+ non-empty. `org: ''` still means "no org supplied" and falls through to the remaining scopes. A provider with no
269
+ filtered search at all is reported as such first, so an unusable scope never masks it.
247
270
  - **Ordering is always most-recently-updated-first.** Not an option: a "show the N most recent" policy at the
248
271
  result ceiling is only correct under a guaranteed order.
249
272
  - **`itemsPerPage` is per RELATIONSHIP**, since each becomes its own provider query: a page of an
250
273
  N-relationship search returns up to `N × itemsPerPage` items before deduplication, and fewer where they
251
- overlap. Read `page.itemsPerPage` for what actually came back.
274
+ overlap. Read `page.itemsPerPage` for what actually came back and size the list off that, not off the value
275
+ you sent; a provider may also cap the `itemsPerPage` it honors below what you asked for.
252
276
  - **At the result ceiling the read SUCCEEDS.** More matches than the provider will serve is an _omission_, not
253
277
  a failure: `fetchFailed` stays absent, and the warning carries `omission.totalCount` (how many matched),
254
278
  `omission.limit` (how many are reachable) and `recovery: 'none'` — the rest is unreachable however you page,
@@ -579,6 +603,39 @@ free text have no equivalent on either.
579
603
 
580
604
  ## 9. Per-provider behavior worth designing around
581
605
 
606
+ ### Tracker issue state
607
+
608
+ `IssueShape.state` remains the normalized `'opened' | 'closed'` value used by existing consumers. Tracker issues also
609
+ carry the provider's own workflow state in the optional `providerState` field; it is display data and is not added to
610
+ `IssueOrPullRequest`, because pull requests' normalized `'opened' | 'closed' | 'merged'` state is complete.
611
+
612
+ The field mirrors what `provider-apis` provides. `name` is the provider's untranslated display name, `color` is
613
+ omitted when the provider returns `null`, and `category` is only present where the provider supplies it:
614
+
615
+ | Provider | `name` | `color` | `category` |
616
+ | ------------ | ------------------- | ------- | ---------------------------------------- |
617
+ | Jira | Status name | Yes | Yes, from the stable status-category key |
618
+ | Linear | Workflow state name | Yes | Yes, mapped from the Linear state type |
619
+ | Trello | Card list name | No | No |
620
+ | Azure DevOps | Work-item state | No | No |
621
+ | GitHub | `open` / `closed` | No | No |
622
+ | GitLab | `opened` / `closed` | No | No |
623
+
624
+ For Jira, legacy reads may omit `category` when `provider-apis` only has a localized status name to classify; the
625
+ direct issue-by-key read supplies the stable category. `name` and `color` are preserved in both cases.
626
+
627
+ The normalized `state` and `closed` fields keep their existing derivation; `providerState` is additive.
628
+
629
+ ### Issue body format
630
+
631
+ `IssueShape.body` is not normalized to one markup language. Jira descriptions come from REST v2 as wiki markup,
632
+ while GitHub, GitLab, and Linear descriptions are Markdown. Jira issues therefore set
633
+ `bodyFormat: 'jira-wiki'`; an omitted `bodyFormat` means consumers should preserve the existing behavior and treat
634
+ `body` as Markdown. The `'markdown'` value is reserved for providers that need to make that format explicit.
635
+
636
+ Rendering and conversion remain consumer concerns. In particular, the Jira body is neither ADF nor converted to
637
+ Markdown by this package.
638
+
582
639
  - **GitHub / GHE** — cursor-only everywhere. The filtered PR search aliases each requested relationship × state
583
640
  facet into one GraphQL request per page, dedupes facet overlap, and sorts the page most-recently-updated-first.
584
641
  With no relationships it searches every PR in the required repo/org scope. The
@@ -88,18 +88,21 @@ per provider from the resolved current user, so callers don't special-case it.
88
88
  `PullRequestRef` carries optional `cloneHttps` / `cloneSsh` / `isFork`; `PullRequest.refs.isCrossRepository`
89
89
  is always present.
90
90
 
91
- | Provider | Clone URLs | `isCrossRepository` | `isFork` |
92
- | ---------------- | ---------------------------------------- | ------------------- | -------------------------- |
93
- | GitHub | first-class | first-class | best-effort |
94
- | GitLab | first-class | first-class | `undefined` |
95
- | Bitbucket | first-class | first-class | `undefined` |
96
- | Bitbucket Server | first-class | first-class | `undefined` |
97
- | Azure DevOps | first-class **with `includeRemoteInfo`** | first-class | best-effort (`forkSource`) |
98
-
99
- **Caveats:** Azure clone URLs require an opt-in extra lookup; `getMyPullRequestsForRepos` requests
100
- `includeRemoteInfo` for Azure automatically. Where clone URLs are unavailable the fields are `undefined`;
101
- reconstruct from the repository `webUrl`. Prefer `isCrossRepository` (always present) over `isFork`
102
- (best-effort, provider-dependent).
91
+ | Provider | Clone URLs | `isCrossRepository` | `isFork` |
92
+ | ---------------- | --------------------------- | ------------------- | -------------------------- |
93
+ | GitHub | first-class | first-class | best-effort |
94
+ | GitLab | first-class | first-class | `undefined` |
95
+ | Bitbucket | first-class | first-class | `undefined` |
96
+ | Bitbucket Server | first-class | first-class | `undefined` |
97
+ | Azure DevOps | per read path (see caveats) | first-class | best-effort (`forkSource`) |
98
+
99
+ **Caveats:** Azure reports clone URLs differently per read path. The SDK-backed reads carry both fields, but
100
+ only with an opt-in extra lookup; `getMyPullRequestsForRepos` requests `includeRemoteInfo` for Azure
101
+ automatically. The direct reads (`getPullRequest*`, linked issue/PR) carry `cloneHttps` on both refs with no
102
+ extra request, taken from the provider's own `remoteUrl`, and never carry `cloneSsh` — Azure's SSH URL
103
+ answers on a different host than the API base, so the URL trust boundary cannot vouch for it. Where clone
104
+ URLs are unavailable the fields are `undefined`; reconstruct from the repository `webUrl`. Prefer
105
+ `isCrossRepository` (always present) over `isFork` (best-effort, provider-dependent).
103
106
 
104
107
  ## 6. Org / project scoping
105
108
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gitkraken/core-gitlens",
3
3
  "description": "GitLens core — shared Git / AI / GitHub primitives for internal GitKraken consumption",
4
- "version": "0.5.115",
4
+ "version": "0.6.0",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": {
7
7
  "name": "GitKraken",
@@ -165,9 +165,13 @@ export interface IssueShape extends IssueOrPullRequest {
165
165
  /** `undefined` when the provider can't resolve the author, e.g. a deleted GitHub account */
166
166
  author: IssueMember | undefined;
167
167
  assignees: IssueMember[];
168
+ /** The provider's own workflow state, when it exposes one beyond the normalized open/closed state. */
169
+ providerState?: IssueProviderState;
168
170
  repository?: IssueRepository;
169
171
  labels?: IssueLabel[];
170
172
  body?: string;
173
+ /** The syntax used by `body`. When omitted, consumers should treat `body` as Markdown. */
174
+ bodyFormat?: IssueBodyFormat;
171
175
  project?: IssueProject;
172
176
  issueType?: string;
173
177
  }
@@ -197,6 +201,8 @@ export class Issue implements IssueShape {
197
201
  public readonly project?: IssueProject,
198
202
  public readonly number?: string,
199
203
  public readonly issueType?: string,
204
+ public readonly providerState?: IssueProviderState,
205
+ public readonly bodyFormat?: IssueBodyFormat,
200
206
  ) {}
201
207
 
202
208
  static is(issue: unknown): issue is Issue {
@@ -204,6 +210,8 @@ export class Issue implements IssueShape {
204
210
  }
205
211
  }
206
212
 
213
+ export type IssueBodyFormat = 'markdown' | 'jira-wiki';
214
+
207
215
  export const enum RepositoryAccessLevel {
208
216
  Admin = 100,
209
217
  Maintain = 40,
@@ -235,6 +243,13 @@ export interface IssueMember {
235
243
  url?: string;
236
244
  }
237
245
 
246
+ export type IssueProviderState = {
247
+ id?: string;
248
+ name: string;
249
+ color?: string;
250
+ category?: 'TO_DO' | 'IN_PROGRESS' | 'DONE';
251
+ };
252
+
238
253
  export interface IssueProject {
239
254
  id: string;
240
255
  name: string;
@@ -296,7 +296,11 @@ export interface PullRequestRef {
296
296
  branch: string;
297
297
  sha: string;
298
298
  exists: boolean;
299
- url: string;
299
+ /**
300
+ * Web URL of the ref's repository. `undefined` when the provider cannot resolve it — Azure DevOps embeds an
301
+ * abbreviated repository reference in a pull request, so a fork's URL may need a lookup that can fail.
302
+ */
303
+ url: string | undefined;
300
304
  /** HTTPS clone URL of the ref's repository, when the provider exposes it. */
301
305
  cloneHttps?: string;
302
306
  /** SSH clone URL of the ref's repository, when the provider exposes it. */
@@ -306,7 +310,7 @@ export interface PullRequestRef {
306
310
  }
307
311
 
308
312
  export interface PullRequestRefs {
309
- base: PullRequestRef;
313
+ base: PullRequestRef & { url: string };
310
314
  head: PullRequestRef;
311
315
  isCrossRepository: boolean;
312
316
  }
@@ -7,6 +7,7 @@ import type { ParsedRemoteFileUri, RemoteProviderId } from '../models/remoteProv
7
7
  import { RemoteProvider } from '../models/remoteProvider.js';
8
8
  import type { CreatePullRequestRemoteResource } from '../models/remoteResource.js';
9
9
  import type { GkProviderId } from '../models/repositoryIdentities.js';
10
+ import type { ResourceDescriptor } from '../models/resourceDescriptor.js';
10
11
  import type { GitRevisionRangeNotation } from '../models/revision.js';
11
12
 
12
13
  const gitRegex = /\/_git\/?/i;
@@ -41,6 +42,57 @@ function parseVstsHttpsUrl(url: URL): [string, string, string] {
41
42
 
42
43
  const azureHttpsUrlRegex2 = /([^/]+)\/([^/]+)\/_git\/([^/]+)/;
43
44
 
45
+ type AzureRepositoryPath = {
46
+ collection: string | undefined;
47
+ project: string;
48
+ repositoryPath: string;
49
+ virtualDirectory: string | undefined;
50
+ };
51
+
52
+ export type AzureDevOpsRepositoryDescriptor = ResourceDescriptor & {
53
+ owner: string | undefined;
54
+ name: string | undefined;
55
+ virtualDirectory?: string;
56
+ };
57
+
58
+ function parseAzureRepositoryPath(path: string, legacyVsts: boolean, cloud: boolean): AzureRepositoryPath | undefined {
59
+ const segments = path.split('/');
60
+ const gitIndex = segments.length - 2;
61
+ const projectIndex = gitIndex - 1;
62
+ if (
63
+ gitIndex < 1 ||
64
+ segments[gitIndex]?.toLowerCase() !== '_git' ||
65
+ segments.some(segment => !segment || segment === '.' || segment === '..')
66
+ ) {
67
+ return undefined;
68
+ }
69
+
70
+ const project = segments[projectIndex];
71
+ const repository = segments[gitIndex + 1];
72
+ if (!project || !repository) return undefined;
73
+
74
+ const collectionPath = segments.slice(0, projectIndex);
75
+ if (legacyVsts) {
76
+ if (collectionPath.length !== 0) return undefined;
77
+
78
+ return {
79
+ collection: undefined,
80
+ project: project,
81
+ repositoryPath: `${project}/_git/${repository}`,
82
+ virtualDirectory: undefined,
83
+ };
84
+ }
85
+
86
+ if (collectionPath.length === 0 || (cloud && collectionPath.length !== 1)) return undefined;
87
+
88
+ return {
89
+ collection: collectionPath.at(-1),
90
+ project: project,
91
+ repositoryPath: `${project}/_git/${repository}`,
92
+ virtualDirectory: collectionPath.length > 1 ? collectionPath.slice(0, -1).join('/') : undefined,
93
+ };
94
+ }
95
+
44
96
  function parseAzureNewStyleUrl(url: URL): [string, string, string] {
45
97
  const match = azureHttpsUrlRegex2.exec(url.pathname);
46
98
  if (match == null) throw new Error(`Invalid Azure URL: ${url.toString()}`);
@@ -57,8 +109,11 @@ export function parseAzureHttpsUrl(arg: URL | string): [owner: string, project:
57
109
  return parseAzureNewStyleUrl(url);
58
110
  }
59
111
 
60
- export class AzureDevOpsRemoteProvider extends RemoteProvider {
112
+ export class AzureDevOpsRemoteProvider extends RemoteProvider<AzureDevOpsRepositoryDescriptor> {
113
+ private readonly collection: string | undefined;
61
114
  private readonly project: string | undefined;
115
+ private readonly repositoryPath: string | undefined;
116
+ private readonly virtualDirectory: string | undefined;
62
117
 
63
118
  constructor(
64
119
  domain: string,
@@ -68,7 +123,6 @@ export class AzureDevOpsRemoteProvider extends RemoteProvider {
68
123
  isVsts: boolean = false,
69
124
  context?: RemoteProviderContext,
70
125
  ) {
71
- let repoProject;
72
126
  if (sshDomainRegex.test(domain)) {
73
127
  path = path.replace(sshPathRegex, '');
74
128
  domain = domain.replace(sshDomainRegex, '');
@@ -78,8 +132,6 @@ export class AzureDevOpsRemoteProvider extends RemoteProvider {
78
132
  if (match != null) {
79
133
  const [, org, project, rest] = match;
80
134
 
81
- repoProject = project;
82
-
83
135
  // VSTS puts the org in the subdomain; modern Azure DevOps puts it in the path
84
136
  if (isVsts) {
85
137
  domain = `${org}.${domain}`;
@@ -88,21 +140,18 @@ export class AzureDevOpsRemoteProvider extends RemoteProvider {
88
140
  path = `${org}/${project}/_git/${rest}`;
89
141
  }
90
142
  }
91
- } else {
92
- const match = orgAndProjectRegex.exec(path);
93
- if (match != null) {
94
- const [, , project] = match;
95
-
96
- repoProject = project;
97
- }
98
143
  }
99
144
 
100
145
  // Azure DevOps allows projects and repository names with spaces. In that situation,
101
146
  // the `path` will be previously encoded during git clone
102
147
  // revert that encoding to avoid double-encoding by gitlens during copy remote and open remote
103
148
  path = decodeURIComponent(path);
149
+ const repositoryPath = parseAzureRepositoryPath(path, isVsts, domain.toLowerCase() === 'dev.azure.com');
104
150
  super(domain, path, protocol, name, undefined, context);
105
- this.project = repoProject;
151
+ this.collection = repositoryPath?.collection;
152
+ this.project = repositoryPath?.project;
153
+ this.repositoryPath = repositoryPath?.repositoryPath;
154
+ this.virtualDirectory = repositoryPath?.virtualDirectory;
106
155
  }
107
156
 
108
157
  protected override get issueLinkPattern(): string {
@@ -161,14 +210,19 @@ export class AzureDevOpsRemoteProvider extends RemoteProvider {
161
210
  if (isVsts(this.domain)) {
162
211
  return this.domain.split('.')[0];
163
212
  }
164
- return super.owner;
213
+ return this.collection ?? super.owner;
165
214
  }
166
215
 
167
216
  override get repoName(): string | undefined {
168
217
  if (isVsts(this.domain)) {
169
218
  return this.path;
170
219
  }
171
- return super.repoName;
220
+ return this.repositoryPath ?? super.repoName;
221
+ }
222
+
223
+ override get repoDesc(): AzureDevOpsRepositoryDescriptor {
224
+ const descriptor = super.repoDesc;
225
+ return this.virtualDirectory == null ? descriptor : { ...descriptor, virtualDirectory: this.virtualDirectory };
172
226
  }
173
227
 
174
228
  override get providerDesc():
@@ -128,6 +128,15 @@ export function serializeIssue(value: IssueShape): IssueShape {
128
128
  closedDate: value.closedDate,
129
129
  closed: value.closed,
130
130
  state: value.state,
131
+ providerState:
132
+ value.providerState == null
133
+ ? undefined
134
+ : {
135
+ id: value.providerState.id,
136
+ name: value.providerState.name,
137
+ color: value.providerState.color,
138
+ category: value.providerState.category,
139
+ },
131
140
  author:
132
141
  value.author == null
133
142
  ? undefined
@@ -172,6 +181,7 @@ export function serializeIssue(value: IssueShape): IssueShape {
172
181
  commentsCount: value.commentsCount,
173
182
  thumbsUpCount: value.thumbsUpCount,
174
183
  body: value.body,
184
+ bodyFormat: value.bodyFormat,
175
185
  };
176
186
  return serialized;
177
187
  }
@@ -4857,8 +4857,9 @@ export class GitHubApi {
4857
4857
  pageSize?: number;
4858
4858
  /**
4859
4859
  * Uses the lightweight PR fragment, retaining identity, body, author, repository, branch refs, and stack
4860
- * info while omitting review, check, and diff statistics. It also raises the default page budget, which
4861
- * multi-facet searches share across their active facets.
4860
+ * info while omitting review, check, and diff statistics. It also replaces the flat per-facet default with
4861
+ * a budget multi-facet searches share across their active facets, so it raises the page with up to three of
4862
+ * them and LOWERS it from four on.
4862
4863
  */
4863
4864
  summary?: boolean;
4864
4865
  },
@@ -404,15 +404,36 @@ export interface IntegrationManager {
404
404
  */
405
405
  searchPullRequestsPage(options: {
406
406
  providerId: IntegrationIds;
407
- /** Repository descriptors that bound the search; ids cannot name provider search qualifiers. */
407
+ /**
408
+ * Repository descriptors that bound the search; ids cannot name provider search qualifiers.
409
+ *
410
+ * Both halves of a descriptor must reach the provider unchanged — see `org` — since a search names a
411
+ * repository by its `namespace/name` path.
412
+ */
408
413
  repos?: ProviderRepositoriesInput;
409
- /** Organization/account that bounds the search. */
414
+ /**
415
+ * Organization/account that bounds the search.
416
+ *
417
+ * Held to a STRICTER rule than the free-form `criteria.text`, which is sanitized: a scope name carrying a
418
+ * quote, or an inner space or control character, is REFUSED (warning + `fetchFailed`), and the refusal
419
+ * names the value. Leading and trailing whitespace and control characters are stripped and accepted,
420
+ * since removing them cannot change which scope the query names. Sanitizing a scope would answer the wrong question — the sanitized value may name a real but
421
+ * DIFFERENT organization, whose result looks entirely normal. Pass the name exactly as the provider spells
422
+ * it; `''` means "no org supplied" and falls through to the other scopes.
423
+ */
410
424
  org?: string;
411
425
  criteria?: PullRequestSearchCriteria;
412
426
  /** Cursor-only: without a cursor, reaching page N costs O(N) upstream requests. */
413
427
  page?: number;
414
428
  cursor?: string;
415
- /** Page size per relationship × state facet; the deduped union can contain more rows. */
429
+ /**
430
+ * Page size PER RELATIONSHIP × STATE facet, not per page. Each facet is its own aliased provider query —
431
+ * one axis more than {@link searchIssuesPage}'s per-relationship fan-out — so a page of a 3-relationship,
432
+ * 2-state search returns up to `6 × itemsPerPage` items before deduplication, and fewer than that where
433
+ * the facets overlap. Deduplication does NOT bring the page back to this size: it removes only the rows the
434
+ * facets share. `page.itemsPerPage` reports what actually came back, so size the UI off that rather than
435
+ * off this. A provider may also cap it below what is asked for.
436
+ */
416
437
  itemsPerPage?: number;
417
438
  forceSync?: boolean;
418
439
  connectionId?: string;
@@ -420,7 +441,9 @@ export interface IntegrationManager {
420
441
  domain?: string;
421
442
  /**
422
443
  * Requests the lightweight row shape: identity, body, author, repository, branch refs and stack info,
423
- * without review, check or diff statistics. It also raises the default page size.
444
+ * without review, check or diff statistics. It also replaces the flat per-facet default page size with a
445
+ * fixed budget shared across the search's ACTIVE facets, so with up to three of them it raises the page
446
+ * and from four on it LOWERS it — measured against GitHub, a 100-row budget versus a flat 30 each.
424
447
  *
425
448
  * A provider without a lightweight projection ignores it and returns its usual shape, so this is a hint
426
449
  * rather than a contract about which fields are present.
@@ -513,9 +536,23 @@ export interface IntegrationManager {
513
536
  */
514
537
  searchIssuesPage(options: {
515
538
  providerId: IntegrationIds;
516
- /** Repositories to search. Combines with `org`; both constrain the same query. */
539
+ /**
540
+ * Repositories to search. Combines with `org`; both constrain the same query.
541
+ *
542
+ * Both halves of a descriptor must reach the provider unchanged — see `org` — since a search names a
543
+ * repository by its `namespace/name` path.
544
+ */
517
545
  repos?: ProviderRepositoriesInput;
518
- /** Organization/account to search. Combines with `repos`. */
546
+ /**
547
+ * Organization/account to search. Combines with `repos`.
548
+ *
549
+ * Held to a STRICTER rule than the free-form criteria, which are sanitized: a scope name carrying a quote,
550
+ * or an inner space or control character, is REFUSED (warning + `fetchFailed`), and the refusal names the
551
+ * value. Leading and trailing whitespace and control characters are stripped and accepted, since removing
552
+ * them cannot change which scope the query names.
553
+ * The sanitized value may name a real but DIFFERENT org, whose result looks entirely normal. `''` means
554
+ * "no org supplied" and falls through to the other scopes.
555
+ */
519
556
  org?: string;
520
557
  criteria?: IssueSearchCriteria;
521
558
  /**