@atlanai/sdk 0.3.0 → 0.3.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/dist/evals.d.ts CHANGED
@@ -24,7 +24,14 @@ export interface ContextManifest {
24
24
  items: readonly ContextManifestItem[];
25
25
  digest: string;
26
26
  }
27
- /** Build the same canonical, order-independent context manifest as the Python SDK. */
27
+ /**
28
+ * Build the same canonical, order-independent context manifest as the Python SDK.
29
+ *
30
+ * The manifest is written into `experiment.config`, which the gateway stores
31
+ * verbatim and returns on the experiment. The gateway does not parse it, resolve
32
+ * its pins, or derive Registry relationships from it, so the validation here is
33
+ * the only validation there is.
34
+ */
28
35
  export declare function createContextManifest(input: readonly ContextItem[]): Promise<ContextManifest>;
29
36
  /** Resolve one dataset by artifact ID or exact name, never fuzzy matching. */
30
37
  export declare function resolveDataset(client: AtlanClient, idOrExactName: string, workspaceId?: string): Promise<unknown>;
package/dist/evals.js CHANGED
@@ -95,7 +95,14 @@ function manifestItem(item) {
95
95
  ...(item.versionOrdinal === undefined ? {} : { version_ordinal: item.versionOrdinal }),
96
96
  };
97
97
  }
98
- /** Build the same canonical, order-independent context manifest as the Python SDK. */
98
+ /**
99
+ * Build the same canonical, order-independent context manifest as the Python SDK.
100
+ *
101
+ * The manifest is written into `experiment.config`, which the gateway stores
102
+ * verbatim and returns on the experiment. The gateway does not parse it, resolve
103
+ * its pins, or derive Registry relationships from it, so the validation here is
104
+ * the only validation there is.
105
+ */
99
106
  async function createContextManifest(input) {
100
107
  const items = input.map((item) => Object.freeze(manifestItem(item))).sort((left, right) => {
101
108
  const leftJson = canonicalJson(left);
@@ -1,5 +1,5 @@
1
1
  {
2
- "gateway_commit": "ac5dd2693402edc491f0d831fc783037ae5b5046",
2
+ "gateway_commit": "fbd05dcd3dc4b475028a32b773a002a098e080f8",
3
3
  "schema_version": 2,
4
4
  "services": [
5
5
  {
@@ -439,6 +439,24 @@
439
439
  "summary": "Onboard the caller",
440
440
  "visibility": "public"
441
441
  },
442
+ {
443
+ "error_contract": "native",
444
+ "method": "GET",
445
+ "operation_id": "registry.getOwnSession",
446
+ "path": "/users/sessions/{session_id}",
447
+ "stability": "stable",
448
+ "summary": "Read one of the caller's own sessions by id",
449
+ "visibility": "public"
450
+ },
451
+ {
452
+ "error_contract": "native",
453
+ "method": "POST",
454
+ "operation_id": "registry.revokeOwnSession",
455
+ "path": "/users/sessions/{session_id}/revoke",
456
+ "stability": "stable",
457
+ "summary": "Revoke one of the caller's own sessions by id",
458
+ "visibility": "public"
459
+ },
442
460
  {
443
461
  "error_contract": "native",
444
462
  "method": "GET",
@@ -611,7 +629,7 @@
611
629
  "visibility": "public"
612
630
  }
613
631
  ],
614
- "spec_sha256": "9c7d4668fd3223cc3130a93741c6f733272a7a3d0d907a9ec5d8dd2b5a7aac47"
632
+ "spec_sha256": "15efccb355aab625a9de74c943457d25512601fc598e9dedeca5fb908acc9152"
615
633
  },
616
634
  {
617
635
  "api_version": "v1",
@@ -1498,6 +1516,15 @@
1498
1516
  "summary": "Poll the session message log",
1499
1517
  "visibility": "public"
1500
1518
  },
1519
+ {
1520
+ "error_contract": "native",
1521
+ "method": "POST",
1522
+ "operation_id": "agent.postSessionEvent",
1523
+ "path": "/sessions/{session_id}/events",
1524
+ "stability": "stable",
1525
+ "summary": "Send an event to a delegated session",
1526
+ "visibility": "public"
1527
+ },
1501
1528
  {
1502
1529
  "error_contract": "native",
1503
1530
  "method": "GET",
@@ -1553,7 +1580,7 @@
1553
1580
  "visibility": "public"
1554
1581
  }
1555
1582
  ],
1556
- "spec_sha256": "3ccf97ba7fb5c24a6293f91094af3c3a60ebe5b4315c7c841f785863e3b14b32"
1583
+ "spec_sha256": "ec1c918d17da568d36aa336a6e9fd026348d7bb9486176b1236c0d1f12f847df"
1557
1584
  },
1558
1585
  {
1559
1586
  "api_version": "v1",
@@ -2080,7 +2107,7 @@
2080
2107
  }
2081
2108
  ],
2082
2109
  "source": {
2083
- "commit": "ac5dd2693402edc491f0d831fc783037ae5b5046",
2110
+ "commit": "fbd05dcd3dc4b475028a32b773a002a098e080f8",
2084
2111
  "kind": "gateway_commit"
2085
2112
  }
2086
2113
  }
@@ -18,8 +18,10 @@ import { type AgentMessageRole } from '../models/AgentMessageRole';
18
18
  import { type AgentPageSessionArtifactView } from '../models/AgentPageSessionArtifactView';
19
19
  import { type AgentPageSessionEventView } from '../models/AgentPageSessionEventView';
20
20
  import { type AgentPageSessionMessageArtifactView } from '../models/AgentPageSessionMessageArtifactView';
21
+ import { type AgentRemoteSessionEvent } from '../models/AgentRemoteSessionEvent';
21
22
  import { type AgentSessionArtifactView } from '../models/AgentSessionArtifactView';
22
23
  import { type AgentSessionCreate } from '../models/AgentSessionCreate';
24
+ import { type AgentSessionEventAck } from '../models/AgentSessionEventAck';
23
25
  import { type AgentSessionMessageArtifactView } from '../models/AgentSessionMessageArtifactView';
24
26
  import { type AgentSessionMessageCreate } from '../models/AgentSessionMessageCreate';
25
27
  import { type AgentSessionStatus } from '../models/AgentSessionStatus';
