@argos-ci/api-client
Advanced tools
Comparing version 0.1.0 to 0.1.1-alpha.32
@@ -6,4 +6,33 @@ /** | ||
interface paths { | ||
"/project": { | ||
parameters: { | ||
query?: never; | ||
header?: never; | ||
path?: never; | ||
cookie?: never; | ||
}; | ||
get: operations["getAuthProject"]; | ||
put?: never; | ||
post?: never; | ||
delete?: never; | ||
options?: never; | ||
head?: never; | ||
patch?: never; | ||
trace?: never; | ||
}; | ||
"/project/builds": { | ||
parameters: { | ||
query?: never; | ||
header?: never; | ||
path?: never; | ||
cookie?: never; | ||
}; | ||
get: operations["getAuthProjectBuilds"]; | ||
put?: never; | ||
post?: never; | ||
delete?: never; | ||
options?: never; | ||
head?: never; | ||
patch?: never; | ||
trace?: never; | ||
}; | ||
@@ -13,2 +42,9 @@ } | ||
schemas: { | ||
/** @description Error response */ | ||
Error: { | ||
error: string; | ||
details: { | ||
message: string; | ||
}[]; | ||
}; | ||
/** @description Build */ | ||
@@ -34,9 +70,2 @@ Build: { | ||
}; | ||
/** @description Error response */ | ||
Error: { | ||
error: string; | ||
details: { | ||
message: string; | ||
}[]; | ||
}; | ||
}; | ||
@@ -50,2 +79,44 @@ responses: never; | ||
interface operations { | ||
getAuthProject: { | ||
parameters: { | ||
query?: never; | ||
header?: never; | ||
path?: never; | ||
cookie?: never; | ||
}; | ||
requestBody?: never; | ||
responses: { | ||
/** @description Project */ | ||
200: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
"application/json": { | ||
id: string; | ||
defaultBaseBranch: string; | ||
hasRemoteContentAccess: boolean; | ||
}; | ||
}; | ||
}; | ||
/** @description Unauthorized */ | ||
401: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
"application/json": components["schemas"]["Error"]; | ||
}; | ||
}; | ||
/** @description Server error */ | ||
500: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
"application/json": components["schemas"]["Error"]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
getAuthProjectBuilds: { | ||
@@ -63,6 +134,13 @@ parameters: { | ||
}; | ||
header?: never; | ||
path?: never; | ||
cookie?: never; | ||
}; | ||
requestBody?: never; | ||
responses: { | ||
/** @description List of builds */ | ||
200: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
@@ -81,2 +159,5 @@ "application/json": { | ||
400: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
@@ -88,2 +169,5 @@ "application/json": components["schemas"]["Error"]; | ||
401: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
@@ -95,2 +179,5 @@ "application/json": components["schemas"]["Error"]; | ||
500: { | ||
headers: { | ||
[name: string]: unknown; | ||
}; | ||
content: { | ||
@@ -110,14 +197,3 @@ "application/json": components["schemas"]["Error"]; | ||
authToken: string; | ||
}): { | ||
GET: import("openapi-fetch").ClientMethod<paths, "get">; | ||
PUT: import("openapi-fetch").ClientMethod<paths, "put">; | ||
POST: import("openapi-fetch").ClientMethod<paths, "post">; | ||
DELETE: import("openapi-fetch").ClientMethod<paths, "delete">; | ||
OPTIONS: import("openapi-fetch").ClientMethod<paths, "options">; | ||
HEAD: import("openapi-fetch").ClientMethod<paths, "head">; | ||
PATCH: import("openapi-fetch").ClientMethod<paths, "patch">; | ||
TRACE: import("openapi-fetch").ClientMethod<paths, "trace">; | ||
use(...middleware: import("openapi-fetch").Middleware[]): void; | ||
eject(...middleware: import("openapi-fetch").Middleware[]): void; | ||
}; | ||
}): import("openapi-fetch").Client<paths, `${string}/${string}`>; | ||
export { ArgosAPIClient, createClient }; |
{ | ||
"name": "@argos-ci/api-client", | ||
"description": "Argos API client.", | ||
"version": "0.1.0", | ||
"version": "0.1.1-alpha.32+4b6e8a3", | ||
"author": "Smooth Code", | ||
@@ -41,12 +41,13 @@ "license": "MIT", | ||
"build-schema-types": "openapi-typescript https://api.argos-ci.com/v2/openapi.yaml -o src/schema.ts", | ||
"build-schema-types-dev": "NODE_TLS_REJECT_UNAUTHORIZED=0 openapi-typescript https://api.argos-ci.dev:4001/v2/openapi.yaml -o src/schema.ts", | ||
"build": "rollup -c" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.0.0", | ||
"openapi-typescript": "^6.7.5" | ||
"@types/node": "^18.19.44", | ||
"openapi-typescript": "^7.3.0" | ||
}, | ||
"dependencies": { | ||
"openapi-fetch": "^0.9.3" | ||
"openapi-fetch": "^0.11.1" | ||
}, | ||
"gitHead": "1d91294d32a09302aa8890807ddd810e14e9950b" | ||
"gitHead": "4b6e8a36627d466e65859396ec6cfee717ba7c7b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9190
203
1
+ Addedopenapi-fetch@0.11.3(transitive)
+ Addedopenapi-typescript-helpers@0.0.13(transitive)
- Removedopenapi-fetch@0.9.8(transitive)
- Removedopenapi-typescript-helpers@0.0.8(transitive)
Updatedopenapi-fetch@^0.11.1