@databricks/sdk-agentkit 0.0.1 → 0.0.3

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/package.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@databricks/sdk-agentkit";
3
- var version = "0.0.1";
3
+ var version = "0.0.3";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -15,26 +15,26 @@ declare class AgentKitClient {
15
15
  /** Clears all items from a session. */
16
16
  clearSessionItems(req: ClearSessionItemsRequest, options?: CallOptions): Promise<ClearSessionItemsResponse>;
17
17
  /**
18
- * Creates a managed memory entry using exclusive-create semantics. Callers may choose the entry
18
+ * Creates a memory entry using exclusive-create semantics. Callers may choose the entry
19
19
  * ID; the service generates one when it is omitted. Returns `ALREADY_EXISTS` when an entry with
20
20
  * the same actor, session, and path already exists. Omitted `session_id` is its own uniqueness
21
21
  * key: two omitted-session entries with the same actor and path conflict, but an omitted-session
22
22
  * entry does not conflict with a session-scoped entry at the same actor and path.
23
23
  */
24
24
  createMemory(req: CreateManagedMemoryEntryRequest, options?: CallOptions): Promise<ManagedMemoryEntry>;
25
- /** Creates a managed memory store in the caller's workspace. */
25
+ /** Creates a memory store in the caller's workspace. */
26
26
  createMemoryStore(req: CreateManagedMemoryStoreRequest, options?: CallOptions): Promise<ManagedMemoryStore>;
27
27
  /** Creates a session within a session store. */
28
28
  createSession(req: CreateSessionRequest, options?: CallOptions): Promise<Session>;
29
29
  /** Creates a session store. */
30
30
  createSessionStore(req: CreateSessionStoreRequest, options?: CallOptions): Promise<SessionStore>;
31
31
  /**
32
- * Deletes a managed memory entry by resource name. Returns `NOT_FOUND` when the entry does not
32
+ * Deletes a memory entry by resource name. Returns `NOT_FOUND` when the entry does not
33
33
  * exist in the caller's workspace.
34
34
  */
35
35
  deleteMemory(req: DeleteManagedMemoryEntryRequest, options?: CallOptions): Promise<void>;
36
36
  /**
37
- * Deletes a managed memory store by resource name. Returns `NOT_FOUND` when the store does not
37
+ * Deletes a memory store by resource name. Returns `NOT_FOUND` when the store does not
38
38
  * exist in the caller's workspace.
39
39
  */
40
40
  deleteMemoryStore(req: DeleteManagedMemoryStoreRequest, options?: CallOptions): Promise<void>;
@@ -56,13 +56,13 @@ declare class AgentKitClient {
56
56
  /** Forks a session into an independent top-level copy. */
57
57
  forkSession(req: ForkSessionRequest, options?: CallOptions): Promise<ForkSessionResponse>;
58
58
  /**
59
- * Retrieves a managed memory entry by resource name. `view` controls whether the response
59
+ * Retrieves a memory entry by resource name. `view` controls whether the response
60
60
  * includes memory content. Returns `NOT_FOUND` when the entry does not exist in the caller's
61
61
  * workspace.
62
62
  */
63
63
  getMemory(req: GetManagedMemoryEntryRequest, options?: CallOptions): Promise<ManagedMemoryEntry>;
64
64
  /**
65
- * Retrieves a managed memory store by resource name. Returns `NOT_FOUND` when the store does not
65
+ * Retrieves a memory store by resource name. Returns `NOT_FOUND` when the store does not
66
66
  * exist in the caller's workspace.
67
67
  */
68
68
  getMemoryStore(req: GetManagedMemoryStoreRequest, options?: CallOptions): Promise<ManagedMemoryStore>;
@@ -71,13 +71,13 @@ declare class AgentKitClient {
71
71
  /** Gets a session store by resource name. */
72
72
  getSessionStore(req: GetSessionStoreRequest, options?: CallOptions): Promise<SessionStore>;
73
73
  /**
74
- * Lists managed memory entries for one actor. An exact `path` filters entries across sessions,
74
+ * Lists memory entries for one actor. An exact `path` filters entries across sessions,
75
75
  * ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor
76
76
  * partition. `view` controls whether each returned entry includes memory content.
77
77
  */
78
78
  listMemories(req: ListManagedMemoryEntriesRequest, options?: CallOptions): Promise<ListManagedMemoryEntriesResponse>;
79
79
  listMemoriesIter(req: ListManagedMemoryEntriesRequest, options?: CallOptions): AsyncGenerator<ManagedMemoryEntry>;
80
- /** Lists managed memory stores in the caller's workspace. */
80
+ /** Lists memory stores in the caller's workspace. */
81
81
  listMemoryStores(req: ListManagedMemoryStoresRequest, options?: CallOptions): Promise<ListManagedMemoryStoresResponse>;
82
82
  listMemoryStoresIter(req: ListManagedMemoryStoresRequest, options?: CallOptions): AsyncGenerator<ManagedMemoryStore>;
83
83
  /** Lists items in a session. */
@@ -92,14 +92,14 @@ declare class AgentKitClient {
92
92
  /** Pops the newest item from a session. */
93
93
  popSessionItem(req: PopSessionItemRequest, options?: CallOptions): Promise<PopSessionItemResponse>;
94
94
  /**
95
- * Searches managed memory entries by text query for one actor. Returns matching entries and
95
+ * Searches memory entries by text query for one actor. Returns matching entries and
96
96
  * scores ranked by relevance; `view` controls whether each returned entry includes content.
97
97
  */
98
98
  searchMemories(req: SearchManagedMemoryEntriesRequest, options?: CallOptions): Promise<SearchManagedMemoryEntriesResponse>;
99
99
  searchMemoriesIter(req: SearchManagedMemoryEntriesRequest, options?: CallOptions): AsyncGenerator<ManagedMemoryEntrySearchResult>;
100
- /** Updates selected mutable fields on a managed memory entry. Identity fields are immutable. */
100
+ /** Updates selected mutable fields on a memory entry. Identity fields are immutable. */
101
101
  updateMemory(req: UpdateManagedMemoryEntryRequest, options?: CallOptions): Promise<ManagedMemoryEntry>;
102
- /** Updates a managed memory store's description and metadata. */
102
+ /** Updates a memory store's description and metadata. */
103
103
  updateMemoryStore(req: UpdateManagedMemoryStoreRequest, options?: CallOptions): Promise<ManagedMemoryStore>;
104
104
  /** Updates a session's mutable fields. */
105
105
  updateSession(req: UpdateSessionRequest, options?: CallOptions): Promise<Session>;
package/dist/v1/client.js CHANGED
@@ -72,7 +72,7 @@ var AgentKitClient = class {
72
72
  return resp;
73
73
  }
74
74
  /**
75
- * Creates a managed memory entry using exclusive-create semantics. Callers may choose the entry
75
+ * Creates a memory entry using exclusive-create semantics. Callers may choose the entry
76
76
  * ID; the service generates one when it is omitted. Returns `ALREADY_EXISTS` when an entry with
77
77
  * the same actor, session, and path already exists. Omitted `session_id` is its own uniqueness
78
78
  * key: two omitted-session entries with the same actor and path conflict, but an omitted-session
@@ -101,7 +101,7 @@ var AgentKitClient = class {
101
101
  if (resp === void 0) throw new Error("operation completed without a result.");
102
102
  return resp;
103
103
  }
104
- /** Creates a managed memory store in the caller's workspace. */
104
+ /** Creates a memory store in the caller's workspace. */
105
105
  async createMemoryStore(req, options) {
106
106
  const { host, workspaceId, httpClient } = await this.resolveConfig();
107
107
  const url = `${host}/api/2.0/agents/memory-stores`;
@@ -174,7 +174,7 @@ var AgentKitClient = class {
174
174
  return resp;
175
175
  }
176
176
  /**
177
- * Deletes a managed memory entry by resource name. Returns `NOT_FOUND` when the entry does not
177
+ * Deletes a memory entry by resource name. Returns `NOT_FOUND` when the entry does not
178
178
  * exist in the caller's workspace.
179
179
  */
180
180
  async deleteMemory(req, options) {
@@ -193,7 +193,7 @@ var AgentKitClient = class {
193
193
  await executeCall(call, options);
194
194
  }
195
195
  /**
196
- * Deletes a managed memory store by resource name. Returns `NOT_FOUND` when the store does not
196
+ * Deletes a memory store by resource name. Returns `NOT_FOUND` when the store does not
197
197
  * exist in the caller's workspace.
198
198
  */
199
199
  async deleteMemoryStore(req, options) {
@@ -293,7 +293,7 @@ var AgentKitClient = class {
293
293
  return resp;
294
294
  }
295
295
  /**
296
- * Retrieves a managed memory entry by resource name. `view` controls whether the response
296
+ * Retrieves a memory entry by resource name. `view` controls whether the response
297
297
  * includes memory content. Returns `NOT_FOUND` when the entry does not exist in the caller's
298
298
  * workspace.
299
299
  */
@@ -320,7 +320,7 @@ var AgentKitClient = class {
320
320
  return resp;
321
321
  }
322
322
  /**
323
- * Retrieves a managed memory store by resource name. Returns `NOT_FOUND` when the store does not
323
+ * Retrieves a memory store by resource name. Returns `NOT_FOUND` when the store does not
324
324
  * exist in the caller's workspace.
325
325
  */
326
326
  async getMemoryStore(req, options) {
@@ -380,7 +380,7 @@ var AgentKitClient = class {
380
380
  return resp;
381
381
  }
382
382
  /**
383
- * Lists managed memory entries for one actor. An exact `path` filters entries across sessions,
383
+ * Lists memory entries for one actor. An exact `path` filters entries across sessions,
384
384
  * ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor
385
385
  * partition. `view` controls whether each returned entry includes memory content.
386
386
  */
@@ -420,7 +420,7 @@ var AgentKitClient = class {
420
420
  pageReq.pageToken = resp.nextPageToken;
421
421
  }
422
422
  }
423
- /** Lists managed memory stores in the caller's workspace. */
423
+ /** Lists memory stores in the caller's workspace. */
424
424
  async listMemoryStores(req, options) {
425
425
  const { host, workspaceId, httpClient } = await this.resolveConfig();
426
426
  const url = `${host}/api/2.0/agents/memory-stores`;
@@ -576,7 +576,7 @@ var AgentKitClient = class {
576
576
  return resp;
577
577
  }
578
578
  /**
579
- * Searches managed memory entries by text query for one actor. Returns matching entries and
579
+ * Searches memory entries by text query for one actor. Returns matching entries and
580
580
  * scores ranked by relevance; `view` controls whether each returned entry includes content.
581
581
  */
582
582
  async searchMemories(req, options) {
@@ -607,7 +607,7 @@ var AgentKitClient = class {
607
607
  pageReq.pageToken = resp.nextPageToken;
608
608
  }
609
609
  }
610
- /** Updates selected mutable fields on a managed memory entry. Identity fields are immutable. */
610
+ /** Updates selected mutable fields on a memory entry. Identity fields are immutable. */
611
611
  async updateMemory(req, options) {
612
612
  const { host, workspaceId, httpClient } = await this.resolveConfig();
613
613
  const url = `${host}/api/2.0/agents/${req.managedMemoryEntry?.name ?? ""}`;
@@ -631,7 +631,7 @@ var AgentKitClient = class {
631
631
  if (resp === void 0) throw new Error("operation completed without a result.");
632
632
  return resp;
633
633
  }
634
- /** Updates a managed memory store's description and metadata. */
634
+ /** Updates a memory store's description and metadata. */
635
635
  async updateMemoryStore(req, options) {
636
636
  const { host, workspaceId, httpClient } = await this.resolveConfig();
637
637
  const url = `${host}/api/2.0/agents/${req.managedMemoryStore?.name ?? ""}`;
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n AppendSessionItemsRequest,\n AppendSessionItemsResponse,\n ClearSessionItemsRequest,\n ClearSessionItemsResponse,\n CreateManagedMemoryEntryRequest,\n CreateManagedMemoryStoreRequest,\n CreateSessionRequest,\n CreateSessionStoreRequest,\n DeleteManagedMemoryEntryRequest,\n DeleteManagedMemoryStoreRequest,\n DeleteSessionRequest,\n DeleteSessionStoreRequest,\n ExtractMemoriesRequest,\n ExtractMemoriesResponse,\n ForkSessionRequest,\n ForkSessionResponse,\n GetManagedMemoryEntryRequest,\n GetManagedMemoryStoreRequest,\n GetSessionRequest,\n GetSessionStoreRequest,\n ListManagedMemoryEntriesRequest,\n ListManagedMemoryEntriesResponse,\n ListManagedMemoryStoresRequest,\n ListManagedMemoryStoresResponse,\n ListSessionItemsRequest,\n ListSessionItemsResponse,\n ListSessionStoresRequest,\n ListSessionStoresResponse,\n ListSessionsRequest,\n ListSessionsResponse,\n ManagedMemoryEntry,\n ManagedMemoryEntrySearchResult,\n ManagedMemoryStore,\n PopSessionItemRequest,\n PopSessionItemResponse,\n SearchManagedMemoryEntriesRequest,\n SearchManagedMemoryEntriesResponse,\n Session,\n SessionItem,\n SessionStore,\n UpdateManagedMemoryEntryRequest,\n UpdateManagedMemoryStoreRequest,\n UpdateSessionRequest,\n UpdateSessionStoreRequest,\n} from './model';\nimport {\n marshalAppendSessionItemsRequestSchema,\n marshalClearSessionItemsRequestSchema,\n marshalExtractMemoriesRequestSchema,\n marshalForkSessionRequestSchema,\n marshalManagedMemoryEntrySchema,\n marshalManagedMemoryStoreSchema,\n marshalPopSessionItemRequestSchema,\n marshalSearchManagedMemoryEntriesRequestSchema,\n marshalSessionSchema,\n marshalSessionStoreSchema,\n unmarshalAppendSessionItemsResponseSchema,\n unmarshalClearSessionItemsResponseSchema,\n unmarshalExtractMemoriesResponseSchema,\n unmarshalForkSessionResponseSchema,\n unmarshalListManagedMemoryEntriesResponseSchema,\n unmarshalListManagedMemoryStoresResponseSchema,\n unmarshalListSessionItemsResponseSchema,\n unmarshalListSessionStoresResponseSchema,\n unmarshalListSessionsResponseSchema,\n unmarshalManagedMemoryEntrySchema,\n unmarshalManagedMemoryStoreSchema,\n unmarshalPopSessionItemResponseSchema,\n unmarshalSearchManagedMemoryEntriesResponseSchema,\n unmarshalSessionSchema,\n unmarshalSessionStoreSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class AgentKitClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Appends items to a session. */\n async appendSessionItems(\n req: AppendSessionItemsRequest,\n options?: CallOptions\n ): Promise<AppendSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:append`;\n const body = marshalRequest(req, marshalAppendSessionItemsRequestSchema);\n let resp: AppendSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalAppendSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Clears all items from a session. */\n async clearSessionItems(\n req: ClearSessionItemsRequest,\n options?: CallOptions\n ): Promise<ClearSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:clear`;\n const body = marshalRequest(req, marshalClearSessionItemsRequestSchema);\n let resp: ClearSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalClearSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Creates a managed memory entry using exclusive-create semantics. Callers may choose the entry\n * ID; the service generates one when it is omitted. Returns `ALREADY_EXISTS` when an entry with\n * the same actor, session, and path already exists. Omitted `session_id` is its own uniqueness\n * key: two omitted-session entries with the same actor and path conflict, but an omitted-session\n * entry does not conflict with a session-scoped entry at the same actor and path.\n */\n async createMemory(\n req: CreateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.managedMemoryEntryId !== undefined) {\n params.append('managed_memory_entry_id', req.managedMemoryEntryId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a managed memory store in the caller's workspace. */\n async createMemoryStore(\n req: CreateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.managedMemoryStoreId !== undefined) {\n params.append('managed_memory_store_id', req.managedMemoryStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session within a session store. */\n async createSession(\n req: CreateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session store. */\n async createSessionStore(\n req: CreateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.sessionStoreId !== undefined) {\n params.append('session_store_id', req.sessionStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Deletes a managed memory entry by resource name. Returns `NOT_FOUND` when the entry does not\n * exist in the caller's workspace.\n */\n async deleteMemory(\n req: DeleteManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a managed memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async deleteMemoryStore(\n req: DeleteManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session, its items, and any descendant sessions recursively. Independently retained\n * memory is not deleted.\n */\n async deleteSession(\n req: DeleteSessionRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session store, its sessions and items, and its service-managed storage. Memory entries\n * retained by a separate Memory Store are not deleted.\n */\n async deleteSessionStore(\n req: DeleteSessionStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Synchronously extracts memories from a single session into the given memory store, returning\n * the entries that were written.\n */\n async extractMemories(\n req: ExtractMemoriesRequest,\n options?: CallOptions\n ): Promise<ExtractMemoriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore ?? ''}/sessions/${req.sessionId ?? ''}/extractions`;\n const body = marshalRequest(req, marshalExtractMemoriesRequestSchema);\n let resp: ExtractMemoriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalExtractMemoriesResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Forks a session into an independent top-level copy. */\n async forkSession(\n req: ForkSessionRequest,\n options?: CallOptions\n ): Promise<ForkSessionResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions:fork`;\n const body = marshalRequest(req, marshalForkSessionRequestSchema);\n let resp: ForkSessionResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalForkSessionResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a managed memory entry by resource name. `view` controls whether the response\n * includes memory content. Returns `NOT_FOUND` when the entry does not exist in the caller's\n * workspace.\n */\n async getMemory(\n req: GetManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a managed memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async getMemoryStore(\n req: GetManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session by resource name. */\n async getSession(\n req: GetSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session store by resource name. */\n async getSessionStore(\n req: GetSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Lists managed memory entries for one actor. An exact `path` filters entries across sessions,\n * ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor\n * partition. `view` controls whether each returned entry includes memory content.\n */\n async listMemories(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.actorId !== undefined) {\n params.append('actor_id', req.actorId);\n }\n if (req.pathPrefix !== undefined) {\n params.append('path_prefix', req.pathPrefix);\n }\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoriesIter(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntry> {\n const pageReq: ListManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.listMemories(pageReq, options);\n for (const item of resp.managedMemoryEntries ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists managed memory stores in the caller's workspace. */\n async listMemoryStores(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryStoresResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoryStoresIter(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryStore> {\n const pageReq: ListManagedMemoryStoresRequest = {...req};\n for (;;) {\n const resp = await this.listMemoryStores(pageReq, options);\n for (const item of resp.managedMemoryStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists items in a session. */\n async listSessionItems(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): Promise<ListSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionItemsIter(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionItem> {\n const pageReq: ListSessionItemsRequest = {...req};\n for (;;) {\n const resp = await this.listSessionItems(pageReq, options);\n for (const item of resp.sessionItems ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists session stores. */\n async listSessionStores(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): Promise<ListSessionStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionStoresResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionStoresIter(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionStore> {\n const pageReq: ListSessionStoresRequest = {...req};\n for (;;) {\n const resp = await this.listSessionStores(pageReq, options);\n for (const item of resp.sessionStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists sessions within a session store. */\n async listSessions(\n req: ListSessionsRequest,\n options?: CallOptions\n ): Promise<ListSessionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.filter !== undefined) {\n params.append('filter', req.filter);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionsIter(\n req: ListSessionsRequest,\n options?: CallOptions\n ): AsyncGenerator<Session> {\n const pageReq: ListSessionsRequest = {...req};\n for (;;) {\n const resp = await this.listSessions(pageReq, options);\n for (const item of resp.sessions ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Pops the newest item from a session. */\n async popSessionItem(\n req: PopSessionItemRequest,\n options?: CallOptions\n ): Promise<PopSessionItemResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:pop`;\n const body = marshalRequest(req, marshalPopSessionItemRequestSchema);\n let resp: PopSessionItemResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalPopSessionItemResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Searches managed memory entries by text query for one actor. Returns matching entries and\n * scores ranked by relevance; `view` controls whether each returned entry includes content.\n */\n async searchMemories(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<SearchManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries:search`;\n const body = marshalRequest(\n req,\n marshalSearchManagedMemoryEntriesRequestSchema\n );\n let resp: SearchManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalSearchManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *searchMemoriesIter(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntrySearchResult> {\n const pageReq: SearchManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.searchMemories(pageReq, options);\n for (const item of resp.results ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates selected mutable fields on a managed memory entry. Identity fields are immutable. */\n async updateMemory(\n req: UpdateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryEntry?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a managed memory store's description and metadata. */\n async updateMemoryStore(\n req: UpdateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session's mutable fields. */\n async updateSession(\n req: UpdateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.session?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session store's description and metadata. */\n async updateSessionStore(\n req: UpdateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AA6FA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,iBAAb,MAA4B;CAC1B,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,mBACJ,KACA,SACqC;EACrC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK,kBAAkB,IAAI,UAAU,GAAG;EACvD,MAAM,OAAO,eAAe,KAAK,uCAAuC;EACxE,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,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../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n AppendSessionItemsRequest,\n AppendSessionItemsResponse,\n ClearSessionItemsRequest,\n ClearSessionItemsResponse,\n CreateManagedMemoryEntryRequest,\n CreateManagedMemoryStoreRequest,\n CreateSessionRequest,\n CreateSessionStoreRequest,\n DeleteManagedMemoryEntryRequest,\n DeleteManagedMemoryStoreRequest,\n DeleteSessionRequest,\n DeleteSessionStoreRequest,\n ExtractMemoriesRequest,\n ExtractMemoriesResponse,\n ForkSessionRequest,\n ForkSessionResponse,\n GetManagedMemoryEntryRequest,\n GetManagedMemoryStoreRequest,\n GetSessionRequest,\n GetSessionStoreRequest,\n ListManagedMemoryEntriesRequest,\n ListManagedMemoryEntriesResponse,\n ListManagedMemoryStoresRequest,\n ListManagedMemoryStoresResponse,\n ListSessionItemsRequest,\n ListSessionItemsResponse,\n ListSessionStoresRequest,\n ListSessionStoresResponse,\n ListSessionsRequest,\n ListSessionsResponse,\n ManagedMemoryEntry,\n ManagedMemoryEntrySearchResult,\n ManagedMemoryStore,\n PopSessionItemRequest,\n PopSessionItemResponse,\n SearchManagedMemoryEntriesRequest,\n SearchManagedMemoryEntriesResponse,\n Session,\n SessionItem,\n SessionStore,\n UpdateManagedMemoryEntryRequest,\n UpdateManagedMemoryStoreRequest,\n UpdateSessionRequest,\n UpdateSessionStoreRequest,\n} from './model';\nimport {\n marshalAppendSessionItemsRequestSchema,\n marshalClearSessionItemsRequestSchema,\n marshalExtractMemoriesRequestSchema,\n marshalForkSessionRequestSchema,\n marshalManagedMemoryEntrySchema,\n marshalManagedMemoryStoreSchema,\n marshalPopSessionItemRequestSchema,\n marshalSearchManagedMemoryEntriesRequestSchema,\n marshalSessionSchema,\n marshalSessionStoreSchema,\n unmarshalAppendSessionItemsResponseSchema,\n unmarshalClearSessionItemsResponseSchema,\n unmarshalExtractMemoriesResponseSchema,\n unmarshalForkSessionResponseSchema,\n unmarshalListManagedMemoryEntriesResponseSchema,\n unmarshalListManagedMemoryStoresResponseSchema,\n unmarshalListSessionItemsResponseSchema,\n unmarshalListSessionStoresResponseSchema,\n unmarshalListSessionsResponseSchema,\n unmarshalManagedMemoryEntrySchema,\n unmarshalManagedMemoryStoreSchema,\n unmarshalPopSessionItemResponseSchema,\n unmarshalSearchManagedMemoryEntriesResponseSchema,\n unmarshalSessionSchema,\n unmarshalSessionStoreSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class AgentKitClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /** Appends items to a session. */\n async appendSessionItems(\n req: AppendSessionItemsRequest,\n options?: CallOptions\n ): Promise<AppendSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:append`;\n const body = marshalRequest(req, marshalAppendSessionItemsRequestSchema);\n let resp: AppendSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalAppendSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Clears all items from a session. */\n async clearSessionItems(\n req: ClearSessionItemsRequest,\n options?: CallOptions\n ): Promise<ClearSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:clear`;\n const body = marshalRequest(req, marshalClearSessionItemsRequestSchema);\n let resp: ClearSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalClearSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Creates a memory entry using exclusive-create semantics. Callers may choose the entry\n * ID; the service generates one when it is omitted. Returns `ALREADY_EXISTS` when an entry with\n * the same actor, session, and path already exists. Omitted `session_id` is its own uniqueness\n * key: two omitted-session entries with the same actor and path conflict, but an omitted-session\n * entry does not conflict with a session-scoped entry at the same actor and path.\n */\n async createMemory(\n req: CreateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.managedMemoryEntryId !== undefined) {\n params.append('managed_memory_entry_id', req.managedMemoryEntryId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a memory store in the caller's workspace. */\n async createMemoryStore(\n req: CreateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.managedMemoryStoreId !== undefined) {\n params.append('managed_memory_store_id', req.managedMemoryStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session within a session store. */\n async createSession(\n req: CreateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Creates a session store. */\n async createSessionStore(\n req: CreateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.sessionStoreId !== undefined) {\n params.append('session_store_id', req.sessionStoreId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'POST',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Deletes a memory entry by resource name. Returns `NOT_FOUND` when the entry does not\n * exist in the caller's workspace.\n */\n async deleteMemory(\n req: DeleteManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async deleteMemoryStore(\n req: DeleteManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session, its items, and any descendant sessions recursively. Independently retained\n * memory is not deleted.\n */\n async deleteSession(\n req: DeleteSessionRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Deletes a session store, its sessions and items, and its service-managed storage. Memory entries\n * retained by a separate Memory Store are not deleted.\n */\n async deleteSessionStore(\n req: DeleteSessionStoreRequest,\n options?: CallOptions\n ): Promise<void> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n };\n await executeCall(call, options);\n }\n\n /**\n * Synchronously extracts memories from a single session into the given memory store, returning\n * the entries that were written.\n */\n async extractMemories(\n req: ExtractMemoriesRequest,\n options?: CallOptions\n ): Promise<ExtractMemoriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore ?? ''}/sessions/${req.sessionId ?? ''}/extractions`;\n const body = marshalRequest(req, marshalExtractMemoriesRequestSchema);\n let resp: ExtractMemoriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalExtractMemoriesResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Forks a session into an independent top-level copy. */\n async forkSession(\n req: ForkSessionRequest,\n options?: CallOptions\n ): Promise<ForkSessionResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions:fork`;\n const body = marshalRequest(req, marshalForkSessionRequestSchema);\n let resp: ForkSessionResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalForkSessionResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a memory entry by resource name. `view` controls whether the response\n * includes memory content. Returns `NOT_FOUND` when the entry does not exist in the caller's\n * workspace.\n */\n async getMemory(\n req: GetManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Retrieves a memory store by resource name. Returns `NOT_FOUND` when the store does not\n * exist in the caller's workspace.\n */\n async getMemoryStore(\n req: GetManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session by resource name. */\n async getSession(\n req: GetSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Gets a session store by resource name. */\n async getSessionStore(\n req: GetSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.name ?? ''}`;\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Lists memory entries for one actor. An exact `path` filters entries across sessions,\n * ignoring session metadata. Otherwise, `session_id` and `path_prefix` restrict the actor\n * partition. `view` controls whether each returned entry includes memory content.\n */\n async listMemories(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.actorId !== undefined) {\n params.append('actor_id', req.actorId);\n }\n if (req.pathPrefix !== undefined) {\n params.append('path_prefix', req.pathPrefix);\n }\n if (req.sessionId !== undefined) {\n params.append('session_id', req.sessionId);\n }\n if (req.view !== undefined) {\n params.append('view', req.view);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoriesIter(\n req: ListManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntry> {\n const pageReq: ListManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.listMemories(pageReq, options);\n for (const item of resp.managedMemoryEntries ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists memory stores in the caller's workspace. */\n async listMemoryStores(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): Promise<ListManagedMemoryStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/memory-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListManagedMemoryStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListManagedMemoryStoresResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listMemoryStoresIter(\n req: ListManagedMemoryStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryStore> {\n const pageReq: ListManagedMemoryStoresRequest = {...req};\n for (;;) {\n const resp = await this.listMemoryStores(pageReq, options);\n for (const item of resp.managedMemoryStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists items in a session. */\n async listSessionItems(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): Promise<ListSessionItemsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionItemsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionItemsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionItemsIter(\n req: ListSessionItemsRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionItem> {\n const pageReq: ListSessionItemsRequest = {...req};\n for (;;) {\n const resp = await this.listSessionItems(pageReq, options);\n for (const item of resp.sessionItems ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists session stores. */\n async listSessionStores(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): Promise<ListSessionStoresResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/session-stores`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionStoresResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionStoresResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionStoresIter(\n req: ListSessionStoresRequest,\n options?: CallOptions\n ): AsyncGenerator<SessionStore> {\n const pageReq: ListSessionStoresRequest = {...req};\n for (;;) {\n const resp = await this.listSessionStores(pageReq, options);\n for (const item of resp.sessionStores ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Lists sessions within a session store. */\n async listSessions(\n req: ListSessionsRequest,\n options?: CallOptions\n ): Promise<ListSessionsResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/sessions`;\n const params = new URLSearchParams();\n if (req.pageSize !== undefined) {\n params.append('page_size', String(req.pageSize));\n }\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.filter !== undefined) {\n params.append('filter', req.filter);\n }\n if (req.orderBy !== undefined) {\n params.append('order_by', req.orderBy);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListSessionsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalListSessionsResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listSessionsIter(\n req: ListSessionsRequest,\n options?: CallOptions\n ): AsyncGenerator<Session> {\n const pageReq: ListSessionsRequest = {...req};\n for (;;) {\n const resp = await this.listSessions(pageReq, options);\n for (const item of resp.sessions ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Pops the newest item from a session. */\n async popSessionItem(\n req: PopSessionItemRequest,\n options?: CallOptions\n ): Promise<PopSessionItemResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/items:pop`;\n const body = marshalRequest(req, marshalPopSessionItemRequestSchema);\n let resp: PopSessionItemResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalPopSessionItemResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Searches memory entries by text query for one actor. Returns matching entries and\n * scores ranked by relevance; `view` controls whether each returned entry includes content.\n */\n async searchMemories(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): Promise<SearchManagedMemoryEntriesResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.parent ?? ''}/entries:search`;\n const body = marshalRequest(\n req,\n marshalSearchManagedMemoryEntriesRequestSchema\n );\n let resp: SearchManagedMemoryEntriesResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalSearchManagedMemoryEntriesResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *searchMemoriesIter(\n req: SearchManagedMemoryEntriesRequest,\n options?: CallOptions\n ): AsyncGenerator<ManagedMemoryEntrySearchResult> {\n const pageReq: SearchManagedMemoryEntriesRequest = {...req};\n for (;;) {\n const resp = await this.searchMemories(pageReq, options);\n for (const item of resp.results ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates selected mutable fields on a memory entry. Identity fields are immutable. */\n async updateMemory(\n req: UpdateManagedMemoryEntryRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryEntry> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryEntry?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryEntry,\n marshalManagedMemoryEntrySchema\n );\n let resp: ManagedMemoryEntry | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryEntrySchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a memory store's description and metadata. */\n async updateMemoryStore(\n req: UpdateManagedMemoryStoreRequest,\n options?: CallOptions\n ): Promise<ManagedMemoryStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.managedMemoryStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(\n req.managedMemoryStore,\n marshalManagedMemoryStoreSchema\n );\n let resp: ManagedMemoryStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalManagedMemoryStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session's mutable fields. */\n async updateSession(\n req: UpdateSessionRequest,\n options?: CallOptions\n ): Promise<Session> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.session?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.session, marshalSessionSchema);\n let resp: Session | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /** Updates a session store's description and metadata. */\n async updateSessionStore(\n req: UpdateSessionStoreRequest,\n options?: CallOptions\n ): Promise<SessionStore> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/agents/${req.sessionStore?.name ?? ''}`;\n const params = new URLSearchParams();\n if (req.updateMask !== undefined) {\n params.append('update_mask', req.updateMask.toString());\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n const body = marshalRequest(req.sessionStore, marshalSessionStoreSchema);\n let resp: SessionStore | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest(\n 'PATCH',\n fullUrl,\n headers,\n callSignal,\n body\n );\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalSessionStoreSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AA6FA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,iBAAb,MAA4B;CAC1B,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,mBACJ,KACA,SACqC;EACrC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK,kBAAkB,IAAI,UAAU,GAAG;EACvD,MAAM,OAAO,eAAe,KAAK,uCAAuC;EACxE,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,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SAAO"}
@@ -3,22 +3,22 @@ import { FieldMask, JsonValue } from "@databricks/sdk-core/wkt";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/v1/model.d.ts
6
- /** Identifies the source that created a managed memory entry. */
6
+ /** Identifies the source that created a memory entry. */
7
7
  declare const ManagedMemoryEntrySourceType: {
8
- /** The managed memory entry was created by an agent during a live conversation. */readonly MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT: "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT"; /** The managed memory entry was distilled from prior sessions by the dreamer pipeline. */
8
+ /** The memory entry was created by an agent during a live conversation. */readonly MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT: "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT"; /** The memory entry was distilled from prior sessions by the dreamer pipeline. */
9
9
  readonly MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER: "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER";
10
10
  };
11
11
  type ManagedMemoryEntrySourceType = (typeof ManagedMemoryEntrySourceType)[keyof typeof ManagedMemoryEntrySourceType] | (string & {});
12
- /** Controls how much managed memory entry data is returned. */
12
+ /** Controls how much memory entry data is returned. */
13
13
  declare const ManagedMemoryEntryView: {
14
14
  /** Default view. Returns all entry fields, including `content`. */readonly MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED: "MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED"; /** Returns entry metadata without `content`. */
15
15
  readonly MANAGED_MEMORY_ENTRY_VIEW_BASIC: "MANAGED_MEMORY_ENTRY_VIEW_BASIC"; /** Returns all entry fields, including `content`. */
16
16
  readonly MANAGED_MEMORY_ENTRY_VIEW_FULL: "MANAGED_MEMORY_ENTRY_VIEW_FULL";
17
17
  };
18
18
  type ManagedMemoryEntryView = (typeof ManagedMemoryEntryView)[keyof typeof ManagedMemoryEntryView] | (string & {});
19
- /** Type of service-managed storage backing a managed memory store. */
19
+ /** Type of service-managed storage backing a memory store. */
20
20
  declare const StorageBackendType: {
21
- /** Default value. Returned when the storage backend type is not set. */readonly STORAGE_BACKEND_TYPE_UNSPECIFIED: "STORAGE_BACKEND_TYPE_UNSPECIFIED"; /** Lakebase-managed storage backing the managed memory store. */
21
+ /** Default value. Returned when the storage backend type is not set. */readonly STORAGE_BACKEND_TYPE_UNSPECIFIED: "STORAGE_BACKEND_TYPE_UNSPECIFIED"; /** Lakebase-managed storage backing the memory store. */
22
22
  readonly STORAGE_BACKEND_TYPE_LAKEBASE: "STORAGE_BACKEND_TYPE_LAKEBASE";
23
23
  };
24
24
  type StorageBackendType = (typeof StorageBackendType)[keyof typeof StorageBackendType] | (string & {});
@@ -50,24 +50,24 @@ interface ClearSessionItemsRequest {
50
50
  }
51
51
  /** Response from clearing items from a session. */
52
52
  interface ClearSessionItemsResponse {}
53
- /** Request to create a managed memory entry. */
53
+ /** Request to create a memory entry. */
54
54
  interface CreateManagedMemoryEntryRequest {
55
55
  /**
56
- * Managed memory store that will contain the entry, in the form
56
+ * Memory store that will contain the entry, in the form
57
57
  * `memory-stores/{managed_memory_store_id}`.
58
58
  */
59
59
  parent?: string | undefined;
60
- /** The managed memory entry to create. */
60
+ /** The memory entry to create. */
61
61
  managedMemoryEntry?: ManagedMemoryEntry | undefined;
62
- /** Optional caller-selected managed memory entry ID. The service generates an ID when omitted. */
62
+ /** Optional caller-selected memory entry ID. The service generates an ID when omitted. */
63
63
  managedMemoryEntryId?: string | undefined;
64
64
  }
65
- /** Request to create a managed memory store. */
65
+ /** Request to create a memory store. */
66
66
  interface CreateManagedMemoryStoreRequest {
67
- /** The managed memory store to create. */
67
+ /** The memory store to create. */
68
68
  managedMemoryStore?: ManagedMemoryStore | undefined;
69
69
  /**
70
- * Caller-provided, workspace-unique managed memory store ID. It must be 3-56 characters, begin
70
+ * Caller-provided, workspace-unique memory store ID. It must be 3-56 characters, begin
71
71
  * with a lowercase letter, contain only lowercase letters, digits, and hyphens, and end with a
72
72
  * letter or digit.
73
73
  */
@@ -101,7 +101,7 @@ interface CreateSessionStoreRequest {
101
101
  */
102
102
  sessionStoreId?: string | undefined;
103
103
  }
104
- /** Request to delete a managed memory entry by resource name. */
104
+ /** Request to delete a memory entry by resource name. */
105
105
  interface DeleteManagedMemoryEntryRequest {
106
106
  /**
107
107
  * Resource name in the form
@@ -109,7 +109,7 @@ interface DeleteManagedMemoryEntryRequest {
109
109
  */
110
110
  name?: string | undefined;
111
111
  }
112
- /** Request to delete a managed memory store by resource name. */
112
+ /** Request to delete a memory store by resource name. */
113
113
  interface DeleteManagedMemoryStoreRequest {
114
114
  /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */
115
115
  name?: string | undefined;
@@ -130,7 +130,7 @@ interface DeleteSessionStoreRequest {
130
130
  /** Request to synchronously extract memories from a single session. */
131
131
  interface ExtractMemoriesRequest {
132
132
  /**
133
- * Managed memory store the extracted entries are written to, in the form
133
+ * Memory store the extracted entries are written to, in the form
134
134
  * `memory-stores/{managed_memory_store_id}`.
135
135
  */
136
136
  memoryStore?: string | undefined;
@@ -179,7 +179,7 @@ interface ForkSessionResponse {
179
179
  /** The newly-created independent top-level session. */
180
180
  session?: Session | undefined;
181
181
  }
182
- /** Request to retrieve a managed memory entry by resource name. */
182
+ /** Request to retrieve a memory entry by resource name. */
183
183
  interface GetManagedMemoryEntryRequest {
184
184
  /**
185
185
  * Resource name in the form
@@ -189,7 +189,7 @@ interface GetManagedMemoryEntryRequest {
189
189
  /** Controls whether the response includes memory content. Defaults to `FULL`. */
190
190
  view?: ManagedMemoryEntryView | undefined;
191
191
  }
192
- /** Request to retrieve a managed memory store by resource name. */
192
+ /** Request to retrieve a memory store by resource name. */
193
193
  interface GetManagedMemoryStoreRequest {
194
194
  /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */
195
195
  name?: string | undefined;
@@ -208,12 +208,12 @@ interface GetSessionStoreRequest {
208
208
  name?: string | undefined;
209
209
  }
210
210
  /**
211
- * Request to list managed memory entries for one actor, optionally restricted by session and
211
+ * Request to list memory entries for one actor, optionally restricted by session and
212
212
  * path prefix, or matched by exact path regardless of session.
213
213
  */
214
214
  interface ListManagedMemoryEntriesRequest {
215
215
  /**
216
- * Managed memory store whose entries are listed, in the form
216
+ * Memory store whose entries are listed, in the form
217
217
  * `memory-stores/{managed_memory_store_id}`.
218
218
  */
219
219
  parent?: string | undefined;
@@ -236,14 +236,14 @@ interface ListManagedMemoryEntriesRequest {
236
236
  /** Controls whether each returned entry includes memory content. Defaults to `FULL`. */
237
237
  view?: ManagedMemoryEntryView | undefined;
238
238
  }
239
- /** Response containing managed memory entries. */
239
+ /** Response containing memory entries. */
240
240
  interface ListManagedMemoryEntriesResponse {
241
- /** Managed memory entries matching the request and selected response view. */
241
+ /** Memory entries matching the request and selected response view. */
242
242
  managedMemoryEntries?: ManagedMemoryEntry[] | undefined;
243
243
  /** Opaque pagination token. This field is omitted when there are no more results. */
244
244
  nextPageToken?: string | undefined;
245
245
  }
246
- /** Request to list managed memory stores in the caller's workspace. */
246
+ /** Request to list memory stores in the caller's workspace. */
247
247
  interface ListManagedMemoryStoresRequest {
248
248
  /**
249
249
  * Maximum number of stores to return. The service may return fewer stores than requested.
@@ -253,9 +253,9 @@ interface ListManagedMemoryStoresRequest {
253
253
  /** Opaque pagination token from a previous ListManagedMemoryStores response. */
254
254
  pageToken?: string | undefined;
255
255
  }
256
- /** Response containing managed memory stores in the caller's workspace. */
256
+ /** Response containing memory stores in the caller's workspace. */
257
257
  interface ListManagedMemoryStoresResponse {
258
- /** Managed memory stores in the caller's workspace. */
258
+ /** Memory stores in the caller's workspace. */
259
259
  managedMemoryStores?: ManagedMemoryStore[] | undefined;
260
260
  /** Opaque pagination token. This field is omitted when there are no more results. */
261
261
  nextPageToken?: string | undefined;
@@ -330,7 +330,7 @@ interface ListSessionsResponse {
330
330
  /** Token to retrieve the next page. */
331
331
  nextPageToken?: string | undefined;
332
332
  }
333
- /** A workspace-scoped entry in a managed memory store. */
333
+ /** A workspace-scoped entry in a memory store. */
334
334
  interface ManagedMemoryEntry {
335
335
  /**
336
336
  * Resource name in the form
@@ -360,19 +360,19 @@ interface ManagedMemoryEntry {
360
360
  /** Time when the entry was last updated. */
361
361
  updateTime?: Temporal.Instant | undefined;
362
362
  }
363
- /** One relevance-ranked managed memory search result. */
363
+ /** One relevance-ranked memory search result. */
364
364
  interface ManagedMemoryEntrySearchResult {
365
- /** Managed memory entry matching the query. */
365
+ /** Memory entry matching the query. */
366
366
  managedMemoryEntry?: ManagedMemoryEntry | undefined;
367
367
  /** Relevance score for the result. Higher scores are more relevant. */
368
368
  score?: number | undefined;
369
369
  }
370
- /** A workspace-scoped managed memory store backed by service-managed storage. */
370
+ /** A workspace-scoped memory store backed by service-managed storage. */
371
371
  interface ManagedMemoryStore {
372
372
  /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */
373
373
  name?: string | undefined;
374
374
  /**
375
- * Deprecated compatibility alias for the caller-provided managed memory store ID. Canonical
375
+ * Deprecated compatibility alias for the caller-provided memory store ID. Canonical
376
376
  * clients provide the ID through `CreateMemoryStoreRequest.managed_memory_store_id` and use
377
377
  * `name` as the resource identifier.
378
378
  */
@@ -413,12 +413,12 @@ interface PopSessionItemResponse {
413
413
  item?: SessionItem | undefined;
414
414
  }
415
415
  /**
416
- * Request to search managed memory entries by text query for one actor.
416
+ * Request to search memory entries by text query for one actor.
417
417
  * Search returns a relevance-ranked top-N result set and does not currently paginate.
418
418
  */
419
419
  interface SearchManagedMemoryEntriesRequest {
420
420
  /**
421
- * Managed memory store whose entries are searched, in the form
421
+ * Memory store whose entries are searched, in the form
422
422
  * `memory-stores/{managed_memory_store_id}`.
423
423
  */
424
424
  parent?: string | undefined;
@@ -455,7 +455,7 @@ interface SearchManagedMemoryEntriesRequest {
455
455
  */
456
456
  view?: ManagedMemoryEntryView | undefined;
457
457
  }
458
- /** Response containing managed memory entries ranked by relevance. */
458
+ /** Response containing memory entries ranked by relevance. */
459
459
  interface SearchManagedMemoryEntriesResponse {
460
460
  /**
461
461
  * Deprecated compatibility alias for clients migrating to `results`. This contains the same
@@ -540,23 +540,23 @@ interface SessionStore {
540
540
  /** Resource name in the form `session-stores/{session_store_id}`. */
541
541
  name?: string | undefined;
542
542
  }
543
- /** Service-managed storage backing a managed memory store. */
543
+ /** Service-managed storage backing a memory store. */
544
544
  interface StorageBackend {
545
545
  /** Type of the storage backend. */
546
546
  backendType?: StorageBackendType | undefined;
547
547
  /** Backend-specific identifier. For Lakebase, this is the project ID. */
548
548
  backendId?: string | undefined;
549
549
  }
550
- /** Request to update a managed memory entry. */
550
+ /** Request to update a memory entry. */
551
551
  interface UpdateManagedMemoryEntryRequest {
552
- /** The managed memory entry to update. */
552
+ /** The memory entry to update. */
553
553
  managedMemoryEntry?: ManagedMemoryEntry | undefined;
554
554
  /** Fields to update. Only `content` and `description` may be updated. */
555
555
  updateMask?: FieldMask<ManagedMemoryEntry> | undefined;
556
556
  }
557
- /** Request to update the description and metadata on a managed memory store. */
557
+ /** Request to update the description and metadata on a memory store. */
558
558
  interface UpdateManagedMemoryStoreRequest {
559
- /** The managed memory store to update. `name` is taken from the URL. */
559
+ /** The memory store to update. `name` is taken from the URL. */
560
560
  managedMemoryStore?: ManagedMemoryStore | undefined;
561
561
  /** Only `description` and `metadata` may be updated. Selecting `metadata` replaces the entire map. */
562
562
  updateMask?: FieldMask<ManagedMemoryStore> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;;;;cAoBa,4BAAA;EAOH,4FAAA,sCAAA;EAAA,SAAA,wCAAA;AAAA;AAAA,KACE,4BAAA,WACA,4BAAA,eAA2C,4BAAA;;cAK1C,sBAAA;EALsE,4JAazE;EAAA,6EAAA;EAAA;;KACE,sBAAA,WACA,sBAAA,eAAqC,sBAAA;;cAKpC,kBAAA;EAND,iFAWF,gCAAA;WAAA,6BAAA;AAAA;AAAA,KACE,kBAAA,WACA,kBAAA,eAAiC,kBAAA;;UA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
14
- /** Identifies the source that created a managed memory entry. */
14
+ /** Identifies the source that created a memory entry. */
15
15
  const ManagedMemoryEntrySourceType = {
16
16
  MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT: "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT",
17
17
  MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER: "MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER"
18
18
  };
19
- /** Controls how much managed memory entry data is returned. */
19
+ /** Controls how much memory entry data is returned. */
20
20
  const ManagedMemoryEntryView = {
21
21
  MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED: "MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED",
22
22
  MANAGED_MEMORY_ENTRY_VIEW_BASIC: "MANAGED_MEMORY_ENTRY_VIEW_BASIC",
23
23
  MANAGED_MEMORY_ENTRY_VIEW_FULL: "MANAGED_MEMORY_ENTRY_VIEW_FULL"
24
24
  };
25
- /** Type of service-managed storage backing a managed memory store. */
25
+ /** Type of service-managed storage backing a memory store. */
26
26
  const StorageBackendType = {
27
27
  STORAGE_BACKEND_TYPE_UNSPECIFIED: "STORAGE_BACKEND_TYPE_UNSPECIFIED",
28
28
  STORAGE_BACKEND_TYPE_LAKEBASE: "STORAGE_BACKEND_TYPE_LAKEBASE"
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema, JsonValue} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\nconst jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([\n z.null(),\n z.number(),\n z.string(),\n z.boolean(),\n z.record(z.string(), jsonValueSchema),\n z.array(jsonValueSchema),\n ])\n);\n\n/** Identifies the source that created a managed memory entry. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ManagedMemoryEntrySourceType = {\n /** The managed memory entry was created by an agent during a live conversation. */\n MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT:\n 'MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT',\n /** The managed memory entry was distilled from prior sessions by the dreamer pipeline. */\n MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER:\n 'MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER',\n} as const;\nexport type ManagedMemoryEntrySourceType =\n | (typeof ManagedMemoryEntrySourceType)[keyof typeof ManagedMemoryEntrySourceType]\n | (string & {});\n\n/** Controls how much managed memory entry data is returned. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ManagedMemoryEntryView = {\n /** Default view. Returns all entry fields, including `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED:\n 'MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED',\n /** Returns entry metadata without `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_BASIC: 'MANAGED_MEMORY_ENTRY_VIEW_BASIC',\n /** Returns all entry fields, including `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_FULL: 'MANAGED_MEMORY_ENTRY_VIEW_FULL',\n} as const;\nexport type ManagedMemoryEntryView =\n | (typeof ManagedMemoryEntryView)[keyof typeof ManagedMemoryEntryView]\n | (string & {});\n\n/** Type of service-managed storage backing a managed memory store. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const StorageBackendType = {\n /** Default value. Returned when the storage backend type is not set. */\n STORAGE_BACKEND_TYPE_UNSPECIFIED: 'STORAGE_BACKEND_TYPE_UNSPECIFIED',\n /** Lakebase-managed storage backing the managed memory store. */\n STORAGE_BACKEND_TYPE_LAKEBASE: 'STORAGE_BACKEND_TYPE_LAKEBASE',\n} as const;\nexport type StorageBackendType =\n | (typeof StorageBackendType)[keyof typeof StorageBackendType]\n | (string & {});\n\n/** Request to append items to a session. */\nexport interface AppendSessionItemsRequest {\n /**\n * Items to append atomically in request order. Concurrent append requests are serialized into one\n * committed order without exposing a numeric sequence in the public contract.\n */\n items?: SessionItem[] | undefined;\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing appended items. */\nexport interface AppendSessionItemsResponse {\n /** Persisted session items with service-assigned fields. */\n sessionItems?: SessionItem[] | undefined;\n}\n\n/** Request to clear all items from a session. */\nexport interface ClearSessionItemsRequest {\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response from clearing items from a session. */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ClearSessionItemsResponse {}\n\n/** Request to create a managed memory entry. */\nexport interface CreateManagedMemoryEntryRequest {\n /**\n * Managed memory store that will contain the entry, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /** The managed memory entry to create. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Optional caller-selected managed memory entry ID. The service generates an ID when omitted. */\n managedMemoryEntryId?: string | undefined;\n}\n\n/** Request to create a managed memory store. */\nexport interface CreateManagedMemoryStoreRequest {\n /** The managed memory store to create. */\n managedMemoryStore?: ManagedMemoryStore | undefined;\n /**\n * Caller-provided, workspace-unique managed memory store ID. It must be 3-56 characters, begin\n * with a lowercase letter, contain only lowercase letters, digits, and hyphens, and end with a\n * letter or digit.\n */\n managedMemoryStoreId?: string | undefined;\n}\n\n/** Request to create a session. */\nexport interface CreateSessionRequest {\n /**\n * The session to create. `actor_id` is required. A session with `parent_session_id` is a child and\n * must use its parent's `actor_id`. Independent forks are created only through `ForkSession`.\n */\n session?: Session | undefined;\n /**\n * Optional caller-selected session ID. The service generates a UUID when this field is omitted.\n * The ID must be unique; a collision returns `ALREADY_EXISTS`.\n */\n sessionId?: string | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Request to create a session store. */\nexport interface CreateSessionStoreRequest {\n /** The session store to create. */\n sessionStore?: SessionStore | undefined;\n /**\n * Caller-provided, workspace-unique session store ID. It must be 3-55 characters, begin with a\n * lowercase letter, and contain only lowercase letters, digits, and hyphens.\n */\n sessionStoreId?: string | undefined;\n}\n\n/** Request to delete a managed memory entry by resource name. */\nexport interface DeleteManagedMemoryEntryRequest {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to delete a managed memory store by resource name. */\nexport interface DeleteManagedMemoryStoreRequest {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to delete a session. */\nexport interface DeleteSessionRequest {\n /**\n * Resource name in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to delete a session store. */\nexport interface DeleteSessionStoreRequest {\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to synchronously extract memories from a single session. */\nexport interface ExtractMemoriesRequest {\n /**\n * Managed memory store the extracted entries are written to, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n memoryStore?: string | undefined;\n /** Session store containing the session, in the form `session-stores/{session_store_id}`. */\n sessionStore?: string | undefined;\n /** Identifier of the session whose transcript is distilled into memories. */\n sessionId?: string | undefined;\n /** Instructions steering what is extracted from the session. */\n instructions?: string | undefined;\n /**\n * When true, extract and return the entries without writing them to the memory store. Defaults\n * to false, which persists the extracted entries and returns them.\n */\n dryRun?: boolean | undefined;\n}\n\n/** Result of a single-session memory extraction. */\nexport interface ExtractMemoriesResponse {\n /** Correlation identifier for this extraction, for logging and tracing. Not a fetchable resource. */\n name?: string | undefined;\n /** The memory entries written by this extraction. */\n entries?: ManagedMemoryEntry[] | undefined;\n}\n\n/** Request to fork a session. */\nexport interface ForkSessionRequest {\n /** ID of the session to copy. */\n sourceSessionId?: string | undefined;\n /**\n * Optional last item ID to copy through, inclusively. When omitted, the fork atomically copies\n * all items committed before the fork operation begins.\n */\n upToItemId?: string | undefined;\n /** Optional unique ID for the forked session. A collision returns `ALREADY_EXISTS`. */\n sessionId?: string | undefined;\n /** Opaque caller-provided identifier for the application actor associated with the forked session. */\n actorId?: string | undefined;\n /** Optional metadata for the fork. */\n metadata?: Record<string, string> | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response from forking a session. */\nexport interface ForkSessionResponse {\n /** The newly-created independent top-level session. */\n session?: Session | undefined;\n}\n\n/** Request to retrieve a managed memory entry by resource name. */\nexport interface GetManagedMemoryEntryRequest {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n /** Controls whether the response includes memory content. Defaults to `FULL`. */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Request to retrieve a managed memory store by resource name. */\nexport interface GetManagedMemoryStoreRequest {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to get a session. */\nexport interface GetSessionRequest {\n /**\n * Resource name in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to get a session store. */\nexport interface GetSessionStoreRequest {\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/**\n * Request to list managed memory entries for one actor, optionally restricted by session and\n * path prefix, or matched by exact path regardless of session.\n */\nexport interface ListManagedMemoryEntriesRequest {\n /**\n * Managed memory store whose entries are listed, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /**\n * Maximum number of entries to return. The service may return fewer entries than requested.\n * Defaults to 10; must be between 1 and 100.\n */\n pageSize?: number | undefined;\n /** Opaque pagination token from a previous ListManagedMemoryEntries response. */\n pageToken?: string | undefined;\n /** Customer-provided identifier for the actor whose entries are listed. */\n actorId?: string | undefined;\n /** Optional path prefix used to restrict entries within the actor partition. */\n pathPrefix?: string | undefined;\n /**\n * Optional session identifier. When set, only entries with this exact `session_id` are\n * returned. Omitted-session (cross-session) entries are not included. Ignored when path is set.\n */\n sessionId?: string | undefined;\n /** Controls whether each returned entry includes memory content. Defaults to `FULL`. */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Response containing managed memory entries. */\nexport interface ListManagedMemoryEntriesResponse {\n /** Managed memory entries matching the request and selected response view. */\n managedMemoryEntries?: ManagedMemoryEntry[] | undefined;\n /** Opaque pagination token. This field is omitted when there are no more results. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list managed memory stores in the caller's workspace. */\nexport interface ListManagedMemoryStoresRequest {\n /**\n * Maximum number of stores to return. The service may return fewer stores than requested.\n * Defaults to 10; must be between 1 and 100.\n */\n pageSize?: number | undefined;\n /** Opaque pagination token from a previous ListManagedMemoryStores response. */\n pageToken?: string | undefined;\n}\n\n/** Response containing managed memory stores in the caller's workspace. */\nexport interface ListManagedMemoryStoresResponse {\n /** Managed memory stores in the caller's workspace. */\n managedMemoryStores?: ManagedMemoryStore[] | undefined;\n /** Opaque pagination token. This field is omitted when there are no more results. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list items in a session. */\nexport interface ListSessionItemsRequest {\n /** Maximum number of items to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n /**\n * Sort order. Supported values are `create_time asc` and `create_time desc`. The default is\n * `create_time desc`, which returns the most recently appended items first. Equal timestamps are\n * resolved by committed append order in the requested direction.\n */\n orderBy?: string | undefined;\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing a page of session items. */\nexport interface ListSessionItemsResponse {\n /** Session items in the requested page. */\n sessionItems?: SessionItem[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list session stores. */\nexport interface ListSessionStoresRequest {\n /** Maximum number of session stores to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n}\n\n/** Response containing a page of session stores. */\nexport interface ListSessionStoresResponse {\n /** Session stores in the requested page. */\n sessionStores?: SessionStore[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list sessions. */\nexport interface ListSessionsRequest {\n /** Maximum number of sessions to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n /**\n * Filter expression. Supported fields include `actor_id` and `metadata`; for example,\n * `actor_id = \"support-customer-123\"`.\n */\n filter?: string | undefined;\n /**\n * Sort order. Defaults to `last_activity_time desc`. Page-token continuation is exactly-once when\n * ordering by `create_time` (immutable); ordering by `last_activity_time` is best-effort, because\n * that value changes as a session gains activity, so a session updated between page requests may\n * be repeated or skipped. To enumerate every session exactly once, order by `create_time`.\n */\n orderBy?: string | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing a page of sessions. */\nexport interface ListSessionsResponse {\n /** Sessions in the requested page. */\n sessions?: Session[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** A workspace-scoped entry in a managed memory store. */\nexport interface ManagedMemoryEntry {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n /** Customer-provided identifier for the actor whose memory this entry represents. */\n actorId?: string | undefined;\n /**\n * Optional identifier for the session associated with this memory entry. When omitted, the\n * entry applies across the actor's sessions.\n */\n sessionId?: string | undefined;\n /**\n * Absolute, case-sensitive path identifying the entry within its actor and optional session.\n * Paths must begin with `/` and must not contain empty, `.` or `..` segments.\n */\n path?: string | undefined;\n /** Optional free-form memory content. */\n content?: string | undefined;\n /** Human-readable description of the memory entry. */\n description?: string | undefined;\n /** Which writer created this entry. Caller sets this on Create; immutable after creation. */\n sourceType?: ManagedMemoryEntrySourceType | undefined;\n /** Time when the entry was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the entry was last updated. */\n updateTime?: Temporal.Instant | undefined;\n}\n\n/** One relevance-ranked managed memory search result. */\nexport interface ManagedMemoryEntrySearchResult {\n /** Managed memory entry matching the query. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Relevance score for the result. Higher scores are more relevant. */\n score?: number | undefined;\n}\n\n/** A workspace-scoped managed memory store backed by service-managed storage. */\nexport interface ManagedMemoryStore {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n /**\n * Deprecated compatibility alias for the caller-provided managed memory store ID. Canonical\n * clients provide the ID through `CreateMemoryStoreRequest.managed_memory_store_id` and use\n * `name` as the resource identifier.\n */\n displayName?: string | undefined;\n /** Workspace that owns the memory store. */\n workspaceId?: bigint | undefined;\n /** Service-managed storage backing this memory store. */\n storageBackend?: StorageBackend | undefined;\n /**\n * Deprecated alias for `creator_user_id`. This identifies the original creator, not a\n * transferable owner. Use `creator_user_id` instead.\n */\n ownerUserId?: string | undefined;\n /**\n * Workspace-local user ID of the authenticated principal that created the store. This is\n * immutable server-set attribution and does not grant access; authorization is evaluated from\n * the authenticated request context.\n */\n creatorUserId?: string | undefined;\n /** Human-readable description of the memory store. */\n description?: string | undefined;\n /** Time when the store was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the store was last updated. */\n updateTime?: Temporal.Instant | undefined;\n}\n\n/** Request to pop an item from a session. */\nexport interface PopSessionItemRequest {\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing the popped item. */\nexport interface PopSessionItemResponse {\n /** Removed item, if any. */\n item?: SessionItem | undefined;\n}\n\n/**\n * Request to search managed memory entries by text query for one actor.\n * Search returns a relevance-ranked top-N result set and does not currently paginate.\n */\nexport interface SearchManagedMemoryEntriesRequest {\n /**\n * Managed memory store whose entries are searched, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /** Customer-provided identifier for the actor whose entries are searched. */\n actorId?: string | undefined;\n /** Free-form search query. */\n query?: string | undefined;\n /** Deprecated alias for `page_size`. When both fields are set, their values must match. */\n limit?: number | undefined;\n /**\n * Maximum number of relevance-ranked entries to return. Defaults to 10 and must be between 1 and\n * 100.\n */\n pageSize?: number | undefined;\n /**\n * Reserved for pagination compatibility. The server currently ignores this field because Search\n * returns a ranked top-N result set.\n */\n pageToken?: string | undefined;\n /**\n * Optional session identifier. When set, only entries with this exact `session_id` are\n * searched. Omitted-session (cross-session) entries are not included.\n */\n sessionId?: string | undefined;\n /**\n * Optional absolute, case-sensitive path prefix used to restrict searched entries within the\n * actor partition. The prefix must begin with `/` and must not contain empty, `.` or `..`\n * segments.\n */\n pathPrefix?: string | undefined;\n /**\n * Controls whether each returned entry includes memory content. Search scores are always\n * returned. Defaults to `FULL`.\n */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Response containing managed memory entries ranked by relevance. */\nexport interface SearchManagedMemoryEntriesResponse {\n /**\n * Deprecated compatibility alias for clients migrating to `results`. This contains the same\n * entries in the same order, but omits their relevance scores.\n */\n managedMemoryEntries?: ManagedMemoryEntry[] | undefined;\n /**\n * Opaque pagination token. Search currently returns an unpaginated ranked top-N result set, so\n * the server does not populate this field.\n */\n nextPageToken?: string | undefined;\n /** Canonical matching entries and relevance scores, ordered most relevant first. */\n results?: ManagedMemoryEntrySearchResult[] | undefined;\n}\n\n/** A durable logical interaction stored within a Session Store. */\nexport interface Session {\n /**\n * Unique session ID. The service generates a UUID unless the caller supplies\n * `CreateSessionRequest.session_id`.\n */\n sessionId?: string | undefined;\n /**\n * Opaque caller-provided identifier for the application actor associated with the session.\n *\n * This is application data and has no <Databricks> authentication or authorization semantics.\n * Use the same value as the Managed Memory Entry `actor_id` when storing memories associated\n * with this actor. Every session must set it. A child session must use the same value as its parent.\n */\n actorId?: string | undefined;\n /**\n * Immediate parent session ID. Set only at creation for child sessions, immutable thereafter, and\n * restricted to the same store.\n */\n parentSessionId?: string | undefined;\n /**\n * Top-level session ID in the spawn tree. This equals `session_id` for a root or fork and is\n * inherited transitively by child sessions.\n */\n rootSessionId?: string | undefined;\n /** Mutable caller-defined string labels. */\n metadata?: Record<string, string> | undefined;\n /** Time when the session was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when session resource fields last changed. */\n updateTime?: Temporal.Instant | undefined;\n /** Time when the session's item history was last mutated. */\n lastActivityTime?: Temporal.Instant | undefined;\n /** Resource name in the form `session-stores/{session_store_id}/sessions/{session_id}`. */\n name?: string | undefined;\n}\n\n/** A transcript entry in a session's history. */\nexport interface SessionItem {\n /** Stable service-generated item ID. */\n itemId?: string | undefined;\n /**\n * Complete SDK-native, JSON-compatible item. The service stores and returns this value without\n * interpreting provider-specific fields such as `type`, `role`, or `content`.\n */\n data?: JsonValue | undefined;\n /**\n * Server-assigned time when the append commits. Values are nondecreasing within a session. Item\n * listing orders by this timestamp; equal timestamps are resolved by committed append order.\n */\n createTime?: Temporal.Instant | undefined;\n}\n\n/** A workspace-scoped session store. */\nexport interface SessionStore {\n /**\n * Workspace-local user ID of the authenticated principal that created the store. This is\n * immutable server-set attribution and does not grant access; authorization is evaluated from\n * the authenticated request context.\n */\n creatorUserId?: string | undefined;\n /** Time when the store was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the store was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Human-readable description of the session store. */\n description?: string | undefined;\n /** Mutable caller-defined string labels. */\n metadata?: Record<string, string> | undefined;\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/** Service-managed storage backing a managed memory store. */\nexport interface StorageBackend {\n /** Type of the storage backend. */\n backendType?: StorageBackendType | undefined;\n /** Backend-specific identifier. For Lakebase, this is the project ID. */\n backendId?: string | undefined;\n}\n\n/** Request to update a managed memory entry. */\nexport interface UpdateManagedMemoryEntryRequest {\n /** The managed memory entry to update. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Fields to update. Only `content` and `description` may be updated. */\n updateMask?: FieldMask<ManagedMemoryEntry> | undefined;\n}\n\n/** Request to update the description and metadata on a managed memory store. */\nexport interface UpdateManagedMemoryStoreRequest {\n /** The managed memory store to update. `name` is taken from the URL. */\n managedMemoryStore?: ManagedMemoryStore | undefined;\n /** Only `description` and `metadata` may be updated. Selecting `metadata` replaces the entire map. */\n updateMask?: FieldMask<ManagedMemoryStore> | undefined;\n}\n\n/** Request to update a session. */\nexport interface UpdateSessionRequest {\n /** Session to update. */\n session?: Session | undefined;\n /**\n * Fields to update. Only `metadata` is mutable; any other path returns\n * `INVALID_PARAMETER_VALUE`.\n */\n updateMask?: FieldMask<Session> | undefined;\n}\n\n/** Request to update a session store. */\nexport interface UpdateSessionStoreRequest {\n /** Session store to update. */\n sessionStore?: SessionStore | undefined;\n /**\n * Fields to update. Only `description` and `metadata` are mutable; any other\n * path returns `INVALID_PARAMETER_VALUE`.\n */\n updateMask?: FieldMask<SessionStore> | undefined;\n}\n\nexport const unmarshalAppendSessionItemsResponseSchema: z.ZodType<AppendSessionItemsResponse> =\n z\n .object({\n session_items: z\n .array(z.lazy(() => unmarshalSessionItemSchema))\n .optional(),\n })\n .transform(d => ({\n sessionItems: d.session_items,\n }));\n\nexport const unmarshalClearSessionItemsResponseSchema: z.ZodType<ClearSessionItemsResponse> =\n z.object({});\n\nexport const unmarshalExtractMemoriesResponseSchema: z.ZodType<ExtractMemoriesResponse> =\n z\n .object({\n name: z.string().optional(),\n entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n entries: d.entries,\n }));\n\nexport const unmarshalForkSessionResponseSchema: z.ZodType<ForkSessionResponse> =\n z\n .object({\n session: z.lazy(() => unmarshalSessionSchema).optional(),\n })\n .transform(d => ({\n session: d.session,\n }));\n\nexport const unmarshalListManagedMemoryEntriesResponseSchema: z.ZodType<ListManagedMemoryEntriesResponse> =\n z\n .object({\n managed_memory_entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n managedMemoryEntries: d.managed_memory_entries,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListManagedMemoryStoresResponseSchema: z.ZodType<ListManagedMemoryStoresResponse> =\n z\n .object({\n managed_memory_stores: z\n .array(z.lazy(() => unmarshalManagedMemoryStoreSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n managedMemoryStores: d.managed_memory_stores,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionItemsResponseSchema: z.ZodType<ListSessionItemsResponse> =\n z\n .object({\n session_items: z\n .array(z.lazy(() => unmarshalSessionItemSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessionItems: d.session_items,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionStoresResponseSchema: z.ZodType<ListSessionStoresResponse> =\n z\n .object({\n session_stores: z\n .array(z.lazy(() => unmarshalSessionStoreSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessionStores: d.session_stores,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionsResponseSchema: z.ZodType<ListSessionsResponse> =\n z\n .object({\n sessions: z.array(z.lazy(() => unmarshalSessionSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessions: d.sessions,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalManagedMemoryEntrySchema: z.ZodType<ManagedMemoryEntry> =\n z\n .object({\n name: z.string().optional(),\n actor_id: z.string().optional(),\n session_id: z.string().optional(),\n path: z.string().optional(),\n content: z.string().optional(),\n description: z.string().optional(),\n source_type: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n actorId: d.actor_id,\n sessionId: d.session_id,\n path: d.path,\n content: d.content,\n description: d.description,\n sourceType: d.source_type,\n createTime: d.create_time,\n updateTime: d.update_time,\n }));\n\nexport const unmarshalManagedMemoryEntrySearchResultSchema: z.ZodType<ManagedMemoryEntrySearchResult> =\n z\n .object({\n managed_memory_entry: z\n .lazy(() => unmarshalManagedMemoryEntrySchema)\n .optional(),\n score: z.number().optional(),\n })\n .transform(d => ({\n managedMemoryEntry: d.managed_memory_entry,\n score: d.score,\n }));\n\nexport const unmarshalManagedMemoryStoreSchema: z.ZodType<ManagedMemoryStore> =\n z\n .object({\n name: z.string().optional(),\n display_name: z.string().optional(),\n workspace_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n storage_backend: z.lazy(() => unmarshalStorageBackendSchema).optional(),\n owner_user_id: z.string().optional(),\n creator_user_id: z.string().optional(),\n description: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n displayName: d.display_name,\n workspaceId: d.workspace_id,\n storageBackend: d.storage_backend,\n ownerUserId: d.owner_user_id,\n creatorUserId: d.creator_user_id,\n description: d.description,\n createTime: d.create_time,\n updateTime: d.update_time,\n }));\n\nexport const unmarshalPopSessionItemResponseSchema: z.ZodType<PopSessionItemResponse> =\n z\n .object({\n item: z.lazy(() => unmarshalSessionItemSchema).optional(),\n })\n .transform(d => ({\n item: d.item,\n }));\n\nexport const unmarshalSearchManagedMemoryEntriesResponseSchema: z.ZodType<SearchManagedMemoryEntriesResponse> =\n z\n .object({\n managed_memory_entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n next_page_token: z.string().optional(),\n results: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySearchResultSchema))\n .optional(),\n })\n .transform(d => ({\n managedMemoryEntries: d.managed_memory_entries,\n nextPageToken: d.next_page_token,\n results: d.results,\n }));\n\nexport const unmarshalSessionSchema: z.ZodType<Session> = z\n .object({\n session_id: z.string().optional(),\n actor_id: z.string().optional(),\n parent_session_id: z.string().optional(),\n root_session_id: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n last_activity_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n sessionId: d.session_id,\n actorId: d.actor_id,\n parentSessionId: d.parent_session_id,\n rootSessionId: d.root_session_id,\n metadata: d.metadata,\n createTime: d.create_time,\n updateTime: d.update_time,\n lastActivityTime: d.last_activity_time,\n name: d.name,\n }));\n\nexport const unmarshalSessionItemSchema: z.ZodType<SessionItem> = z\n .object({\n item_id: z.string().optional(),\n data: jsonValueSchema.optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n itemId: d.item_id,\n data: d.data,\n createTime: d.create_time,\n }));\n\nexport const unmarshalSessionStoreSchema: z.ZodType<SessionStore> = z\n .object({\n creator_user_id: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n description: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n creatorUserId: d.creator_user_id,\n createTime: d.create_time,\n updateTime: d.update_time,\n description: d.description,\n metadata: d.metadata,\n name: d.name,\n }));\n\nexport const unmarshalStorageBackendSchema: z.ZodType<StorageBackend> = z\n .object({\n backend_type: z.string().optional(),\n backend_id: z.string().optional(),\n })\n .transform(d => ({\n backendType: d.backend_type,\n backendId: d.backend_id,\n }));\n\nexport const marshalAppendSessionItemsRequestSchema: z.ZodType = z\n .object({\n items: z.array(z.lazy(() => marshalSessionItemSchema)).optional(),\n parent: z.string().optional(),\n })\n .transform(d => ({\n items: d.items,\n parent: d.parent,\n }));\n\nexport const marshalClearSessionItemsRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n }));\n\nexport const marshalExtractMemoriesRequestSchema: z.ZodType = z\n .object({\n memoryStore: z.string().optional(),\n sessionStore: z.string().optional(),\n sessionId: z.string().optional(),\n instructions: z.string().optional(),\n dryRun: z.boolean().optional(),\n })\n .transform(d => ({\n memory_store: d.memoryStore,\n session_store: d.sessionStore,\n session_id: d.sessionId,\n instructions: d.instructions,\n dry_run: d.dryRun,\n }));\n\nexport const marshalForkSessionRequestSchema: z.ZodType = z\n .object({\n sourceSessionId: z.string().optional(),\n upToItemId: z.string().optional(),\n sessionId: z.string().optional(),\n actorId: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n parent: z.string().optional(),\n })\n .transform(d => ({\n source_session_id: d.sourceSessionId,\n up_to_item_id: d.upToItemId,\n session_id: d.sessionId,\n actor_id: d.actorId,\n metadata: d.metadata,\n parent: d.parent,\n }));\n\nexport const marshalManagedMemoryEntrySchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n actorId: z.string().optional(),\n sessionId: z.string().optional(),\n path: z.string().optional(),\n content: z.string().optional(),\n description: z.string().optional(),\n sourceType: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n actor_id: d.actorId,\n session_id: d.sessionId,\n path: d.path,\n content: d.content,\n description: d.description,\n source_type: d.sourceType,\n create_time: d.createTime,\n update_time: d.updateTime,\n }));\n\nexport const marshalManagedMemoryStoreSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n displayName: z.string().optional(),\n workspaceId: z.bigint().optional(),\n storageBackend: z.lazy(() => marshalStorageBackendSchema).optional(),\n ownerUserId: z.string().optional(),\n creatorUserId: z.string().optional(),\n description: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n display_name: d.displayName,\n workspace_id: d.workspaceId,\n storage_backend: d.storageBackend,\n owner_user_id: d.ownerUserId,\n creator_user_id: d.creatorUserId,\n description: d.description,\n create_time: d.createTime,\n update_time: d.updateTime,\n }));\n\nexport const marshalPopSessionItemRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n }));\n\nexport const marshalSearchManagedMemoryEntriesRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n actorId: z.string().optional(),\n query: z.string().optional(),\n limit: z.number().optional(),\n pageSize: z.number().optional(),\n pageToken: z.string().optional(),\n sessionId: z.string().optional(),\n pathPrefix: z.string().optional(),\n view: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n actor_id: d.actorId,\n query: d.query,\n limit: d.limit,\n page_size: d.pageSize,\n page_token: d.pageToken,\n session_id: d.sessionId,\n path_prefix: d.pathPrefix,\n view: d.view,\n }));\n\nexport const marshalSessionSchema: z.ZodType = z\n .object({\n sessionId: z.string().optional(),\n actorId: z.string().optional(),\n parentSessionId: z.string().optional(),\n rootSessionId: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n lastActivityTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n session_id: d.sessionId,\n actor_id: d.actorId,\n parent_session_id: d.parentSessionId,\n root_session_id: d.rootSessionId,\n metadata: d.metadata,\n create_time: d.createTime,\n update_time: d.updateTime,\n last_activity_time: d.lastActivityTime,\n name: d.name,\n }));\n\nexport const marshalSessionItemSchema: z.ZodType = z\n .object({\n itemId: z.string().optional(),\n data: jsonValueSchema.optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n item_id: d.itemId,\n data: d.data,\n create_time: d.createTime,\n }));\n\nexport const marshalSessionStoreSchema: z.ZodType = z\n .object({\n creatorUserId: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n description: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n creator_user_id: d.creatorUserId,\n create_time: d.createTime,\n update_time: d.updateTime,\n description: d.description,\n metadata: d.metadata,\n name: d.name,\n }));\n\nexport const marshalStorageBackendSchema: z.ZodType = z\n .object({\n backendType: z.string().optional(),\n backendId: z.string().optional(),\n })\n .transform(d => ({\n backend_type: d.backendType,\n backend_id: d.backendId,\n }));\n\nconst managedMemoryEntryFieldMaskSchema: FieldMaskSchema = {\n actorId: {wire: 'actor_id'},\n content: {wire: 'content'},\n createTime: {wire: 'create_time'},\n description: {wire: 'description'},\n name: {wire: 'name'},\n path: {wire: 'path'},\n sessionId: {wire: 'session_id'},\n sourceType: {wire: 'source_type'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function managedMemoryEntryFieldMask(\n ...paths: string[]\n): FieldMask<ManagedMemoryEntry> {\n return FieldMask.build<ManagedMemoryEntry>(\n paths,\n managedMemoryEntryFieldMaskSchema\n );\n}\n\nconst managedMemoryStoreFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n creatorUserId: {wire: 'creator_user_id'},\n description: {wire: 'description'},\n displayName: {wire: 'display_name'},\n name: {wire: 'name'},\n ownerUserId: {wire: 'owner_user_id'},\n storageBackend: {\n wire: 'storage_backend',\n children: () => storageBackendFieldMaskSchema,\n },\n updateTime: {wire: 'update_time'},\n workspaceId: {wire: 'workspace_id'},\n};\n\nexport function managedMemoryStoreFieldMask(\n ...paths: string[]\n): FieldMask<ManagedMemoryStore> {\n return FieldMask.build<ManagedMemoryStore>(\n paths,\n managedMemoryStoreFieldMaskSchema\n );\n}\n\nconst sessionFieldMaskSchema: FieldMaskSchema = {\n actorId: {wire: 'actor_id'},\n createTime: {wire: 'create_time'},\n lastActivityTime: {wire: 'last_activity_time'},\n metadata: {wire: 'metadata'},\n name: {wire: 'name'},\n parentSessionId: {wire: 'parent_session_id'},\n rootSessionId: {wire: 'root_session_id'},\n sessionId: {wire: 'session_id'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function sessionFieldMask(...paths: string[]): FieldMask<Session> {\n return FieldMask.build<Session>(paths, sessionFieldMaskSchema);\n}\n\nconst sessionStoreFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n creatorUserId: {wire: 'creator_user_id'},\n description: {wire: 'description'},\n metadata: {wire: 'metadata'},\n name: {wire: 'name'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function sessionStoreFieldMask(\n ...paths: string[]\n): FieldMask<SessionStore> {\n return FieldMask.build<SessionStore>(paths, sessionStoreFieldMaskSchema);\n}\n\nconst storageBackendFieldMaskSchema: FieldMaskSchema = {\n backendId: {wire: 'backend_id'},\n backendType: {wire: 'backend_type'},\n};\n"],"mappings":";;;;;AAOA,MAAM,kBAAwC,EAAE,WAC9C,EAAE,MAAM;CACN,EAAE,MAAM;CACR,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,OAAO,EAAE,QAAQ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AAM,yBAA0C;CAC9C,SAAS,EAAC,MAAM,YAAW;CAC3B,YAAY,EAAC,MAAM,eAAc;CACjC,kBAAkB,EAAC,MAAM,sBAAqB;CAC9C,UAAU,EAAC,MAAM,YAAW;CAC5B,MAAM,EAAC,MAAM,QAAO;CACpB,iBAAiB,EAAC,MAAM,qBAAoB;CAC5C,eAAe,EAAC,MAAM,mBAAkB;CACxC,WAAW,EAAC,MAAM,cAAa;CAC/B,YAAY,EAAC,MAAM,eAAc;CAClC;AAED,SAAgB,iBAAiB,GAAG,OAAqC;AACvE,QAAO,UAAU,MAAe,OAAO,uBAAuB;;AAGhE,MAAM,8BAA+C;CACnD,YAAY,EAAC,MAAM,eAAc;CACjC,eAAe,EAAC,MAAM,mBAAkB;CACxC,aAAa,EAAC,MAAM,eAAc;CAClC,UAAU,EAAC,MAAM,YAAW;CAC5B,MAAM,EAAC,MAAM,QAAO;CACpB,YAAY,EAAC,MAAM,eAAc;CAClC;AAED,SAAgB,sBACd,GAAG,OACsB;AACzB,QAAO,UAAU,MAAoB,OAAO,4BAA4B;;AAG1E,MAAM,gCAAiD;CACrD,WAAW,EAAC,MAAM,cAAa;CAC/B,aAAa,EAAC,MAAM,gBAAe;CACpC"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {Temporal} from '@js-temporal/polyfill';\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema, JsonValue} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\nconst jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([\n z.null(),\n z.number(),\n z.string(),\n z.boolean(),\n z.record(z.string(), jsonValueSchema),\n z.array(jsonValueSchema),\n ])\n);\n\n/** Identifies the source that created a memory entry. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ManagedMemoryEntrySourceType = {\n /** The memory entry was created by an agent during a live conversation. */\n MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT:\n 'MANAGED_MEMORY_ENTRY_SOURCE_TYPE_AGENT',\n /** The memory entry was distilled from prior sessions by the dreamer pipeline. */\n MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER:\n 'MANAGED_MEMORY_ENTRY_SOURCE_TYPE_DREAMER',\n} as const;\nexport type ManagedMemoryEntrySourceType =\n | (typeof ManagedMemoryEntrySourceType)[keyof typeof ManagedMemoryEntrySourceType]\n | (string & {});\n\n/** Controls how much memory entry data is returned. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ManagedMemoryEntryView = {\n /** Default view. Returns all entry fields, including `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED:\n 'MANAGED_MEMORY_ENTRY_VIEW_UNSPECIFIED',\n /** Returns entry metadata without `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_BASIC: 'MANAGED_MEMORY_ENTRY_VIEW_BASIC',\n /** Returns all entry fields, including `content`. */\n MANAGED_MEMORY_ENTRY_VIEW_FULL: 'MANAGED_MEMORY_ENTRY_VIEW_FULL',\n} as const;\nexport type ManagedMemoryEntryView =\n | (typeof ManagedMemoryEntryView)[keyof typeof ManagedMemoryEntryView]\n | (string & {});\n\n/** Type of service-managed storage backing a memory store. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const StorageBackendType = {\n /** Default value. Returned when the storage backend type is not set. */\n STORAGE_BACKEND_TYPE_UNSPECIFIED: 'STORAGE_BACKEND_TYPE_UNSPECIFIED',\n /** Lakebase-managed storage backing the memory store. */\n STORAGE_BACKEND_TYPE_LAKEBASE: 'STORAGE_BACKEND_TYPE_LAKEBASE',\n} as const;\nexport type StorageBackendType =\n | (typeof StorageBackendType)[keyof typeof StorageBackendType]\n | (string & {});\n\n/** Request to append items to a session. */\nexport interface AppendSessionItemsRequest {\n /**\n * Items to append atomically in request order. Concurrent append requests are serialized into one\n * committed order without exposing a numeric sequence in the public contract.\n */\n items?: SessionItem[] | undefined;\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing appended items. */\nexport interface AppendSessionItemsResponse {\n /** Persisted session items with service-assigned fields. */\n sessionItems?: SessionItem[] | undefined;\n}\n\n/** Request to clear all items from a session. */\nexport interface ClearSessionItemsRequest {\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response from clearing items from a session. */\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ClearSessionItemsResponse {}\n\n/** Request to create a memory entry. */\nexport interface CreateManagedMemoryEntryRequest {\n /**\n * Memory store that will contain the entry, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /** The memory entry to create. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Optional caller-selected memory entry ID. The service generates an ID when omitted. */\n managedMemoryEntryId?: string | undefined;\n}\n\n/** Request to create a memory store. */\nexport interface CreateManagedMemoryStoreRequest {\n /** The memory store to create. */\n managedMemoryStore?: ManagedMemoryStore | undefined;\n /**\n * Caller-provided, workspace-unique memory store ID. It must be 3-56 characters, begin\n * with a lowercase letter, contain only lowercase letters, digits, and hyphens, and end with a\n * letter or digit.\n */\n managedMemoryStoreId?: string | undefined;\n}\n\n/** Request to create a session. */\nexport interface CreateSessionRequest {\n /**\n * The session to create. `actor_id` is required. A session with `parent_session_id` is a child and\n * must use its parent's `actor_id`. Independent forks are created only through `ForkSession`.\n */\n session?: Session | undefined;\n /**\n * Optional caller-selected session ID. The service generates a UUID when this field is omitted.\n * The ID must be unique; a collision returns `ALREADY_EXISTS`.\n */\n sessionId?: string | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Request to create a session store. */\nexport interface CreateSessionStoreRequest {\n /** The session store to create. */\n sessionStore?: SessionStore | undefined;\n /**\n * Caller-provided, workspace-unique session store ID. It must be 3-55 characters, begin with a\n * lowercase letter, and contain only lowercase letters, digits, and hyphens.\n */\n sessionStoreId?: string | undefined;\n}\n\n/** Request to delete a memory entry by resource name. */\nexport interface DeleteManagedMemoryEntryRequest {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to delete a memory store by resource name. */\nexport interface DeleteManagedMemoryStoreRequest {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to delete a session. */\nexport interface DeleteSessionRequest {\n /**\n * Resource name in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to delete a session store. */\nexport interface DeleteSessionStoreRequest {\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to synchronously extract memories from a single session. */\nexport interface ExtractMemoriesRequest {\n /**\n * Memory store the extracted entries are written to, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n memoryStore?: string | undefined;\n /** Session store containing the session, in the form `session-stores/{session_store_id}`. */\n sessionStore?: string | undefined;\n /** Identifier of the session whose transcript is distilled into memories. */\n sessionId?: string | undefined;\n /** Instructions steering what is extracted from the session. */\n instructions?: string | undefined;\n /**\n * When true, extract and return the entries without writing them to the memory store. Defaults\n * to false, which persists the extracted entries and returns them.\n */\n dryRun?: boolean | undefined;\n}\n\n/** Result of a single-session memory extraction. */\nexport interface ExtractMemoriesResponse {\n /** Correlation identifier for this extraction, for logging and tracing. Not a fetchable resource. */\n name?: string | undefined;\n /** The memory entries written by this extraction. */\n entries?: ManagedMemoryEntry[] | undefined;\n}\n\n/** Request to fork a session. */\nexport interface ForkSessionRequest {\n /** ID of the session to copy. */\n sourceSessionId?: string | undefined;\n /**\n * Optional last item ID to copy through, inclusively. When omitted, the fork atomically copies\n * all items committed before the fork operation begins.\n */\n upToItemId?: string | undefined;\n /** Optional unique ID for the forked session. A collision returns `ALREADY_EXISTS`. */\n sessionId?: string | undefined;\n /** Opaque caller-provided identifier for the application actor associated with the forked session. */\n actorId?: string | undefined;\n /** Optional metadata for the fork. */\n metadata?: Record<string, string> | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response from forking a session. */\nexport interface ForkSessionResponse {\n /** The newly-created independent top-level session. */\n session?: Session | undefined;\n}\n\n/** Request to retrieve a memory entry by resource name. */\nexport interface GetManagedMemoryEntryRequest {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n /** Controls whether the response includes memory content. Defaults to `FULL`. */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Request to retrieve a memory store by resource name. */\nexport interface GetManagedMemoryStoreRequest {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n}\n\n/** Request to get a session. */\nexport interface GetSessionRequest {\n /**\n * Resource name in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n name?: string | undefined;\n}\n\n/** Request to get a session store. */\nexport interface GetSessionStoreRequest {\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/**\n * Request to list memory entries for one actor, optionally restricted by session and\n * path prefix, or matched by exact path regardless of session.\n */\nexport interface ListManagedMemoryEntriesRequest {\n /**\n * Memory store whose entries are listed, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /**\n * Maximum number of entries to return. The service may return fewer entries than requested.\n * Defaults to 10; must be between 1 and 100.\n */\n pageSize?: number | undefined;\n /** Opaque pagination token from a previous ListManagedMemoryEntries response. */\n pageToken?: string | undefined;\n /** Customer-provided identifier for the actor whose entries are listed. */\n actorId?: string | undefined;\n /** Optional path prefix used to restrict entries within the actor partition. */\n pathPrefix?: string | undefined;\n /**\n * Optional session identifier. When set, only entries with this exact `session_id` are\n * returned. Omitted-session (cross-session) entries are not included. Ignored when path is set.\n */\n sessionId?: string | undefined;\n /** Controls whether each returned entry includes memory content. Defaults to `FULL`. */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Response containing memory entries. */\nexport interface ListManagedMemoryEntriesResponse {\n /** Memory entries matching the request and selected response view. */\n managedMemoryEntries?: ManagedMemoryEntry[] | undefined;\n /** Opaque pagination token. This field is omitted when there are no more results. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list memory stores in the caller's workspace. */\nexport interface ListManagedMemoryStoresRequest {\n /**\n * Maximum number of stores to return. The service may return fewer stores than requested.\n * Defaults to 10; must be between 1 and 100.\n */\n pageSize?: number | undefined;\n /** Opaque pagination token from a previous ListManagedMemoryStores response. */\n pageToken?: string | undefined;\n}\n\n/** Response containing memory stores in the caller's workspace. */\nexport interface ListManagedMemoryStoresResponse {\n /** Memory stores in the caller's workspace. */\n managedMemoryStores?: ManagedMemoryStore[] | undefined;\n /** Opaque pagination token. This field is omitted when there are no more results. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list items in a session. */\nexport interface ListSessionItemsRequest {\n /** Maximum number of items to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n /**\n * Sort order. Supported values are `create_time asc` and `create_time desc`. The default is\n * `create_time desc`, which returns the most recently appended items first. Equal timestamps are\n * resolved by committed append order in the requested direction.\n */\n orderBy?: string | undefined;\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing a page of session items. */\nexport interface ListSessionItemsResponse {\n /** Session items in the requested page. */\n sessionItems?: SessionItem[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list session stores. */\nexport interface ListSessionStoresRequest {\n /** Maximum number of session stores to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n}\n\n/** Response containing a page of session stores. */\nexport interface ListSessionStoresResponse {\n /** Session stores in the requested page. */\n sessionStores?: SessionStore[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** Request to list sessions. */\nexport interface ListSessionsRequest {\n /** Maximum number of sessions to return. Defaults to 10; must be between 1 and 100. */\n pageSize?: number | undefined;\n /** Token returned by a previous list request. */\n pageToken?: string | undefined;\n /**\n * Filter expression. Supported fields include `actor_id` and `metadata`; for example,\n * `actor_id = \"support-customer-123\"`.\n */\n filter?: string | undefined;\n /**\n * Sort order. Defaults to `last_activity_time desc`. Page-token continuation is exactly-once when\n * ordering by `create_time` (immutable); ordering by `last_activity_time` is best-effort, because\n * that value changes as a session gains activity, so a session updated between page requests may\n * be repeated or skipped. To enumerate every session exactly once, order by `create_time`.\n */\n orderBy?: string | undefined;\n /**\n * Resource name of the containing session store, in the form\n * `session-stores/{session_store_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing a page of sessions. */\nexport interface ListSessionsResponse {\n /** Sessions in the requested page. */\n sessions?: Session[] | undefined;\n /** Token to retrieve the next page. */\n nextPageToken?: string | undefined;\n}\n\n/** A workspace-scoped entry in a memory store. */\nexport interface ManagedMemoryEntry {\n /**\n * Resource name in the form\n * `memory-stores/{managed_memory_store_id}/entries/{managed_memory_entry_id}`.\n */\n name?: string | undefined;\n /** Customer-provided identifier for the actor whose memory this entry represents. */\n actorId?: string | undefined;\n /**\n * Optional identifier for the session associated with this memory entry. When omitted, the\n * entry applies across the actor's sessions.\n */\n sessionId?: string | undefined;\n /**\n * Absolute, case-sensitive path identifying the entry within its actor and optional session.\n * Paths must begin with `/` and must not contain empty, `.` or `..` segments.\n */\n path?: string | undefined;\n /** Optional free-form memory content. */\n content?: string | undefined;\n /** Human-readable description of the memory entry. */\n description?: string | undefined;\n /** Which writer created this entry. Caller sets this on Create; immutable after creation. */\n sourceType?: ManagedMemoryEntrySourceType | undefined;\n /** Time when the entry was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the entry was last updated. */\n updateTime?: Temporal.Instant | undefined;\n}\n\n/** One relevance-ranked memory search result. */\nexport interface ManagedMemoryEntrySearchResult {\n /** Memory entry matching the query. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Relevance score for the result. Higher scores are more relevant. */\n score?: number | undefined;\n}\n\n/** A workspace-scoped memory store backed by service-managed storage. */\nexport interface ManagedMemoryStore {\n /** Resource name in the form `memory-stores/{managed_memory_store_id}`. */\n name?: string | undefined;\n /**\n * Deprecated compatibility alias for the caller-provided memory store ID. Canonical\n * clients provide the ID through `CreateMemoryStoreRequest.managed_memory_store_id` and use\n * `name` as the resource identifier.\n */\n displayName?: string | undefined;\n /** Workspace that owns the memory store. */\n workspaceId?: bigint | undefined;\n /** Service-managed storage backing this memory store. */\n storageBackend?: StorageBackend | undefined;\n /**\n * Deprecated alias for `creator_user_id`. This identifies the original creator, not a\n * transferable owner. Use `creator_user_id` instead.\n */\n ownerUserId?: string | undefined;\n /**\n * Workspace-local user ID of the authenticated principal that created the store. This is\n * immutable server-set attribution and does not grant access; authorization is evaluated from\n * the authenticated request context.\n */\n creatorUserId?: string | undefined;\n /** Human-readable description of the memory store. */\n description?: string | undefined;\n /** Time when the store was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the store was last updated. */\n updateTime?: Temporal.Instant | undefined;\n}\n\n/** Request to pop an item from a session. */\nexport interface PopSessionItemRequest {\n /**\n * Resource name of the containing session, in the form\n * `session-stores/{session_store_id}/sessions/{session_id}`.\n */\n parent?: string | undefined;\n}\n\n/** Response containing the popped item. */\nexport interface PopSessionItemResponse {\n /** Removed item, if any. */\n item?: SessionItem | undefined;\n}\n\n/**\n * Request to search memory entries by text query for one actor.\n * Search returns a relevance-ranked top-N result set and does not currently paginate.\n */\nexport interface SearchManagedMemoryEntriesRequest {\n /**\n * Memory store whose entries are searched, in the form\n * `memory-stores/{managed_memory_store_id}`.\n */\n parent?: string | undefined;\n /** Customer-provided identifier for the actor whose entries are searched. */\n actorId?: string | undefined;\n /** Free-form search query. */\n query?: string | undefined;\n /** Deprecated alias for `page_size`. When both fields are set, their values must match. */\n limit?: number | undefined;\n /**\n * Maximum number of relevance-ranked entries to return. Defaults to 10 and must be between 1 and\n * 100.\n */\n pageSize?: number | undefined;\n /**\n * Reserved for pagination compatibility. The server currently ignores this field because Search\n * returns a ranked top-N result set.\n */\n pageToken?: string | undefined;\n /**\n * Optional session identifier. When set, only entries with this exact `session_id` are\n * searched. Omitted-session (cross-session) entries are not included.\n */\n sessionId?: string | undefined;\n /**\n * Optional absolute, case-sensitive path prefix used to restrict searched entries within the\n * actor partition. The prefix must begin with `/` and must not contain empty, `.` or `..`\n * segments.\n */\n pathPrefix?: string | undefined;\n /**\n * Controls whether each returned entry includes memory content. Search scores are always\n * returned. Defaults to `FULL`.\n */\n view?: ManagedMemoryEntryView | undefined;\n}\n\n/** Response containing memory entries ranked by relevance. */\nexport interface SearchManagedMemoryEntriesResponse {\n /**\n * Deprecated compatibility alias for clients migrating to `results`. This contains the same\n * entries in the same order, but omits their relevance scores.\n */\n managedMemoryEntries?: ManagedMemoryEntry[] | undefined;\n /**\n * Opaque pagination token. Search currently returns an unpaginated ranked top-N result set, so\n * the server does not populate this field.\n */\n nextPageToken?: string | undefined;\n /** Canonical matching entries and relevance scores, ordered most relevant first. */\n results?: ManagedMemoryEntrySearchResult[] | undefined;\n}\n\n/** A durable logical interaction stored within a Session Store. */\nexport interface Session {\n /**\n * Unique session ID. The service generates a UUID unless the caller supplies\n * `CreateSessionRequest.session_id`.\n */\n sessionId?: string | undefined;\n /**\n * Opaque caller-provided identifier for the application actor associated with the session.\n *\n * This is application data and has no <Databricks> authentication or authorization semantics.\n * Use the same value as the Managed Memory Entry `actor_id` when storing memories associated\n * with this actor. Every session must set it. A child session must use the same value as its parent.\n */\n actorId?: string | undefined;\n /**\n * Immediate parent session ID. Set only at creation for child sessions, immutable thereafter, and\n * restricted to the same store.\n */\n parentSessionId?: string | undefined;\n /**\n * Top-level session ID in the spawn tree. This equals `session_id` for a root or fork and is\n * inherited transitively by child sessions.\n */\n rootSessionId?: string | undefined;\n /** Mutable caller-defined string labels. */\n metadata?: Record<string, string> | undefined;\n /** Time when the session was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when session resource fields last changed. */\n updateTime?: Temporal.Instant | undefined;\n /** Time when the session's item history was last mutated. */\n lastActivityTime?: Temporal.Instant | undefined;\n /** Resource name in the form `session-stores/{session_store_id}/sessions/{session_id}`. */\n name?: string | undefined;\n}\n\n/** A transcript entry in a session's history. */\nexport interface SessionItem {\n /** Stable service-generated item ID. */\n itemId?: string | undefined;\n /**\n * Complete SDK-native, JSON-compatible item. The service stores and returns this value without\n * interpreting provider-specific fields such as `type`, `role`, or `content`.\n */\n data?: JsonValue | undefined;\n /**\n * Server-assigned time when the append commits. Values are nondecreasing within a session. Item\n * listing orders by this timestamp; equal timestamps are resolved by committed append order.\n */\n createTime?: Temporal.Instant | undefined;\n}\n\n/** A workspace-scoped session store. */\nexport interface SessionStore {\n /**\n * Workspace-local user ID of the authenticated principal that created the store. This is\n * immutable server-set attribution and does not grant access; authorization is evaluated from\n * the authenticated request context.\n */\n creatorUserId?: string | undefined;\n /** Time when the store was created. */\n createTime?: Temporal.Instant | undefined;\n /** Time when the store was last updated. */\n updateTime?: Temporal.Instant | undefined;\n /** Human-readable description of the session store. */\n description?: string | undefined;\n /** Mutable caller-defined string labels. */\n metadata?: Record<string, string> | undefined;\n /** Resource name in the form `session-stores/{session_store_id}`. */\n name?: string | undefined;\n}\n\n/** Service-managed storage backing a memory store. */\nexport interface StorageBackend {\n /** Type of the storage backend. */\n backendType?: StorageBackendType | undefined;\n /** Backend-specific identifier. For Lakebase, this is the project ID. */\n backendId?: string | undefined;\n}\n\n/** Request to update a memory entry. */\nexport interface UpdateManagedMemoryEntryRequest {\n /** The memory entry to update. */\n managedMemoryEntry?: ManagedMemoryEntry | undefined;\n /** Fields to update. Only `content` and `description` may be updated. */\n updateMask?: FieldMask<ManagedMemoryEntry> | undefined;\n}\n\n/** Request to update the description and metadata on a memory store. */\nexport interface UpdateManagedMemoryStoreRequest {\n /** The memory store to update. `name` is taken from the URL. */\n managedMemoryStore?: ManagedMemoryStore | undefined;\n /** Only `description` and `metadata` may be updated. Selecting `metadata` replaces the entire map. */\n updateMask?: FieldMask<ManagedMemoryStore> | undefined;\n}\n\n/** Request to update a session. */\nexport interface UpdateSessionRequest {\n /** Session to update. */\n session?: Session | undefined;\n /**\n * Fields to update. Only `metadata` is mutable; any other path returns\n * `INVALID_PARAMETER_VALUE`.\n */\n updateMask?: FieldMask<Session> | undefined;\n}\n\n/** Request to update a session store. */\nexport interface UpdateSessionStoreRequest {\n /** Session store to update. */\n sessionStore?: SessionStore | undefined;\n /**\n * Fields to update. Only `description` and `metadata` are mutable; any other\n * path returns `INVALID_PARAMETER_VALUE`.\n */\n updateMask?: FieldMask<SessionStore> | undefined;\n}\n\nexport const unmarshalAppendSessionItemsResponseSchema: z.ZodType<AppendSessionItemsResponse> =\n z\n .object({\n session_items: z\n .array(z.lazy(() => unmarshalSessionItemSchema))\n .optional(),\n })\n .transform(d => ({\n sessionItems: d.session_items,\n }));\n\nexport const unmarshalClearSessionItemsResponseSchema: z.ZodType<ClearSessionItemsResponse> =\n z.object({});\n\nexport const unmarshalExtractMemoriesResponseSchema: z.ZodType<ExtractMemoriesResponse> =\n z\n .object({\n name: z.string().optional(),\n entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n entries: d.entries,\n }));\n\nexport const unmarshalForkSessionResponseSchema: z.ZodType<ForkSessionResponse> =\n z\n .object({\n session: z.lazy(() => unmarshalSessionSchema).optional(),\n })\n .transform(d => ({\n session: d.session,\n }));\n\nexport const unmarshalListManagedMemoryEntriesResponseSchema: z.ZodType<ListManagedMemoryEntriesResponse> =\n z\n .object({\n managed_memory_entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n managedMemoryEntries: d.managed_memory_entries,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListManagedMemoryStoresResponseSchema: z.ZodType<ListManagedMemoryStoresResponse> =\n z\n .object({\n managed_memory_stores: z\n .array(z.lazy(() => unmarshalManagedMemoryStoreSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n managedMemoryStores: d.managed_memory_stores,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionItemsResponseSchema: z.ZodType<ListSessionItemsResponse> =\n z\n .object({\n session_items: z\n .array(z.lazy(() => unmarshalSessionItemSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessionItems: d.session_items,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionStoresResponseSchema: z.ZodType<ListSessionStoresResponse> =\n z\n .object({\n session_stores: z\n .array(z.lazy(() => unmarshalSessionStoreSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessionStores: d.session_stores,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListSessionsResponseSchema: z.ZodType<ListSessionsResponse> =\n z\n .object({\n sessions: z.array(z.lazy(() => unmarshalSessionSchema)).optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n sessions: d.sessions,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalManagedMemoryEntrySchema: z.ZodType<ManagedMemoryEntry> =\n z\n .object({\n name: z.string().optional(),\n actor_id: z.string().optional(),\n session_id: z.string().optional(),\n path: z.string().optional(),\n content: z.string().optional(),\n description: z.string().optional(),\n source_type: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n actorId: d.actor_id,\n sessionId: d.session_id,\n path: d.path,\n content: d.content,\n description: d.description,\n sourceType: d.source_type,\n createTime: d.create_time,\n updateTime: d.update_time,\n }));\n\nexport const unmarshalManagedMemoryEntrySearchResultSchema: z.ZodType<ManagedMemoryEntrySearchResult> =\n z\n .object({\n managed_memory_entry: z\n .lazy(() => unmarshalManagedMemoryEntrySchema)\n .optional(),\n score: z.number().optional(),\n })\n .transform(d => ({\n managedMemoryEntry: d.managed_memory_entry,\n score: d.score,\n }));\n\nexport const unmarshalManagedMemoryStoreSchema: z.ZodType<ManagedMemoryStore> =\n z\n .object({\n name: z.string().optional(),\n display_name: z.string().optional(),\n workspace_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n storage_backend: z.lazy(() => unmarshalStorageBackendSchema).optional(),\n owner_user_id: z.string().optional(),\n creator_user_id: z.string().optional(),\n description: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n displayName: d.display_name,\n workspaceId: d.workspace_id,\n storageBackend: d.storage_backend,\n ownerUserId: d.owner_user_id,\n creatorUserId: d.creator_user_id,\n description: d.description,\n createTime: d.create_time,\n updateTime: d.update_time,\n }));\n\nexport const unmarshalPopSessionItemResponseSchema: z.ZodType<PopSessionItemResponse> =\n z\n .object({\n item: z.lazy(() => unmarshalSessionItemSchema).optional(),\n })\n .transform(d => ({\n item: d.item,\n }));\n\nexport const unmarshalSearchManagedMemoryEntriesResponseSchema: z.ZodType<SearchManagedMemoryEntriesResponse> =\n z\n .object({\n managed_memory_entries: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySchema))\n .optional(),\n next_page_token: z.string().optional(),\n results: z\n .array(z.lazy(() => unmarshalManagedMemoryEntrySearchResultSchema))\n .optional(),\n })\n .transform(d => ({\n managedMemoryEntries: d.managed_memory_entries,\n nextPageToken: d.next_page_token,\n results: d.results,\n }));\n\nexport const unmarshalSessionSchema: z.ZodType<Session> = z\n .object({\n session_id: z.string().optional(),\n actor_id: z.string().optional(),\n parent_session_id: z.string().optional(),\n root_session_id: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n last_activity_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n sessionId: d.session_id,\n actorId: d.actor_id,\n parentSessionId: d.parent_session_id,\n rootSessionId: d.root_session_id,\n metadata: d.metadata,\n createTime: d.create_time,\n updateTime: d.update_time,\n lastActivityTime: d.last_activity_time,\n name: d.name,\n }));\n\nexport const unmarshalSessionItemSchema: z.ZodType<SessionItem> = z\n .object({\n item_id: z.string().optional(),\n data: jsonValueSchema.optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n })\n .transform(d => ({\n itemId: d.item_id,\n data: d.data,\n createTime: d.create_time,\n }));\n\nexport const unmarshalSessionStoreSchema: z.ZodType<SessionStore> = z\n .object({\n creator_user_id: z.string().optional(),\n create_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n update_time: z\n .string()\n .transform(s => Temporal.Instant.from(s))\n .optional(),\n description: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n creatorUserId: d.creator_user_id,\n createTime: d.create_time,\n updateTime: d.update_time,\n description: d.description,\n metadata: d.metadata,\n name: d.name,\n }));\n\nexport const unmarshalStorageBackendSchema: z.ZodType<StorageBackend> = z\n .object({\n backend_type: z.string().optional(),\n backend_id: z.string().optional(),\n })\n .transform(d => ({\n backendType: d.backend_type,\n backendId: d.backend_id,\n }));\n\nexport const marshalAppendSessionItemsRequestSchema: z.ZodType = z\n .object({\n items: z.array(z.lazy(() => marshalSessionItemSchema)).optional(),\n parent: z.string().optional(),\n })\n .transform(d => ({\n items: d.items,\n parent: d.parent,\n }));\n\nexport const marshalClearSessionItemsRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n }));\n\nexport const marshalExtractMemoriesRequestSchema: z.ZodType = z\n .object({\n memoryStore: z.string().optional(),\n sessionStore: z.string().optional(),\n sessionId: z.string().optional(),\n instructions: z.string().optional(),\n dryRun: z.boolean().optional(),\n })\n .transform(d => ({\n memory_store: d.memoryStore,\n session_store: d.sessionStore,\n session_id: d.sessionId,\n instructions: d.instructions,\n dry_run: d.dryRun,\n }));\n\nexport const marshalForkSessionRequestSchema: z.ZodType = z\n .object({\n sourceSessionId: z.string().optional(),\n upToItemId: z.string().optional(),\n sessionId: z.string().optional(),\n actorId: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n parent: z.string().optional(),\n })\n .transform(d => ({\n source_session_id: d.sourceSessionId,\n up_to_item_id: d.upToItemId,\n session_id: d.sessionId,\n actor_id: d.actorId,\n metadata: d.metadata,\n parent: d.parent,\n }));\n\nexport const marshalManagedMemoryEntrySchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n actorId: z.string().optional(),\n sessionId: z.string().optional(),\n path: z.string().optional(),\n content: z.string().optional(),\n description: z.string().optional(),\n sourceType: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n actor_id: d.actorId,\n session_id: d.sessionId,\n path: d.path,\n content: d.content,\n description: d.description,\n source_type: d.sourceType,\n create_time: d.createTime,\n update_time: d.updateTime,\n }));\n\nexport const marshalManagedMemoryStoreSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n displayName: z.string().optional(),\n workspaceId: z.bigint().optional(),\n storageBackend: z.lazy(() => marshalStorageBackendSchema).optional(),\n ownerUserId: z.string().optional(),\n creatorUserId: z.string().optional(),\n description: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n name: d.name,\n display_name: d.displayName,\n workspace_id: d.workspaceId,\n storage_backend: d.storageBackend,\n owner_user_id: d.ownerUserId,\n creator_user_id: d.creatorUserId,\n description: d.description,\n create_time: d.createTime,\n update_time: d.updateTime,\n }));\n\nexport const marshalPopSessionItemRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n }));\n\nexport const marshalSearchManagedMemoryEntriesRequestSchema: z.ZodType = z\n .object({\n parent: z.string().optional(),\n actorId: z.string().optional(),\n query: z.string().optional(),\n limit: z.number().optional(),\n pageSize: z.number().optional(),\n pageToken: z.string().optional(),\n sessionId: z.string().optional(),\n pathPrefix: z.string().optional(),\n view: z.string().optional(),\n })\n .transform(d => ({\n parent: d.parent,\n actor_id: d.actorId,\n query: d.query,\n limit: d.limit,\n page_size: d.pageSize,\n page_token: d.pageToken,\n session_id: d.sessionId,\n path_prefix: d.pathPrefix,\n view: d.view,\n }));\n\nexport const marshalSessionSchema: z.ZodType = z\n .object({\n sessionId: z.string().optional(),\n actorId: z.string().optional(),\n parentSessionId: z.string().optional(),\n rootSessionId: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n lastActivityTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n session_id: d.sessionId,\n actor_id: d.actorId,\n parent_session_id: d.parentSessionId,\n root_session_id: d.rootSessionId,\n metadata: d.metadata,\n create_time: d.createTime,\n update_time: d.updateTime,\n last_activity_time: d.lastActivityTime,\n name: d.name,\n }));\n\nexport const marshalSessionItemSchema: z.ZodType = z\n .object({\n itemId: z.string().optional(),\n data: jsonValueSchema.optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n })\n .transform(d => ({\n item_id: d.itemId,\n data: d.data,\n create_time: d.createTime,\n }));\n\nexport const marshalSessionStoreSchema: z.ZodType = z\n .object({\n creatorUserId: z.string().optional(),\n createTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n updateTime: z\n .any()\n .transform((d: Temporal.Instant) => d.toString())\n .optional(),\n description: z.string().optional(),\n metadata: z.record(z.string(), z.string()).optional(),\n name: z.string().optional(),\n })\n .transform(d => ({\n creator_user_id: d.creatorUserId,\n create_time: d.createTime,\n update_time: d.updateTime,\n description: d.description,\n metadata: d.metadata,\n name: d.name,\n }));\n\nexport const marshalStorageBackendSchema: z.ZodType = z\n .object({\n backendType: z.string().optional(),\n backendId: z.string().optional(),\n })\n .transform(d => ({\n backend_type: d.backendType,\n backend_id: d.backendId,\n }));\n\nconst managedMemoryEntryFieldMaskSchema: FieldMaskSchema = {\n actorId: {wire: 'actor_id'},\n content: {wire: 'content'},\n createTime: {wire: 'create_time'},\n description: {wire: 'description'},\n name: {wire: 'name'},\n path: {wire: 'path'},\n sessionId: {wire: 'session_id'},\n sourceType: {wire: 'source_type'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function managedMemoryEntryFieldMask(\n ...paths: string[]\n): FieldMask<ManagedMemoryEntry> {\n return FieldMask.build<ManagedMemoryEntry>(\n paths,\n managedMemoryEntryFieldMaskSchema\n );\n}\n\nconst managedMemoryStoreFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n creatorUserId: {wire: 'creator_user_id'},\n description: {wire: 'description'},\n displayName: {wire: 'display_name'},\n name: {wire: 'name'},\n ownerUserId: {wire: 'owner_user_id'},\n storageBackend: {\n wire: 'storage_backend',\n children: () => storageBackendFieldMaskSchema,\n },\n updateTime: {wire: 'update_time'},\n workspaceId: {wire: 'workspace_id'},\n};\n\nexport function managedMemoryStoreFieldMask(\n ...paths: string[]\n): FieldMask<ManagedMemoryStore> {\n return FieldMask.build<ManagedMemoryStore>(\n paths,\n managedMemoryStoreFieldMaskSchema\n );\n}\n\nconst sessionFieldMaskSchema: FieldMaskSchema = {\n actorId: {wire: 'actor_id'},\n createTime: {wire: 'create_time'},\n lastActivityTime: {wire: 'last_activity_time'},\n metadata: {wire: 'metadata'},\n name: {wire: 'name'},\n parentSessionId: {wire: 'parent_session_id'},\n rootSessionId: {wire: 'root_session_id'},\n sessionId: {wire: 'session_id'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function sessionFieldMask(...paths: string[]): FieldMask<Session> {\n return FieldMask.build<Session>(paths, sessionFieldMaskSchema);\n}\n\nconst sessionStoreFieldMaskSchema: FieldMaskSchema = {\n createTime: {wire: 'create_time'},\n creatorUserId: {wire: 'creator_user_id'},\n description: {wire: 'description'},\n metadata: {wire: 'metadata'},\n name: {wire: 'name'},\n updateTime: {wire: 'update_time'},\n};\n\nexport function sessionStoreFieldMask(\n ...paths: string[]\n): FieldMask<SessionStore> {\n return FieldMask.build<SessionStore>(paths, sessionStoreFieldMaskSchema);\n}\n\nconst storageBackendFieldMaskSchema: FieldMaskSchema = {\n backendId: {wire: 'backend_id'},\n backendType: {wire: 'backend_type'},\n};\n"],"mappings":";;;;;AAOA,MAAM,kBAAwC,EAAE,WAC9C,EAAE,MAAM;CACN,EAAE,MAAM;CACR,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB;CACrC,EAAE,MAAM,gBAAgB;CACzB,CAAC,CACH;;AAID,MAAa,+BAA+B;CAE1C,wCACE;CAEF,0CACE;CACH;;AAOD,MAAa,yBAAyB;CAEpC,uCACE;CAEF,iCAAiC;CAEjC,g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QAAO;CACpB,iBAAiB,EAAC,MAAM,qBAAoB;CAC5C,eAAe,EAAC,MAAM,mBAAkB;CACxC,WAAW,EAAC,MAAM,cAAa;CAC/B,YAAY,EAAC,MAAM,eAAc;CAClC;AAED,SAAgB,iBAAiB,GAAG,OAAqC;AACvE,QAAO,UAAU,MAAe,OAAO,uBAAuB;;AAGhE,MAAM,8BAA+C;CACnD,YAAY,EAAC,MAAM,eAAc;CACjC,eAAe,EAAC,MAAM,mBAAkB;CACxC,aAAa,EAAC,MAAM,eAAc;CAClC,UAAU,EAAC,MAAM,YAAW;CAC5B,MAAM,EAAC,MAAM,QAAO;CACpB,YAAY,EAAC,MAAM,eAAc;CAClC;AAED,SAAgB,sBACd,GAAG,OACsB;AACzB,QAAO,UAAU,MAAoB,OAAO,4BAA4B;;AAG1E,MAAM,gCAAiD;CACrD,WAAW,EAAC,MAAM,cAAa;CAC/B,aAAa,EAAC,MAAM,gBAAe;CACpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-agentkit",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/agentkit"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.51.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.51.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.51.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.53.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.51.2 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.51.2 <1.0.0",
39
39
  "@js-temporal/polyfill": "^0.5.0",
40
40
  "json-bigint": "^1.0.0",
41
41
  "zod": "^4.3.6"