@cesar-richard/git-connector-sdk 1.64.0 → 1.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -572,6 +572,60 @@ on upstream unreachable (e.g. expired GitLab NSC cookie).
572
572
  - Modern browsers (no Node-only APIs).
573
573
  - ESM only.
574
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
+
613
+ ### Auto-discovery + enrichment (server-side)
614
+
615
+ The server runs a nightly cron (3 AM UTC) + a post-sync event hook that:
616
+
617
+ 1. Scans `git_events` + `git_activities` for any `(provider, login)` not yet
618
+ attached to an identity → creates one identity per login with
619
+ `display_name = login` (fallback) and `display_name_source = "auto"`.
620
+ 2. Calls the provider's user-API (GitLab `users?username=...`, GitHub
621
+ `users.getByUsername`) to enrich `display_name`, `email`, `avatar_url`.
622
+ 3. Caches both positive AND negative results (`enriched_at` ISO timestamp,
623
+ 7-day TTL).
624
+ 4. Never touches identities edited manually (`display_name_source = "manual"`).
625
+
626
+ Identities created via `POST /v1/identities` or whose `displayName` was set
627
+ via `PATCH` keep `display_name_source = "manual"` automatically.
628
+
575
629
  ## Related
576
630
 
577
631
  - **Server / control UI:** [git-connector](https://github.com/cesar-richard-ei/git-connector)
package/dist/schema.d.ts CHANGED
@@ -132,6 +132,70 @@ export interface paths {
132
132
  patch?: never;
133
133
  trace?: never;
134
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
+ };
135
199
  }
136
200
  export type webhooks = Record<string, never>;
137
201
  export interface components {
@@ -151,6 +215,10 @@ export interface components {
151
215
  createdAt: string;
152
216
  updatedAt: string;
153
217
  mergedAt: string | null;
218
+ authorIdentity?: {
219
+ id: string | number;
220
+ displayName: string;
221
+ } | null;
154
222
  }[];
155
223
  total: string | number;
156
224
  limit: string | number;
@@ -170,6 +238,10 @@ export interface components {
170
238
  createdAt: string;
171
239
  updatedAt: string;
172
240
  mergedAt: string | null;
241
+ authorIdentity?: {
242
+ id: string | number;
243
+ displayName: string;
244
+ } | null;
173
245
  };
174
246
  ActivityIteration: {
175
247
  id: string | number;
@@ -178,6 +250,10 @@ export interface components {
178
250
  dueDate: string | null;
179
251
  state: "upcoming" | "current" | "closed" | "unknown";
180
252
  };
253
+ AliasCreate: {
254
+ provider: "github" | "gitlab";
255
+ login: string;
256
+ };
181
257
  Comment: {
182
258
  id: string;
183
259
  source: "github" | "gitlab";
@@ -341,6 +417,10 @@ export interface components {
341
417
  attributable: boolean;
342
418
  }[];
343
419
  };
420
+ authorIdentity?: {
421
+ id: string | number;
422
+ displayName: string;
423
+ } | null;
344
424
  };
345
425
  DeliverablesListResponse: {
346
426
  issues: {
@@ -467,6 +547,10 @@ export interface components {
467
547
  attributable: boolean;
468
548
  }[];
469
549
  };
550
+ authorIdentity?: {
551
+ id: string | number;
552
+ displayName: string;
553
+ } | null;
470
554
  }[];
471
555
  };
472
556
  DeliveryRules: {
@@ -505,6 +589,10 @@ export interface components {
505
589
  name: string | null;
506
590
  email: string | null;
507
591
  };
592
+ authorIdentity?: {
593
+ id: string | number;
594
+ displayName: string;
595
+ } | null;
508
596
  }[];
509
597
  total: string | number;
510
598
  nextCursor: string | null;
