@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.
Files changed (80) hide show
  1. package/README.md +430 -8
  2. package/dist/auth-client.d.ts +182 -0
  3. package/dist/auth-client.d.ts.map +1 -0
  4. package/dist/auth-client.js +402 -0
  5. package/dist/auth-client.js.map +1 -0
  6. package/dist/auth.d.ts +12 -2
  7. package/dist/auth.d.ts.map +1 -1
  8. package/dist/auth.js.map +1 -1
  9. package/dist/client.d.ts +51 -6
  10. package/dist/client.d.ts.map +1 -1
  11. package/dist/client.js +80 -6
  12. package/dist/client.js.map +1 -1
  13. package/dist/data-plane.d.ts +69 -0
  14. package/dist/data-plane.d.ts.map +1 -0
  15. package/dist/data-plane.js +61 -0
  16. package/dist/data-plane.js.map +1 -0
  17. package/dist/http.d.ts +23 -4
  18. package/dist/http.d.ts.map +1 -1
  19. package/dist/http.js +26 -7
  20. package/dist/http.js.map +1 -1
  21. package/dist/index.d.ts +14 -3
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +9 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/otel/index.d.ts +3 -1
  26. package/dist/otel/index.d.ts.map +1 -1
  27. package/dist/otel/index.js +2 -1
  28. package/dist/otel/index.js.map +1 -1
  29. package/dist/otel/init.d.ts +7 -2
  30. package/dist/otel/init.d.ts.map +1 -1
  31. package/dist/otel/init.js +9 -2
  32. package/dist/otel/init.js.map +1 -1
  33. package/dist/otel/logs.d.ts +23 -6
  34. package/dist/otel/logs.d.ts.map +1 -1
  35. package/dist/otel/logs.js +56 -13
  36. package/dist/otel/logs.js.map +1 -1
  37. package/dist/resources/annotations.d.ts +28 -0
  38. package/dist/resources/annotations.d.ts.map +1 -0
  39. package/dist/resources/annotations.js +198 -0
  40. package/dist/resources/annotations.js.map +1 -0
  41. package/dist/resources/app-connections.d.ts +35 -0
  42. package/dist/resources/app-connections.d.ts.map +1 -0
  43. package/dist/resources/app-connections.js +66 -0
  44. package/dist/resources/app-connections.js.map +1 -0
  45. package/dist/resources/automations.d.ts +5 -0
  46. package/dist/resources/automations.d.ts.map +1 -0
  47. package/dist/resources/automations.js +6 -0
  48. package/dist/resources/automations.js.map +1 -0
  49. package/dist/resources/connectors.d.ts +34 -2
  50. package/dist/resources/connectors.d.ts.map +1 -1
  51. package/dist/resources/connectors.js +53 -1
  52. package/dist/resources/connectors.js.map +1 -1
  53. package/dist/resources/experiments.d.ts +6 -6
  54. package/dist/resources/experiments.d.ts.map +1 -1
  55. package/dist/resources/experiments.js +29 -6
  56. package/dist/resources/experiments.js.map +1 -1
  57. package/dist/resources/members.d.ts +33 -0
  58. package/dist/resources/members.d.ts.map +1 -0
  59. package/dist/resources/members.js +59 -0
  60. package/dist/resources/members.js.map +1 -0
  61. package/dist/resources/repositories.d.ts +52 -0
  62. package/dist/resources/repositories.d.ts.map +1 -0
  63. package/dist/resources/repositories.js +112 -0
  64. package/dist/resources/repositories.js.map +1 -0
  65. package/dist/runner.d.ts +19 -5
  66. package/dist/runner.d.ts.map +1 -1
  67. package/dist/runner.js +18 -3
  68. package/dist/runner.js.map +1 -1
  69. package/dist/types.d.ts +2 -2
  70. package/dist/types.d.ts.map +1 -1
  71. package/dist/types.js +1 -1
  72. package/dist/types.js.map +1 -1
  73. package/dist/utils.d.ts +2 -2
  74. package/dist/utils.d.ts.map +1 -1
  75. package/dist/utils.js +1 -1
  76. package/dist/utils.js.map +1 -1
  77. package/dist/version.d.ts +1 -1
  78. package/dist/version.js +1 -1
  79. package/dist/version.js.map +1 -1
  80. package/package.json +21 -16
