@introspection-sdk/introspection-node 0.22.0 → 0.31.0
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 +430 -8
- package/dist/auth-client.d.ts +182 -0
- package/dist/auth-client.d.ts.map +1 -0
- package/dist/auth-client.js +402 -0
- package/dist/auth-client.js.map +1 -0
- package/dist/auth.d.ts +12 -2
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/client.d.ts +51 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +80 -6
- package/dist/client.js.map +1 -1
- package/dist/data-plane.d.ts +69 -0
- package/dist/data-plane.d.ts.map +1 -0
- package/dist/data-plane.js +61 -0
- package/dist/data-plane.js.map +1 -0
- package/dist/http.d.ts +23 -4
- package/dist/http.d.ts.map +1 -1
- package/dist/http.js +26 -7
- package/dist/http.js.map +1 -1
- package/dist/index.d.ts +14 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/otel/index.d.ts +3 -1
- package/dist/otel/index.d.ts.map +1 -1
- package/dist/otel/index.js +2 -1
- package/dist/otel/index.js.map +1 -1
- package/dist/otel/init.d.ts +7 -2
- package/dist/otel/init.d.ts.map +1 -1
- package/dist/otel/init.js +9 -2
- package/dist/otel/init.js.map +1 -1
- package/dist/otel/logs.d.ts +23 -6
- package/dist/otel/logs.d.ts.map +1 -1
- package/dist/otel/logs.js +56 -13
- package/dist/otel/logs.js.map +1 -1
- package/dist/resources/annotations.d.ts +28 -0
- package/dist/resources/annotations.d.ts.map +1 -0
- package/dist/resources/annotations.js +198 -0
- package/dist/resources/annotations.js.map +1 -0
- package/dist/resources/app-connections.d.ts +35 -0
- package/dist/resources/app-connections.d.ts.map +1 -0
- package/dist/resources/app-connections.js +66 -0
- package/dist/resources/app-connections.js.map +1 -0
- package/dist/resources/automations.d.ts +5 -0
- package/dist/resources/automations.d.ts.map +1 -0
- package/dist/resources/automations.js +6 -0
- package/dist/resources/automations.js.map +1 -0
- package/dist/resources/connectors.d.ts +34 -2
- package/dist/resources/connectors.d.ts.map +1 -1
- package/dist/resources/connectors.js +53 -1
- package/dist/resources/connectors.js.map +1 -1
- package/dist/resources/experiments.d.ts +6 -6
- package/dist/resources/experiments.d.ts.map +1 -1
- package/dist/resources/experiments.js +29 -6
- package/dist/resources/experiments.js.map +1 -1
- package/dist/resources/members.d.ts +33 -0
- package/dist/resources/members.d.ts.map +1 -0
- package/dist/resources/members.js +59 -0
- package/dist/resources/members.js.map +1 -0
- package/dist/resources/repositories.d.ts +52 -0
- package/dist/resources/repositories.d.ts.map +1 -0
- package/dist/resources/repositories.js +112 -0
- package/dist/resources/repositories.js.map +1 -0
- package/dist/runner.d.ts +19 -5
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +18 -3
- package/dist/runner.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +21 -16
package/dist/client.js
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* helpers, use {@link IntrospectionLogs} from
|
|
12
12
|
* `@introspection-sdk/introspection-node/otel`.
|
|
13
13
|
*/
|
|
14
|
+
import { ConversationsApi, EventsApi, FilesApi, MetricsApi, SharesApi, TasksApi, } from "@introspection-sdk/http";
|
|
14
15
|
import { logger as sdkLogger, USER_AGENT } from "./utils.js";
|
|
15
16
|
import { serviceAccountToken } from "./auth.js";
|
|
16
17
|
import { HttpClient } from "./http.js";
|
|
@@ -18,6 +19,11 @@ import { attachRuntimes, } from "./resources/runtimes.js";
|
|
|
18
19
|
import { attachExperiments, } from "./resources/experiments.js";
|
|
19
20
|
import { attachRecipes } from "./resources/recipes.js";
|
|
20
21
|
import { attachConnectors, } from "./resources/connectors.js";
|
|
22
|
+
import { attachMembers } from "./resources/members.js";
|
|
23
|
+
import { attachAutomations, } from "./resources/automations.js";
|
|
24
|
+
import { attachAnnotations, attachProjectLabels, } from "./resources/annotations.js";
|
|
25
|
+
import { attachRepositories, } from "./resources/repositories.js";
|
|
26
|
+
import { AppConnectionsApi } from "./resources/app-connections.js";
|
|
21
27
|
import { DEV_TARGET_HEADER, resolveDevTarget } from "./dev-target.js";
|
|
22
28
|
/**
|
|
23
29
|
* Introspection REST client.
|
|
@@ -42,6 +48,8 @@ import { DEV_TARGET_HEADER, resolveDevTarget } from "./dev-target.js";
|
|
|
42
48
|
export class IntrospectionClient {
|
|
43
49
|
/** @internal — HTTP client pointed at the CP API with the customer key. */
|
|
44
50
|
cpHttp;
|
|
51
|
+
/** @internal — HTTP client pointed at the project Data Plane. */
|
|
52
|
+
dpHttp;
|
|
45
53
|
/** @internal — passed through to Runner so it can build its own DP HTTP client. */
|
|
46
54
|
advancedOptions;
|
|
47
55
|
/**
|
|
@@ -50,10 +58,7 @@ export class IntrospectionClient {
|
|
|
50
58
|
* through the Introspection CLI and platform.
|
|
51
59
|
*/
|
|
52
60
|
runtimes;
|
|
53
|
-
/**
|
|
54
|
-
* Reads on `/v1/experiments` plus the `(id) => ExperimentHandle` factory
|
|
55
|
-
* for run lifecycle. Authoring experiment definitions is a CLI action.
|
|
56
|
-
*/
|
|
61
|
+
/** CRUD on `/v1/experiments` plus the callable run-lifecycle handle. */
|
|
57
62
|
experiments;
|
|
58
63
|
/**
|
|
59
64
|
* Reads on `/v1/recipes`. Recipes are immutable build artefacts
|
|
@@ -67,12 +72,58 @@ export class IntrospectionClient {
|
|
|
67
72
|
* single-use consent URL a Business hands its customer.
|
|
68
73
|
*/
|
|
69
74
|
connectors;
|
|
75
|
+
/**
|
|
76
|
+
* List, read, create and update on `/v1/members`, including each
|
|
77
|
+
* member's access-bearing `tags` and its `metadata` labels, which grant
|
|
78
|
+
* nothing.
|
|
79
|
+
*/
|
|
80
|
+
members;
|
|
81
|
+
/**
|
|
82
|
+
* CRUD on `/v1/automations` (Data Plane) plus `automations.trigger(id)`.
|
|
83
|
+
* Administrator-only on the server today.
|
|
84
|
+
*/
|
|
85
|
+
automations;
|
|
86
|
+
/**
|
|
87
|
+
* Reads on `/v1/repositories` (CP) plus `repositories.contents` and
|
|
88
|
+
* `repositories.commits`, which read files, directories and history
|
|
89
|
+
* through the Data Plane, and `repositories.merge`, which merges branches.
|
|
90
|
+
*/
|
|
91
|
+
repositories;
|
|
92
|
+
/** Read folded span annotations and append one annotation mutation. */
|
|
93
|
+
annotations;
|
|
94
|
+
/** Manage reusable project labels. */
|
|
95
|
+
projectLabels;
|
|
96
|
+
/** Read immutable annotation activity and other typed platform events. */
|
|
97
|
+
events;
|
|
98
|
+
// The Data Plane namespaces below match a Runner's (`DataPlaneResources`)
|
|
99
|
+
// but send this client's own token, so the server may refuse a call the
|
|
100
|
+
// runner's credential would be allowed.
|
|
101
|
+
/** `/v1/tasks` (Data Plane), with `tasks.runs`. */
|
|
102
|
+
tasks;
|
|
103
|
+
/** `/v1/files` (Data Plane). */
|
|
104
|
+
files;
|
|
105
|
+
/** Read-only `/v1/conversations` (Data Plane). */
|
|
106
|
+
conversations;
|
|
107
|
+
/** Bounded aggregations on `POST /v1/metrics` (Data Plane). */
|
|
108
|
+
metrics;
|
|
109
|
+
/** `/v1/shares` sharing grants (Data Plane). */
|
|
110
|
+
shares;
|
|
111
|
+
/**
|
|
112
|
+
* CRUD on `/v1/connections` (Data Plane), the apps members connected for
|
|
113
|
+
* themselves. `create` takes the `runtime` explicitly, since the client
|
|
114
|
+
* has no runtime context.
|
|
115
|
+
*/
|
|
116
|
+
connections;
|
|
70
117
|
constructor(options = {}) {
|
|
71
118
|
const token = options.token || process.env.INTROSPECTION_TOKEN || "";
|
|
72
119
|
const advanced = options.advanced || {};
|
|
73
120
|
const baseApiUrl = advanced.baseApiUrl ||
|
|
74
121
|
process.env.INTROSPECTION_BASE_API_URL ||
|
|
75
122
|
"https://api.introspection.dev";
|
|
123
|
+
// Self-hosted/local stacks commonly route both planes on one host. Hosted
|
|
124
|
+
// token exchanges return the regional DP URL explicitly; callers pass it
|
|
125
|
+
// as `dpUrl` and fromServiceAccount wires it automatically.
|
|
126
|
+
const dpUrl = advanced.dpUrl || baseApiUrl;
|
|
76
127
|
if (!token) {
|
|
77
128
|
sdkLogger.warn("IntrospectionClient: No token provided. REST calls will fail.");
|
|
78
129
|
}
|
|
@@ -100,6 +151,13 @@ export class IntrospectionClient {
|
|
|
100
151
|
this.cpHttp = new HttpClient({
|
|
101
152
|
apiUrl: baseApiUrl,
|
|
102
153
|
token,
|
|
154
|
+
cpSession: options.cpSession,
|
|
155
|
+
additionalHeaders: this.advancedOptions.additionalHeaders,
|
|
156
|
+
fetch: advanced.fetch,
|
|
157
|
+
});
|
|
158
|
+
this.dpHttp = new HttpClient({
|
|
159
|
+
apiUrl: dpUrl,
|
|
160
|
+
token,
|
|
103
161
|
additionalHeaders: this.advancedOptions.additionalHeaders,
|
|
104
162
|
fetch: advanced.fetch,
|
|
105
163
|
});
|
|
@@ -107,6 +165,18 @@ export class IntrospectionClient {
|
|
|
107
165
|
this.experiments = attachExperiments(this, this.cpHttp);
|
|
108
166
|
this.recipes = attachRecipes(this.cpHttp);
|
|
109
167
|
this.connectors = attachConnectors(this.cpHttp);
|
|
168
|
+
this.members = attachMembers(this.cpHttp);
|
|
169
|
+
this.automations = attachAutomations(this.dpHttp);
|
|
170
|
+
this.repositories = attachRepositories(this.cpHttp, this.dpHttp);
|
|
171
|
+
this.annotations = attachAnnotations(this.cpHttp, this.dpHttp);
|
|
172
|
+
this.projectLabels = attachProjectLabels(this.dpHttp);
|
|
173
|
+
this.events = new EventsApi(this.dpHttp);
|
|
174
|
+
this.tasks = new TasksApi(this.dpHttp);
|
|
175
|
+
this.files = new FilesApi(this.dpHttp);
|
|
176
|
+
this.conversations = new ConversationsApi(this.dpHttp);
|
|
177
|
+
this.metrics = new MetricsApi(this.dpHttp);
|
|
178
|
+
this.shares = new SharesApi(this.dpHttp);
|
|
179
|
+
this.connections = new AppConnectionsApi(this.dpHttp);
|
|
110
180
|
sdkLogger.info(`IntrospectionClient initialized: api=${baseApiUrl}`);
|
|
111
181
|
}
|
|
112
182
|
/**
|
|
@@ -136,11 +206,15 @@ export class IntrospectionClient {
|
|
|
136
206
|
* re-mint (call this again) for long-lived processes once it lapses.
|
|
137
207
|
*/
|
|
138
208
|
static async fromServiceAccount(params) {
|
|
139
|
-
const { access_token } = await serviceAccountToken(params);
|
|
209
|
+
const { access_token, dp_url } = await serviceAccountToken(params);
|
|
140
210
|
return new IntrospectionClient({
|
|
141
211
|
token: access_token,
|
|
142
212
|
serviceName: params.serviceName,
|
|
143
|
-
advanced: {
|
|
213
|
+
advanced: {
|
|
214
|
+
baseApiUrl: params.baseApiUrl,
|
|
215
|
+
dpUrl: dp_url ?? undefined,
|
|
216
|
+
fetch: params.fetch,
|
|
217
|
+
},
|
|
144
218
|
});
|
|
145
219
|
}
|
|
146
220
|
/** Close the underlying HTTP client. */
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAkC,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,WA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,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEtD,SAAS,CAAC,IAAI,CAAC,wCAAwC,UAAU,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAC7B,MAA4D;QAE5D,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACnE,OAAO,IAAI,mBAAmB,CAAC;YAC7B,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE;gBACR,UAAU,EAAE,MAAM,CAAC,UAAU;gBAC7B,KAAK,EAAE,MAAM,IAAI,SAAS;gBAC1B,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF,CAAC,CAAC;IACL,CAAC;IAED,wCAAwC;IACxC,KAAK,CAAC,QAAQ;QACZ,kEAAkE;QAClE,gDAAgD;QAChD,SAAS,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AutomationsApi, ConversationsApi, EventsApi, FilesApi, MetricsApi, SharesApi, TasksApi } from "@introspection-sdk/http";
|
|
2
|
+
import type { AppConnectionCreateParams } from "@introspection-sdk/types";
|
|
3
|
+
import { HttpClient, type BearerCredentials } from "./http.js";
|
|
4
|
+
import { AppConnectionsApi } from "./resources/app-connections.js";
|
|
5
|
+
/**
|
|
6
|
+
* Every Data Plane namespace this SDK supports. `IntrospectionClient`,
|
|
7
|
+
* `Runner` and `DataPlaneClient` all implement it, so code written against
|
|
8
|
+
* one runs against the others; what differs is the credential each sends,
|
|
9
|
+
* and so what the server lets it do.
|
|
10
|
+
*
|
|
11
|
+
* The Swift, Python and Rust SDKs expose the same set.
|
|
12
|
+
*/
|
|
13
|
+
export interface DataPlaneResources {
|
|
14
|
+
/** `/v1/tasks`, with `tasks.runs` for runs. */
|
|
15
|
+
readonly tasks: TasksApi;
|
|
16
|
+
readonly files: FilesApi;
|
|
17
|
+
readonly conversations: ConversationsApi;
|
|
18
|
+
readonly events: EventsApi;
|
|
19
|
+
readonly metrics: MetricsApi;
|
|
20
|
+
readonly shares: SharesApi;
|
|
21
|
+
readonly automations: AutomationsApi;
|
|
22
|
+
/** Apps members connected for themselves (`/v1/connections`). */
|
|
23
|
+
readonly connections: AppConnectionsApi;
|
|
24
|
+
}
|
|
25
|
+
export interface DataPlaneClientOptions {
|
|
26
|
+
/** Data Plane REST base URL (the `dp_url` a token response carries). */
|
|
27
|
+
dpUrl: string;
|
|
28
|
+
/** A fixed bearer token. Pass this or {@link credentials}. */
|
|
29
|
+
token?: string;
|
|
30
|
+
/** A renewing credential, such as `AuthClient.credentials`. */
|
|
31
|
+
credentials?: BearerCredentials;
|
|
32
|
+
/** Extra headers merged into every request. */
|
|
33
|
+
additionalHeaders?: Record<string, string>;
|
|
34
|
+
/** Custom `fetch` (for tests or non-standard runtimes). */
|
|
35
|
+
fetch?: typeof fetch;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The project's Data Plane surface for a caller that holds a Data Plane token
|
|
39
|
+
* directly, such as a member signed in with {@link AuthClient} — rather than
|
|
40
|
+
* a runner minted from a runtime through the Control Plane.
|
|
41
|
+
*
|
|
42
|
+
* A token that names no runtime binds each task with `runtime_id`:
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const dp = await auth.dataPlane();
|
|
46
|
+
* const run = await dp.tasks.start({ prompt: "Hello", runtime_id });
|
|
47
|
+
* console.log(await run.text());
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare class DataPlaneClient implements DataPlaneResources {
|
|
51
|
+
/** @internal */
|
|
52
|
+
readonly http: HttpClient;
|
|
53
|
+
readonly tasks: TasksApi;
|
|
54
|
+
readonly files: FilesApi;
|
|
55
|
+
readonly conversations: ConversationsApi;
|
|
56
|
+
readonly shares: SharesApi;
|
|
57
|
+
readonly events: EventsApi;
|
|
58
|
+
readonly metrics: MetricsApi;
|
|
59
|
+
/** `/v1/automations`; needs `automations:read` / `automations:write`. */
|
|
60
|
+
readonly automations: AutomationsApi;
|
|
61
|
+
/**
|
|
62
|
+
* CRUD on `/v1/connections`, the apps members connected for themselves.
|
|
63
|
+
* `create` takes the `runtime` explicitly, since this client has no
|
|
64
|
+
* runtime context.
|
|
65
|
+
*/
|
|
66
|
+
readonly connections: AppConnectionsApi<Required<AppConnectionCreateParams>>;
|
|
67
|
+
constructor(options: DataPlaneClientOptions);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=data-plane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-plane.d.ts","sourceRoot":"","sources":["../src/data-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGnE;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACj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AyB,CAAC,CAAC,CAAC;gBAEjE,OAAO,EAAE,sBAAsB;CAwB5C"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AutomationsApi, ConversationsApi, EventsApi, FilesApi, MetricsApi, SharesApi, TasksApi, } from "@introspection-sdk/http";
|
|
2
|
+
import { HttpClient } from "./http.js";
|
|
3
|
+
import { AppConnectionsApi } from "./resources/app-connections.js";
|
|
4
|
+
import { USER_AGENT } from "./utils.js";
|
|
5
|
+
/**
|
|
6
|
+
* The project's Data Plane surface for a caller that holds a Data Plane token
|
|
7
|
+
* directly, such as a member signed in with {@link AuthClient} — rather than
|
|
8
|
+
* a runner minted from a runtime through the Control Plane.
|
|
9
|
+
*
|
|
10
|
+
* A token that names no runtime binds each task with `runtime_id`:
|
|
11
|
+
*
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const dp = await auth.dataPlane();
|
|
14
|
+
* const run = await dp.tasks.start({ prompt: "Hello", runtime_id });
|
|
15
|
+
* console.log(await run.text());
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export class DataPlaneClient {
|
|
19
|
+
/** @internal */
|
|
20
|
+
http;
|
|
21
|
+
tasks;
|
|
22
|
+
files;
|
|
23
|
+
conversations;
|
|
24
|
+
shares;
|
|
25
|
+
events;
|
|
26
|
+
metrics;
|
|
27
|
+
/** `/v1/automations`; needs `automations:read` / `automations:write`. */
|
|
28
|
+
automations;
|
|
29
|
+
/**
|
|
30
|
+
* CRUD on `/v1/connections`, the apps members connected for themselves.
|
|
31
|
+
* `create` takes the `runtime` explicitly, since this client has no
|
|
32
|
+
* runtime context.
|
|
33
|
+
*/
|
|
34
|
+
connections;
|
|
35
|
+
constructor(options) {
|
|
36
|
+
if (!options.dpUrl)
|
|
37
|
+
throw new Error("DataPlaneClient requires a dpUrl");
|
|
38
|
+
if (!options.token && !options.credentials) {
|
|
39
|
+
throw new Error("DataPlaneClient requires a token or credentials");
|
|
40
|
+
}
|
|
41
|
+
this.http = new HttpClient({
|
|
42
|
+
apiUrl: options.dpUrl,
|
|
43
|
+
token: options.token ?? "",
|
|
44
|
+
credentials: options.credentials,
|
|
45
|
+
additionalHeaders: {
|
|
46
|
+
"User-Agent": USER_AGENT,
|
|
47
|
+
...options.additionalHeaders,
|
|
48
|
+
},
|
|
49
|
+
fetch: options.fetch,
|
|
50
|
+
});
|
|
51
|
+
this.tasks = new TasksApi(this.http);
|
|
52
|
+
this.files = new FilesApi(this.http);
|
|
53
|
+
this.conversations = new ConversationsApi(this.http);
|
|
54
|
+
this.shares = new SharesApi(this.http);
|
|
55
|
+
this.events = new EventsApi(this.http);
|
|
56
|
+
this.metrics = new MetricsApi(this.http);
|
|
57
|
+
this.automations = new AutomationsApi(this.http);
|
|
58
|
+
this.connections = new AppConnectionsApi(this.http);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=data-plane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-plane.js","sourceRoot":"","sources":["../src/data-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAA0B,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAoCxC;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,eAAe;IAC1B,gBAAgB;IACP,IAAI,CAAa;IAEjB,KAAK,CAAW;IAChB,KAAK,CAAW;IAChB,aAAa,CAAmB;IAChC,MAAM,CAAY;IAClB,MAAM,CAAY;IAClB,OAAO,CAAa;IAC7B,yEAAyE;IAChE,WAAW,CAAiB;IACrC;;;;OAIG;IACM,WAAW,CAAyD;IAE7E,YAAY,OAA+B;QACzC,IAAI,CAAC,O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aseHttpClient } from "@introspection-sdk/http";
|
|
2
|
+
/**
|
|
3
|
+
* A bearer credential that renews itself: a signed-in member's session (see
|
|
4
|
+
* {@link AuthClient}), as opposed to a fixed API key or runner token.
|
|
5
|
+
*/
|
|
6
|
+
export interface BearerCredentials {
|
|
7
|
+
/** The access token to send now, refreshed first if it is about to expire. */
|
|
8
|
+
accessToken(): Promise<string | null>;
|
|
9
|
+
/**
|
|
10
|
+
* A request carrying `rejected` came back `401`. Renew the credential and
|
|
11
|
+
* return `true` to retry once, or `false` to surface the `401`.
|
|
12
|
+
*/
|
|
13
|
+
refreshAfterUnauthorized(rejected: string | null): Promise<boolean>;
|
|
14
|
+
}
|
|
2
15
|
export interface ResolvedApiConfig {
|
|
3
16
|
/**
|
|
4
17
|
* Base URL the client will prepend to every request path. For the
|
|
@@ -8,6 +21,13 @@ export interface ResolvedApiConfig {
|
|
|
8
21
|
apiUrl: string;
|
|
9
22
|
/** Bearer token. Customer API key for CP, runner JWT for DP. */
|
|
10
23
|
token: string;
|
|
24
|
+
/**
|
|
25
|
+
* A renewing credential used instead of {@link token}: read before every
|
|
26
|
+
* request, and asked to refresh after a `401`.
|
|
27
|
+
*/
|
|
28
|
+
credentials?: BearerCredentials;
|
|
29
|
+
/** Encoded member session used instead of bearer auth on Control Plane calls. */
|
|
30
|
+
cpSession?: string;
|
|
11
31
|
additionalHeaders?: Record<string, string>;
|
|
12
32
|
fetch?: typeof fetch;
|
|
13
33
|
/**
|
|
@@ -20,10 +40,9 @@ export interface ResolvedApiConfig {
|
|
|
20
40
|
retryBaseMs?: number;
|
|
21
41
|
}
|
|
22
42
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* `Authorization: Bearer <token>` on every request, no cookie credentials.
|
|
43
|
+
* Authenticated HTTP client used by the CP-bound IntrospectionClient and each
|
|
44
|
+
* DP-bound Runner. A member-authored Node workflow may supply the encoded
|
|
45
|
+
* `intro_cp_session` for CP-only operations; all other calls use bearer auth.
|
|
27
46
|
*/
|
|
28
47
|
export declare class HttpClient extends BaseHttpClient {
|
|
29
48
|
constructor(cfg: ResolvedApiConfig);
|
package/dist/http.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,8EAA8E;IAC9E,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtC;;;OAGG;IACH,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,cAAc;gBAChC,GAAG,EAAE,iBAAiB;CAiCnC"}
|
package/dist/http.js
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
import { BaseHttpClient } from "@introspection-sdk/http";
|
|
2
|
+
const BEARER_PREFIX = "Bearer ";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `Authorization: Bearer <token>` on every request, no cookie credentials.
|
|
4
|
+
* Authenticated HTTP client used by the CP-bound IntrospectionClient and each
|
|
5
|
+
* DP-bound Runner. A member-authored Node workflow may supply the encoded
|
|
6
|
+
* `intro_cp_session` for CP-only operations; all other calls use bearer auth.
|
|
7
7
|
*/
|
|
8
8
|
export class HttpClient extends BaseHttpClient {
|
|
9
9
|
constructor(cfg) {
|
|
10
|
+
const { credentials } = cfg;
|
|
10
11
|
super({
|
|
11
12
|
apiUrl: cfg.apiUrl,
|
|
12
13
|
additionalHeaders: cfg.additionalHeaders,
|
|
13
14
|
fetch: cfg.fetch,
|
|
14
15
|
maxRetries: cfg.maxRetries,
|
|
15
16
|
retryBaseMs: cfg.retryBaseMs,
|
|
16
|
-
transport:
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
transport: credentials
|
|
18
|
+
? {
|
|
19
|
+
authHeaders: async () => {
|
|
20
|
+
const token = await credentials.accessToken();
|
|
21
|
+
return token ? { Authorization: `${BEARER_PREFIX}${token}` } : {};
|
|
22
|
+
},
|
|
23
|
+
onUnauthorized: (rejected) => {
|
|
24
|
+
const header = rejected.Authorization;
|
|
25
|
+
return credentials.refreshAfterUnauthorized(header?.startsWith(BEARER_PREFIX)
|
|
26
|
+
? header.slice(BEARER_PREFIX.length)
|
|
27
|
+
: null);
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
: {
|
|
31
|
+
authHeaders: () => {
|
|
32
|
+
if (cfg.cpSession) {
|
|
33
|
+
return { Cookie: `intro_cp_session=${cfg.cpSession}` };
|
|
34
|
+
}
|
|
35
|
+
return { Authorization: `${BEARER_PREFIX}${cfg.token}` };
|
|
36
|
+
},
|
|
37
|
+
},
|
|
19
38
|
});
|
|
20
39
|
}
|
|
21
40
|
}
|
package/dist/http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AA4CzD,MAAM,aAAa,GAAG,SAAS,CAAC;AAEhC;;;;GAIG;AACH,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC5C,YAAY,GAAsB;QAChC,MAAM,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;QAC5B,KAAK,CAAC;YACJ,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,iBAAiB,EAAE,GAAG,CAAC,iBAAiB;YACxC,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,SAAS,EAAE,WAAW;gBACpB,CAAC,CAAC;oBACE,WAAW,EAAE,KAAK,IAAqC,EAAE;wBACvD,MAAM,KAAK,GAAG,MAAM,WAAW,CAAC,WAAW,EAAE,CAAC;wBAC9C,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,GAAG,aAAa,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBACpE,CAAC;oBACD,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE;wBAC3B,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC;wBACtC,OAAO,WAAW,CAAC,wBAAwB,CACzC,MAAM,EAAE,UAAU,CAAC,aAAa,CAAC;4BAC/B,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC;4BACpC,CAAC,CAAC,IAAI,CACT,CAAC;oBACJ,CAAC;iBACF;gBACH,CAAC,CAAC;oBACE,WAAW,EAAE,GAA2B,EAAE;wBACxC,IAAI,GAAG,CAAC,SAAS,EAAE,CAAC;4BAClB,OAAO,EAAE,MAAM,EAAE,oBAAoB,GAAG,CAAC,SAAS,EAAE,EAAE,CAAC;wBACzD,CAAC;wBACD,OAAO,EAAE,aAAa,EAAE,GAAG,aAAa,GAAG,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC;oBAC3D,CAAC;iBACF;SACN,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
export { IntrospectionClient } from "./client.js";
|
|
12
12
|
export { serviceAccountToken, tokenExchange, authorizationCodeToken, } from "./auth.js";
|
|
13
13
|
export type { ServiceAccountTokenParams, ServiceAccountToken, TokenExchangeParams, AuthorizationCodeParams, OAuthToken, } from "./auth.js";
|
|
14
|
+
export { AuthClient, EMAIL_CODE_GRANT_TYPE, InMemorySessionStorage, } from "./auth-client.js";
|
|
15
|
+
export type { AuthChangeEvent, AuthClientOptions, AuthSession, AuthStateListener, SessionStorage, } from "./auth-client.js";
|
|
16
|
+
export { DataPlaneClient } from "./data-plane.js";
|
|
17
|
+
export type { DataPlaneClientOptions } from "./data-plane.js";
|
|
14
18
|
export type { AdvancedOptions, IntrospectionClientOptions, FeedbackOptions, UserTraits, } from "./types.js";
|
|
15
19
|
export { ConversationItemsApi, ConversationsApi, EventsApi, FileVersionsApi, FilesApi, MetricsApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
16
20
|
export { streamResumable } from "@introspection-sdk/http";
|
|
@@ -18,7 +22,7 @@ export { TranscriptAccumulator, foldAgui, foldSpans, mergeTranscripts, } from "@
|
|
|
18
22
|
export { ArrowPages } from "@introspection-sdk/http";
|
|
19
23
|
export type { EventArrowParams, FileUploadBody, ListReadParams, StartParams, StreamOptions, } from "@introspection-sdk/http";
|
|
20
24
|
export { HttpClient } from "./http.js";
|
|
21
|
-
export type { ResolvedApiConfig } from "./http.js";
|
|
25
|
+
export type { BearerCredentials, ResolvedApiConfig } from "./http.js";
|
|
22
26
|
export { EventType } from "@introspection-sdk/types";
|
|
23
27
|
export { Runner } from "./runner.js";
|
|
24
28
|
export type { RunnerSource } from "./runner.js";
|
|
@@ -28,9 +32,16 @@ export { ExperimentsApi, ExperimentHandle, attachExperiments, } from "./resource
|
|
|
28
32
|
export type { ExperimentHandleFactory } from "./resources/experiments.js";
|
|
29
33
|
export { RecipesApi, attachRecipes } from "./resources/recipes.js";
|
|
30
34
|
export { ConnectorsApi, ConnectionsApi, attachConnectors, } from "./resources/connectors.js";
|
|
31
|
-
export
|
|
35
|
+
export { MembersApi, attachMembers } from "./resources/members.js";
|
|
36
|
+
export { AutomationsApi, attachAutomations } from "./resources/automations.js";
|
|
37
|
+
export { AppConnectionsApi } from "./resources/app-connections.js";
|
|
38
|
+
export type { DataPlaneResources } from "./data-plane.js";
|
|
39
|
+
export { RepositoriesApi, attachRepositories, } from "./resources/repositories.js";
|
|
40
|
+
export type { RepositoryContentsApi } from "./resources/repositories.js";
|
|
41
|
+
export { AnnotationsApi, ProjectLabelsApi, attachAnnotations, attachProjectLabels, } from "./resources/annotations.js";
|
|
42
|
+
export type { AGUIEvent, BaseEvent, Interrupt, Message, ResumeEntry, RunAgentInput, Paginated, ListParams, Task, TaskCreateParams, TaskUpdateParams, TaskListParams, TaskKind, TaskStatus, TaskRunKind, TaskPrompt, TaskRun, TaskRunCreateParams, TaskRunResumeParams, TaskRunResponse, TaskCreateResponse, TaskFileRef, TaskRepoRequest, TaskCancelResponse, TaskCancelOptions, AgentInfo, File, FileType, FileListParams, FileUpdateParams, FileCreateTextParams, Runtime, RuntimeListParams, Experiment, ExperimentListParams, ExperimentStatus, ExperimentGoal, ExperimentGoalComponent, ExperimentGoalDirection, ExperimentGoalGuard, JudgeGoalComponent, TelemetryGoalComponent, ExperimentArm, Recipe, RecipeListParams, Repository, RepositoryProvider, RepositoryListParams, RepositoryGetParams, RepositoryEntry, RepositoryEntryType, RepositoryDirectory, RepositoryFile, RepositoryContent, RepositoryContentsParams, RepositoryContentGetParams, RepositoryCommit, RepositoryCommitPerson, RepositoryCommitFile, RepositoryCommitFileStatus, RepositoryCommitDetail, RepositoryCommitPage, RepositoryCommitsParams, RepositoryMerge, RepositoryMergeParams, Connector, ConnectorApp, ConnectorAppListParams, ConnectorAuthMode, ConnectorStatus, ConnectorPersonServerMode, ConnectorApprovalPolicy, ConnectorCreateParams, ConnectorUpdateParams, ConnectorListParams, ConnectorAuthorizeParams, ConnectorAuthorizeResponse, ConnectorAuthorizeBinding, ConnectorCustomAppSearchParams, ConnectorClientRegistration, ConnectorOAuthDiscoveryResponse, Connection, ConnectionStatus, ConnectionSubjectType, ConnectionCreateSubjectType, ConnectionBrokerSubjectType, ConnectionCreateParams, ConnectionMissionConstraints, ConnectionTokenParams, ConnectionToken, ConnectionAuthorizationPending, ConnectionTokenResult, AppConnection, AppConnectionListParams, AppConnectionCreateParams, ConnectPage, AnnotationTarget, AnnotationState, AnnotationListParams, AnnotationMutation, AnnotationEventOptions, ProjectLabel, ProjectLabelListParams, ProjectLabelCreate, ProjectLabelUpdate, RunnerSpec, RunnerDeployment, RunnerContext, RunnerRecipeSummary, RunnerIdentity, Member, MemberType, MemberListParams, MemberCreateParams, MemberUpdateParams, Automation, AutomationKind, AutomationTriggerType, AutomationConditionType, AutomationExecutionStatus, AutomationSkipReason, AutomationCondition, AutomationMetadata, AutomationCreateParams, AutomationUpdateParams, AutomationListParams, AutomationTriggerResponse, RunRequest, RunCaller, RunCallerLibrary, RunCallerPage, RunIdentityInput, GenAiSpan, GenAiSpanList, GenAiSpanAttributes, GenAiSpanStatus, Conversation, ConversationAgent, ConversationUsage, ConversationCost, ConversationMetrics, IntrospectionSpanAttributes, IntrospectionConversation, SpanAttributes, SpanResource, ConversationItemInclude, ConversationSortField, ConversationListParams, ConversationItemListParams, ConversationExportParams, Trajectory, TrajectoryRecord, TrajectoryToolCall, ConversationsMethod, SpanEvent, SpanKind, SpanStatus, ReadFormat, ReadWindowParams, IntrospectionEventName, IntrospectionEventEnvelope, ObservationPayload, PatternPayload, PatternAssignmentPayload, ClusteringRunPayload, FeedbackPayload, JudgementPayload, ObservationEvent, PatternEvent, PatternAssignmentEvent, ClusteringRunEvent, FeedbackEvent, JudgementEvent, AutomationTriggeredPayload, AutomationSkippedPayload, AutomationTriggeredEvent, AutomationSkippedEvent, Event, UnknownEvent, EventForName, EventSortField, EventListParams, MetricView, MetricAggregation, MetricFilterOperator, MetricInterval, MetricSpec, MetricDimension, MetricFilter, MetricTimeDimension, MetricOrderBy, MetricHaving, MetricQueryConfig, MetricQueryRequest, MetricDimensionValue, MetricResultValue, MetricResultRow, MetricEffectiveWindow, MetricQueryMeta, MetricQueryResponse, } from "@introspection-sdk/types";
|
|
32
43
|
export { ConversationsMethods, IntrospectionEventNames, genAiConversationId, genAiInputMessages, genAiOutputMessages, isKnownEvent, } from "@introspection-sdk/types";
|
|
33
|
-
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
44
|
+
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, StreamIncompleteError, RunFailedError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
34
45
|
export type { GenAiAttributes, InputMessage, OutputMessage, SystemInstruction, ToolDefinition, TextPart, ToolCallRequestPart, ToolCallResponsePart, CompactionPart, MediaUrlPart, BinaryDataPart, MessagePart, } from "@introspection-sdk/types";
|
|
35
46
|
export { toAttributes } from "@introspection-sdk/types";
|
|
36
47
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,GACX,MAAM,WAAW,CAAC;AAGnB,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":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EACnB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAGlC,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
export { IntrospectionClient } from "./client.js";
|
|
13
13
|
// Machine / federated / hosted-login OAuth token helpers.
|
|
14
14
|
export { serviceAccountToken, tokenExchange, authorizationCodeToken, } from "./auth.js";
|
|
15
|
+
// Native email-code sign-in (a `native` Application's end users).
|
|
16
|
+
export { AuthClient, EMAIL_CODE_GRANT_TYPE, InMemorySessionStorage, } from "./auth-client.js";
|
|
17
|
+
export { DataPlaneClient } from "./data-plane.js";
|
|
15
18
|
// Runner-bound REST namespaces (runner.tasks, runner.files,
|
|
16
19
|
// runner.conversations) + HTTP.
|
|
17
20
|
export { ConversationItemsApi, ConversationsApi, EventsApi, FileVersionsApi, FilesApi, MetricsApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
@@ -26,7 +29,12 @@ export { RuntimesApi, RuntimeHandle, attachRuntimes, } from "./resources/runtime
|
|
|
26
29
|
export { ExperimentsApi, ExperimentHandle, attachExperiments, } from "./resources/experiments.js";
|
|
27
30
|
export { RecipesApi, attachRecipes } from "./resources/recipes.js";
|
|
28
31
|
export { ConnectorsApi, ConnectionsApi, attachConnectors, } from "./resources/connectors.js";
|
|
32
|
+
export { MembersApi, attachMembers } from "./resources/members.js";
|
|
33
|
+
export { AutomationsApi, attachAutomations } from "./resources/automations.js";
|
|
34
|
+
export { AppConnectionsApi } from "./resources/app-connections.js";
|
|
35
|
+
export { RepositoriesApi, attachRepositories, } from "./resources/repositories.js";
|
|
36
|
+
export { AnnotationsApi, ProjectLabelsApi, attachAnnotations, attachProjectLabels, } from "./resources/annotations.js";
|
|
29
37
|
export { ConversationsMethods, IntrospectionEventNames, genAiConversationId, genAiInputMessages, genAiOutputMessages, isKnownEvent, } from "@introspection-sdk/types";
|
|
30
|
-
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
38
|
+
export { IntrospectionAPIError, AuthenticationError, InsufficientScopeError, RunnerExpiredError, NotFoundError, ConflictError, ValidationError, RateLimitError, SandboxUnavailableError, NetworkError, StreamIncompleteError, RunFailedError, apiErrorFromResponse, } from "@introspection-sdk/types";
|
|
31
39
|
export { toAttributes } from "@introspection-sdk/types";
|
|
32
40
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,0DAA0D;AAC1D,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,0DAA0D;AAC1D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AO,EACL,eAAe,EACf,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AA6MpC,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ export { setupTracing } from "./setup.js";
|
|
|
13
13
|
export type { SetupTracingOptions, ConflictBehavior } from "./setup.js";
|
|
14
14
|
export { IntrospectionSpanProcessor } from "./span-processor.js";
|
|
15
15
|
export type { IntrospectionSpanProcessorOptions } from "./span-processor.js";
|
|
16
|
-
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
16
|
+
export { init, shutdown, logEvent, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
17
17
|
export type { InitOptions } from "./init.js";
|
|
18
|
+
export type { LogEventOptions, LogEventSeverity } from "../types.js";
|
|
19
|
+
export { RESERVED_EVENT_NAME_PREFIXES } from "@introspection-sdk/types";
|
|
18
20
|
export { registerOTelGlobals } from "./setup.js";
|
|
19
21
|
export { DidNotEnable, discoverIntegrations, setupIntegrations, resetInstalledForTests, } from "./integrations/index.js";
|
|
20
22
|
export type { Integration, IntegrationSetupContext, IntegrationHandles, } from "./integrations/index.js";
|
package/dist/otel/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAe7E,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAI1D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGxE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACjE,YAAY,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAe7E,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAGxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,WAAW,EACX,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC"}
|
package/dist/otel/index.js
CHANGED
|
@@ -27,7 +27,8 @@ export { IntrospectionSpanProcessor } from "./span-processor.js";
|
|
|
27
27
|
// One-liner bootstrap (`introspection.init()`) + analytics proxies and the
|
|
28
28
|
// per-framework handle accessors it binds. Auto-detects installed frameworks
|
|
29
29
|
// and wires them into one shared provider.
|
|
30
|
-
export { init, shutdown, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
30
|
+
export { init, shutdown, logEvent, track, feedback, identify, conversation, withAgent, withConversation, withUserId, withAnonymousId, newConversationId, getClient, getTracerProvider, instrumentPi, _resetForTests, } from "./init.js";
|
|
31
|
+
export { RESERVED_EVENT_NAME_PREFIXES } from "@introspection-sdk/types";
|
|
31
32
|
// Low-level OTel registration helper (also used by `init`).
|
|
32
33
|
export { registerOTelGlobals } from "./setup.js";
|
|
33
34
|
// Integration registry — for custom integrations passed to `init`.
|
package/dist/otel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,uEAAuE;AACvE,wDAAwD;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,sDAAsD;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,8EAA8E;AAC9E,EAAE;AACF,uDAAuD;AACvD,6EAA6E;AAC7E,4DAA4D;AAC5D,wEAAwE;AACxE,4EAA4E;AAC5E,4EAA4E;AAC5E,8DAA8D;AAE9D,2EAA2E;AAC3E,6EAA6E;AAC7E,2CAA2C;AAC3C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AAGnB,4DAA4D;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,mEAAmE;AACnE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/otel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,uEAAuE;AACvE,wDAAwD;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,sDAAsD;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAGjE,8EAA8E;AAC9E,EAAE;AACF,uDAAuD;AACvD,6EAA6E;AAC7E,4DAA4D;AAC5D,wEAAwE;AACxE,4EAA4E;AAC5E,4EAA4E;AAC5E,8DAA8D;AAE9D,2EAA2E;AAC3E,6EAA6E;AAC7E,2CAA2C;AAC3C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAExE,4DAA4D;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,mEAAmE;AACnE,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
package/dist/otel/init.d.ts
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
* // An installed Pi agent is wired into the shared provider automatically.
|
|
12
12
|
* ```
|
|
13
13
|
*
|
|
14
|
-
* It also exposes the `track` / `feedback` / `identify` analytics surface and a
|
|
14
|
+
* It also exposes the `logEvent` / `track` / `feedback` / `identify` analytics surface and a
|
|
15
15
|
* `conversation()` scope, proxied to a global {@link IntrospectionLogs}.
|
|
16
16
|
*/
|
|
17
17
|
import { type TracerProvider } from "@opentelemetry/api";
|
|
18
18
|
import type { SpanProcessor } from "@opentelemetry/sdk-trace-base";
|
|
19
|
-
import type { AdvancedOptions, FeedbackOptions, UserTraits } from "../types.js";
|
|
19
|
+
import type { AdvancedOptions, FeedbackOptions, LogEventOptions, UserTraits } from "../types.js";
|
|
20
20
|
import { type Integration } from "./integrations/index.js";
|
|
21
21
|
import type { Agent } from "@earendil-works/pi-agent-core";
|
|
22
22
|
import type { AgentMeta } from "./pi.js";
|
|
@@ -64,6 +64,11 @@ export declare function init(options?: InitOptions): Promise<TracerProvider>;
|
|
|
64
64
|
export declare function getClient(): IntrospectionLogs;
|
|
65
65
|
/** Return the shared provider. Throws if {@link init} has not been called. */
|
|
66
66
|
export declare function getTracerProvider(): TracerProvider;
|
|
67
|
+
/**
|
|
68
|
+
* Log an app event under any custom name. Requires {@link init} first.
|
|
69
|
+
* See {@link IntrospectionLogs.logEvent}.
|
|
70
|
+
*/
|
|
71
|
+
export declare function logEvent(name: string, attributes?: Record<string, unknown>, options?: LogEventOptions): void;
|
|
67
72
|
/** Track an analytics event. Requires {@link init} first. */
|
|
68
73
|
export declare function track(eventName: string, properties?: Record<string, unknown>, options?: {
|
|
69
74
|
eventId?: string;
|
package/dist/otel/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/otel/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAK/E,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/otel/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAK/E,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU,EACX,MAAM,aAAa,CAAC;AAErB,OAAO,EAIL,KAAK,WAAW,EAGjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,M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