@@ -530,6 +618,72 @@ export interface components {
530
618
  name: string | null;
531
619
  email: string | null;
532
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
+ enrichedAt: string | null;
633
+ displayNameSource: "auto" | "manual";
634
+ aliases: {
635
+ provider: "github" | "gitlab";
636
+ login: string;
637
+ createdAt: string;
638
+ }[];
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ }[];
642
+ total: string | number;
643
+ limit: string | number;
644
+ offset: string | number;
645
+ };
646
+ Identity: {
647
+ id: string | number;
648
+ displayName: string;
649
+ email: string | null;
650
+ avatarUrl: string | null;
651
+ enrichedAt: string | null;
652
+ displayNameSource: "auto" | "manual";
653
+ aliases: {
654
+ provider: "github" | "gitlab";
655
+ login: string;
656
+ createdAt: string;
657
+ }[];
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ };
661
+ IdentityAlias: {
662
+ provider: "github" | "gitlab";
663
+ login: string;
664
+ createdAt: string;
665
+ };
666
+ IdentityAliasInit: {
667
+ provider: "github" | "gitlab";
668
+ login: string;
669
+ };
670
+ IdentityCreate: {
671
+ displayName: string;
672
+ email?: string | null;
673
+ avatarUrl?: string | null;
674
+ aliases?: {
675
+ provider: "github" | "gitlab";
676
+ login: string;
677
+ }[];
678
+ };
679
+ IdentityPatch: {
680
+ displayName?: string;
681
+ email?: string | null;
682
+ avatarUrl?: string | null;
683
+ };
684
+ IdentitySummary: {
685
+ id: string | number;
686
+ displayName: string;
533
687
  };
534
688
  IterationWithCount: {
535
689
  id: string | number;
@@ -860,6 +1014,10 @@ export interface components {
860
1014
  parentType: "issue" | "pr" | "mr";
861
1015
  parentNumber: string | number;
862
1016
  }[];
1017
+ authorIdentity?: {
1018
+ id: string | number;
1019
+ displayName: string;
1020
+ } | null;
863
1021
  };
864
1022
  WorkItemListResponse: {
865
1023
  items: {
@@ -998,6 +1156,10 @@ export interface components {
998
1156
  parentType: "issue" | "pr" | "mr";
999
1157
  parentNumber: string | number;
1000
1158
  }[];
1159
+ authorIdentity?: {
1160
+ id: string | number;
1161
+ displayName: string;
1162
+ } | null;
1001
1163
  }[];
1002
1164
  total: string | number;
1003
1165
  limit: string | number;
@@ -1036,6 +1198,10 @@ export interface operations {
1036
1198
  reviewerIs?: string;
1037
1199
  /** @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'. */
1038
1200
  viewer?: string;
1201
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?author. */
1202
+ identity?: string;
1203
+ /** @description When '1', enriches each item with `authorIdentity: { id, displayName } | null`. */
1204
+ withIdentity?: string;
1039
1205
  };
1040
1206
  header?: never;
1041
1207
  path?: never;
@@ -1185,6 +1351,10 @@ export interface operations {
1185
1351
  parentType: "issue" | "pr" | "mr";
1186
1352
  parentNumber: string | number;
1187
1353
  }[];
1354
+ authorIdentity?: {
1355
+ id: string | number;
1356
+ displayName: string;
1357
+ } | null;
1188
1358
  }[];
1189
1359
  total: string | number;
1190
1360
  limit: string | number;
@@ -1327,6 +1497,10 @@ export interface operations {
1327
1497
  parentType: "issue" | "pr" | "mr";
1328
1498
  parentNumber: string | number;
1329
1499
  }[];
1500
+ authorIdentity?: {
1501
+ id: string | number;
1502
+ displayName: string;
1503
+ } | null;
1330
1504
  }[];
1331
1505
  total: string | number;
1332
1506
  limit: string | number;
@@ -1469,6 +1643,10 @@ export interface operations {
1469
1643
  parentType: "issue" | "pr" | "mr";
1470
1644
  parentNumber: string | number;
1471
1645
  }[];
1646
+ authorIdentity?: {
1647
+ id: string | number;
1648
+ displayName: string;
1649
+ } | null;
1472
1650
  }[];
1473
1651
  total: string | number;
1474
1652
  limit: string | number;
@@ -1476,6 +1654,38 @@ export interface operations {
1476
1654
  };
1477
1655
  };
1478
1656
  };
1657
+ 400: {
1658
+ headers: {
1659
+ [name: string]: unknown;
1660
+ };
1661
+ content: {
1662
+ "application/json": {
1663
+ error: string;
1664
+ };
1665
+ "multipart/form-data": {
1666
+ error: string;
1667
+ };
1668
+ "text/plain": {
1669
+ error: string;
1670
+ };
1671
+ };
1672
+ };
1673
+ 404: {
1674
+ headers: {
1675
+ [name: string]: unknown;
1676
+ };
1677
+ content: {
1678
+ "application/json": {
1679
+ error: string;
1680
+ };
1681
+ "multipart/form-data": {
1682
+ error: string;
1683
+ };
1684
+ "text/plain": {
1685
+ error: string;
1686
+ };
1687
+ };
1688
+ };
1479
1689
  };