@@ -0,0 +1,402 @@
1
+ /**
2
+ * Native email-code sign-in for an app's end users, shaped like the Supabase
3
+ * Auth client: `signInWithOtp`, `verifyOtp`, `getSession`, `refreshSession`,
4
+ * `signOut` and `onAuthStateChange`.
5
+ *
6
+ * Requires a `native` Application. The Control Plane emails a one-time code
7
+ * (`POST /v1/oauth/email/code`) and exchanges it at `POST /v1/oauth/token` for
8
+ * a refreshable session of a `customer` member of the Application's
9
+ * organization, scoped to one project and capped to the Application's
10
+ * `allowed_scopes`. The access token is a Data Plane credential: hand the
11
+ * session to {@link AuthClient.dataPlane}, not to `IntrospectionClient`, whose
12
+ * Control Plane routes do not accept it.
13
+ *
14
+ * Federated sign-in (a `jwks` Application) keeps the session in the customer's
15
+ * own IdP SDK; use {@link tokenExchange} for that instead.
16
+ */
17
+ import { toApiError, stripTrailingSlash } from "@introspection-sdk/http";
18
+ import { AuthenticationError, IntrospectionAPIError, } from "@introspection-sdk/types";
19
+ import { DataPlaneClient } from "./data-plane.js";
20
+ const DEFAULT_BASE_API_URL = "https://api.introspection.dev";
21
+ /** The `grant_type` of the native email-code grant. */
22
+ export const EMAIL_CODE_GRANT_TYPE = "urn:introspection:params:oauth:grant-type:email_code";
23
+ const GRANT_TYPE_REFRESH_TOKEN = "refresh_token";
24
+ /** Keeps the session in memory only; nothing survives a restart. */
25
+ export class InMemorySessionStorage {
26
+ values = new Map();
27
+ getItem(key) {
28
+ return this.values.get(key) ?? null;
29
+ }
30
+ setItem(key, value) {
31
+ this.values.set(key, value);
32
+ }
33
+ removeItem(key) {
34
+ this.values.delete(key);
35
+ }
36
+ }
37
+ /** Thrown when a sign-out or a newer sign-in completes while a sign-in is pending. */
38
+ function superseded() {
39
+ return new DOMException("A sign-out or a newer sign-in superseded this response", "AbortError");
40
+ }
41
+ /** A rejection by the server, as opposed to a network failure that should not sign the user out. */
42
+ function isRejection(err) {
43
+ return (err instanceof IntrospectionAPIError &&
44
+ ([400, 401, 403, 422].includes(err.status) || err.code === "invalid_grant"));
45
+ }
46
+ function defaultBaseApiUrl() {
47
+ const env = typeof process === "undefined"
48
+ ? undefined
49
+ : process.env?.INTROSPECTION_BASE_API_URL;
50
+ return env ?? DEFAULT_BASE_API_URL;
51
+ }
52
+ /**
53
+ * Email-code sign-in, session persistence and refresh for a `native`
54
+ * Application.
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * const auth = new AuthClient({
59
+ * clientId: "intro_app_…",
60
+ * project: "my-project",
61
+ * storage: sessionStore, // getItem / setItem / removeItem
62
+ * });
63
+ *
64
+ * await auth.signInWithOtp({ email });
65
+ * // A returning user's code is 6 digits; a new user's first code is 6
66
+ * // characters of A–Z and 0–9, so do not restrict the input to digits.
67
+ * await auth.verifyOtp({ email, token: code });
68
+ *
69
+ * const dp = await auth.dataPlane();
70
+ * const run = await dp.tasks.start({ prompt: "Hello", runtime_id });
71
+ * ```
72
+ */
73
+ export class AuthClient {
74
+ options;
75
+ baseApiUrl;
76
+ storage;
77
+ storageKey;
78
+ leewayMs;
79
+ fetchImpl;
80
+ now;
81
+ current = null;
82
+ /** Bumped by every sign-in and sign-out; a response read under an older value is stale. */
83
+ generation = 0;
84
+ restored = false;
85
+ restoring;
86
+ refreshing;
87
+ storageWrite = Promise.resolve();
88
+ listeners = new Set();
89
+ constructor(options) {
90
+ this.options = options;
91
+ if (!options.clientId)
92
+ throw new Error("AuthClient requires a clientId");
93
+ if (!options.project)
94
+ throw new Error("AuthClient requires a project");
95
+ this.baseApiUrl = stripTrailingSlash(options.baseApiUrl ?? defaultBaseApiUrl());
96
+ this.storage = options.storage ?? new InMemorySessionStorage();
97
+ this.storageKey = options.storageKey ?? "introspection.auth.session";
98
+ this.leewayMs = (options.leewaySeconds ?? 60) * 1000;
99
+ const fetchImpl = options.fetch ?? globalThis.fetch;
100
+ if (!fetchImpl) {
101
+ throw new Error("global fetch is unavailable; pass `fetch` or run on Node 18+");
102
+ }
103
+ // Bound so a browser's native fetch is not called with this client as `this`.
104
+ this.fetchImpl = (input, init) => fetchImpl(input, init);
105
+ this.now = options.now ?? Date.now;
106
+ }
107
+ // --- sign-in ---
108
+ /**
109
+ * Email a one-time code to `email`. The answer is the same whether or not
110
+ * the email has an account; a new address gets an account on verify.
111
+ * Throws `RateLimitError` (with `retryAfter`) when codes are requested too
112
+ * often.
113
+ */
114
+ async signInWithOtp(params) {
115
+ const res = await this.fetchImpl(`${this.baseApiUrl}/v1/oauth/email/code`, {
116
+ method: "POST",
117
+ headers: { "Content-Type": "application/json" },
118
+ body: JSON.stringify({
119
+ client_id: this.options.clientId,
120
+ email: params.email,
121
+ project: this.options.project,
122
+ }),
123
+ cache: "no-store",
124
+ });
125
+ if (!res.ok)
126
+ throw await toApiError(res);
127
+ }
128
+ /**
129
+ * Verify the code sent to `email` and sign in. The code is opaque: 6 digits
130
+ * for a returning user, 6 characters of A–Z and 0–9 for a new user's first
131
+ * sign-in. A wrong, expired or reused code throws a `ValidationError` with
132
+ * `code === "invalid_grant"`.
133
+ *
134
+ * Rejects with an `AbortError` when a sign-out or another sign-in completes
135
+ * while the code is being verified, so a slow response never overwrites a
136
+ * newer session.
137
+ */
138
+ async verifyOtp(params) {
139
+ const generation = this.generation;
140
+ const token = await this.postToken({
141
+ grant_type: EMAIL_CODE_GRANT_TYPE,
142
+ client_id: this.options.clientId,
143
+ email: params.email,
144
+ code: params.token.trim(),
145
+ project: this.options.project,
146
+ });
147
+ return this.signedIn(this.toSession(token), generation);
148
+ }
149
+ /** Adopt a platform token obtained elsewhere, for example from your own backend. */
150
+ async setSession(token) {
151
+ return this.signedIn(this.toSession(token));
152
+ }
153
+ // --- session ---
154
+ /**
155
+ * The current session, restored from storage on first use and refreshed
156
+ * when it is within `leewaySeconds` of expiry. `null` when signed out.
157
+ */
158
+ async getSession() {
159
+ await this.restoreIfNeeded();
160
+ const current = this.current;
161
+ if (!current)
162
+ return null;
163
+ if (current.expires_at !== null &&
164
+ current.expires_at - this.leewayMs <= this.now()) {
165
+ return this.refreshSession();
166
+ }
167
+ return current;
168
+ }
169
+ /**
170
+ * Renew the session now, or join the renewal already in flight. A refresh
171
+ * the server rejects signs the user out and throws `AuthenticationError`;
172
+ * a network failure keeps the session and rethrows.
173
+ */
174
+ async refreshSession() {
175
+ await this.restoreIfNeeded();
176
+ if (this.refreshing)
177
+ return this.refreshing;
178
+ const session = this.current;
179
+ if (!session) {
180
+ throw new AuthenticationError({ message: "Not signed in", status: 401 });
181
+ }
182
+ const generation = this.generation;
183
+ const refreshing = (async () => {
184
+ try {
185
+ const next = await this.renew(session);
186
+ if (this.generation !== generation)
187
+ throw superseded();
188
+ await this.store(next);
189
+ if (this.generation !== generation)
190
+ throw superseded();
191
+ this.current = next;
192
+ this.emit("TOKEN_REFRESHED", next);
193
+ return next;
194
+ }
195
+ catch (err) {
196
+ if (!isRejection(err))
197
+ throw err;
198
+ if (this.generation !== generation)
199
+ throw superseded();
200
+ await this.clear();
201
+ throw new AuthenticationError({
202
+ message: `The session is no longer valid: ${err.message}`,
203
+ status: err.status,
204
+ code: err.code,
205
+ requestId: err.requestId,
206
+ body: err.body,
207
+ });
208
+ }
209
+ finally {
210
+ if (this.generation === generation)
211
+ this.refreshing = undefined;
212
+ }
213
+ })();
214
+ this.refreshing = refreshing;
215
+ return refreshing;
216
+ }
217
+ /**
218
+ * Sign out: forget the session locally, then revoke it on the platform.
219
+ * The local session is cleared even when revocation fails; the revocation
220
+ * error is still thrown.
221
+ */
222
+ async signOut() {
223
+ await this.restoreIfNeeded();
224
+ const session = this.current;
225
+ await this.clear();
226
+ if (!session?.refresh_token || !session.session_id || !session.org_id) {
227
+ return;
228
+ }
229
+ const res = await this.fetchImpl(`${this.baseApiUrl}/v1/oauth/revoke`, {
230
+ method: "POST",
231
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
232
+ body: new URLSearchParams({
233
+ client_id: this.options.clientId,
234
+ session_id: session.session_id,
235
+ org_id: session.org_id,
236
+ }).toString(),
237
+ cache: "no-store",
238
+ });
239
+ if (!res.ok)
240
+ throw await toApiError(res);
241
+ }
242
+ /**
243
+ * Listen for session changes. A new listener first receives
244
+ * `INITIAL_SESSION` with the session restored from storage (or `null`).
245
+ */
246
+ onAuthStateChange(listener) {
247
+ this.listeners.add(listener);
248
+ void this.restoreIfNeeded().then(() => {
249
+ if (this.listeners.has(listener))
250
+ listener("INITIAL_SESSION", this.current);
251
+ });
252
+ return { unsubscribe: () => this.listeners.delete(listener) };
253
+ }
254
+ // --- using the session ---
255
+ /**
256
+ * A bearer credential backed by this client: refreshed before expiry, and
257
+ * once more after a `401` unless another request already renewed it.
258
+ */
259
+ get credentials() {
260
+ return {
261
+ accessToken: async () => (await this.getSession())?.access_token ?? null,
262
+ refreshAfterUnauthorized: async (rejected) => {
263
+ const session = await this.getSession();
264
+ if (!session)
265
+ return false;
266
+ if (rejected !== null && rejected !== session.access_token)
267
+ return true;
268
+ await this.refreshSession();
269
+ return true;
270
+ },
271
+ };
272
+ }
273
+ /**
274
+ * A Data Plane client authenticated as the signed-in member. The Data Plane
275
+ * URL defaults to the one returned with the session.
276
+ */
277
+ async dataPlane(options = {}) {
278
+ const session = await this.getSession();
279
+ if (!session) {
280
+ throw new AuthenticationError({ message: "Not signed in", status: 401 });
281
+ }
282
+ const dpUrl = options.dpUrl ?? session.dp_url;
283
+ if (!dpUrl) {
284
+ throw new Error("The session carries no dp_url; pass `dpUrl` for this deployment");
285
+ }
286
+ return new DataPlaneClient({
287
+ dpUrl,
288
+ credentials: this.credentials,
289
+ additionalHeaders: options.additionalHeaders,
290
+ fetch: this.options.fetch,
291
+ });
292
+ }
293
+ // --- internals ---
294
+ async postToken(fields) {
295
+ const res = await this.fetchImpl(`${this.baseApiUrl}/v1/oauth/token`, {
296
+ method: "POST",
297
+ headers: { "Content-Type": "application/x-www-form-urlencoded" },
298
+ body: new URLSearchParams(fields).toString(),
299
+ cache: "no-store",
300
+ });
301
+ if (!res.ok)
302
+ throw await toApiError(res);
303
+ return (await res.json());
304
+ }
305
+ /** The refresh response omits `dp_url`, so it carries over from `previous`. */
306
+ toSession(token, previous) {
307
+ return {
308
+ access_token: token.access_token,
309
+ token_type: token.token_type ?? "Bearer",
310
+ refresh_token: token.refresh_token ?? previous?.refresh_token ?? null,
311
+ expires_at: typeof token.expires_in === "number"
312
+ ? this.now() + token.expires_in * 1000
313
+ : null,
314
+ scope: token.scope ?? previous?.scope ?? null,
315
+ session_id: token.session_id ?? previous?.session_id ?? null,
316
+ org_id: token.org_id ?? previous?.org_id ?? null,
317
+ project_id: token.project_id ?? previous?.project_id ?? null,
318
+ member_id: token.member_id ?? previous?.member_id ?? null,
319
+ dp_url: token.dp_url ?? previous?.dp_url ?? null,
320
+ };
321
+ }
322
+ async renew(session) {
323
+ if (!session.refresh_token || !session.session_id || !session.org_id) {
324
+ throw new AuthenticationError({
325
+ message: "The session has no refresh token",
326
+ status: 401,
327
+ });
328
+ }
329
+ const token = await this.postToken({
330
+ grant_type: GRANT_TYPE_REFRESH_TOKEN,
331
+ client_id: this.options.clientId,
332
+ refresh_token: session.refresh_token,
333
+ session_id: session.session_id,
334
+ org_id: session.org_id,
335
+ });
336
+ return this.toSession(token, session);
337
+ }
338
+ /** `expected` is the generation read before a sign-in request was sent. */
339
+ async signedIn(session, expected) {
340
+ if (expected !== undefined && this.generation !== expected) {
341
+ throw superseded();
342
+ }
343
+ const generation = ++this.generation;
344
+ this.refreshing = undefined;
345
+ this.restored = true;
346
+ this.current = null;
347
+ await this.store(session);
348
+ if (this.generation !== generation)
349
+ throw superseded();
350
+ this.current = session;
351
+ this.emit("SIGNED_IN", session);
352
+ return session;
353
+ }
354
+ /** Storage may be async, so writes are chained to land in transition order. */
355
+ store(session) {
356
+ const value = JSON.stringify(session);
357
+ const write = this.storageWrite
358
+ .catch(() => undefined)
359
+ .then(() => this.storage.setItem(this.storageKey, value));
360
+ this.storageWrite = write;
361
+ return write;
362
+ }
363
+ async clear() {
364
+ this.generation++;
365
+ this.refreshing = undefined;
366
+ const hadSession = this.current !== null;
367
+ this.current = null;
368
+ this.restored = true;
369
+ if (hadSession)
370
+ this.emit("SIGNED_OUT", null);
371
+ const write = this.storageWrite
372
+ .catch(() => undefined)
373
+ .then(() => this.storage.removeItem(this.storageKey));
374
+ this.storageWrite = write;
375
+ await write.catch(() => undefined);
376
+ }
377
+ /** Concurrent first callers share one load, so none sees the session as absent while it is read. */
378
+ restoreIfNeeded() {
379
+ if (this.restored)
380
+ return Promise.resolve();
381
+ this.restoring ??= (async () => {
382
+ let stored = null;
383
+ try {
384
+ const raw = await this.storage.getItem(this.storageKey);
385
+ stored = raw ? JSON.parse(raw) : null;
386
+ }
387
+ catch {
388
+ stored = null;
389
+ }
390
+ if (!this.restored && stored?.access_token)
391
+ this.current = stored;
392
+ this.restored = true;
393
+ this.restoring = undefined;
394
+ })();
395
+ return this.restoring;
396
+ }
397
+ emit(event, session) {
398
+ for (const listener of this.listeners)
399
+ listener(event, session);
400
+ }
401
+ }
402
+ //# sourceMappingURL=auth-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-client.js","sourceRoot":"","sources":["../src/auth-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,MAAM,oBAAoB,GAAG,+BAA+B,CAAC;AAC7D,uDAAuD;AACvD,MAAM,CAAC,MAAM,qBAAqB,GAChC,sDAAsD,CAAC;AACzD,MAAM,wBAAwB,GAAG,eAAe,CAAC;AAajD,oEAAoE;AACpE,MAAM,OAAO,sBAAsB;IAChB,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAEpD,OAAO,CAAC,GAAW;QACjB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;IACtC,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAa;QAChC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC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,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACrC,CAAC;IAED,oGAAoG;IAC5F,eAAe;QACrB,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,KAAK,CAAC,KAAK,IAAI,EAAE;YAC7B,IAAI,MAAM,GAAuB,IAAI,CAAC;YACtC,IAAI,CAAC;gBACH,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBACxD,MAAM,GAAG,GAAG,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAiB,CAAC,CAAC,CAAC,IAAI,CAAC;YACzD,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,GAAG,IAAI,CAAC;YAChB,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,MAAM,EAAE,YAAY;gBAAE,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YAClE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7B,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAEO,IAAI,CAAC,KAAsB,EAAE,OAA2B;QAC9D,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS;YAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF"}
package/dist/auth.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  /**
2
- * CP `POST /v1/oauth/token` response. No refresh token is issued for the
3
- * machine grants — re-mint when it expires.
2
+ * CP `POST /v1/oauth/token` response. The machine and token-exchange grants
3
+ * issue no refresh token — re-mint when it expires; the `authorization_code`
4
+ * and native `email_code` grants add `refresh_token` and the session fields
5
+ * the `refresh_token` grant is keyed on.
4
6
  */
