@census-ai/census-sdk 0.5.3 → 0.5.5
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +4 -4
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +10 -1
- package/dist/react/index.d.ts +10 -1
- package/dist/react/index.js +4 -4
- package/dist/react/index.js.map +1 -1
- package/dist/server/server.d.cts +4 -0
- package/dist/server/server.d.ts +4 -0
- package/package.json +1 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -15,6 +15,10 @@ interface CensusConfig {
|
|
|
15
15
|
* @default "https://api.census.ai" or your custom domain
|
|
16
16
|
*/
|
|
17
17
|
baseUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Project ID to scope all requests to
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Enable debug logging
|
|
20
24
|
* @default false
|
|
@@ -756,6 +760,10 @@ interface CensusProviderProps {
|
|
|
756
760
|
* Base URL for the API
|
|
757
761
|
*/
|
|
758
762
|
baseUrl?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Project ID to scope all requests to
|
|
765
|
+
*/
|
|
766
|
+
projectId?: string;
|
|
759
767
|
/**
|
|
760
768
|
* Enable debug mode
|
|
761
769
|
*/
|
|
@@ -804,6 +812,7 @@ interface GuideAnalyticsEvent {
|
|
|
804
812
|
declare class CensusClient {
|
|
805
813
|
private apiKey;
|
|
806
814
|
private baseUrl;
|
|
815
|
+
private projectId;
|
|
807
816
|
private debug;
|
|
808
817
|
private currentUserId;
|
|
809
818
|
constructor(config: CensusConfig);
|
|
@@ -1201,7 +1210,7 @@ interface CensusContextValue {
|
|
|
1201
1210
|
* }
|
|
1202
1211
|
* ```
|
|
1203
1212
|
*/
|
|
1204
|
-
declare function CensusProvider({ apiKey, baseUrl, debug, user, theme, children, }: CensusProviderProps): react_jsx_runtime.JSX.Element;
|
|
1213
|
+
declare function CensusProvider({ apiKey, baseUrl, projectId, debug, user, theme, children, }: CensusProviderProps): react_jsx_runtime.JSX.Element;
|
|
1205
1214
|
/**
|
|
1206
1215
|
* Hook to access the Census client directly.
|
|
1207
1216
|
*
|
package/dist/react/index.d.ts
CHANGED
|
@@ -15,6 +15,10 @@ interface CensusConfig {
|
|
|
15
15
|
* @default "https://api.census.ai" or your custom domain
|
|
16
16
|
*/
|
|
17
17
|
baseUrl?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Project ID to scope all requests to
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Enable debug logging
|
|
20
24
|
* @default false
|
|
@@ -756,6 +760,10 @@ interface CensusProviderProps {
|
|
|
756
760
|
* Base URL for the API
|
|
757
761
|
*/
|
|
758
762
|
baseUrl?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Project ID to scope all requests to
|
|
765
|
+
*/
|
|
766
|
+
projectId?: string;
|
|
759
767
|
/**
|
|
760
768
|
* Enable debug mode
|
|
761
769
|
*/
|
|
@@ -804,6 +812,7 @@ interface GuideAnalyticsEvent {
|
|
|
804
812
|
declare class CensusClient {
|
|
805
813
|
private apiKey;
|
|
806
814
|
private baseUrl;
|
|
815
|
+
private projectId;
|
|
807
816
|
private debug;
|
|
808
817
|
private currentUserId;
|
|
809
818
|
constructor(config: CensusConfig);
|
|
@@ -1201,7 +1210,7 @@ interface CensusContextValue {
|
|
|
1201
1210
|
* }
|
|
1202
1211
|
* ```
|
|
1203
1212
|
*/
|
|
1204
|
-
declare function CensusProvider({ apiKey, baseUrl, debug, user, theme, children, }: CensusProviderProps): react_jsx_runtime.JSX.Element;
|
|
1213
|
+
declare function CensusProvider({ apiKey, baseUrl, projectId, debug, user, theme, children, }: CensusProviderProps): react_jsx_runtime.JSX.Element;
|
|
1205
1214
|
/**
|
|
1206
1215
|
* Hook to access the Census client directly.
|
|
1207
1216
|
*
|