@cesar-richard/git-connector-sdk 1.63.0 → 1.65.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 (3) hide show
  1. package/README.md +60 -0
  2. package/dist/schema.d.ts +1046 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -543,6 +543,28 @@ const client = createGitConnectorClient({
543
543
  });
544
544
  ```
545
545
 
546
+ ## Listing the labels of a project
547
+
548
+ `GET /v1/projects/{source}/{projectKey}/labels` returns the live label set
549
+ of a GitLab project or GitHub repository, including `scope` computed
550
+ server-side for GitLab scoped labels (`<scope>::<value>`). Cached in-memory
551
+ for 15 minutes (configurable via `LABELS_CACHE_TTL_MS`).
552
+
553
+ ```ts
554
+ const { data, error } = await client.GET(
555
+ "/v1/projects/{source}/{projectKey}/labels",
556
+ { params: { path: { source: "gitlab", projectKey: "group/sub/project" } } },
557
+ );
558
+ if (error) throw error;
559
+ for (const label of data.labels) {
560
+ console.log(label.scope ?? "(no scope)", label.name, label.color);
561
+ }
562
+ ```
563
+
564
+ The endpoint returns `404` when the project does not exist on the upstream
565
+ provider, `403` when the configured provider token lacks access, and `502`
566
+ on upstream unreachable (e.g. expired GitLab NSC cookie).
567
+
546
568
  ## Compatibility
547
569
 
548
570
  - Node ≥ 18 (uses global `fetch`).
@@ -550,6 +572,44 @@ const client = createGitConnectorClient({
550
572
  - Modern browsers (no Node-only APIs).
551
573
  - ESM only.
552
574
 
575
+ ## User identities
576
+
577
+ Group multiple `(provider, login)` aliases under one canonical identity. Filter
578
+ any `?author`-supporting endpoint by identity instead of login.
579
+
580
+ ```ts
581
+ // List identities (paginated, with optional search)
582
+ const { data } = await client.GET("/v1/identities", {
583
+ params: { query: { limit: 50, q: "thomas" } },
584
+ });
585
+
586
+ // Create one with initial aliases
587
+ const { data: created } = await client.POST("/v1/identities", {
588
+ body: {
589
+ displayName: "Thomas",
590
+ aliases: [
591
+ { provider: "github", login: "tfi90" },
592
+ { provider: "gitlab", login: "70666666" },
593
+ ],
594
+ },
595
+ });
596
+
597
+ // Attach an alias later — moves it from another identity if needed
598
+ await client.POST("/v1/identities/{id}/aliases", {
599
+ params: { path: { id: created.id } },
600
+ body: { provider: "github", login: "anotherlogin" },
601
+ });
602
+
603
+ // Filter work items / events / activities / deliverables by identity
604
+ const { data: workItems } = await client.GET("/v1/work-items", {
605
+ params: { query: { identity: String(created.id), withIdentity: "1" } },
606
+ });
607
+ // Each work item now carries `authorIdentity: { id, displayName } | null`.
608
+ ```
609
+
610
+ `?identity` and `?author` are mutually exclusive: passing both returns 400.
611
+ `?withIdentity=1` opts into the `authorIdentity` field on each item.
612
+
553
613
  ## Related
554
614
 
555
615
  - **Server / control UI:** [git-connector](https://github.com/cesar-richard-ei/git-connector)
package/dist/schema.d.ts CHANGED
@@ -116,6 +116,86 @@ export interface paths {
116
116
  patch: operations["patchV1ProjectsBySourceByProjectKeyDelivery-rules"];
117
117
  trace?: never;
118
118
  };
119
+ "/v1/projects/{source}/{projectKey}/labels": {
120
+ parameters: {
121
+ query?: never;
122
+ header?: never;
123
+ path?: never;
124
+ cookie?: never;
125
+ };
126
+ get: operations["getV1ProjectsBySourceByProjectKeyLabels"];
127
+ put?: never;
128
+ post?: never;
129
+ delete?: never;
130
+ options?: never;
131
+ head?: never;
132
+ patch?: never;
133
+ trace?: never;
134
+ };
135
+ "/v1/identities": {
136
+ parameters: {
137
+ query?: never;
138
+ header?: never;
139
+ path?: never;
140
+ cookie?: never;
141
+ };
142
+ get: operations["getV1Identities"];
143
+ put?: never;
144
+ post: operations["postV1Identities"];
145
+ delete?: never;
146
+ options?: never;
147
+ head?: never;
148
+ patch?: never;
149
+ trace?: never;
150
+ };
151
+ "/v1/identities/{id}": {
152
+ parameters: {
153
+ query?: never;
154
+ header?: never;
155
+ path?: never;
156
+ cookie?: never;
157
+ };
158
+ get: operations["getV1IdentitiesById"];
159
+ put?: never;
160
+ post?: never;
161
+ delete: operations["deleteV1IdentitiesById"];
162
+ options?: never;
163
+ head?: never;
164
+ patch: operations["patchV1IdentitiesById"];
165
+ trace?: never;
166
+ };
167
+ "/v1/identities/{id}/aliases": {
168
+ parameters: {
169
+ query?: never;
170
+ header?: never;
171
+ path?: never;
172
+ cookie?: never;
173
+ };
174
+ get?: never;
175
+ put?: never;
176
+ post: operations["postV1IdentitiesByIdAliases"];
177
+ delete?: never;
178
+ options?: never;
179
+ head?: never;
180
+ patch?: never;
181
+ trace?: never;
182
+ };
183
+ "/v1/identities/{id}/aliases/{provider}/{login}": {
184
+ parameters: {
185
+ query?: never;
186
+ header?: never;
187
+ path?: never;
188
+ cookie?: never;
189
+ };
190
+ get?: never;
191
+ put?: never;
192
+ post?: never;
193
+ delete: operations["deleteV1IdentitiesByIdAliasesByProviderByLogin"];
194
+ options?: never;
195
+ head?: never;
196
+ patch?: never;
197
+ trace?: never;
198
+ };
119
199
  }
120
200
  export type webhooks = Record<string, never>;
121
201
  export interface components {
@@ -135,6 +215,10 @@ export interface components {
135
215
  createdAt: string;
136
216
  updatedAt: string;
137
217
  mergedAt: string | null;
218
+ authorIdentity?: {
219
+ id: string | number;
220
+ displayName: string;
221
+ } | null;
138
222
  }[];
139
223
  total: string | number;
140
224
  limit: string | number;
@@ -154,6 +238,10 @@ export interface components {
154
238
  createdAt: string;
155
239
  updatedAt: string;
156
240
  mergedAt: string | null;
241
+ authorIdentity?: {
242
+ id: string | number;
243
+ displayName: string;
244
+ } | null;
157
245
  };
158
246
  ActivityIteration: {
159
247
  id: string | number;
@@ -162,6 +250,10 @@ export interface components {
162
250
  dueDate: string | null;
163
251
  state: "upcoming" | "current" | "closed" | "unknown";
164
252
  };
253
+ AliasCreate: {
254
+ provider: "github" | "gitlab";
255
+ login: string;
256
+ };
165
257
  Comment: {
166
258
  id: string;
167
259
  source: "github" | "gitlab";
@@ -325,6 +417,10 @@ export interface components {
325
417
  attributable: boolean;
326
418
  }[];
327
419
  };
420
+ authorIdentity?: {
421
+ id: string | number;
422
+ displayName: string;
423
+ } | null;
328
424
  };
329
425
  DeliverablesListResponse: {
330
426
  issues: {
@@ -451,6 +547,10 @@ export interface components {
451
547
  attributable: boolean;
452
548
  }[];
453
549
  };
550
+ authorIdentity?: {
551
+ id: string | number;
552
+ displayName: string;
553
+ } | null;
454
554
  }[];
455
555
  };
456
556
  DeliveryRules: {
@@ -489,6 +589,10 @@ export interface components {
489
589
  name: string | null;
490
590
  email: string | null;
491
591
  };
592
+ authorIdentity?: {
593
+ id: string | number;
594
+ displayName: string;
595
+ } | null;
492
596
  }[];
493
597
  total: string | number;
494
598
  nextCursor: string | null;
@@ -514,6 +618,68 @@ export interface components {
514
618
  name: string | null;
515
619
  email: string | null;
516
620
  };
621
+ authorIdentity?: {
622
+ id: string | number;
623
+ displayName: string;
624
+ } | null;
625
+ };
626
+ IdentitiesListResponse: {
627
+ identities: {
628
+ id: string | number;
629
+ displayName: string;
630
+ email: string | null;
631
+ avatarUrl: string | null;
632
+ aliases: {
633
+ provider: "github" | "gitlab";
634
+ login: string;
635
+ createdAt: string;
636
+ }[];
637
+ createdAt: string;
638
+ updatedAt: string;
639
+ }[];
640
+ total: string | number;
641
+ limit: string | number;
642
+ offset: string | number;
643
+ };
644
+ Identity: {
645
+ id: string | number;
646
+ displayName: string;
647
+ email: string | null;
648
+ avatarUrl: string | null;
649
+ aliases: {
650
+ provider: "github" | "gitlab";
651
+ login: string;
652
+ createdAt: string;
653
+ }[];
654
+ createdAt: string;
655
+ updatedAt: string;
656
+ };
657
+ IdentityAlias: {
658
+ provider: "github" | "gitlab";
659
+ login: string;
660
+ createdAt: string;
661
+ };
662
+ IdentityAliasInit: {
663
+ provider: "github" | "gitlab";
664
+ login: string;
665
+ };
666
+ IdentityCreate: {
667
+ displayName: string;
668
+ email?: string | null;
669
+ avatarUrl?: string | null;
670
+ aliases?: {
671
+ provider: "github" | "gitlab";
672
+ login: string;
673
+ }[];
674
+ };
675
+ IdentityPatch: {
676
+ displayName?: string;
677
+ email?: string | null;
678
+ avatarUrl?: string | null;
679
+ };
680
+ IdentitySummary: {
681
+ id: string | number;
682
+ displayName: string;
517
683
  };
518
684
  IterationWithCount: {
519
685
  id: string | number;
@@ -623,6 +789,21 @@ export interface components {
623
789
  matchEnd: string | number;
624
790
  } | null;
625
791
  };
792
+ ProjectLabel: {
793
+ name: string;
794
+ color: string;
795
+ description: string | null;
796
+ scope: string | null;
797
+ };
798
+ ProjectLabelsResponse: {
799
+ labels: {
800
+ name: string;
801
+ color: string;
802
+ description: string | null;
803
+ scope: string | null;
804
+ }[];
805
+ fetchedAt: string;
806
+ };
626
807
  Provider: "github" | "gitlab";
627
808
  ResolvedUser: {
628
809
  id: string;
@@ -829,6 +1010,10 @@ export interface components {
829
1010
  parentType: "issue" | "pr" | "mr";
830
1011
  parentNumber: string | number;
831
1012
  }[];
1013
+ authorIdentity?: {
1014
+ id: string | number;
1015
+ displayName: string;
1016
+ } | null;
832
1017
  };
833
1018
  WorkItemListResponse: {
834
1019
  items: {
@@ -967,6 +1152,10 @@ export interface components {
967
1152
  parentType: "issue" | "pr" | "mr";
968
1153
  parentNumber: string | number;
969
1154
  }[];
1155
+ authorIdentity?: {
1156
+ id: string | number;
1157
+ displayName: string;
1158
+ } | null;
970
1159
  }[];
971
1160
  total: string | number;
972
1161
  limit: string | number;
@@ -1005,6 +1194,10 @@ export interface operations {
1005
1194
  reviewerIs?: string;
1006
1195
  /** @description Login (case-insensitive) used to compute linkedActivities[].reviewStatus. When the viewer is in a PR's requested reviewers and no verdict is active, reviewStatus is 'open-awaiting-my-review' instead of 'open-awaiting-other-review'. */
1007
1196
  viewer?: string;
1197
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?author. */
1198
+ identity?: string;
1199
+ /** @description When '1', enriches each item with `authorIdentity: { id, displayName } | null`. */
1200
+ withIdentity?: string;
1008
1201
  };
1009
1202
  header?: never;
1010
1203
  path?: never;
@@ -1154,6 +1347,10 @@ export interface operations {
1154
1347
  parentType: "issue" | "pr" | "mr";
1155
1348
  parentNumber: string | number;
1156
1349
  }[];
1350
+ authorIdentity?: {
1351
+ id: string | number;
1352
+ displayName: string;
1353
+ } | null;
1157
1354
  }[];
1158
1355
  total: string | number;
1159
1356
  limit: string | number;
@@ -1296,6 +1493,10 @@ export interface operations {
1296
1493
  parentType: "issue" | "pr" | "mr";
1297
1494
  parentNumber: string | number;
1298
1495
  }[];
1496
+ authorIdentity?: {
1497
+ id: string | number;
1498
+ displayName: string;
1499
+ } | null;
1299
1500
  }[];
1300
1501
  total: string | number;
1301
1502
  limit: string | number;
@@ -1438,6 +1639,10 @@ export interface operations {
1438
1639
  parentType: "issue" | "pr" | "mr";
1439
1640
  parentNumber: string | number;
1440
1641
  }[];
1642
+ authorIdentity?: {
1643
+ id: string | number;
1644
+ displayName: string;
1645
+ } | null;
1441
1646
  }[];
1442
1647
  total: string | number;
1443
1648
  limit: string | number;
@@ -1445,6 +1650,38 @@ export interface operations {
1445
1650
  };
1446
1651
  };
1447
1652
  };
1653
+ 400: {
1654
+ headers: {
1655
+ [name: string]: unknown;
1656
+ };
1657
+ content: {
1658
+ "application/json": {
1659
+ error: string;
1660
+ };
1661
+ "multipart/form-data": {
1662
+ error: string;
1663
+ };
1664
+ "text/plain": {
1665
+ error: string;
1666
+ };
1667
+ };
1668
+ };
1669
+ 404: {
1670
+ headers: {
1671
+ [name: string]: unknown;
1672
+ };
1673
+ content: {
1674
+ "application/json": {
1675
+ error: string;
1676
+ };
1677
+ "multipart/form-data": {
1678
+ error: string;
1679
+ };
1680
+ "text/plain": {
1681
+ error: string;
1682
+ };
1683
+ };
1684
+ };
1448
1685
  };
1449
1686
  };
1450
1687
  "getV1Work-itemsBySourceByProjectKeyByNumber": {
@@ -1604,6 +1841,10 @@ export interface operations {
1604
1841
  parentType: "issue" | "pr" | "mr";
1605
1842
  parentNumber: string | number;
1606
1843
  }[];
1844
+ authorIdentity?: {
1845
+ id: string | number;
1846
+ displayName: string;
1847
+ } | null;
1607
1848
  };
1608
1849
  "multipart/form-data": {
1609
1850
  id: string;
@@ -1741,6 +1982,10 @@ export interface operations {
1741
1982
  parentType: "issue" | "pr" | "mr";
1742
1983
  parentNumber: string | number;
1743
1984
  }[];
1985
+ authorIdentity?: {
1986
+ id: string | number;
1987
+ displayName: string;
1988
+ } | null;
1744
1989
  };
1745
1990
  "text/plain": {
1746
1991
  id: string;
@@ -1878,6 +2123,10 @@ export interface operations {
1878
2123
  parentType: "issue" | "pr" | "mr";
1879
2124
  parentNumber: string | number;
1880
2125
  }[];
2126
+ authorIdentity?: {
2127
+ id: string | number;
2128
+ displayName: string;
2129
+ } | null;
1881
2130
  };
1882
2131
  };
1883
2132
  };
@@ -1968,6 +2217,10 @@ export interface operations {
1968
2217
  to?: string;
1969
2218
  /** @description Filter by author (case-insensitive). */
1970
2219
  user?: string;
2220
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?user. */
2221
+ identity?: string;
2222
+ /** @description When '1', enriches each event with `authorIdentity: { id, displayName } | null`. */
2223
+ withIdentity?: string;
1971
2224
  repo?: string;
1972
2225
  /** @description CSV: commit,comment,review,state-transition */
1973
2226
  type?: string;
@@ -2013,6 +2266,10 @@ export interface operations {
2013
2266
  name: string | null;
2014
2267
  email: string | null;
2015
2268
  };
2269
+ authorIdentity?: {
2270
+ id: string | number;
2271
+ displayName: string;
2272
+ } | null;
2016
2273
  }[];
2017
2274
  total: string | number;
2018
2275
  nextCursor: string | null;
@@ -2039,6 +2296,10 @@ export interface operations {
2039
2296
  name: string | null;
2040
2297
  email: string | null;
2041
2298
  };
2299
+ authorIdentity?: {
2300
+ id: string | number;
2301
+ displayName: string;
2302
+ } | null;
2042
2303
  }[];
2043
2304
  total: string | number;
2044
2305
  nextCursor: string | null;
@@ -2065,6 +2326,10 @@ export interface operations {
2065
2326
  name: string | null;
2066
2327
  email: string | null;
2067
2328
  };
2329
+ authorIdentity?: {
2330
+ id: string | number;
2331
+ displayName: string;
2332
+ } | null;
2068
2333
  }[];
2069
2334
  total: string | number;
2070
2335
  nextCursor: string | null;
@@ -2087,6 +2352,22 @@ export interface operations {
2087
2352
  };
2088
2353
  };
2089
2354
  };
2355
+ 404: {
2356
+ headers: {
2357
+ [name: string]: unknown;
2358
+ };
2359
+ content: {
2360
+ "application/json": {
2361
+ error: string;
2362
+ };
2363
+ "multipart/form-data": {
2364
+ error: string;
2365
+ };
2366
+ "text/plain": {
2367
+ error: string;
2368
+ };
2369
+ };
2370
+ };
2090
2371
  };
2091
2372
  };
2092
2373
  getV1Activities: {
@@ -2094,6 +2375,10 @@ export interface operations {
2094
2375
  query?: {
2095
2376
  /** @description Exact match (case-insensitive) on the activity author's GitHub/GitLab login. Does NOT match display names. */
2096
2377
  author?: string;
2378
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?author. */
2379
+ identity?: string;
2380
+ /** @description When '1', enriches each activity with `authorIdentity: { id, displayName } | null`. */
2381
+ withIdentity?: string;
2097
2382
  /** @description CSV: open,draft,merged,closed,unknown. Default returns all states. */
2098
2383
  state?: string;
2099
2384
  /** @description CSV: pr,mr,issue. Default returns all. */
@@ -2136,6 +2421,10 @@ export interface operations {
2136
2421
  createdAt: string;
2137
2422
  updatedAt: string;
2138
2423
  mergedAt: string | null;
2424
+ authorIdentity?: {
2425
+ id: string | number;
2426
+ displayName: string;
2427
+ } | null;
2139
2428
  }[];
2140
2429
  total: string | number;
2141
2430
  limit: string | number;
@@ -2156,6 +2445,10 @@ export interface operations {
2156
2445
  createdAt: string;
2157
2446
  updatedAt: string;
2158
2447
  mergedAt: string | null;
2448
+ authorIdentity?: {
2449
+ id: string | number;
2450
+ displayName: string;
2451
+ } | null;
2159
2452
  }[];
2160
2453
  total: string | number;
2161
2454
  limit: string | number;
@@ -2176,6 +2469,10 @@ export interface operations {
2176
2469
  createdAt: string;
2177
2470
  updatedAt: string;
2178
2471
  mergedAt: string | null;
2472
+ authorIdentity?: {
2473
+ id: string | number;
2474
+ displayName: string;
2475
+ } | null;
2179
2476
  }[];
2180
2477
  total: string | number;
2181
2478
  limit: string | number;
@@ -2183,6 +2480,38 @@ export interface operations {
2183
2480
  };
2184
2481
  };
2185
2482
  };
2483
+ 400: {
2484
+ headers: {
2485
+ [name: string]: unknown;
2486
+ };
2487
+ content: {
2488
+ "application/json": {
2489
+ error: string;
2490
+ };
2491
+ "multipart/form-data": {
2492
+ error: string;
2493
+ };
2494
+ "text/plain": {
2495
+ error: string;
2496
+ };
2497
+ };
2498
+ };
2499
+ 404: {
2500
+ headers: {
2501
+ [name: string]: unknown;
2502
+ };
2503
+ content: {
2504
+ "application/json": {
2505
+ error: string;
2506
+ };
2507
+ "multipart/form-data": {
2508
+ error: string;
2509
+ };
2510
+ "text/plain": {
2511
+ error: string;
2512
+ };
2513
+ };
2514
+ };
2186
2515
  };
2187
2516
  };
2188
2517
  getV1Deliverables: {
@@ -2196,6 +2525,10 @@ export interface operations {
2196
2525
  projectKey?: string;
2197
2526
  /** @description CSV of author login aliases (case-insensitive). When set, only issues attributable to one of the aliases are returned and `attribution` is populated; when absent, all window deliverables are returned with `attribution: null`. */
2198
2527
  author?: string;
2528
+ /** @description Filter by user identity ID (resolves to all aliases for attribution). Mutually exclusive with ?author. */
2529
+ identity?: string;
2530
+ /** @description When '1', attaches `authorIdentity: null` on each issue (placeholder until deliverablesCompute exposes the attributed login — see CR-553). */
2531
+ withIdentity?: string;
2199
2532
  /** @description github | gitlab. */
2200
2533
  source?: string;
2201
2534
  };
@@ -2335,6 +2668,10 @@ export interface operations {
2335
2668
  attributable: boolean;
2336
2669
  }[];
2337
2670
  };
2671
+ authorIdentity?: {
2672
+ id: string | number;
2673
+ displayName: string;
2674
+ } | null;
2338
2675
  }[];
2339
2676
  };
2340
2677
  "multipart/form-data": {
@@ -2462,6 +2799,10 @@ export interface operations {
2462
2799
  attributable: boolean;
2463
2800
  }[];
2464
2801
  };
2802
+ authorIdentity?: {
2803
+ id: string | number;
2804
+ displayName: string;
2805
+ } | null;
2465
2806
  }[];
2466
2807
  };
2467
2808
  "text/plain": {
@@ -2589,6 +2930,10 @@ export interface operations {
2589
2930
  attributable: boolean;
2590
2931
  }[];
2591
2932
  };
2933
+ authorIdentity?: {
2934
+ id: string | number;
2935
+ displayName: string;
2936
+ } | null;
2592
2937
  }[];
2593
2938
  };
2594
2939
  };
@@ -2609,6 +2954,22 @@ export interface operations {
2609
2954
  };
2610
2955
  };
2611
2956
  };
2957
+ 404: {
2958
+ headers: {
2959
+ [name: string]: unknown;
2960
+ };
2961
+ content: {
2962
+ "application/json": {
2963
+ error: string;
2964
+ };
2965
+ "multipart/form-data": {
2966
+ error: string;
2967
+ };
2968
+ "text/plain": {
2969
+ error: string;
2970
+ };
2971
+ };
2972
+ };
2612
2973
  };
2613
2974
  };
2614
2975
  "getV1ProjectsBySourceByProjectKeyDelivery-rules": {
@@ -2710,4 +3071,689 @@ export interface operations {
2710
3071
  };
2711
3072
  };
2712
3073
  };
3074
+ getV1ProjectsBySourceByProjectKeyLabels: {
3075
+ parameters: {
3076
+ query?: never;
3077
+ header?: never;
3078
+ path: {
3079
+ source: string;
3080
+ projectKey: string;
3081
+ };
3082
+ cookie?: never;
3083
+ };
3084
+ requestBody?: never;
3085
+ responses: {
3086
+ 200: {
3087
+ headers: {
3088
+ [name: string]: unknown;
3089
+ };
3090
+ content: {
3091
+ "application/json": {
3092
+ labels: {
3093
+ name: string;
3094
+ color: string;
3095
+ description: string | null;
3096
+ scope: string | null;
3097
+ }[];
3098
+ fetchedAt: string;
3099
+ };
3100
+ "multipart/form-data": {
3101
+ labels: {
3102
+ name: string;
3103
+ color: string;
3104
+ description: string | null;
3105
+ scope: string | null;
3106
+ }[];
3107
+ fetchedAt: string;
3108
+ };
3109
+ "text/plain": {
3110
+ labels: {
3111
+ name: string;
3112
+ color: string;
3113
+ description: string | null;
3114
+ scope: string | null;
3115
+ }[];
3116
+ fetchedAt: string;
3117
+ };
3118
+ };
3119
+ };
3120
+ 400: {
3121
+ headers: {
3122
+ [name: string]: unknown;
3123
+ };
3124
+ content: {
3125
+ "application/json": {
3126
+ error: string;
3127
+ };
3128
+ "multipart/form-data": {
3129
+ error: string;
3130
+ };
3131
+ "text/plain": {
3132
+ error: string;
3133
+ };
3134
+ };
3135
+ };
3136
+ 403: {
3137
+ headers: {
3138
+ [name: string]: unknown;
3139
+ };
3140
+ content: {
3141
+ "application/json": {
3142
+ error: string;
3143
+ };
3144
+ "multipart/form-data": {
3145
+ error: string;
3146
+ };
3147
+ "text/plain": {
3148
+ error: string;
3149
+ };
3150
+ };
3151
+ };
3152
+ 404: {
3153
+ headers: {
3154
+ [name: string]: unknown;
3155
+ };
3156
+ content: {
3157
+ "application/json": {
3158
+ error: string;
3159
+ };
3160
+ "multipart/form-data": {
3161
+ error: string;
3162
+ };
3163
+ "text/plain": {
3164
+ error: string;
3165
+ };
3166
+ };
3167
+ };
3168
+ 502: {
3169
+ headers: {
3170
+ [name: string]: unknown;
3171
+ };
3172
+ content: {
3173
+ "application/json": {
3174
+ error: string;
3175
+ };
3176
+ "multipart/form-data": {
3177
+ error: string;
3178
+ };
3179
+ "text/plain": {
3180
+ error: string;
3181
+ };
3182
+ };
3183
+ };
3184
+ };
3185
+ };
3186
+ getV1Identities: {
3187
+ parameters: {
3188
+ query?: {
3189
+ limit?: string;
3190
+ offset?: string;
3191
+ q?: string;
3192
+ };
3193
+ header?: never;
3194
+ path?: never;
3195
+ cookie?: never;
3196
+ };
3197
+ requestBody?: never;
3198
+ responses: {
3199
+ 200: {
3200
+ headers: {
3201
+ [name: string]: unknown;
3202
+ };
3203
+ content: {
3204
+ "application/json": {
3205
+ identities: {
3206
+ id: string | number;
3207
+ displayName: string;
3208
+ email: string | null;
3209
+ avatarUrl: string | null;
3210
+ aliases: {
3211
+ provider: "github" | "gitlab";
3212
+ login: string;
3213
+ createdAt: string;
3214
+ }[];
3215
+ createdAt: string;
3216
+ updatedAt: string;
3217
+ }[];
3218
+ total: string | number;
3219
+ limit: string | number;
3220
+ offset: string | number;
3221
+ };
3222
+ "multipart/form-data": {
3223
+ identities: {
3224
+ id: string | number;
3225
+ displayName: string;
3226
+ email: string | null;
3227
+ avatarUrl: string | null;
3228
+ aliases: {
3229
+ provider: "github" | "gitlab";
3230
+ login: string;
3231
+ createdAt: string;
3232
+ }[];
3233
+ createdAt: string;
3234
+ updatedAt: string;
3235
+ }[];
3236
+ total: string | number;
3237
+ limit: string | number;
3238
+ offset: string | number;
3239
+ };
3240
+ "text/plain": {
3241
+ identities: {
3242
+ id: string | number;
3243
+ displayName: string;
3244
+ email: string | null;
3245
+ avatarUrl: string | null;
3246
+ aliases: {
3247
+ provider: "github" | "gitlab";
3248
+ login: string;
3249
+ createdAt: string;
3250
+ }[];
3251
+ createdAt: string;
3252
+ updatedAt: string;
3253
+ }[];
3254
+ total: string | number;
3255
+ limit: string | number;
3256
+ offset: string | number;
3257
+ };
3258
+ };
3259
+ };
3260
+ };
3261
+ };
3262
+ postV1Identities: {
3263
+ parameters: {
3264
+ query?: never;
3265
+ header?: never;
3266
+ path?: never;
3267
+ cookie?: never;
3268
+ };
3269
+ requestBody: {
3270
+ content: {
3271
+ "application/json": {
3272
+ displayName: string;
3273
+ email?: string | null;
3274
+ avatarUrl?: string | null;
3275
+ aliases?: {
3276
+ provider: "github" | "gitlab";
3277
+ login: string;
3278
+ }[];
3279
+ };
3280
+ "multipart/form-data": {
3281
+ displayName: string;
3282
+ email?: string | null;
3283
+ avatarUrl?: string | null;
3284
+ aliases?: {
3285
+ provider: "github" | "gitlab";
3286
+ login: string;
3287
+ }[];
3288
+ };
3289
+ "text/plain": {
3290
+ displayName: string;
3291
+ email?: string | null;
3292
+ avatarUrl?: string | null;
3293
+ aliases?: {
3294
+ provider: "github" | "gitlab";
3295
+ login: string;
3296
+ }[];
3297
+ };
3298
+ };
3299
+ };
3300
+ responses: {
3301
+ 201: {
3302
+ headers: {
3303
+ [name: string]: unknown;
3304
+ };
3305
+ content: {
3306
+ "application/json": {
3307
+ id: string | number;
3308
+ displayName: string;
3309
+ email: string | null;
3310
+ avatarUrl: string | null;
3311
+ aliases: {
3312
+ provider: "github" | "gitlab";
3313
+ login: string;
3314
+ createdAt: string;
3315
+ }[];
3316
+ createdAt: string;
3317
+ updatedAt: string;
3318
+ };
3319
+ "multipart/form-data": {
3320
+ id: string | number;
3321
+ displayName: string;
3322
+ email: string | null;
3323
+ avatarUrl: string | null;
3324
+ aliases: {
3325
+ provider: "github" | "gitlab";
3326
+ login: string;
3327
+ createdAt: string;
3328
+ }[];
3329
+ createdAt: string;
3330
+ updatedAt: string;
3331
+ };
3332
+ "text/plain": {
3333
+ id: string | number;
3334
+ displayName: string;
3335
+ email: string | null;
3336
+ avatarUrl: string | null;
3337
+ aliases: {
3338
+ provider: "github" | "gitlab";
3339
+ login: string;
3340
+ createdAt: string;
3341
+ }[];
3342
+ createdAt: string;
3343
+ updatedAt: string;
3344
+ };
3345
+ };
3346
+ };
3347
+ };
3348
+ };
3349
+ getV1IdentitiesById: {
3350
+ parameters: {
3351
+ query?: never;
3352
+ header?: never;
3353
+ path: {
3354
+ id: string;
3355
+ };
3356
+ cookie?: never;
3357
+ };
3358
+ requestBody?: never;
3359
+ responses: {
3360
+ 200: {
3361
+ headers: {
3362
+ [name: string]: unknown;
3363
+ };
3364
+ content: {
3365
+ "application/json": {
3366
+ id: string | number;
3367
+ displayName: string;
3368
+ email: string | null;
3369
+ avatarUrl: string | null;
3370
+ aliases: {
3371
+ provider: "github" | "gitlab";
3372
+ login: string;
3373
+ createdAt: string;
3374
+ }[];
3375
+ createdAt: string;
3376
+ updatedAt: string;
3377
+ };
3378
+ "multipart/form-data": {
3379
+ id: string | number;
3380
+ displayName: string;
3381
+ email: string | null;
3382
+ avatarUrl: string | null;
3383
+ aliases: {
3384
+ provider: "github" | "gitlab";
3385
+ login: string;
3386
+ createdAt: string;
3387
+ }[];
3388
+ createdAt: string;
3389
+ updatedAt: string;
3390
+ };
3391
+ "text/plain": {
3392
+ id: string | number;
3393
+ displayName: string;
3394
+ email: string | null;
3395
+ avatarUrl: string | null;
3396
+ aliases: {
3397
+ provider: "github" | "gitlab";
3398
+ login: string;
3399
+ createdAt: string;
3400
+ }[];
3401
+ createdAt: string;
3402
+ updatedAt: string;
3403
+ };
3404
+ };
3405
+ };
3406
+ 400: {
3407
+ headers: {
3408
+ [name: string]: unknown;
3409
+ };
3410
+ content: {
3411
+ "application/json": {
3412
+ error: string;
3413
+ };
3414
+ "multipart/form-data": {
3415
+ error: string;
3416
+ };
3417
+ "text/plain": {
3418
+ error: string;
3419
+ };
3420
+ };
3421
+ };
3422
+ 404: {
3423
+ headers: {
3424
+ [name: string]: unknown;
3425
+ };
3426
+ content: {
3427
+ "application/json": {
3428
+ error: string;
3429
+ };
3430
+ "multipart/form-data": {
3431
+ error: string;
3432
+ };
3433
+ "text/plain": {
3434
+ error: string;
3435
+ };
3436
+ };
3437
+ };
3438
+ };
3439
+ };
3440
+ deleteV1IdentitiesById: {
3441
+ parameters: {
3442
+ query?: never;
3443
+ header?: never;
3444
+ path: {
3445
+ id: string;
3446
+ };
3447
+ cookie?: never;
3448
+ };
3449
+ requestBody?: never;
3450
+ responses: {
3451
+ 204: {
3452
+ headers: {
3453
+ [name: string]: unknown;
3454
+ };
3455
+ content?: never;
3456
+ };
3457
+ 400: {
3458
+ headers: {
3459
+ [name: string]: unknown;
3460
+ };
3461
+ content: {
3462
+ "application/json": {
3463
+ error: string;
3464
+ };
3465
+ "multipart/form-data": {
3466
+ error: string;
3467
+ };
3468
+ "text/plain": {
3469
+ error: string;
3470
+ };
3471
+ };
3472
+ };
3473
+ 404: {
3474
+ headers: {
3475
+ [name: string]: unknown;
3476
+ };
3477
+ content: {
3478
+ "application/json": {
3479
+ error: string;
3480
+ };
3481
+ "multipart/form-data": {
3482
+ error: string;
3483
+ };
3484
+ "text/plain": {
3485
+ error: string;
3486
+ };
3487
+ };
3488
+ };
3489
+ };
3490
+ };
3491
+ patchV1IdentitiesById: {
3492
+ parameters: {
3493
+ query?: never;
3494
+ header?: never;
3495
+ path: {
3496
+ id: string;
3497
+ };
3498
+ cookie?: never;
3499
+ };
3500
+ requestBody: {
3501
+ content: {
3502
+ "application/json": {
3503
+ displayName?: string;
3504
+ email?: string | null;
3505
+ avatarUrl?: string | null;
3506
+ };
3507
+ "multipart/form-data": {
3508
+ displayName?: string;
3509
+ email?: string | null;
3510
+ avatarUrl?: string | null;
3511
+ };
3512
+ "text/plain": {
3513
+ displayName?: string;
3514
+ email?: string | null;
3515
+ avatarUrl?: string | null;
3516
+ };
3517
+ };
3518
+ };
3519
+ responses: {
3520
+ 200: {
3521
+ headers: {
3522
+ [name: string]: unknown;
3523
+ };
3524
+ content: {
3525
+ "application/json": {
3526
+ id: string | number;
3527
+ displayName: string;
3528
+ email: string | null;
3529
+ avatarUrl: string | null;
3530
+ aliases: {
3531
+ provider: "github" | "gitlab";
3532
+ login: string;
3533
+ createdAt: string;
3534
+ }[];
3535
+ createdAt: string;
3536
+ updatedAt: string;
3537
+ };
3538
+ "multipart/form-data": {
3539
+ id: string | number;
3540
+ displayName: string;
3541
+ email: string | null;
3542
+ avatarUrl: string | null;
3543
+ aliases: {
3544
+ provider: "github" | "gitlab";
3545
+ login: string;
3546
+ createdAt: string;
3547
+ }[];
3548
+ createdAt: string;
3549
+ updatedAt: string;
3550
+ };
3551
+ "text/plain": {
3552
+ id: string | number;
3553
+ displayName: string;
3554
+ email: string | null;
3555
+ avatarUrl: string | null;
3556
+ aliases: {
3557
+ provider: "github" | "gitlab";
3558
+ login: string;
3559
+ createdAt: string;
3560
+ }[];
3561
+ createdAt: string;
3562
+ updatedAt: string;
3563
+ };
3564
+ };
3565
+ };
3566
+ 400: {
3567
+ headers: {
3568
+ [name: string]: unknown;
3569
+ };
3570
+ content: {
3571
+ "application/json": {
3572
+ error: string;
3573
+ };
3574
+ "multipart/form-data": {
3575
+ error: string;
3576
+ };
3577
+ "text/plain": {
3578
+ error: string;
3579
+ };
3580
+ };
3581
+ };
3582
+ 404: {
3583
+ headers: {
3584
+ [name: string]: unknown;
3585
+ };
3586
+ content: {
3587
+ "application/json": {
3588
+ error: string;
3589
+ };
3590
+ "multipart/form-data": {
3591
+ error: string;
3592
+ };
3593
+ "text/plain": {
3594
+ error: string;
3595
+ };
3596
+ };
3597
+ };
3598
+ };
3599
+ };
3600
+ postV1IdentitiesByIdAliases: {
3601
+ parameters: {
3602
+ query?: never;
3603
+ header?: never;
3604
+ path: {
3605
+ id: string;
3606
+ };
3607
+ cookie?: never;
3608
+ };
3609
+ requestBody: {
3610
+ content: {
3611
+ "application/json": {
3612
+ provider: "github" | "gitlab";
3613
+ login: string;
3614
+ };
3615
+ "multipart/form-data": {
3616
+ provider: "github" | "gitlab";
3617
+ login: string;
3618
+ };
3619
+ "text/plain": {
3620
+ provider: "github" | "gitlab";
3621
+ login: string;
3622
+ };
3623
+ };
3624
+ };
3625
+ responses: {
3626
+ 200: {
3627
+ headers: {
3628
+ [name: string]: unknown;
3629
+ };
3630
+ content: {
3631
+ "application/json": {
3632
+ id: string | number;
3633
+ displayName: string;
3634
+ email: string | null;
3635
+ avatarUrl: string | null;
3636
+ aliases: {
3637
+ provider: "github" | "gitlab";
3638
+ login: string;
3639
+ createdAt: string;
3640
+ }[];
3641
+ createdAt: string;
3642
+ updatedAt: string;
3643
+ };
3644
+ "multipart/form-data": {
3645
+ id: string | number;
3646
+ displayName: string;
3647
+ email: string | null;
3648
+ avatarUrl: string | null;
3649
+ aliases: {
3650
+ provider: "github" | "gitlab";
3651
+ login: string;
3652
+ createdAt: string;
3653
+ }[];
3654
+ createdAt: string;
3655
+ updatedAt: string;
3656
+ };
3657
+ "text/plain": {
3658
+ id: string | number;
3659
+ displayName: string;
3660
+ email: string | null;
3661
+ avatarUrl: string | null;
3662
+ aliases: {
3663
+ provider: "github" | "gitlab";
3664
+ login: string;
3665
+ createdAt: string;
3666
+ }[];
3667
+ createdAt: string;
3668
+ updatedAt: string;
3669
+ };
3670
+ };
3671
+ };
3672
+ 400: {
3673
+ headers: {
3674
+ [name: string]: unknown;
3675
+ };
3676
+ content: {
3677
+ "application/json": {
3678
+ error: string;
3679
+ };
3680
+ "multipart/form-data": {
3681
+ error: string;
3682
+ };
3683
+ "text/plain": {
3684
+ error: string;
3685
+ };
3686
+ };
3687
+ };
3688
+ 404: {
3689
+ headers: {
3690
+ [name: string]: unknown;
3691
+ };
3692
+ content: {
3693
+ "application/json": {
3694
+ error: string;
3695
+ };
3696
+ "multipart/form-data": {
3697
+ error: string;
3698
+ };
3699
+ "text/plain": {
3700
+ error: string;
3701
+ };
3702
+ };
3703
+ };
3704
+ };
3705
+ };
3706
+ deleteV1IdentitiesByIdAliasesByProviderByLogin: {
3707
+ parameters: {
3708
+ query?: never;
3709
+ header?: never;
3710
+ path: {
3711
+ id: string;
3712
+ provider: string;
3713
+ login: string;
3714
+ };
3715
+ cookie?: never;
3716
+ };
3717
+ requestBody?: never;
3718
+ responses: {
3719
+ 204: {
3720
+ headers: {
3721
+ [name: string]: unknown;
3722
+ };
3723
+ content?: never;
3724
+ };
3725
+ 400: {
3726
+ headers: {
3727
+ [name: string]: unknown;
3728
+ };
3729
+ content: {
3730
+ "application/json": {
3731
+ error: string;
3732
+ };
3733
+ "multipart/form-data": {
3734
+ error: string;
3735
+ };
3736
+ "text/plain": {
3737
+ error: string;
3738
+ };
3739
+ };
3740
+ };
3741
+ 404: {
3742
+ headers: {
3743
+ [name: string]: unknown;
3744
+ };
3745
+ content: {
3746
+ "application/json": {
3747
+ error: string;
3748
+ };
3749
+ "multipart/form-data": {
3750
+ error: string;
3751
+ };
3752
+ "text/plain": {
3753
+ error: string;
3754
+ };
3755
+ };
3756
+ };
3757
+ };
3758
+ };
2713
3759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "1.63.0",
3
+ "version": "1.65.0",
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": {