5
7
  export interface OAuthToken {
6
8
  /** Project-scoped RS256 access token (`Authorization: Bearer …`). */
@@ -18,6 +20,14 @@ export interface OAuthToken {
18
20
  * browser client as `dpUrl` so the SPA connects without separate DP config.
19
21
  */
20
22
  dp_url: string | null;
23
+ /** Rotating refresh token, for the grants that issue one. */
24
+ refresh_token?: string | null;
25
+ /** The platform session the refresh token belongs to. */
26
+ session_id?: string | null;
27
+ org_id?: string | null;
28
+ project_id?: string | null;
29
+ /** The member the token was minted for. */
30
+ member_id?: string | null;
21
31
  }
22
32
  export interface ServiceAccountTokenParams {
23
33
  /** Confidential Application client id (`intro_app_…`). */
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAyDA;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE7C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,yBAAyB,GA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,IAAI,EACJ,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3B,CAAC;AACJ,CAAC;AAoBD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,MAA+B;IAE/B,MAAM,IAAI,GAAG,IAAI,eAAe,CAAC;QAC/B,UAAU,EAAE,6BAA6B;QACzC,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,SAAS,EAAE,MAAM,CAAC,QAAQ;QAC1B,YAAY,EAAE,MAAM,CAAC,WAAW;QAChC,aAAa,EAAE,MAAM,CAAC,YAAY;KACnC,CAAC,CAAC;IACH,OAAO,aAAa,CAClB,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,EACpC,IAAI,EACJ,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3B,CAAC;AACJ,CAAC;AAyBD;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAA2B;IAE3B,MAAM,IAAI,GAAG,IAAI,eAAe,CAAC;QAC/B,UAAU,EAAE,yBAAyB;QACrC,aAAa,EAAE,MAAM,CAAC,YAAY;QAClC,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,IAAI,2BAA2B;QAC1E,SAAS,EAAE,MAAM,CAAC,QAAQ;QAC1B,OAAO,EAAE,MAAM,CAAC,OAAO;KACxB,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,KAAK;QAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,aAAa,CAClB,iBAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,EACpC,IAAI,EACJ,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAC3B,CAAC;AACJ,CAAC"}
package/dist/client.d.ts CHANGED
@@ -11,7 +11,8 @@
11
11
  * helpers, use {@link IntrospectionLogs} from
12
12
  * `@introspection-sdk/introspection-node/otel`.
13
13
  */
14
- import type { AdvancedOptions } from "@introspection-sdk/types";
14
+ import type { AdvancedOptions, AppConnectionCreateParams } from "@introspection-sdk/types";
15
+ import { ConversationsApi, EventsApi, FilesApi, MetricsApi, SharesApi, TasksApi } from "@introspection-sdk/http";
15
16
  import type { IntrospectionClientOptions } from "./types.js";
16
17
  import { type ServiceAccountTokenParams } from "./auth.js";
17
18
  import { HttpClient } from "./http.js";
@@ -19,6 +20,12 @@ import { type RuntimeHandleFactory, type RuntimesApi } from "./resources/runtime
19
20
  import { type ExperimentHandleFactory, type ExperimentsApi } from "./resources/experiments.js";
20
21
  import { type RecipesApi } from "./resources/recipes.js";
21
22
  import { type ConnectorsApi } from "./resources/connectors.js";
23
+ import { type MembersApi } from "./resources/members.js";
24
+ import { type AutomationsApi } from "./resources/automations.js";
25
+ import { type AnnotationsApi, type ProjectLabelsApi } from "./resources/annotations.js";
26
+ import { type RepositoriesApi } from "./resources/repositories.js";
27
+ import { AppConnectionsApi } from "./resources/app-connections.js";
28
+ import type { DataPlaneResources } from "./data-plane.js";
22
29
  /**
23
30
  * Introspection REST client.
24
31
  *
@@ -39,9 +46,11 @@ import { type ConnectorsApi } from "./resources/connectors.js";
39
46
  * await client.shutdown();
40
47
  * ```
41
48
  */
42
- export declare class IntrospectionClient {
49
+ export declare class IntrospectionClient implements DataPlaneResources {
43
50
  /** @internal — HTTP client pointed at the CP API with the customer key. */
44
51
  readonly cpHttp: HttpClient;
52
+ /** @internal — HTTP client pointed at the project Data Plane. */
53
+ readonly dpHttp: HttpClient;
45
54
  /** @internal — passed through to Runner so it can build its own DP HTTP client. */
46
55
  readonly advancedOptions: AdvancedOptions;
47
56
  /**
@@ -50,10 +59,7 @@ export declare class IntrospectionClient {
50
59
  * through the Introspection CLI and platform.
51
60
  */
52
61
  readonly runtimes: RuntimesApi & RuntimeHandleFactory;
53
- /**
54
- * Reads on `/v1/experiments` plus the `(id) => ExperimentHandle` factory
55
- * for run lifecycle. Authoring experiment definitions is a CLI action.
56
- */
62
+ /** CRUD on `/v1/experiments` plus the callable run-lifecycle handle. */
57
63
  readonly experiments: ExperimentsApi & ExperimentHandleFactory;
58
64
  /**
59
65
  * Reads on `/v1/recipes`. Recipes are immutable build artefacts
@@ -67,6 +73,45 @@ export declare class IntrospectionClient {
67
73
  * single-use consent URL a Business hands its customer.
68
74
  */
69
75
  readonly connectors: ConnectorsApi;
76
+ /**
77
+ * List, read, create and update on `/v1/members`, including each
78
+ * member's access-bearing `tags` and its `metadata` labels, which grant
79
+ * nothing.
80
+ */
81
+ readonly members: MembersApi;
82
+ /**
83
+ * CRUD on `/v1/automations` (Data Plane) plus `automations.trigger(id)`.
84
+ * Administrator-only on the server today.
85
+ */
86
+ readonly automations: AutomationsApi;
87
+ /**
88
+ * Reads on `/v1/repositories` (CP) plus `repositories.contents` and
89
+ * `repositories.commits`, which read files, directories and history
90
+ * through the Data Plane, and `repositories.merge`, which merges branches.
91
+ */
92
+ readonly repositories: RepositoriesApi;
93
+ /** Read folded span annotations and append one annotation mutation. */
94
+ readonly annotations: AnnotationsApi;
95
+ /** Manage reusable project labels. */
96
+ readonly projectLabels: ProjectLabelsApi;
97
+ /** Read immutable annotation activity and other typed platform events. */
98
+ readonly events: EventsApi;
99
+ /** `/v1/tasks` (Data Plane), with `tasks.runs`. */
100
+ readonly tasks: TasksApi;
101
+ /** `/v1/files` (Data Plane). */
102
+ readonly files: FilesApi;
103
+ /** Read-only `/v1/conversations` (Data Plane). */
104
+ readonly conversations: ConversationsApi;
105
+ /** Bounded aggregations on `POST /v1/metrics` (Data Plane). */
106
+ readonly metrics: MetricsApi;
107
+ /** `/v1/shares` sharing grants (Data Plane). */
108
+ readonly shares: SharesApi;
109
+ /**
110
+ * CRUD on `/v1/connections` (Data Plane), the apps members connected for
111
+ * themselves. `create` takes the `runtime` explicitly, since the client
112
+ * has no runtime context.
113
+ */
114
+ readonly connections: AppConnectionsApi<Required<AppConnectionCreateParams>>;
70
115
  constructor(options?: IntrospectionClientOptions);
71
116
  /**
72
117
  * Authenticate as a confidential service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