1480
1690
  };
1481
1691
  "getV1Work-itemsBySourceByProjectKeyByNumber": {
@@ -1635,6 +1845,10 @@ export interface operations {
1635
1845
  parentType: "issue" | "pr" | "mr";
1636
1846
  parentNumber: string | number;
1637
1847
  }[];
1848
+ authorIdentity?: {
1849
+ id: string | number;
1850
+ displayName: string;
1851
+ } | null;
1638
1852
  };
1639
1853
  "multipart/form-data": {
1640
1854
  id: string;
@@ -1772,6 +1986,10 @@ export interface operations {
1772
1986
  parentType: "issue" | "pr" | "mr";
1773
1987
  parentNumber: string | number;
1774
1988
  }[];
1989
+ authorIdentity?: {
1990
+ id: string | number;
1991
+ displayName: string;
1992
+ } | null;
1775
1993
  };
1776
1994
  "text/plain": {
1777
1995
  id: string;
@@ -1909,6 +2127,10 @@ export interface operations {
1909
2127
  parentType: "issue" | "pr" | "mr";
1910
2128
  parentNumber: string | number;
1911
2129
  }[];
2130
+ authorIdentity?: {
2131
+ id: string | number;
2132
+ displayName: string;
2133
+ } | null;
1912
2134
  };
1913
2135
  };
1914
2136
  };
@@ -1999,6 +2221,10 @@ export interface operations {
1999
2221
  to?: string;
2000
2222
  /** @description Filter by author (case-insensitive). */
2001
2223
  user?: string;
2224
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?user. */
2225
+ identity?: string;
2226
+ /** @description When '1', enriches each event with `authorIdentity: { id, displayName } | null`. */
2227
+ withIdentity?: string;
2002
2228
  repo?: string;
2003
2229
  /** @description CSV: commit,comment,review,state-transition */
2004
2230
  type?: string;
@@ -2044,6 +2270,10 @@ export interface operations {
2044
2270
  name: string | null;
2045
2271
  email: string | null;
2046
2272
  };
2273
+ authorIdentity?: {
2274
+ id: string | number;
2275
+ displayName: string;
2276
+ } | null;
2047
2277
  }[];
2048
2278
  total: string | number;
2049
2279
  nextCursor: string | null;
@@ -2070,6 +2300,10 @@ export interface operations {
2070
2300
  name: string | null;
2071
2301
  email: string | null;
2072
2302
  };
2303
+ authorIdentity?: {
2304
+ id: string | number;
2305
+ displayName: string;
2306
+ } | null;
2073
2307
  }[];
2074
2308
  total: string | number;
2075
2309
  nextCursor: string | null;
@@ -2096,6 +2330,10 @@ export interface operations {
2096
2330
  name: string | null;
2097
2331
  email: string | null;
2098
2332
  };
2333
+ authorIdentity?: {
2334
+ id: string | number;
2335
+ displayName: string;
2336
+ } | null;
2099
2337
  }[];
2100
2338
  total: string | number;
2101
2339
  nextCursor: string | null;
@@ -2118,6 +2356,22 @@ export interface operations {
2118
2356
  };
2119
2357
  };
2120
2358
  };
2359
+ 404: {
2360
+ headers: {
2361
+ [name: string]: unknown;
2362
+ };
2363
+ content: {
2364
+ "application/json": {
2365
+ error: string;
2366
+ };
2367
+ "multipart/form-data": {
2368
+ error: string;
2369
+ };
2370
+ "text/plain": {
2371
+ error: string;
2372
+ };
2373
+ };
2374
+ };
2121
2375
  };
2122
2376
  };
