@signozhq/noz-client 0.0.0-stage → 1.12.2

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.
@@ -0,0 +1,10 @@
1
+ import { AxiosError, AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ export declare const setGeneratedAPIInstance: (instance: AxiosInstance) => void;
3
+ export declare const getGeneratedAPIInstance: () => AxiosInstance;
4
+ export declare const setGeneratedAPIQueryKeyHeaderContext: <THeaders extends object>(headers?: THeaders) => void;
5
+ export declare const GeneratedAPIInstance: <T>(config: AxiosRequestConfig) => Promise<T>;
6
+ export declare const getGeneratedAPIQueryKeyHeaders: <THeaders extends object>(headers?: THeaders) => [{
7
+ headers: Record<string, unknown>;
8
+ }] | [];
9
+ export type ErrorType<Error> = AxiosError<Error>;
10
+ export type BodyType<BodyData> = BodyData;
@@ -0,0 +1,2 @@
1
+ export * from './generated/services';
2
+ export * from './generatedAPIInstance';
package/package.json CHANGED
@@ -1,6 +1,36 @@
1
1
  {
2
2
  "name": "@signozhq/noz-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.12.2",
4
+ "description": "Generated TypeScript client for Noz, the SigNoz AI Assistant: DTOs, react-query hooks and an axios mutator.",
5
+ "license": "MIT",
6
+ "author": "SigNoz",
7
+ "homepage": "https://signoz.io",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/SigNoz/signoz-ai-assistant.git",
11
+ "directory": "clients/typescript"
12
+ },
13
+ "type": "module",
14
+ "sideEffects": false,
15
+ "main": "./dist/noz-client.js",
16
+ "module": "./dist/noz-client.js",
17
+ "types": "./dist/types/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/types/index.d.ts",
21
+ "default": "./dist/noz-client.js"
22
+ },
23
+ "./package.json": "./package.json"
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "peerDependencies": {
29
+ "axios": "^1.20.0",
30
+ "react": "^18.2.0",
31
+ "react-query": "^3.39.3"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ }
36
+ }