@cesar-richard/git-connector-sdk 2.9.0 → 2.10.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +95 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -261,6 +261,11 @@ export interface components {
261
261
  reviewRequestedAt: string | null;
262
262
  /** @description Review lifecycle bucket, or null for issues — an issue is not under review, so no bucket applies. Pass ?viewer to split 'open-awaiting-my-review' from 'open-awaiting-other-review'; without it, a pending review always reads as 'open-awaiting-other-review'. */
263
263
  reviewStatus: ("draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed") | null;
264
+ /** @description Provider labels on the PR/MR/issue itself. Same semantic as WorkItem.labels: raw provider form (`d73a4a` on GitHub, `#428BCA` on GitLab), `color` null when the provider only gave a name (GitLab returns bare strings without label details), and scoped names like `priority::high` are NOT split. Empty array when unlabelled — never absent. */
265
+ labels: {
266
+ name: string;
267
+ color: string | null;
268
+ }[];
264
269
  authorIdentity?: {
265
270
  id: string | number;
266
271
  displayName: string;
@@ -304,6 +309,11 @@ export interface components {
304
309
  reviewRequestedAt: string | null;
305
310
  /** @description Review lifecycle bucket, or null for issues — an issue is not under review, so no bucket applies. Pass ?viewer to split 'open-awaiting-my-review' from 'open-awaiting-other-review'; without it, a pending review always reads as 'open-awaiting-other-review'. */
306
311
  reviewStatus: ("draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed") | null;
312
+ /** @description Provider labels on the PR/MR/issue itself. Same semantic as WorkItem.labels: raw provider form (`d73a4a` on GitHub, `#428BCA` on GitLab), `color` null when the provider only gave a name (GitLab returns bare strings without label details), and scoped names like `priority::high` are NOT split. Empty array when unlabelled — never absent. */
313
+ labels: {
314
+ name: string;
315
+ color: string | null;
316
+ }[];
307
317
  authorIdentity?: {
308
318
  id: string | number;
309
319
  displayName: string;
@@ -526,6 +536,11 @@ export interface components {
526
536
  url: string | null;
527
537
  }[];
528
538
  } | null;
539
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
540
+ labels: {
541
+ name: string;
542
+ color: string | null;
543
+ }[];
529
544
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
530
545
  ci?: {
531
546
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -735,6 +750,11 @@ export interface components {
735
750
  url: string | null;
736
751
  }[];
737
752
  } | null;
753
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
754
+ labels: {
755
+ name: string;
756
+ color: string | null;
757
+ }[];
738
758
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
739
759
  ci?: {
740
760
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -1411,6 +1431,11 @@ export interface components {
1411
1431
  url: string | null;
1412
1432
  }[];
1413
1433
  } | null;
1434
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
1435
+ labels: {
1436
+ name: string;
1437
+ color: string | null;
1438
+ }[];
1414
1439
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
1415
1440
  ci?: {
1416
1441
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -1677,6 +1702,11 @@ export interface components {
1677
1702
  url: string | null;
1678
1703
  }[];
1679
1704
  } | null;
1705
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
1706
+ labels: {
1707
+ name: string;
1708
+ color: string | null;
1709
+ }[];
1680
1710
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
1681
1711
  ci?: {
1682
1712
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -1850,6 +1880,11 @@ export interface components {
1850
1880
  url: string | null;
1851
1881
  }[];
1852
1882
  } | null;
1883
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
1884
+ labels: {
1885
+ name: string;
1886
+ color: string | null;
1887
+ }[];
1853
1888
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
1854
1889
  ci?: {
1855
1890
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -2076,6 +2111,11 @@ export interface operations {
2076
2111
  url: string | null;
2077
2112
  }[];
2078
2113
  } | null;
2114
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
2115
+ labels: {
2116
+ name: string;
2117
+ color: string | null;
2118
+ }[];
2079
2119
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
2080
2120
  ci?: {
2081
2121
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -2253,6 +2293,11 @@ export interface operations {
2253
2293
  url: string | null;
2254
2294
  }[];
2255
2295
  } | null;
2296
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
2297
+ labels: {
2298
+ name: string;
2299
+ color: string | null;
2300
+ }[];
2256
2301
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
2257
2302
  ci?: {
2258
2303
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -2430,6 +2475,11 @@ export interface operations {
2430
2475
  url: string | null;
2431
2476
  }[];
2432
2477
  } | null;
2478
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
2479
+ labels: {
2480
+ name: string;
2481
+ color: string | null;
2482
+ }[];
2433
2483
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
2434
2484
  ci?: {
2435
2485
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -2663,6 +2713,11 @@ export interface operations {
2663
2713
  url: string | null;
2664
2714
  }[];
2665
2715
  } | null;
2716
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
2717
+ labels: {
2718
+ name: string;
2719
+ color: string | null;
2720
+ }[];
2666
2721
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
2667
2722
  ci?: {
2668
2723
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -2835,6 +2890,11 @@ export interface operations {
2835
2890
  url: string | null;
2836
2891
  }[];
2837
2892
  } | null;
2893
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
2894
+ labels: {
2895
+ name: string;
2896
+ color: string | null;
2897
+ }[];
2838
2898
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
2839
2899
  ci?: {
2840
2900
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -3007,6 +3067,11 @@ export interface operations {
3007
3067
  url: string | null;
3008
3068
  }[];
3009
3069
  } | null;
3070
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
3071
+ labels: {
3072
+ name: string;
3073
+ color: string | null;
3074
+ }[];
3010
3075
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
3011
3076
  ci?: {
3012
3077
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -3887,6 +3952,11 @@ export interface operations {
3887
3952
  reviewRequestedAt: string | null;
3888
3953
  /** @description Review lifecycle bucket, or null for issues — an issue is not under review, so no bucket applies. Pass ?viewer to split 'open-awaiting-my-review' from 'open-awaiting-other-review'; without it, a pending review always reads as 'open-awaiting-other-review'. */
3889
3954
  reviewStatus: ("draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed") | null;
3955
+ /** @description Provider labels on the PR/MR/issue itself. Same semantic as WorkItem.labels: raw provider form (`d73a4a` on GitHub, `#428BCA` on GitLab), `color` null when the provider only gave a name (GitLab returns bare strings without label details), and scoped names like `priority::high` are NOT split. Empty array when unlabelled — never absent. */
3956
+ labels: {
3957
+ name: string;
3958
+ color: string | null;
3959
+ }[];
3890
3960
  authorIdentity?: {
3891
3961
  id: string | number;
3892
3962
  displayName: string;
@@ -3931,6 +4001,11 @@ export interface operations {
3931
4001
  reviewRequestedAt: string | null;
3932
4002
  /** @description Review lifecycle bucket, or null for issues — an issue is not under review, so no bucket applies. Pass ?viewer to split 'open-awaiting-my-review' from 'open-awaiting-other-review'; without it, a pending review always reads as 'open-awaiting-other-review'. */
3933
4003
  reviewStatus: ("draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed") | null;
4004
+ /** @description Provider labels on the PR/MR/issue itself. Same semantic as WorkItem.labels: raw provider form (`d73a4a` on GitHub, `#428BCA` on GitLab), `color` null when the provider only gave a name (GitLab returns bare strings without label details), and scoped names like `priority::high` are NOT split. Empty array when unlabelled — never absent. */
4005
+ labels: {
4006
+ name: string;
4007
+ color: string | null;
4008
+ }[];
3934
4009
  authorIdentity?: {
3935
4010
  id: string | number;
3936
4011
  displayName: string;
@@ -3975,6 +4050,11 @@ export interface operations {
3975
4050
  reviewRequestedAt: string | null;
3976
4051
  /** @description Review lifecycle bucket, or null for issues — an issue is not under review, so no bucket applies. Pass ?viewer to split 'open-awaiting-my-review' from 'open-awaiting-other-review'; without it, a pending review always reads as 'open-awaiting-other-review'. */
3977
4052
  reviewStatus: ("draft" | "open-no-review" | "open-awaiting-my-review" | "open-awaiting-other-review" | "open-changes-requested" | "open-approved" | "merged" | "closed") | null;
4053
+ /** @description Provider labels on the PR/MR/issue itself. Same semantic as WorkItem.labels: raw provider form (`d73a4a` on GitHub, `#428BCA` on GitLab), `color` null when the provider only gave a name (GitLab returns bare strings without label details), and scoped names like `priority::high` are NOT split. Empty array when unlabelled — never absent. */
4054
+ labels: {
4055
+ name: string;
4056
+ color: string | null;
4057
+ }[];
3978
4058
  authorIdentity?: {
3979
4059
  id: string | number;
3980
4060
  displayName: string;
@@ -4166,6 +4246,11 @@ export interface operations {
4166
4246
  url: string | null;
4167
4247
  }[];
4168
4248
  } | null;
4249
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
4250
+ labels: {
4251
+ name: string;
4252
+ color: string | null;
4253
+ }[];
4169
4254
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
4170
4255
  ci?: {
4171
4256
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -4376,6 +4461,11 @@ export interface operations {
4376
4461
  url: string | null;
4377
4462
  }[];
4378
4463
  } | null;
4464
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
4465
+ labels: {
4466
+ name: string;
4467
+ color: string | null;
4468
+ }[];
4379
4469
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
4380
4470
  ci?: {
4381
4471
  status: "success" | "failed" | "running" | "canceled" | "unknown";
@@ -4586,6 +4676,11 @@ export interface operations {
4586
4676
  url: string | null;
4587
4677
  }[];
4588
4678
  } | null;
4679
+ /** @description Provider labels on the linked PR/MR. Same field and semantic as Activity.labels, so a PR/MR carries its labels whether or not it is rendered under an issue. */
4680
+ labels: {
4681
+ name: string;
4682
+ color: string | null;
4683
+ }[];
4589
4684
  /** @description Latest known CI pipeline for this PR/MR — derived from `ci-pipeline` events, NOT from per-job `ci-run`. Null when no pipeline is known: never read a null as 'green'. `status: 'failed'` is the CI half of a blocked signal, alongside hasConflicts, reviews and unresolvedThreads. */
4590
4685
  ci?: {
4591
4686
  status: "success" | "failed" | "running" | "canceled" | "unknown";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "TypeScript SDK for the git-connector v1 API (work items + iterations aggregated from GitHub/GitLab). Version published on npm tracks server releases.",
5
5
  "license": "MIT",
6
6
  "repository": {