2123
2377
  getV1Activities: {
@@ -2125,6 +2379,10 @@ export interface operations {
2125
2379
  query?: {
2126
2380
  /** @description Exact match (case-insensitive) on the activity author's GitHub/GitLab login. Does NOT match display names. */
2127
2381
  author?: string;
2382
+ /** @description Filter by user identity ID (resolves to all aliases). Mutually exclusive with ?author. */
2383
+ identity?: string;
2384
+ /** @description When '1', enriches each activity with `authorIdentity: { id, displayName } | null`. */
2385
+ withIdentity?: string;
2128
2386
  /** @description CSV: open,draft,merged,closed,unknown. Default returns all states. */
2129
2387
  state?: string;
2130
2388
  /** @description CSV: pr,mr,issue. Default returns all. */
@@ -2167,6 +2425,10 @@ export interface operations {
2167
2425
  createdAt: string;
2168
2426
  updatedAt: string;
2169
2427
  mergedAt: string | null;
2428
+ authorIdentity?: {
2429
+ id: string | number;
2430
+ displayName: string;
2431
+ } | null;
2170
2432
  }[];
2171
2433
  total: string | number;
2172
2434
  limit: string | number;
@@ -2187,6 +2449,10 @@ export interface operations {
2187
2449
  createdAt: string;
2188
2450
  updatedAt: string;
2189
2451
  mergedAt: string | null;
2452
+ authorIdentity?: {
2453
+ id: string | number;
2454
+ displayName: string;
2455
+ } | null;
2190
2456
  }[];
2191
2457
  total: string | number;
2192
2458
  limit: string | number;
@@ -2207,6 +2473,10 @@ export interface operations {
2207
2473
  createdAt: string;
2208
2474
  updatedAt: string;
2209
2475
  mergedAt: string | null;
2476
+ authorIdentity?: {
2477
+ id: string | number;
2478
+ displayName: string;
2479
+ } | null;
2210
2480
  }[];
2211
2481
  total: string | number;
2212
2482
  limit: string | number;
@@ -2214,6 +2484,38 @@ export interface operations {
2214
2484
  };
2215
2485
  };
2216
2486
  };
2487
+ 400: {
2488
+ headers: {
2489
+ [name: string]: unknown;
2490
+ };
2491
+ content: {
2492
+ "application/json": {
2493
+ error: string;
2494
+ };
2495
+ "multipart/form-data": {
2496
+ error: string;
2497
+ };
2498
+ "text/plain": {
2499
+ error: string;
2500
+ };
2501
+ };
2502
+ };
2503
+ 404: {
2504
+ headers: {
2505
+ [name: string]: unknown;
2506
+ };
2507
+ content: {
2508
+ "application/json": {
2509
+ error: string;
2510
+ };
2511
+ "multipart/form-data": {
2512
+ error: string;
2513
+ };
2514
+ "text/plain": {
2515
+ error: string;
2516
+ };
2517
+ };
2518
+ };
2217
2519
  };
2218
2520
  };
2219
2521
  getV1Deliverables: {
@@ -2227,6 +2529,10 @@ export interface operations {
2227
2529
  projectKey?: string;
2228
2530
  /** @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`. */
2229
2531
  author?: string;
2532
+ /** @description Filter by user identity ID (resolves to all aliases for attribution). Mutually exclusive with ?author. */
2533
+ identity?: string;
2534
+ /** @description When '1', attaches `authorIdentity: null` on each issue (placeholder until deliverablesCompute exposes the attributed login — see CR-553). */
2535
+ withIdentity?: string;
2230
2536
  /** @description github | gitlab. */
2231
2537
  source?: string;
2232
2538
  };
@@ -2366,6 +2672,10 @@ export interface operations {
2366
2672
  attributable: boolean;
2367
2673
  }[];
2368
2674
  };
2675
+ authorIdentity?: {
2676
+ id: string | number;
2677
+ displayName: string;
2678
+ } | null;
2369
2679
  }[];
2370
2680
  };
2371
2681
  "multipart/form-data": {
@@ -2493,6 +2803,10 @@ export interface operations {
2493
2803
  attributable: boolean;
2494
2804
  }[];
2495
2805
  };
2806
+ authorIdentity?: {
2807
+ id: string | number;
2808
+ displayName: string;
2809
+ } | null;
2496
2810
  }[];
2497
2811
  };
2498
2812
  "text/plain": {
@@ -2620,6 +2934,10 @@ export interface operations {
2620
2934
  attributable: boolean;
2621
2935
  }[];
2622
2936
  };
2937
+ authorIdentity?: {
2938
+ id: string | number;
2939
+ displayName: string;
2940
+ } | null;
2623
2941
  }[];
2624
2942
  };
2625
2943
  };
@@ -2640,6 +2958,22 @@ export interface operations {
2640
2958
  };
2641
2959
  };
2642
2960
  };
2961
+ 404: {
2962
+ headers: {
2963
+ [name: string]: unknown;
2964
+ };
2965
+ content: {
2966
+ "application/json": {
2967
+ error: string;
2968
+ };
2969
+ "multipart/form-data": {
2970
+ error: string;
2971
+ };
2972
+ "text/plain": {
2973
+ error: string;
2974
+ };
2975
+ };
2976
+ };
2643
2977
  };