@@ -68,6 +70,11 @@ export interface AgentPollEventsRequest {
68
70
  limit?: number;
69
71
  offset?: number;
70
72
  }
73
+ export interface AgentPostSessionEventRequest {
74
+ sessionId: string;
75
+ agentRemoteSessionEvent: AgentRemoteSessionEvent;
76
+ contentEncoding?: AgentPostSessionEventContentEncodingEnum;
77
+ }
71
78
  export interface AgentSearchSessionsRequest {
72
79
  agentArtifactSearchRequest: AgentArtifactSearchRequest;
73
80
  contentEncoding?: AgentSearchSessionsContentEncodingEnum;
@@ -191,6 +198,20 @@ export declare class SessionsApi extends runtime.BaseAPI {
191
198
  * Poll the session message log
192
199
  */
193
200
  agentPollEvents(requestParameters: AgentPollEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentPageSessionEventView>;
201
+ /**
202
+ * Creates request options for agentPostSessionEvent without sending the request
203
+ */
204
+ agentPostSessionEventRequestOpts(requestParameters: AgentPostSessionEventRequest): Promise<runtime.RequestOpts>;
205
+ /**
206
+ * Queue one provider-native event onto a delegated run\'s remote session — the write half of the event log this path already serves. The body passes through verbatim; the provider owns the vocabulary and validates it (`user.message` for a follow-up turn, `user.interrupt` to redirect a busy run mid-flight). This is what makes a delegated session **conversational** through the gateway: without it, the opening prompt is the only turn a caller can ever send. Only a session created by the run-trigger accepts events — an uploaded transcript has no live remote run behind it, and its 400 says so. The relay does not persist the event itself: the provider\'s own history is the source of truth the read half already serves.
207
+ * Send an event to a delegated session
208
+ */
209
+ agentPostSessionEventRaw(requestParameters: AgentPostSessionEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentSessionEventAck>>;
210
+ /**
211
+ * Queue one provider-native event onto a delegated run\'s remote session — the write half of the event log this path already serves. The body passes through verbatim; the provider owns the vocabulary and validates it (`user.message` for a follow-up turn, `user.interrupt` to redirect a busy run mid-flight). This is what makes a delegated session **conversational** through the gateway: without it, the opening prompt is the only turn a caller can ever send. Only a session created by the run-trigger accepts events — an uploaded transcript has no live remote run behind it, and its 400 says so. The relay does not persist the event itself: the provider\'s own history is the source of truth the read half already serves.
212
+ * Send an event to a delegated session
213
+ */
214
+ agentPostSessionEvent(requestParameters: AgentPostSessionEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentSessionEventAck>;
194
215
  /**
195
216
  * Creates request options for agentSearchSessions without sending the request
196
217
  */
@@ -244,6 +265,14 @@ export declare enum AgentCreateSessionRecordContentEncodingEnum {
244
265
  Base64 = "base64",
245
266
  GzipBase64 = "gzip, base64"
246
267
  }
268
+ /**
269
+ * @export
270
+ * @enum {string}
271
+ */
272
+ export declare enum AgentPostSessionEventContentEncodingEnum {
273
+ Base64 = "base64",
274
+ GzipBase64 = "gzip, base64"
275
+ }
247
276
  /**
248
277
  * @export
249
278
  * @enum {string}
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
46
46
  };
47
47
  })();
48
48
  Object.defineProperty(exports, "__esModule", { value: true });
49
- exports.AgentSearchSessionsContentEncodingEnum = exports.AgentCreateSessionRecordContentEncodingEnum = exports.AgentCreateSessionMessageContentEncodingEnum = exports.AgentAggregateSessionsContentEncodingEnum = exports.SessionsApi = void 0;
49
+ exports.AgentSearchSessionsContentEncodingEnum = exports.AgentPostSessionEventContentEncodingEnum = exports.AgentCreateSessionRecordContentEncodingEnum = exports.AgentCreateSessionMessageContentEncodingEnum = exports.AgentAggregateSessionsContentEncodingEnum = exports.SessionsApi = void 0;
50
50
  const runtime = __importStar(require("../runtime"));
51
51
  const AgentArtifactAggregateRequest_1 = require("../models/AgentArtifactAggregateRequest");
52
52
  const AgentArtifactAggregateResponse_1 = require("../models/AgentArtifactAggregateResponse");
@@ -54,8 +54,10 @@ const AgentArtifactSearchRequest_1 = require("../models/AgentArtifactSearchReque
54
54
  const AgentPageSessionArtifactView_1 = require("../models/AgentPageSessionArtifactView");
55
55
  const AgentPageSessionEventView_1 = require("../models/AgentPageSessionEventView");
56
56
  const AgentPageSessionMessageArtifactView_1 = require("../models/AgentPageSessionMessageArtifactView");
57
+ const AgentRemoteSessionEvent_1 = require("../models/AgentRemoteSessionEvent");
57
58
  const AgentSessionArtifactView_1 = require("../models/AgentSessionArtifactView");
58
59
  const AgentSessionCreate_1 = require("../models/AgentSessionCreate");
60
+ const AgentSessionEventAck_1 = require("../models/AgentSessionEventAck");
59
61
  const AgentSessionMessageArtifactView_1 = require("../models/AgentSessionMessageArtifactView");
60
62
  const AgentSessionMessageCreate_1 = require("../models/AgentSessionMessageCreate");
61
63
  const AgentSessionStreamFrame_1 = require("../models/AgentSessionStreamFrame");
@@ -460,6 +462,56 @@ class SessionsApi extends runtime.BaseAPI {
460
462
  const response = await this.agentPollEventsRaw(requestParameters, initOverrides);
461
463
  return await response.value();
462
464
  }
465
+ /**
466
+ * Creates request options for agentPostSessionEvent without sending the request
467
+ */
468
+ async agentPostSessionEventRequestOpts(requestParameters) {
469
+ if (requestParameters['sessionId'] == null) {
470
+ throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling agentPostSessionEvent().');
471
+ }
472
+ if (requestParameters['agentRemoteSessionEvent'] == null) {
473
+ throw new runtime.RequiredError('agentRemoteSessionEvent', 'Required parameter "agentRemoteSessionEvent" was null or undefined when calling agentPostSessionEvent().');
474
+ }
475
+ const queryParameters = {};
476
+ const headerParameters = {};
477
+ headerParameters['Content-Type'] = 'application/json';
478
+ if (requestParameters['contentEncoding'] != null) {
479
+ headerParameters['Content-Encoding'] = String(requestParameters['contentEncoding']);
480
+ }
481
+ if (this.configuration && this.configuration.accessToken) {
482
+ const token = this.configuration.accessToken;
483
+ const tokenString = await token("bearer", []);
484
+ if (tokenString) {
485
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
486
+ }
487
+ }
488
+ let urlPath = `/sessions/{session_id}/events`;
489
+ urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
490
+ return {
491
+ path: urlPath,
492
+ method: 'POST',
493
+ headers: headerParameters,
494
+ query: queryParameters,
495
+ body: (0, AgentRemoteSessionEvent_1.AgentRemoteSessionEventToJSON)(requestParameters['agentRemoteSessionEvent']),
496
+ };
497
+ }
498
+ /**
499
+ * Queue one provider-native event onto a delegated run\'s remote session — the write half of the event log this path already serves. The body passes through verbatim; the provider owns the vocabulary and validates it (`user.message` for a follow-up turn, `user.interrupt` to redirect a busy run mid-flight). This is what makes a delegated session **conversational** through the gateway: without it, the opening prompt is the only turn a caller can ever send. Only a session created by the run-trigger accepts events — an uploaded transcript has no live remote run behind it, and its 400 says so. The relay does not persist the event itself: the provider\'s own history is the source of truth the read half already serves.
500
+ * Send an event to a delegated session
501
+ */
502
+ async agentPostSessionEventRaw(requestParameters, initOverrides) {
503
+ const requestOptions = await this.agentPostSessionEventRequestOpts(requestParameters);
504
+ const response = await this.request(requestOptions, initOverrides);
505
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentSessionEventAck_1.AgentSessionEventAckFromJSON)(jsonValue));
506
+ }
507
+ /**
508
+ * Queue one provider-native event onto a delegated run\'s remote session — the write half of the event log this path already serves. The body passes through verbatim; the provider owns the vocabulary and validates it (`user.message` for a follow-up turn, `user.interrupt` to redirect a busy run mid-flight). This is what makes a delegated session **conversational** through the gateway: without it, the opening prompt is the only turn a caller can ever send. Only a session created by the run-trigger accepts events — an uploaded transcript has no live remote run behind it, and its 400 says so. The relay does not persist the event itself: the provider\'s own history is the source of truth the read half already serves.
509
+ * Send an event to a delegated session
510
+ */
511
+ async agentPostSessionEvent(requestParameters, initOverrides) {
512
+ const response = await this.agentPostSessionEventRaw(requestParameters, initOverrides);
513
+ return await response.value();
514
+ }
463
515
  /**
464
516
  * Creates request options for agentSearchSessions without sending the request
465
517
  */
@@ -577,6 +629,15 @@ var AgentCreateSessionRecordContentEncodingEnum;
577
629
  AgentCreateSessionRecordContentEncodingEnum["Base64"] = "base64";
578
630
  AgentCreateSessionRecordContentEncodingEnum["GzipBase64"] = "gzip, base64";
579
631
  })(AgentCreateSessionRecordContentEncodingEnum || (exports.AgentCreateSessionRecordContentEncodingEnum = AgentCreateSessionRecordContentEncodingEnum = {}));
632
+ /**
633
+ * @export
634
+ * @enum {string}
635
+ */
636
+ var AgentPostSessionEventContentEncodingEnum;
637
+ (function (AgentPostSessionEventContentEncodingEnum) {
638
+ AgentPostSessionEventContentEncodingEnum["Base64"] = "base64";
639
+ AgentPostSessionEventContentEncodingEnum["GzipBase64"] = "gzip, base64";
640
+ })(AgentPostSessionEventContentEncodingEnum || (exports.AgentPostSessionEventContentEncodingEnum = AgentPostSessionEventContentEncodingEnum = {}));
580
641
  /**
581
642
  * @export
582
643
  * @enum {string}
@@ -423,11 +423,13 @@ export interface AgentAgentArtifactView {
423
423
  */
424
424
  syncState?: AgentSyncState | null;
425
425
  /**
426
- * A hash of the spec fields that map onto the remote agent config
427
- * (`instructions`, `model_id`, `tools`, `max_step_count`). A re-trigger reuses
428
- * the pushed version when it matches and pushes a new one when it does not,
429
- * so repeated runs of an unchanged agent do not mint a version each time.
430
- * Hook-owned.
426
+ * A hash of the spec that maps onto the remote agent config: `instructions`,
427
+ * `model_id`, `tools`, `max_step_count`, plus the composition edges — the
428
+ * sub-agent ids, and the attached skills at the head version the push would
429
+ * upload. A re-trigger reuses the pushed version when it matches **and**
430
+ * `sync_state` is `synced`, and pushes a new one otherwise, so repeated runs
431
+ * of an unchanged agent do not mint a version each time while a skill edit
432
+ * or a failed push still re-pushes. Hook-owned.
431
433
  * @type {string}
432
434
  * @memberof AgentAgentArtifactView
433
435
  */
@@ -153,11 +153,13 @@ export interface AgentAgentMeta {
153
153
  */
154
154
  syncState?: AgentSyncState | null;
155
155
  /**
156
- * A hash of the spec fields that map onto the remote agent config
157
- * (`instructions`, `model_id`, `tools`, `max_step_count`). A re-trigger reuses
158
- * the pushed version when it matches and pushes a new one when it does not,
159
- * so repeated runs of an unchanged agent do not mint a version each time.
160
- * Hook-owned.
156
+ * A hash of the spec that maps onto the remote agent config: `instructions`,
157
+ * `model_id`, `tools`, `max_step_count`, plus the composition edges — the
158
+ * sub-agent ids, and the attached skills at the head version the push would
159
+ * upload. A re-trigger reuses the pushed version when it matches **and**
160
+ * `sync_state` is `synced`, and pushes a new one otherwise, so repeated runs
161
+ * of an unchanged agent do not mint a version each time while a skill edit
162
+ * or a failed push still re-pushes. Hook-owned.
161
163
  * @type {string}
162
164
  * @memberof AgentAgentMeta
163
165
  */
@@ -383,6 +383,12 @@ export interface AgentAgentProviderArtifactView {
383
383
  * @memberof AgentAgentProviderArtifactView
384
384
  */
385
385
  providerType?: AgentAgentProviderType;
386
+ /**
387
+ *
388
+ * @type {any}
389
+ * @memberof AgentAgentProviderArtifactView
390
+ */
391
+ skillSync?: any | null;
386
392
  /**
387
393
  * The caller's advisory `can_*` capability matrix on a resource.
388
394
  *
@@ -103,6 +103,7 @@ function AgentAgentProviderArtifactViewFromJSONTyped(json, ignoreDiscriminator)
103
103
  'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
104
104
  'mcpUrl': json['mcp_url'] === undefined ? undefined : json['mcp_url'] === null ? null : json['mcp_url'],
105
105
  'providerType': json['provider_type'] == null ? undefined : (0, AgentAgentProviderType_1.AgentAgentProviderTypeFromJSON)(json['provider_type']),
106
+ 'skillSync': json['skill_sync'] === undefined ? undefined : json['skill_sync'] === null ? null : json['skill_sync'],
106
107
  'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
107
108
  'relationships': json['relationships'] === undefined ? undefined : json['relationships'] === null ? null : (0, RegistryRelationshipsView_1.RegistryRelationshipsViewFromJSON)(json['relationships']),
108
109
  };
@@ -157,6 +158,7 @@ function AgentAgentProviderArtifactViewToJSONTyped(value, ignoreDiscriminator =
157
158
  'logo_url': value['logoUrl'],
158
159
  'mcp_url': value['mcpUrl'],
159
160
  'provider_type': (0, AgentAgentProviderType_1.AgentAgentProviderTypeToJSON)(value['providerType']),
161
+ 'skill_sync': value['skillSync'],
160
162
  'permissions': value['permissions'],
161
163
  'relationships': (0, RegistryRelationshipsView_1.RegistryRelationshipsViewToJSON)(value['relationships']),
162
164
  };
@@ -13,10 +13,10 @@ import type { AgentAgentProviderType } from './AgentAgentProviderType';
13
13
  /**
14
14
  * The caller-writable surface of a new agent provider.
15
15
  *
16
- * `bootstrap_skill_sync` and `environment_sync` are deliberately absent: both are
17
- * hook-owned, and a caller
18
- * who could write it would make every agent pushed to this provider pin a skill
19
- * of their choosing.
16
+ * `bootstrap_skill_sync`, `environment_sync` and `skill_sync` are deliberately
17
+ * absent: all three are hook-owned caches of what this provider already holds,
18
+ * and a caller who could write one would make every agent pushed to this
19
+ * provider pin a skill or environment of their choosing.
20
20
  * @export
21
21
  * @interface AgentAgentProviderCreate
22
22
  */
@@ -129,6 +129,12 @@ export interface AgentAgentProviderMeta {
129
129
  * @memberof AgentAgentProviderMeta
130
130
  */
131
131
  providerType: AgentAgentProviderType;
132
+ /**
133
+ *
134
+ * @type {any}
135
+ * @memberof AgentAgentProviderMeta
136
+ */
137
+ skillSync?: any | null;
132
138
  }
133
139
  /**
134
140
  * Check if a given object implements the AgentAgentProviderMeta interface.
@@ -44,6 +44,7 @@ function AgentAgentProviderMetaFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'logoUrl': json['logo_url'] === undefined ? undefined : json['logo_url'] === null ? null : json['logo_url'],
45
45
  'mcpUrl': json['mcp_url'] === undefined ? undefined : json['mcp_url'] === null ? null : json['mcp_url'],
46
46
  'providerType': (0, AgentAgentProviderType_1.AgentAgentProviderTypeFromJSON)(json['provider_type']),
47
+ 'skillSync': json['skill_sync'] === undefined ? undefined : json['skill_sync'] === null ? null : json['skill_sync'],
47
48
  };
48
49
  }
49
50
  function AgentAgentProviderMetaToJSON(json) {
@@ -63,5 +64,6 @@ function AgentAgentProviderMetaToJSONTyped(value, ignoreDiscriminator = false) {
63
64
  'logo_url': value['logoUrl'],
64
65
  'mcp_url': value['mcpUrl'],
65
66
  'provider_type': (0, AgentAgentProviderType_1.AgentAgentProviderTypeToJSON)(value['providerType']),
67
+ 'skill_sync': value['skillSync'],
66
68
  };
67
69
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Harness and agent catalog
3
+ * A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Acknowledgement of a relayed session event.
14
+ * @export
15
+ * @interface AgentSessionEventAck
16
+ */
17
+ export interface AgentSessionEventAck {
18
+ /**
19
+ * Always `true` — the provider accepted the event.
20
+ * @type {boolean}
21
+ * @memberof AgentSessionEventAck
22
+ */
23
+ queued: boolean;
24
+ /**
25
+ * The event type queued, echoed from the request.
26
+ * @type {string}
27
+ * @memberof AgentSessionEventAck
28
+ */
29
+ type: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AgentSessionEventAck interface.
33
+ */
34
+ export declare function instanceOfAgentSessionEventAck(value: object): value is AgentSessionEventAck;
35
+ export declare function AgentSessionEventAckFromJSON(json: any): AgentSessionEventAck;
36
+ export declare function AgentSessionEventAckFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentSessionEventAck;
37
+ export declare function AgentSessionEventAckToJSON(json: any): AgentSessionEventAck;
38
+ export declare function AgentSessionEventAckToJSONTyped(value?: AgentSessionEventAck | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Harness and agent catalog
6
+ * A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentSessionEventAck = instanceOfAgentSessionEventAck;
17
+ exports.AgentSessionEventAckFromJSON = AgentSessionEventAckFromJSON;
18
+ exports.AgentSessionEventAckFromJSONTyped = AgentSessionEventAckFromJSONTyped;
19
+ exports.AgentSessionEventAckToJSON = AgentSessionEventAckToJSON;
20
+ exports.AgentSessionEventAckToJSONTyped = AgentSessionEventAckToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentSessionEventAck interface.
23
+ */
24
+ function instanceOfAgentSessionEventAck(value) {
25
+ if (!('queued' in value) || value['queued'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AgentSessionEventAckFromJSON(json) {
32
+ return AgentSessionEventAckFromJSONTyped(json, false);
33
+ }
34
+ function AgentSessionEventAckFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'queued': json['queued'],
40
+ 'type': json['type'],
41
+ };
42
+ }
43
+ function AgentSessionEventAckToJSON(json) {
44
+ return AgentSessionEventAckToJSONTyped(json, false);
45
+ }
46
+ function AgentSessionEventAckToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'queued': value['queued'],
52
+ 'type': value['type'],
53
+ };
54
+ }
@@ -15,6 +15,12 @@
15
15
  * @interface TriggerBody
16
16
  */
17
17
  export interface TriggerBody {
18
+ /**
19
+ *
20
+ * @type {any}
21
+ * @memberof TriggerBody
22
+ */
23
+ budget?: any | null;
18
24
  /**
19
25
  * An `agent_environment` artifact id; absent ⇒ the system default.
20
26
  * @type {string}
@@ -22,7 +28,20 @@ export interface TriggerBody {
22
28
  */
23
29
  environmentId?: string | null;
24
30
  /**
25
- * The opening `user.message` for the remote session.
31
+ * Provider-native events seeded at session create, **before** the opening
32
+ * prompt. Passed through verbatim; the provider owns the vocabulary and
33
+ * validates it (verified live: max 50, `user.message` and
34
+ * `user.define_outcome` only).
35
+ * @type {Array<any>}
36
+ * @memberof TriggerBody
37
+ */
38
+ initialEvents?: Array<any>;
39
+ /**
40
+ * The opening `user.message` for the remote session. The gateway appends a
41
+ * server-injected run-context trailer (the registry agent id, the registry
42
+ * `session` artifact id, and the remote session id) so the run can name its
43
+ * own lineage — before this a sandbox had no way to learn its ids, and
44
+ * every output it published carried `session_id: null`.
26
45
  * @type {string}
27
46
  * @memberof TriggerBody
28
47
  */
@@ -41,6 +60,15 @@ export interface TriggerBody {
41
60
  * @memberof TriggerBody
42
61
  */
43
62
  title?: string | null;
63
+ /**
64
+ * Extra provider-native vault ids attached to the session **alongside** the
65
+ * agent's own gateway vault (never instead of it). Provider vocabulary
66
+ * passed through verbatim — this is how a caller hands a run credentials
67
+ * beyond its gateway MCP identity, e.g. a per-user delegation vault.
68
+ * @type {Array<string>}
69
+ * @memberof TriggerBody
70
+ */
71
+ vaultIds?: Array<string>;
44
72
  }
45
73
  /**
46
74
  * Check if a given object implements the TriggerBody interface.
@@ -36,10 +36,13 @@ function TriggerBodyFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
+ 'budget': json['budget'] === undefined ? undefined : json['budget'] === null ? null : json['budget'],
39
40
  'environmentId': json['environment_id'] === undefined ? undefined : json['environment_id'] === null ? null : json['environment_id'],
41
+ 'initialEvents': json['initial_events'] == null ? undefined : json['initial_events'],
40
42
  'prompt': json['prompt'],
41
43
  'providerId': json['provider_id'],
42
44
  'title': json['title'] === undefined ? undefined : json['title'] === null ? null : json['title'],
45
+ 'vaultIds': json['vault_ids'] == null ? undefined : json['vault_ids'],
43
46
  };
44
47
  }
45
48
  function TriggerBodyToJSON(json) {
@@ -50,9 +53,12 @@ function TriggerBodyToJSONTyped(value, ignoreDiscriminator = false) {
50
53
  return value;
51
54
  }
52
55
  return {
56
+ 'budget': value['budget'],
53
57
  'environment_id': value['environmentId'],
58
+ 'initial_events': value['initialEvents'],
54
59
  'prompt': value['prompt'],
55
60
  'provider_id': value['providerId'],
56
61
  'title': value['title'],
62
+ 'vault_ids': value['vaultIds'],
57
63
  };
58
64
  }
@@ -73,6 +73,7 @@ export * from './AgentQueryAgentTraceStats400Response';
73
73
  export * from './AgentRemoteSessionEvent';
74
74
  export * from './AgentSessionArtifactView';
75
75
  export * from './AgentSessionCreate';
76
+ export * from './AgentSessionEventAck';
76
77
  export * from './AgentSessionEventView';
77
78
  export * from './AgentSessionMessageArtifactView';
78
79
  export * from './AgentSessionMessageCreate';
@@ -91,6 +91,7 @@ __exportStar(require("./AgentQueryAgentTraceStats400Response"), exports);
91
91
  __exportStar(require("./AgentRemoteSessionEvent"), exports);
92
92
  __exportStar(require("./AgentSessionArtifactView"), exports);
93
93
  __exportStar(require("./AgentSessionCreate"), exports);
94
+ __exportStar(require("./AgentSessionEventAck"), exports);
94
95
  __exportStar(require("./AgentSessionEventView"), exports);
95
96
  __exportStar(require("./AgentSessionMessageArtifactView"), exports);
96
97
  __exportStar(require("./AgentSessionMessageCreate"), exports);
@@ -10,9 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
+ export interface RegistryGetOwnSessionRequest {
14
+ sessionId: string;
15
+ }
13
16
  export interface RegistryListOwnSessionsRequest {
14
17
  status?: string;
15
18
  }
19
+ export interface RegistryRevokeOwnSessionRequest {
20
+ sessionId: string;
21
+ }
16
22
  export interface RegistryRevokeOwnSessionsRequest {
17
23
  body: Blob;
18
24
  contentEncoding?: RegistryRevokeOwnSessionsContentEncodingEnum;
@@ -21,6 +27,20 @@ export interface RegistryRevokeOwnSessionsRequest {
21
27
  *
22
28
  */
23
29
  export declare class SessionsApi extends runtime.BaseAPI {
30
+ /**
31
+ * Creates request options for registryGetOwnSession without sending the request
32
+ */
33
+ registryGetOwnSessionRequestOpts(requestParameters: RegistryGetOwnSessionRequest): Promise<runtime.RequestOpts>;
34
+ /**
35
+ * One of the caller\'s own sessions, by id. Self-scoped by a gateway ownership check: the gateway fetches the session from the control plane and confirms the caller owns it before rendering it. A session that is not the caller\'s, absent, or a malformed id all answer 404.
36
+ * Read one of the caller\'s own sessions by id
37
+ */
38
+ registryGetOwnSessionRaw(requestParameters: RegistryGetOwnSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
39
+ /**
40
+ * One of the caller\'s own sessions, by id. Self-scoped by a gateway ownership check: the gateway fetches the session from the control plane and confirms the caller owns it before rendering it. A session that is not the caller\'s, absent, or a malformed id all answer 404.
41
+ * Read one of the caller\'s own sessions by id
42
+ */
43
+ registryGetOwnSession(requestParameters: RegistryGetOwnSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
24
44
  /**
25
45
  * Creates request options for registryListOwnSessions without sending the request
26
46
  */
@@ -35,6 +55,20 @@ export declare class SessionsApi extends runtime.BaseAPI {
35
55
  * List the caller\'s own sessions
36
56
  */
37
57
  registryListOwnSessions(requestParameters?: RegistryListOwnSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
58
+ /**
59
+ * Creates request options for registryRevokeOwnSession without sending the request
60
+ */
61
+ registryRevokeOwnSessionRequestOpts(requestParameters: RegistryRevokeOwnSessionRequest): Promise<runtime.RequestOpts>;
62
+ /**
63
+ * Revoke one of the caller\'s own sessions, by id, ending a single session without touching the caller\'s others. Self-scoped by a gateway ownership check: the gateway fetches the session and confirms the caller owns it before forwarding the revoke to the control plane. A session that is not the caller\'s, absent, or a malformed id all answer 404.
64
+ * Revoke one of the caller\'s own sessions by id
65
+ */
66
+ registryRevokeOwnSessionRaw(requestParameters: RegistryRevokeOwnSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
67
+ /**
68
+ * Revoke one of the caller\'s own sessions, by id, ending a single session without touching the caller\'s others. Self-scoped by a gateway ownership check: the gateway fetches the session and confirms the caller owns it before forwarding the revoke to the control plane. A session that is not the caller\'s, absent, or a malformed id all answer 404.
69
+ * Revoke one of the caller\'s own sessions by id
70
+ */
71
+ registryRevokeOwnSession(requestParameters: RegistryRevokeOwnSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
72
  /**
39
73
  * Creates request options for registryRevokeOwnSessions without sending the request
40
74
  */
@@ -52,6 +52,47 @@ const runtime = __importStar(require("../runtime"));
52
52
  *
53
53
  */
54
54
  class SessionsApi extends runtime.BaseAPI {
55
+ /**
56
+ * Creates request options for registryGetOwnSession without sending the request
57
+ */
58
+ async registryGetOwnSessionRequestOpts(requestParameters) {
59
+ if (requestParameters['sessionId'] == null) {
60
+ throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling registryGetOwnSession().');
61
+ }
62
+ const queryParameters = {};
63
+ const headerParameters = {};
64
+ if (this.configuration && this.configuration.accessToken) {
65
+ const token = this.configuration.accessToken;
66
+ const tokenString = await token("bearer", []);
67
+ if (tokenString) {
68
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
69
+ }
70
+ }
71
+ let urlPath = `/users/sessions/{session_id}`;
72
+ urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
73
+ return {
74
+ path: urlPath,
75
+ method: 'GET',
76
+ headers: headerParameters,
77
+ query: queryParameters,
78
+ };
79
+ }
80
+ /**
81
+ * One of the caller\'s own sessions, by id. Self-scoped by a gateway ownership check: the gateway fetches the session from the control plane and confirms the caller owns it before rendering it. A session that is not the caller\'s, absent, or a malformed id all answer 404.
82
+ * Read one of the caller\'s own sessions by id
83
+ */
84
+ async registryGetOwnSessionRaw(requestParameters, initOverrides) {
85
+ const requestOptions = await this.registryGetOwnSessionRequestOpts(requestParameters);
86
+ const response = await this.request(requestOptions, initOverrides);
87
+ return new runtime.VoidApiResponse(response);
88
+ }
89
+ /**
90
+ * One of the caller\'s own sessions, by id. Self-scoped by a gateway ownership check: the gateway fetches the session from the control plane and confirms the caller owns it before rendering it. A session that is not the caller\'s, absent, or a malformed id all answer 404.
91
+ * Read one of the caller\'s own sessions by id
92
+ */
93
+ async registryGetOwnSession(requestParameters, initOverrides) {
94
+ await this.registryGetOwnSessionRaw(requestParameters, initOverrides);
95
+ }
55
96
  /**
56
97
  * Creates request options for registryListOwnSessions without sending the request
57
98
  */
@@ -92,6 +133,47 @@ class SessionsApi extends runtime.BaseAPI {
92
133
  async registryListOwnSessions(requestParameters = {}, initOverrides) {
93
134
  await this.registryListOwnSessionsRaw(requestParameters, initOverrides);
94
135
  }
136
+ /**
137
+ * Creates request options for registryRevokeOwnSession without sending the request
138
+ */
139
+ async registryRevokeOwnSessionRequestOpts(requestParameters) {
140
+ if (requestParameters['sessionId'] == null) {
141
+ throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling registryRevokeOwnSession().');
142
+ }
143
+ const queryParameters = {};
144
+ const headerParameters = {};
145
+ if (this.configuration && this.configuration.accessToken) {
146
+ const token = this.configuration.accessToken;
147
+ const tokenString = await token("bearer", []);
148
+ if (tokenString) {
149
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
150
+ }
151
+ }
152
+ let urlPath = `/users/sessions/{session_id}/revoke`;
153
+ urlPath = urlPath.replace('{session_id}', encodeURIComponent(String(requestParameters['sessionId'])));
154
+ return {
155
+ path: urlPath,
156
+ method: 'POST',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ };
160
+ }
161
+ /**
162
+ * Revoke one of the caller\'s own sessions, by id, ending a single session without touching the caller\'s others. Self-scoped by a gateway ownership check: the gateway fetches the session and confirms the caller owns it before forwarding the revoke to the control plane. A session that is not the caller\'s, absent, or a malformed id all answer 404.
163
+ * Revoke one of the caller\'s own sessions by id
164
+ */
165
+ async registryRevokeOwnSessionRaw(requestParameters, initOverrides) {
166
+ const requestOptions = await this.registryRevokeOwnSessionRequestOpts(requestParameters);
167
+ const response = await this.request(requestOptions, initOverrides);
168
+ return new runtime.VoidApiResponse(response);
169
+ }
170
+ /**
171
+ * Revoke one of the caller\'s own sessions, by id, ending a single session without touching the caller\'s others. Self-scoped by a gateway ownership check: the gateway fetches the session and confirms the caller owns it before forwarding the revoke to the control plane. A session that is not the caller\'s, absent, or a malformed id all answer 404.
172
+ * Revoke one of the caller\'s own sessions by id
173
+ */
174
+ async registryRevokeOwnSession(requestParameters, initOverrides) {
175
+ await this.registryRevokeOwnSessionRaw(requestParameters, initOverrides);
176
+ }
95
177
  /**
96
178
  * Creates request options for registryRevokeOwnSessions without sending the request
97
179
  */
@@ -424,6 +424,8 @@ export interface SessionsResource extends ResourceInfo {
424
424
  list(options?: Parameters<agent.SessionsApi["agentListSessions"]>[0]): ReturnType<agent.SessionsApi["agentListSessions"]>;
425
425
  pollEvents(options: Parameters<agent.SessionsApi["agentPollEvents"]>[0]): ReturnType<agent.SessionsApi["agentPollEvents"]>;
426
426
  pollEvents(sessionId: NonNullable<Parameters<agent.SessionsApi["agentPollEvents"]>[0]>["sessionId"]): ReturnType<agent.SessionsApi["agentPollEvents"]>;
427
+ postEventEvents(options: Parameters<agent.SessionsApi["agentPostSessionEvent"]>[0]): ReturnType<agent.SessionsApi["agentPostSessionEvent"]>;
428
+ postEventEvents(sessionId: NonNullable<Parameters<agent.SessionsApi["agentPostSessionEvent"]>[0]>["sessionId"], body: NonNullable<Parameters<agent.SessionsApi["agentPostSessionEvent"]>[0]>["agentRemoteSessionEvent"]): ReturnType<agent.SessionsApi["agentPostSessionEvent"]>;
427
429
  search(options: Parameters<agent.SessionsApi["agentSearchSessions"]>[0]): ReturnType<agent.SessionsApi["agentSearchSessions"]>;
428
430
  search(body: NonNullable<Parameters<agent.SessionsApi["agentSearchSessions"]>[0]>["agentArtifactSearchRequest"]): ReturnType<agent.SessionsApi["agentSearchSessions"]>;
429
431
  streamEvents(options: Parameters<agent.SessionsApi["agentStreamEvents"]>[0]): ReturnType<agent.SessionsApi["agentStreamEvents"]>;
@@ -499,14 +501,21 @@ export interface UsersResource extends ResourceInfo {
499
501
  get(userId: NonNullable<Parameters<registry.UsersApi["registryGetUser"]>[0]>["userId"]): ReturnType<registry.UsersApi["registryGetUser"]>;
500
502
  getOwnMe(...args: Parameters<registry.UsersApi["registryGetOwnUser"]>): ReturnType<registry.UsersApi["registryGetOwnUser"]>;
501
503
  list(...args: Parameters<registry.UsersApi["registryListUsers"]>): ReturnType<registry.UsersApi["registryListUsers"]>;
502
- listOwnSessionsMe(options?: Parameters<registry.SessionsApi["registryListOwnSessions"]>[0]): ReturnType<registry.SessionsApi["registryListOwnSessions"]>;
503
504
  onboard(...args: Parameters<registry.UsersApi["registryOnboard"]>): ReturnType<registry.UsersApi["registryOnboard"]>;
504
- revokeOwnSessionsMe(options: Parameters<registry.SessionsApi["registryRevokeOwnSessions"]>[0]): ReturnType<registry.SessionsApi["registryRevokeOwnSessions"]>;
505
- revokeOwnSessionsMe(body: NonNullable<Parameters<registry.SessionsApi["registryRevokeOwnSessions"]>[0]>["body"]): ReturnType<registry.SessionsApi["registryRevokeOwnSessions"]>;
506
505
  updateOwnMe(options: Parameters<registry.UsersApi["registryUpdateOwnUser"]>[0]): ReturnType<registry.UsersApi["registryUpdateOwnUser"]>;
507
506
  updateOwnMe(body: NonNullable<Parameters<registry.UsersApi["registryUpdateOwnUser"]>[0]>["requestBody"]): ReturnType<registry.UsersApi["registryUpdateOwnUser"]>;
507
+ readonly sessions: UsersSessionsResource;
508
508
  readonly traces: UsersTracesResource;
509
509
  }
510
+ export interface UsersSessionsResource extends ResourceInfo {
511
+ getOwn(options: Parameters<registry.SessionsApi["registryGetOwnSession"]>[0]): ReturnType<registry.SessionsApi["registryGetOwnSession"]>;
512
+ getOwn(sessionId: NonNullable<Parameters<registry.SessionsApi["registryGetOwnSession"]>[0]>["sessionId"]): ReturnType<registry.SessionsApi["registryGetOwnSession"]>;
513
+ listOwnMe(options?: Parameters<registry.SessionsApi["registryListOwnSessions"]>[0]): ReturnType<registry.SessionsApi["registryListOwnSessions"]>;
514
+ revokeOwn(options: Parameters<registry.SessionsApi["registryRevokeOwnSession"]>[0]): ReturnType<registry.SessionsApi["registryRevokeOwnSession"]>;
515
+ revokeOwn(sessionId: NonNullable<Parameters<registry.SessionsApi["registryRevokeOwnSession"]>[0]>["sessionId"]): ReturnType<registry.SessionsApi["registryRevokeOwnSession"]>;
516
+ revokeOwnMe(options: Parameters<registry.SessionsApi["registryRevokeOwnSessions"]>[0]): ReturnType<registry.SessionsApi["registryRevokeOwnSessions"]>;
517
+ revokeOwnMe(body: NonNullable<Parameters<registry.SessionsApi["registryRevokeOwnSessions"]>[0]>["body"]): ReturnType<registry.SessionsApi["registryRevokeOwnSessions"]>;
518
+ }
510
519
  export interface UsersTracesResource extends ResourceInfo {
511
520
  deleteContent(options: Parameters<registry.UsersApi["registryDeleteUserTraceContent"]>[0]): ReturnType<registry.UsersApi["registryDeleteUserTraceContent"]>;
512
521
  deleteContent(userId: NonNullable<Parameters<registry.UsersApi["registryDeleteUserTraceContent"]>[0]>["userId"], traceId: NonNullable<Parameters<registry.UsersApi["registryDeleteUserTraceContent"]>[0]>["traceId"]): ReturnType<registry.UsersApi["registryDeleteUserTraceContent"]>;
@@ -646,6 +655,7 @@ export interface ResourceMap {
646
655
  readonly "tools": ToolsResource;
647
656
  readonly "traces": TracesResource;
648
657
  readonly "users": UsersResource;
658
+ readonly "users.sessions": UsersSessionsResource;
649
659
  readonly "users.traces": UsersTracesResource;
650
660
  readonly "visitors": VisitorsResource;
651
661
  readonly "workspaces": WorkspacesResource;
@@ -1697,6 +1697,15 @@
1697
1697
  "summary": "Poll the session message log",
1698
1698
  "typescript": "agentPollEvents"
1699
1699
  },
1700
+ "post_event_events": {
1701
+ "method_camel": "postEventEvents",
1702
+ "operation_id": "agent.postSessionEvent",
1703
+ "python": "agent_post_session_event",
1704
+ "route": "POST /agent/v1/sessions/{session_id}/events",
1705
+ "summary": "Send an event to a delegated session",
1706
+ "typescript": "agentPostSessionEvent",
1707
+ "typescript_body": "agentRemoteSessionEvent"
1708
+ },
1700
1709
  "search": {
1701
1710
  "method_camel": "search",
1702
1711
  "operation_id": "agent.searchSessions",
@@ -1995,14 +2004,6 @@
1995
2004
  "summary": "List users",
1996
2005
  "typescript": "registryListUsers"
1997
2006
  },
1998
- "list_own_sessions_me": {
1999
- "method_camel": "listOwnSessionsMe",
2000
- "operation_id": "registry.listOwnSessions",
2001
- "python": "registry_list_own_sessions",
2002
- "route": "GET /registry/v1/users/me/sessions",
2003
- "summary": "List the caller's own sessions",
2004
- "typescript": "registryListOwnSessions"
2005
- },
2006
2007
  "onboard": {
2007
2008
  "method_camel": "onboard",
2008
2009
  "operation_id": "registry.onboard",
@@ -2011,15 +2012,6 @@
2011
2012
  "summary": "Onboard the caller",
2012
2013
  "typescript": "registryOnboard"
2013
2014
  },
2014
- "revoke_own_sessions_me": {
2015
- "method_camel": "revokeOwnSessionsMe",
2016
- "operation_id": "registry.revokeOwnSessions",
2017
- "python": "registry_revoke_own_sessions",
2018
- "route": "POST /registry/v1/users/me/sessions/revoke",
2019
- "summary": "Revoke the caller's own sessions",
2020
- "typescript": "registryRevokeOwnSessions",
2021
- "typescript_body": "body"
2022
- },
2023
2015
  "update_own_me": {
2024
2016
  "method_camel": "updateOwnMe",
2025
2017
  "operation_id": "registry.updateOwnUser",
@@ -2033,6 +2025,45 @@
2033
2025
  "service": "registry",
2034
2026
  "typescript": "users"
2035
2027
  },
2028
+ "users.sessions": {
2029
+ "methods": {
2030
+ "get_own": {
2031
+ "method_camel": "getOwn",
2032
+ "operation_id": "registry.getOwnSession",
2033
+ "python": "registry_get_own_session",
2034
+ "route": "GET /registry/v1/users/sessions/{session_id}",
2035
+ "summary": "Read one of the caller's own sessions by id",
2036
+ "typescript": "registryGetOwnSession"
2037
+ },
2038
+ "list_own_me": {
2039
+ "method_camel": "listOwnMe",
2040
+ "operation_id": "registry.listOwnSessions",
2041
+ "python": "registry_list_own_sessions",
2042
+ "route": "GET /registry/v1/users/me/sessions",
2043
+ "summary": "List the caller's own sessions",
2044
+ "typescript": "registryListOwnSessions"
2045
+ },
2046
+ "revoke_own": {
2047
+ "method_camel": "revokeOwn",
2048
+ "operation_id": "registry.revokeOwnSession",
2049
+ "python": "registry_revoke_own_session",
2050
+ "route": "POST /registry/v1/users/sessions/{session_id}/revoke",
2051
+ "summary": "Revoke one of the caller's own sessions by id",
2052
+ "typescript": "registryRevokeOwnSession"
2053
+ },
2054
+ "revoke_own_me": {
2055
+ "method_camel": "revokeOwnMe",
2056
+ "operation_id": "registry.revokeOwnSessions",
2057
+ "python": "registry_revoke_own_sessions",
2058
+ "route": "POST /registry/v1/users/me/sessions/revoke",
2059
+ "summary": "Revoke the caller's own sessions",
2060
+ "typescript": "registryRevokeOwnSessions",
2061
+ "typescript_body": "body"
2062
+ }
2063
+ },
2064
+ "service": "registry",
2065
+ "typescript": "users.sessions"
2066
+ },
2036
2067
  "users.traces": {
2037
2068
  "methods": {
2038
2069
  "delete_content": {
@@ -1,4 +1,4 @@
1
1
  /** SDK identity (SPEC §2.2, §5.1). Kept in sync with package.json — the
2
2
  * version test fails the build on drift. */
3
3
  export declare const SDK_LANGUAGE = "typescript";
4
- export declare const SDK_VERSION = "0.3.0";
4
+ export declare const SDK_VERSION = "0.3.1";
@@ -4,4 +4,4 @@ exports.SDK_VERSION = exports.SDK_LANGUAGE = void 0;
4
4
  /** SDK identity (SPEC §2.2, §5.1). Kept in sync with package.json — the
5
5
  * version test fails the build on drift. */
6
6
  exports.SDK_LANGUAGE = "typescript";
7
- exports.SDK_VERSION = "0.3.0";
7
+ exports.SDK_VERSION = "0.3.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlanai/sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Atlan Agent Gateway management SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",