@automate.ax/client 0.7.0 → 0.7.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 +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { publicContract } from "@automate.ax/api-contract";
|
|
2
2
|
import type { ContractRouterClient } from "@orpc/contract";
|
|
3
|
-
export type AutomateClient = ContractRouterClient<typeof
|
|
3
|
+
export type AutomateClient = ContractRouterClient<typeof publicContract>;
|
|
4
4
|
export interface AutomateClientOptions {
|
|
5
5
|
/** Automate.ax API key sent through the `x-api-key` header. */
|
|
6
6
|
apiKey: string | (() => Promise<string | null | undefined> | string | null | undefined);
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Creates a type-safe client for
|
|
9
|
+
* Creates a type-safe client for the public management API.
|
|
10
10
|
*
|
|
11
11
|
* Credential callbacks are evaluated for every request, allowing callers to
|
|
12
12
|
* rotate API keys without recreating the client.
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createORPCClient } from "@orpc/client";
|
|
|
2
2
|
import { RPCLink } from "@orpc/client/fetch";
|
|
3
3
|
const RPC_URL = "https://automate.ax/api/rpc";
|
|
4
4
|
/**
|
|
5
|
-
* Creates a type-safe client for
|
|
5
|
+
* Creates a type-safe client for the public management API.
|
|
6
6
|
*
|
|
7
7
|
* Credential callbacks are evaluated for every request, allowing callers to
|
|
8
8
|
* rotate API keys without recreating the client.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Type-safe client for the Automate.ax API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cjs": false
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@automate.ax/api-contract": "0.7.
|
|
26
|
+
"@automate.ax/api-contract": "0.7.1",
|
|
27
27
|
"@orpc/client": "1.13.14",
|
|
28
28
|
"@orpc/contract": "1.13.14"
|
|
29
29
|
},
|