2644
2978
  };
2645
2979
  "getV1ProjectsBySourceByProjectKeyDelivery-rules": {
@@ -2853,4 +3187,607 @@ export interface operations {
2853
3187
  };
2854
3188
  };
2855
3189
  };
3190
+ getV1Identities: {
3191
+ parameters: {
3192
+ query?: {
3193
+ limit?: string;
3194
+ offset?: string;
3195
+ q?: string;
3196
+ };
3197
+ header?: never;
3198
+ path?: never;
3199
+ cookie?: never;
3200
+ };
3201
+ requestBody?: never;
3202
+ responses: {
3203
+ 200: {
3204
+ headers: {
3205
+ [name: string]: unknown;
3206
+ };
3207
+ content: {
3208
+ "application/json": {
3209
+ identities: {
3210
+ id: string | number;
3211
+ displayName: string;
3212
+ email: string | null;
3213
+ avatarUrl: string | null;
3214
+ enrichedAt: string | null;
3215
+ displayNameSource: "auto" | "manual";
3216
+ aliases: {
3217
+ provider: "github" | "gitlab";
3218
+ login: string;
3219
+ createdAt: string;
3220
+ }[];
3221
+ createdAt: string;
3222
+ updatedAt: string;
3223
+ }[];
3224
+ total: string | number;
3225
+ limit: string | number;
3226
+ offset: string | number;
3227
+ };
3228
+ "multipart/form-data": {
3229
+ identities: {
3230
+ id: string | number;
3231
+ displayName: string;
3232
+ email: string | null;
3233
+ avatarUrl: string | null;
3234
+ enrichedAt: string | null;
3235
+ displayNameSource: "auto" | "manual";
3236
+ aliases: {
3237
+ provider: "github" | "gitlab";
3238
+ login: string;
3239
+ createdAt: string;
3240
+ }[];
3241
+ createdAt: string;
3242
+ updatedAt: string;
3243
+ }[];
3244
+ total: string | number;
3245
+ limit: string | number;
3246
+ offset: string | number;
3247
+ };
3248
+ "text/plain": {
3249
+ identities: {
3250
+ id: string | number;
3251
+ displayName: string;
3252
+ email: string | null;
3253
+ avatarUrl: string | null;
3254
+ enrichedAt: string | null;
3255
+ displayNameSource: "auto" | "manual";
3256
+ aliases: {
3257
+ provider: "github" | "gitlab";
3258
+ login: string;
3259
+ createdAt: string;
3260
+ }[];
3261
+ createdAt: string;
3262
+ updatedAt: string;
3263
+ }[];
3264
+ total: string | number;
3265
+ limit: string | number;
3266
+ offset: string | number;
3267
+ };
3268
+ };
3269
+ };
3270
+ };
3271
+ };
3272
+ postV1Identities: {
3273
+ parameters: {
3274
+ query?: never;
3275
+ header?: never;
3276
+ path?: never;
3277
+ cookie?: never;
3278
+ };
3279
+ requestBody: {
3280
+ content: {
3281
+ "application/json": {
3282
+ displayName: string;
3283
+ email?: string | null;
3284
+ avatarUrl?: string | null;
3285
+ aliases?: {
3286
+ provider: "github" | "gitlab";
3287
+ login: string;
3288
+ }[];
3289
+ };
3290
+ "multipart/form-data": {
3291
+ displayName: string;
3292
+ email?: string | null;
3293
+ avatarUrl?: string | null;
3294
+ aliases?: {
3295
+ provider: "github" | "gitlab";
3296
+ login: string;
3297
+ }[];
3298
+ };
3299
+ "text/plain": {
3300
+ displayName: string;
3301
+ email?: string | null;
3302
+ avatarUrl?: string | null;
3303
+ aliases?: {
3304
+ provider: "github" | "gitlab";
3305
+ login: string;
3306
+ }[];
3307
+ };
3308
+ };
3309
+ };
3310
+ responses: {
3311
+ 201: {
3312
+ headers: {
3313
+ [name: string]: unknown;
3314
+ };
3315
+ content: {
3316
+ "application/json": {
3317
+ id: string | number;
3318
+ displayName: string;
3319
+ email: string | null;
3320
+ avatarUrl: string | null;
3321
+ enrichedAt: string | null;
3322
+ displayNameSource: "auto" | "manual";
3323
+ aliases: {
3324
+ provider: "github" | "gitlab";
3325
+ login: string;
3326
+ createdAt: string;
3327
+ }[];
3328
+ createdAt: string;
3329
+ updatedAt: string;
3330
+ };
3331
+ "multipart/form-data": {
3332
+ id: string | number;
3333
+ displayName: string;
3334
+ email: string | null;
3335
+ avatarUrl: string | null;
3336
+ enrichedAt: string | null;
3337
+ displayNameSource: "auto" | "manual";
3338
+ aliases: {
3339
+ provider: "github" | "gitlab";
3340
+ login: string;
3341
+ createdAt: string;
3342
+ }[];
3343
+ createdAt: string;
3344
+ updatedAt: string;
3345
+ };
3346
+ "text/plain": {
3347
+ id: string | number;
3348
+ displayName: string;
3349
+ email: string | null;
3350
+ avatarUrl: string | null;
3351
+ enrichedAt: string | null;
3352
+ displayNameSource: "auto" | "manual";
3353
+ aliases: {
3354
+ provider: "github" | "gitlab";
3355
+ login: string;
3356
+ createdAt: string;
3357
+ }[];
3358
+ createdAt: string;
3359
+ updatedAt: string;
3360
+ };
3361
+ };
3362
+ };
3363
+ };
3364
+ };
3365
+ getV1IdentitiesById: {
3366
+ parameters: {
3367
+ query?: never;
3368
+ header?: never;
3369
+ path: {
3370
+ id: string;
3371
+ };
3372
+ cookie?: never;
3373
+ };
3374
+ requestBody?: never;
3375
+ responses: {
3376
+ 200: {
3377
+ headers: {
3378
+ [name: string]: unknown;
3379
+ };
3380
+ content: {
3381
+ "application/json": {
3382
+ id: string | number;
3383
+ displayName: string;
3384
+ email: string | null;
3385
+ avatarUrl: string | null;
3386
+ enrichedAt: string | null;
3387
+ displayNameSource: "auto" | "manual";
3388
+ aliases: {
3389
+ provider: "github" | "gitlab";
3390
+ login: string;
3391
+ createdAt: string;
3392
+ }[];
3393
+ createdAt: string;
3394
+ updatedAt: string;
3395
+ };
3396
+ "multipart/form-data": {
3397
+ id: string | number;
3398
+ displayName: string;
3399
+ email: string | null;
3400
+ avatarUrl: string | null;
3401
+ enrichedAt: string | null;
3402
+ displayNameSource: "auto" | "manual";
3403
+ aliases: {
3404
+ provider: "github" | "gitlab";
3405
+ login: string;
3406
+ createdAt: string;
3407
+ }[];
3408
+ createdAt: string;
3409
+ updatedAt: string;
3410
+ };
3411
+ "text/plain": {
3412
+ id: string | number;
3413
+ displayName: string;
3414
+ email: string | null;
3415
+ avatarUrl: string | null;
3416
+ enrichedAt: string | null;
3417
+ displayNameSource: "auto" | "manual";
3418
+ aliases: {
3419
+ provider: "github" | "gitlab";
3420
+ login: string;
3421
+ createdAt: string;
3422
+ }[];
3423
+ createdAt: string;
3424
+ updatedAt: string;
3425
+ };
3426
+ };
3427
+ };
3428
+ 400: {
3429
+ headers: {
3430
+ [name: string]: unknown;
3431
+ };
3432
+ content: {
3433
+ "application/json": {
3434
+ error: string;
3435
+ };
3436
+ "multipart/form-data": {
3437
+ error: string;
3438
+ };
3439
+ "text/plain": {
3440
+ error: string;
3441
+ };
3442
+ };
3443
+ };
3444
+ 404: {
3445
+ headers: {
3446
+ [name: string]: unknown;
3447
+ };
3448
+ content: {
3449
+ "application/json": {
3450
+ error: string;
3451
+ };
3452
+ "multipart/form-data": {
3453
+ error: string;
3454
+ };
3455
+ "text/plain": {
3456
+ error: string;
3457
+ };
3458
+ };
3459
+ };
3460
+ };
3461
+ };
3462
+ deleteV1IdentitiesById: {
3463
+ parameters: {
3464
+ query?: never;
3465
+ header?: never;
3466
+ path: {
3467
+ id: string;
3468
+ };
3469
+ cookie?: never;
3470
+ };
3471
+ requestBody?: never;
3472
+ responses: {
3473
+ 204: {
3474
+ headers: {
3475
+ [name: string]: unknown;
3476
+ };
3477
+ content?: never;
3478
+ };
3479
+ 400: {
3480
+ headers: {
3481
+ [name: string]: unknown;
3482
+ };
3483
+ content: {
3484
+ "application/json": {
3485
+ error: string;
3486
+ };
3487
+ "multipart/form-data": {
3488
+ error: string;
3489
+ };
3490
+ "text/plain": {
3491
+ error: string;
3492
+ };
3493
+ };
3494
+ };
3495
+ 404: {
3496
+ headers: {
3497
+ [name: string]: unknown;
3498
+ };
3499
+ content: {
3500
+ "application/json": {
3501
+ error: string;
3502
+ };
3503
+ "multipart/form-data": {
3504
+ error: string;
3505
+ };
3506
+ "text/plain": {
3507
+ error: string;
3508
+ };
3509
+ };
3510
+ };
3511
+ };
3512
+ };
3513
+ patchV1IdentitiesById: {
3514
+ parameters: {
3515
+ query?: never;
3516
+ header?: never;
3517
+ path: {
3518
+ id: string;
3519
+ };
3520
+ cookie?: never;
3521
+ };
3522
+ requestBody: {
3523
+ content: {
3524
+ "application/json": {
3525
+ displayName?: string;
3526
+ email?: string | null;
3527
+ avatarUrl?: string | null;
3528
+ };
3529
+ "multipart/form-data": {
3530
+ displayName?: string;
3531
+ email?: string | null;
3532
+ avatarUrl?: string | null;
3533
+ };
3534
+ "text/plain": {
3535
+ displayName?: string;
3536
+ email?: string | null;
3537
+ avatarUrl?: string | null;
3538
+ };
3539
+ };
3540
+ };
3541
+ responses: {
3542
+ 200: {
3543
+ headers: {
3544
+ [name: string]: unknown;
3545
+ };
3546
+ content: {
3547
+ "application/json": {
3548
+ id: string | number;
3549
+ displayName: string;
3550
+ email: string | null;
3551
+ avatarUrl: string | null;
3552
+ enrichedAt: string | null;
3553
+ displayNameSource: "auto" | "manual";
3554
+ aliases: {
3555
+ provider: "github" | "gitlab";
3556
+ login: string;
3557
+ createdAt: string;
3558
+ }[];
3559
+ createdAt: string;
3560
+ updatedAt: string;
3561
+ };
3562
+ "multipart/form-data": {
3563
+ id: string | number;
3564
+ displayName: string;
3565
+ email: string | null;
3566
+ avatarUrl: string | null;
3567
+ enrichedAt: string | null;
3568
+ displayNameSource: "auto" | "manual";
3569
+ aliases: {
3570
+ provider: "github" | "gitlab";
3571
+ login: string;
3572
+ createdAt: string;
3573
+ }[];
3574
+ createdAt: string;
3575
+ updatedAt: string;
3576
+ };
3577
+ "text/plain": {
3578
+ id: string | number;
3579
+ displayName: string;
3580
+ email: string | null;
3581
+ avatarUrl: string | null;
3582
+ enrichedAt: string | null;
3583
+ displayNameSource: "auto" | "manual";
3584
+ aliases: {
3585
+ provider: "github" | "gitlab";
3586
+ login: string;
3587
+ createdAt: string;
3588
+ }[];
3589
+ createdAt: string;
3590
+ updatedAt: string;
3591
+ };
3592
+ };
3593
+ };
3594
+ 400: {
3595
+ headers: {
3596
+ [name: string]: unknown;
3597
+ };
3598
+ content: {
3599
+ "application/json": {
3600
+ error: string;
3601
+ };
3602
+ "multipart/form-data": {
3603
+ error: string;
3604
+ };
3605
+ "text/plain": {
3606
+ error: string;
3607
+ };
3608
+ };
3609
+ };
3610
+ 404: {
3611
+ headers: {
3612
+ [name: string]: unknown;
3613
+ };
3614
+ content: {
3615
+ "application/json": {
3616
+ error: string;
3617
+ };
3618
+ "multipart/form-data": {
3619
+ error: string;
3620
+ };
3621
+ "text/plain": {
3622
+ error: string;
3623
+ };
3624
+ };
3625
+ };
3626
+ };
3627
+ };
3628
+ postV1IdentitiesByIdAliases: {
3629
+ parameters: {
3630
+ query?: never;
3631
+ header?: never;
3632
+ path: {
3633
+ id: string;
3634
+ };
3635
+ cookie?: never;
3636
+ };
3637
+ requestBody: {
3638
+ content: {
3639
+ "application/json": {
3640
+ provider: "github" | "gitlab";
3641
+ login: string;
3642
+ };
3643
+ "multipart/form-data": {
3644
+ provider: "github" | "gitlab";
3645
+ login: string;
3646
+ };
3647
+ "text/plain": {
3648
+ provider: "github" | "gitlab";
3649
+ login: string;
3650
+ };
3651
+ };
3652
+ };
3653
+ responses: {
3654
+ 200: {
3655
+ headers: {
3656
+ [name: string]: unknown;
3657
+ };
3658
+ content: {
3659
+ "application/json": {
3660
+ id: string | number;
3661
+ displayName: string;
3662
+ email: string | null;
3663
+ avatarUrl: string | null;
3664
+ enrichedAt: string | null;
3665
+ displayNameSource: "auto" | "manual";
3666
+ aliases: {
3667
+ provider: "github" | "gitlab";
3668
+ login: string;
3669
+ createdAt: string;
3670
+ }[];
3671
+ createdAt: string;
3672
+ updatedAt: string;
3673
+ };
3674
+ "multipart/form-data": {
3675
+ id: string | number;
3676
+ displayName: string;
3677
+ email: string | null;
3678
+ avatarUrl: string | null;
3679
+ enrichedAt: string | null;
3680
+ displayNameSource: "auto" | "manual";
3681
+ aliases: {
3682
+ provider: "github" | "gitlab";
3683
+ login: string;
3684
+ createdAt: string;
3685
+ }[];
3686
+ createdAt: string;
3687
+ updatedAt: string;
3688
+ };
3689
+ "text/plain": {
3690
+ id: string | number;
3691
+ displayName: string;
3692
+ email: string | null;
3693
+ avatarUrl: string | null;
3694
+ enrichedAt: string | null;
3695
+ displayNameSource: "auto" | "manual";
3696
+ aliases: {
3697
+ provider: "github" | "gitlab";
3698
+ login: string;
3699
+ createdAt: string;
3700
+ }[];
3701
+ createdAt: string;
3702
+ updatedAt: string;
3703
+ };
3704
+ };
3705
+ };
3706
+ 400: {
3707
+ headers: {
3708
+ [name: string]: unknown;
3709
+ };
3710
+ content: {
3711
+ "application/json": {
3712
+ error: string;
3713
+ };
3714
+ "multipart/form-data": {
3715
+ error: string;
3716
+ };
3717
+ "text/plain": {
3718
+ error: string;
3719
+ };
3720
+ };
3721
+ };
3722
+ 404: {
3723
+ headers: {
3724
+ [name: string]: unknown;
3725
+ };
3726
+ content: {
3727
+ "application/json": {
3728
+ error: string;
3729
+ };
3730
+ "multipart/form-data": {
3731
+ error: string;
3732
+ };
3733
+ "text/plain": {
3734
+ error: string;
3735
+ };
3736
+ };
3737
+ };
3738
+ };
3739
+ };
3740
+ deleteV1IdentitiesByIdAliasesByProviderByLogin: {
3741
+ parameters: {
3742
+ query?: never;
3743
+ header?: never;
3744
+ path: {
3745
+ id: string;
3746
+ provider: string;
3747
+ login: string;
3748
+ };
3749
+ cookie?: never;
3750
+ };
3751
+ requestBody?: never;
3752
+ responses: {
3753
+ 204: {
3754
+ headers: {
3755
+ [name: string]: unknown;
3756
+ };
3757
+ content?: never;
3758
+ };
3759
+ 400: {
3760
+ headers: {
3761
+ [name: string]: unknown;
3762
+ };
3763
+ content: {
3764
+ "application/json": {
3765
+ error: string;
3766
+ };
3767
+ "multipart/form-data": {
3768
+ error: string;
3769
+ };
3770
+ "text/plain": {
3771
+ error: string;
3772
+ };
3773
+ };
3774
+ };
3775
+ 404: {
3776
+ headers: {
3777
+ [name: string]: unknown;
3778
+ };
3779
+ content: {
3780
+ "application/json": {
3781
+ error: string;
3782
+ };
3783
+ "multipart/form-data": {
3784
+ error: string;
3785
+ };
3786
+ "text/plain": {
3787
+ error: string;
3788
+ };
3789
+ };
3790
+ };
3791
+ };
3792
+ };
2856
3793
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "1.64.0",
3
+ "version": "1.66.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": {