@cesar-richard/git-connector-sdk 4.13.0 → 4.15.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 (2) hide show
  1. package/dist/schema.d.ts +158 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -196,6 +196,23 @@ export interface paths {
196
196
  patch?: never;
197
197
  trace?: never;
198
198
  };
199
+ "/v1/projects/{source}/{projectKey}/statuses": {
200
+ parameters: {
201
+ query?: never;
202
+ header?: never;
203
+ path?: never;
204
+ cookie?: never;
205
+ };
206
+ /** @description Every value the tracker's native Status field can take, with its colour — the list a `workflow_rules.statusRules[].value` must be picked from. GitLab only: the GitHub Project v2 field has no reader, and that returns 400 rather than an empty list. */
207
+ get: operations["getV1ProjectsBySourceByProjectKeyStatuses"];
208
+ put?: never;
209
+ post?: never;
210
+ delete?: never;
211
+ options?: never;
212
+ head?: never;
213
+ patch?: never;
214
+ trace?: never;
215
+ };
199
216
  "/v1/identities": {
200
217
  parameters: {
201
218
  query?: never;
@@ -1920,6 +1937,26 @@ export interface components {
1920
1937
  }[];
1921
1938
  fetchedAt: string;
1922
1939
  };
1940
+ ProjectStatus: {
1941
+ /** @description Status value exactly as the tracker spells it — this is what `workflow_rules.statusRules[].value` must match, since the native-status stage of the cascade compares EXACTLY (no prefix stripping, unlike flow labels). */
1942
+ name: string;
1943
+ /** @description Raw provider form (`#1f75cb` on GitLab), `null` when the tracker gives none. Same convention as label colours: not normalized here, because `/v1` has always exposed the upstream form and a consumer that normalizes would break if this endpoint alone pre-normalized. */
1944
+ color: string | null;
1945
+ /** @description Rank the tracker gives the status, `null` when upstream says nothing. Applied to the array order, BUT measured on a real self-hosted GitLab (2026-10-07) every status came back with `position: 0` — so in practice the order falls back to the status name, alphabetically. Do not read this field as a board order: it is what the provider said, which may well be no ordering at all. A consumer re-sorting a filtered subset should expect to tie on 0 and break the tie the same way. */
1946
+ position: number | null;
1947
+ };
1948
+ ProjectStatusesResponse: {
1949
+ /** @description Every value the tracker's native Status field can take, in board order — the UNION over its work item types (issue, task, incident, test case), deduped by name, because GitLab serves all of them through the same project issues endpoint and any of their statuses can therefore reach an ingested payload. Empty array = the tracker genuinely declares no status; a failed read is an error status, never an empty list. */
1950
+ statuses: {
1951
+ /** @description Status value exactly as the tracker spells it — this is what `workflow_rules.statusRules[].value` must match, since the native-status stage of the cascade compares EXACTLY (no prefix stripping, unlike flow labels). */
1952
+ name: string;
1953
+ /** @description Raw provider form (`#1f75cb` on GitLab), `null` when the tracker gives none. Same convention as label colours: not normalized here, because `/v1` has always exposed the upstream form and a consumer that normalizes would break if this endpoint alone pre-normalized. */
1954
+ color: string | null;
1955
+ /** @description Rank the tracker gives the status, `null` when upstream says nothing. Applied to the array order, BUT measured on a real self-hosted GitLab (2026-10-07) every status came back with `position: 0` — so in practice the order falls back to the status name, alphabetically. Do not read this field as a board order: it is what the provider said, which may well be no ordering at all. A consumer re-sorting a filtered subset should expect to tie on 0 and break the tie the same way. */
1956
+ position: number | null;
1957
+ }[];
1958
+ fetchedAt: string;
1959
+ };
1923
1960
  ProjectsListResponse: {
1924
1961
  /** @description Every project the operator tracks, sorted by (source, projectKey). Sourced from the operator config, so a tracked project with no activity in any window still appears — do NOT derive this list by paginating /v1/work-items or /v1/activities, which silently omits quiet projects. */
1925
1962
  projects: {
@@ -7094,6 +7131,127 @@ export interface operations {
7094
7131
  };
7095
7132
  };
7096
7133
  };
7134
+ getV1ProjectsBySourceByProjectKeyStatuses: {
7135
+ parameters: {
7136
+ query?: never;
7137
+ header?: never;
7138
+ path: {
7139
+ source: string;
7140
+ projectKey: string;
7141
+ };
7142
+ cookie?: never;
7143
+ };
7144
+ requestBody?: never;
7145
+ responses: {
7146
+ 200: {
7147
+ headers: {
7148
+ [name: string]: unknown;
7149
+ };
7150
+ content: {
7151
+ "application/json": {
7152
+ /** @description Every value the tracker's native Status field can take, in board order — the UNION over its work item types (issue, task, incident, test case), deduped by name, because GitLab serves all of them through the same project issues endpoint and any of their statuses can therefore reach an ingested payload. Empty array = the tracker genuinely declares no status; a failed read is an error status, never an empty list. */
7153
+ statuses: {
7154
+ /** @description Status value exactly as the tracker spells it — this is what `workflow_rules.statusRules[].value` must match, since the native-status stage of the cascade compares EXACTLY (no prefix stripping, unlike flow labels). */
7155
+ name: string;
7156
+ /** @description Raw provider form (`#1f75cb` on GitLab), `null` when the tracker gives none. Same convention as label colours: not normalized here, because `/v1` has always exposed the upstream form and a consumer that normalizes would break if this endpoint alone pre-normalized. */
7157
+ color: string | null;
7158
+ /** @description Rank the tracker gives the status, `null` when upstream says nothing. Applied to the array order, BUT measured on a real self-hosted GitLab (2026-10-07) every status came back with `position: 0` — so in practice the order falls back to the status name, alphabetically. Do not read this field as a board order: it is what the provider said, which may well be no ordering at all. A consumer re-sorting a filtered subset should expect to tie on 0 and break the tie the same way. */
7159
+ position: number | null;
7160
+ }[];
7161
+ fetchedAt: string;
7162
+ };
7163
+ "multipart/form-data": {
7164
+ /** @description Every value the tracker's native Status field can take, in board order — the UNION over its work item types (issue, task, incident, test case), deduped by name, because GitLab serves all of them through the same project issues endpoint and any of their statuses can therefore reach an ingested payload. Empty array = the tracker genuinely declares no status; a failed read is an error status, never an empty list. */
7165
+ statuses: {
7166
+ /** @description Status value exactly as the tracker spells it — this is what `workflow_rules.statusRules[].value` must match, since the native-status stage of the cascade compares EXACTLY (no prefix stripping, unlike flow labels). */
7167
+ name: string;
7168
+ /** @description Raw provider form (`#1f75cb` on GitLab), `null` when the tracker gives none. Same convention as label colours: not normalized here, because `/v1` has always exposed the upstream form and a consumer that normalizes would break if this endpoint alone pre-normalized. */
7169
+ color: string | null;
7170
+ /** @description Rank the tracker gives the status, `null` when upstream says nothing. Applied to the array order, BUT measured on a real self-hosted GitLab (2026-10-07) every status came back with `position: 0` — so in practice the order falls back to the status name, alphabetically. Do not read this field as a board order: it is what the provider said, which may well be no ordering at all. A consumer re-sorting a filtered subset should expect to tie on 0 and break the tie the same way. */
7171
+ position: number | null;
7172
+ }[];
7173
+ fetchedAt: string;
7174
+ };
7175
+ "text/plain": {
7176
+ /** @description Every value the tracker's native Status field can take, in board order — the UNION over its work item types (issue, task, incident, test case), deduped by name, because GitLab serves all of them through the same project issues endpoint and any of their statuses can therefore reach an ingested payload. Empty array = the tracker genuinely declares no status; a failed read is an error status, never an empty list. */
7177
+ statuses: {
7178
+ /** @description Status value exactly as the tracker spells it — this is what `workflow_rules.statusRules[].value` must match, since the native-status stage of the cascade compares EXACTLY (no prefix stripping, unlike flow labels). */
7179
+ name: string;
7180
+ /** @description Raw provider form (`#1f75cb` on GitLab), `null` when the tracker gives none. Same convention as label colours: not normalized here, because `/v1` has always exposed the upstream form and a consumer that normalizes would break if this endpoint alone pre-normalized. */
7181
+ color: string | null;
7182
+ /** @description Rank the tracker gives the status, `null` when upstream says nothing. Applied to the array order, BUT measured on a real self-hosted GitLab (2026-10-07) every status came back with `position: 0` — so in practice the order falls back to the status name, alphabetically. Do not read this field as a board order: it is what the provider said, which may well be no ordering at all. A consumer re-sorting a filtered subset should expect to tie on 0 and break the tie the same way. */
7183
+ position: number | null;
7184
+ }[];
7185
+ fetchedAt: string;
7186
+ };
7187
+ };
7188
+ };
7189
+ 400: {
7190
+ headers: {
7191
+ [name: string]: unknown;
7192
+ };
7193
+ content: {
7194
+ "application/json": {
7195
+ error: string;
7196
+ };
7197
+ "multipart/form-data": {
7198
+ error: string;
7199
+ };
7200
+ "text/plain": {
7201
+ error: string;
7202
+ };
7203
+ };
7204
+ };
7205
+ 403: {
7206
+ headers: {
7207
+ [name: string]: unknown;
7208
+ };
7209
+ content: {
7210
+ "application/json": {
7211
+ error: string;
7212
+ };
7213
+ "multipart/form-data": {
7214
+ error: string;
7215
+ };
7216
+ "text/plain": {
7217
+ error: string;
7218
+ };
7219
+ };
7220
+ };
7221
+ 404: {
7222
+ headers: {
7223
+ [name: string]: unknown;
7224
+ };
7225
+ content: {
7226
+ "application/json": {
7227
+ error: string;
7228
+ };
7229
+ "multipart/form-data": {
7230
+ error: string;
7231
+ };
7232
+ "text/plain": {
7233
+ error: string;
7234
+ };
7235
+ };
7236
+ };
7237
+ 502: {
7238
+ headers: {
7239
+ [name: string]: unknown;
7240
+ };
7241
+ content: {
7242
+ "application/json": {
7243
+ error: string;
7244
+ };
7245
+ "multipart/form-data": {
7246
+ error: string;
7247
+ };
7248
+ "text/plain": {
7249
+ error: string;
7250
+ };
7251
+ };
7252
+ };
7253
+ };
7254
+ };
7097
7255
  getV1Identities: {
7098
7256
  parameters: {
7099
7257
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cesar-richard/git-connector-sdk",
3
- "version": "4.13.0",
3
+ "version": "4.15.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": {