@artifact-keeper/sdk 1.2.4 → 1.3.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/package.json +1 -1
  2. package/src/types.gen.ts +26 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artifact-keeper/sdk",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "TypeScript SDK for the Artifact Keeper REST API",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/types.gen.ts CHANGED
@@ -943,6 +943,12 @@ export type CreateSamlConfigRequest = {
943
943
  slo_url?: string | null;
944
944
  sp_entity_id?: string | null;
945
945
  sso_url: string;
946
+ /**
947
+ * Opt-in flag (see migration 139): when true, the SAML AuthnRequest
948
+ * emits an absolute ACS URL for stricter IdPs that reject the
949
+ * historical relative path. Defaults to false.
950
+ */
951
+ use_absolute_acs_url?: boolean | null;
946
952
  };
947
953
 
948
954
  export type CreateServiceAccountRequest = {
@@ -3335,6 +3341,12 @@ export type SamlConfigResponse = {
3335
3341
  sp_entity_id: string;
3336
3342
  sso_url: string;
3337
3343
  updated_at: string;
3344
+ /**
3345
+ * Opt-in flag (see migration 139): when true, the SAML AuthnRequest
3346
+ * emits an absolute ACS URL. Defaults to false so existing providers
3347
+ * keep their pre-138 wire format.
3348
+ */
3349
+ use_absolute_acs_url: boolean;
3338
3350
  };
3339
3351
 
3340
3352
  export type SbomContentResponse = SbomResponse & {
@@ -3436,6 +3448,14 @@ export type ScoreResponse = {
3436
3448
  calculated_at: string;
3437
3449
  critical_count: number;
3438
3450
  grade: string;
3451
+ /**
3452
+ * True when the latest applicable scan for this repo errored (#2167).
3453
+ * The `grade` is floored to `F` while this holds, so clients and the
3454
+ * release-gate must treat the repo as NOT clean regardless of the numeric
3455
+ * finding counts. Cleared automatically once a `completed` rescan
3456
+ * supersedes the failed scan.
3457
+ */
3458
+ has_failed_scan: boolean;
3439
3459
  high_count: number;
3440
3460
  id: string;
3441
3461
  last_scan_at?: string | null;
@@ -4296,6 +4316,7 @@ export type UpdateSamlConfigRequest = {
4296
4316
  slo_url?: string | null;
4297
4317
  sp_entity_id?: string | null;
4298
4318
  sso_url?: string | null;
4319
+ use_absolute_acs_url?: boolean | null;
4299
4320
  };
4300
4321
 
4301
4322
  export type UpdateServiceAccountRequest = {
@@ -13829,6 +13850,10 @@ export type CreateKeyErrors = {
13829
13850
  * Unauthorized
13830
13851
  */
13831
13852
  401: ErrorResponse;
13853
+ /**
13854
+ * Repository not found
13855
+ */
13856
+ 404: ErrorResponse;
13832
13857
  };
13833
13858
 
13834
13859
  export type CreateKeyError = CreateKeyErrors[keyof CreateKeyErrors];
@@ -15065,17 +15090,13 @@ export type CreateWebhookData = {
15065
15090
 
15066
15091
  export type CreateWebhookErrors = {
15067
15092
  /**
15068
- * Validation error
15093
+ * Validation error, including: a secret was supplied but AK_WEBHOOK_SECRET_KEY is not configured, so the secret cannot be encrypted at rest (create the webhook without a secret, or have an administrator configure the signing key)
15069
15094
  */
15070
15095
  422: unknown;
15071
15096
  /**
15072
15097
  * Internal server error
15073
15098
  */
15074
15099
  500: unknown;
15075
- /**
15076
- * A secret was supplied but AK_WEBHOOK_SECRET_KEY is not configured, so the secret cannot be encrypted at rest
15077
- */
15078
- 503: unknown;
15079
15100
  };
15080
15101
 
15081
15102
  export type CreateWebhookResponses = {