@argos-ci/api-client 0.31.0 → 0.31.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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  </a>
8
8
  </p>
9
9
 
10
- <p align="center"><strong>The open source visual testing platform for AI-native engineering teams.</strong></p>
10
+ <p align="center"><strong>The open source visual testing platform for teams and AI agents.</strong></p>
11
11
 
12
12
  # Argos API Client
13
13
 
package/dist/index.d.mts CHANGED
@@ -5169,6 +5169,8 @@ interface operations {
5169
5169
  branch: components["schemas"]["GitBranch"];
5170
5170
  /** @description The pull request number */
5171
5171
  prNumber?: number | null;
5172
+ /** @description The head commit of the pull request. When `commit` is a merge commit built for the pull request, such as the test-merge commit GitHub Actions checks out, the deployment status is reported on this commit, where the pull request shows it. */
5173
+ prHeadCommit?: components["schemas"]["Sha1Hash"] | null;
5172
5174
  /**
5173
5175
  * @description The deployment environment. When omitted, it is inferred from `branch`: branches matching the configured production-branch glob are treated as `production`; all others default to `preview`.
5174
5176
  * @enum {string}
@@ -10207,7 +10209,7 @@ interface operations {
10207
10209
  }
10208
10210
  //#endregion
10209
10211
  //#region src/fetch.d.ts
10210
- declare class APIError extends Error {
10212
+ export declare class APIError extends Error {
10211
10213
  /**
10212
10214
  * HTTP status code of the response that triggered the error, when available.
10213
10215
  */
@@ -10225,18 +10227,18 @@ declare class APIError extends Error {
10225
10227
  }
10226
10228
  //#endregion
10227
10229
  //#region src/index.d.ts
10228
- type ArgosAPIClient = ReturnType<typeof createClient>;
10230
+ export type ArgosAPIClient = ReturnType<typeof createClient>;
10229
10231
  /**
10230
10232
  * A `User-Agent` value, or a resolver for it. The resolver may be async and is
10231
10233
  * called per request, so a caller that only learns its identity asynchronously
10232
10234
  * (the CLI detecting the coding agent driving it) does not have to await that
10233
10235
  * before it can build a client.
10234
10236
  */
10235
- type UserAgentOption = string | (() => string | undefined | Promise<string | undefined>);
10237
+ export type UserAgentOption = string | (() => string | undefined | Promise<string | undefined>);
10236
10238
  /**
10237
10239
  * Create Argos API client.
10238
10240
  */
10239
- declare function createClient(options?: {
10241
+ export declare function createClient(options?: {
10240
10242
  baseUrl?: string;
10241
10243
  authToken?: string;
10242
10244
  userAgent?: UserAgentOption;
@@ -10251,10 +10253,10 @@ declare function createClient(options?: {
10251
10253
  * we fall back to the HTTP status and the raw body so the failure stays
10252
10254
  * debuggable instead of surfacing an empty message.
10253
10255
  */
10254
- declare function formatAPIError(error: unknown, response?: Response): string;
10256
+ export declare function formatAPIError(error: unknown, response?: Response): string;
10255
10257
  /**
10256
10258
  * Handle API errors.
10257
10259
  */
10258
- declare function throwAPIError(error: unknown, response?: Response): never;
10260
+ export declare function throwAPIError(error: unknown, response?: Response): never;
10259
10261
  //#endregion
10260
- export { APIError, ArgosAPIClient, schema_d_exports as ArgosAPISchema, UserAgentOption, createClient, formatAPIError, throwAPIError };
10262
+ export { schema_d_exports as ArgosAPISchema };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/api-client",
3
3
  "description": "Argos API Client library.",
4
- "version": "0.31.0",
4
+ "version": "0.31.1",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -52,7 +52,7 @@
52
52
  "dependencies": {
53
53
  "debug": "^4.4.3",
54
54
  "openapi-fetch": "^0.17.0",
55
- "p-retry": "^8.0.0"
55
+ "p-retry": "^8.0.1"
56
56
  },
57
- "gitHead": "180580eb5a263a65ed15cbd18cdd98d39f3a5325"
57
+ "gitHead": "4f0edc08d8549534dd3a682bbe034ebcb604bddf"
58
58
  }