@osdk/foundry.aipagents 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/build/browser/_components.d.ts +103 -0
  2. package/build/browser/_components.d.ts.map +1 -0
  3. package/build/browser/_components.js +17 -0
  4. package/build/browser/_components.js.map +1 -0
  5. package/build/browser/_errors.d.ts +60 -0
  6. package/build/browser/_errors.d.ts.map +1 -0
  7. package/build/browser/_errors.js +17 -0
  8. package/build/browser/_errors.js.map +1 -0
  9. package/build/browser/index.d.ts +5 -0
  10. package/build/browser/index.d.ts.map +1 -0
  11. package/build/browser/index.js +18 -0
  12. package/build/browser/index.js.map +1 -0
  13. package/build/browser/public/Agent.d.ts +19 -0
  14. package/build/browser/public/Agent.d.ts.map +1 -0
  15. package/build/browser/public/Agent.js +30 -0
  16. package/build/browser/public/Agent.js.map +1 -0
  17. package/build/browser/public/AgentVersion.d.ts +36 -0
  18. package/build/browser/public/AgentVersion.d.ts.map +1 -0
  19. package/build/browser/public/AgentVersion.js +43 -0
  20. package/build/browser/public/AgentVersion.js.map +1 -0
  21. package/build/esm/_components.d.ts +103 -0
  22. package/build/esm/_components.d.ts.map +1 -0
  23. package/build/esm/_components.js +17 -0
  24. package/build/esm/_components.js.map +1 -0
  25. package/build/esm/_errors.d.ts +60 -0
  26. package/build/esm/_errors.d.ts.map +1 -0
  27. package/build/esm/_errors.js +17 -0
  28. package/build/esm/_errors.js.map +1 -0
  29. package/build/esm/index.d.ts +5 -0
  30. package/build/esm/index.d.ts.map +1 -0
  31. package/build/esm/index.js +18 -0
  32. package/build/esm/index.js.map +1 -0
  33. package/build/esm/public/Agent.d.ts +19 -0
  34. package/build/esm/public/Agent.d.ts.map +1 -0
  35. package/build/esm/public/Agent.js +30 -0
  36. package/build/esm/public/Agent.js.map +1 -0
  37. package/build/esm/public/AgentVersion.d.ts +36 -0
  38. package/build/esm/public/AgentVersion.d.ts.map +1 -0
  39. package/build/esm/public/AgentVersion.js +43 -0
  40. package/build/esm/public/AgentVersion.js.map +1 -0
  41. package/package.json +62 -0
@@ -0,0 +1,103 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ export type LooselyBrandedString<T extends string> = string & {
3
+ __LOOSE_BRAND?: T;
4
+ };
5
+ /**
6
+ * Log Safety: UNSAFE
7
+ */
8
+ export interface Agent {
9
+ rid: AgentRid;
10
+ version: AgentVersionString;
11
+ metadata: AgentMetadata;
12
+ parameters: Record<ParameterId, Parameter>;
13
+ }
14
+ /**
15
+ * Metadata for an Agent.
16
+ *
17
+ * Log Safety: UNSAFE
18
+ */
19
+ export interface AgentMetadata {
20
+ displayName: string;
21
+ description?: string;
22
+ inputPlaceholder?: string;
23
+ suggestedPrompts: Array<string>;
24
+ }
25
+ /**
26
+ * A RID identifying an AIP Agent created in AIP Agent Studio.
27
+ *
28
+ * Log Safety: SAFE
29
+ */
30
+ export type AgentRid = LooselyBrandedString<"AgentRid">;
31
+ /**
32
+ * Log Safety: SAFE
33
+ */
34
+ export interface AgentVersion {
35
+ string: AgentVersionString;
36
+ version: AgentVersionDetails;
37
+ }
38
+ /**
39
+ * Semantic version details for an Agent.
40
+ *
41
+ * Log Safety: SAFE
42
+ */
43
+ export interface AgentVersionDetails {
44
+ major: number;
45
+ minor: number;
46
+ }
47
+ /**
48
+ * The semantic version of the Agent, formatted as ".".
49
+ *
50
+ * Log Safety: SAFE
51
+ */
52
+ export type AgentVersionString = LooselyBrandedString<"AgentVersionString">;
53
+ /**
54
+ * Log Safety: UNSAFE
55
+ */
56
+ export interface ListAgentVersionsResponse {
57
+ data: Array<AgentVersion>;
58
+ nextPageToken?: _Core.PageToken;
59
+ }
60
+ /**
61
+ * Log Safety: UNSAFE
62
+ */
63
+ export interface ObjectSetParameter {
64
+ expectedObjectTypes: Array<_Core.ObjectTypeId>;
65
+ }
66
+ /**
67
+ * A parameter configured for an Agent in AIP Agent Studio.
68
+ *
69
+ * Log Safety: UNSAFE
70
+ */
71
+ export interface Parameter {
72
+ parameterType: ParameterType;
73
+ access: ParameterAccessMode;
74
+ description?: string;
75
+ }
76
+ /**
77
+ * READ_ONLY: Allows the parameter to be read by the Agent, but the Agent cannot generate updates for it.
78
+ READ_WRITE: Allows the parameter to be read and updated by the Agent.
79
+ *
80
+ * Log Safety: SAFE
81
+ */
82
+ export type ParameterAccessMode = "READ_ONLY" | "READ_WRITE";
83
+ /**
84
+ * The unique identifier for a parameter, as configured in AIP Agent Studio.
85
+ *
86
+ * Log Safety: UNSAFE
87
+ */
88
+ export type ParameterId = LooselyBrandedString<"ParameterId">;
89
+ /**
90
+ * Log Safety: UNSAFE
91
+ */
92
+ export type ParameterType = ({
93
+ type: "string";
94
+ } & StringParameter) | ({
95
+ type: "objectSet";
96
+ } & ObjectSetParameter);
97
+ /**
98
+ * Log Safety: UNSAFE
99
+ */
100
+ export interface StringParameter {
101
+ defaultValue?: string;
102
+ }
103
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC1B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAChD;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;KAKK;AACL,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,YAAY,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,eAAe,CAAC,GACtC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,kBAAkB,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.js","names":[],"sources":["_components.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * The given Agent could not be found.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface AgentNotFound {
10
+ errorCode: "NOT_FOUND";
11
+ errorName: "AgentNotFound";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ agentRid: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * The given AgentVersion could not be found.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface AgentVersionNotFound {
23
+ errorCode: "NOT_FOUND";
24
+ errorName: "AgentVersionNotFound";
25
+ errorInstanceId: string;
26
+ parameters: {
27
+ agentRid: unknown;
28
+ agentVersionString: unknown;
29
+ };
30
+ }
31
+ /**
32
+ * The provided version string is not a valid format for an Agent version.
33
+
34
+ *
35
+ * Log Safety: SAFE
36
+ */
37
+ export interface InvalidAgentVersion {
38
+ errorCode: "INVALID_ARGUMENT";
39
+ errorName: "InvalidAgentVersion";
40
+ errorInstanceId: string;
41
+ parameters: {
42
+ agentRid: unknown;
43
+ version: unknown;
44
+ };
45
+ }
46
+ /**
47
+ * Failed to retrieve the latest published version of the Agent because the Agent has no published versions.
48
+
49
+ *
50
+ * Log Safety: SAFE
51
+ */
52
+ export interface NoPublishedAgentVersion {
53
+ errorCode: "INVALID_ARGUMENT";
54
+ errorName: "NoPublishedAgentVersion";
55
+ errorInstanceId: string;
56
+ parameters: {
57
+ agentRid: unknown;
58
+ };
59
+ }
60
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,qBAAqB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,yBAAyB,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.js","names":[],"sources":["_errors.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ export type { Agent, AgentMetadata, AgentRid, AgentVersion, AgentVersionDetails, AgentVersionString, ListAgentVersionsResponse, ObjectSetParameter, Parameter, ParameterAccessMode, ParameterId, ParameterType, StringParameter, } from "./_components.js";
2
+ export type { AgentNotFound, AgentVersionNotFound, InvalidAgentVersion, NoPublishedAgentVersion, } from "./_errors.js";
3
+ export * as Agents from "./public/Agent.js";
4
+ export * as AgentVersions from "./public/AgentVersion.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,KAAK,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * as Agents from "./public/Agent.js";
17
+ export * as AgentVersions from "./public/AgentVersion.js";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Agents","AgentVersions"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * as Agents from \"./public/Agent.js\";\nexport * as AgentVersions from \"./public/AgentVersion.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type * as _AipAgents from "../_components.js";
4
+ /**
5
+ * Get details for an AIP Agent.
6
+ *
7
+ * @alpha
8
+ *
9
+ * Required Scopes: [api:aip-agents-read]
10
+ * URL: /v2/aipAgents/agents/{agentRid}
11
+ */
12
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
13
+ agentRid: _AipAgents.AgentRid,
14
+ $queryParams?: {
15
+ version?: _AipAgents.AgentVersionString | undefined;
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_AipAgents.Agent>;
19
+ //# sourceMappingURL=Agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../src/public/Agent.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAcrD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,CAAC;QACpD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _get = [0, "/v2/aipAgents/agents/{0}", 2];
19
+ /**
20
+ * Get details for an AIP Agent.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:aip-agents-read]
25
+ * URL: /v2/aipAgents/agents/{agentRid}
26
+ */
27
+ export function get($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _get, ...args);
29
+ }
30
+ //# sourceMappingURL=Agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Agent.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["Agent.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/aipAgents/agents/{0}\", 2];\n/**\n * Get details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type * as _AipAgents from "../_components.js";
4
+ /**
5
+ * List all versions for an AIP Agent.
6
+ * Versions are returned in descending order, by most recent versions first.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:aip-agents-read]
11
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions
12
+ */
13
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
14
+ agentRid: _AipAgents.AgentRid,
15
+ $queryParams?: {
16
+ pageSize?: _Core.PageSize | undefined;
17
+ pageToken?: _Core.PageToken | undefined;
18
+ preview?: _Core.PreviewMode | undefined;
19
+ }
20
+ ]): Promise<_AipAgents.ListAgentVersionsResponse>;
21
+ /**
22
+ * Get version details for an AIP Agent.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:aip-agents-read]
27
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}
28
+ */
29
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
30
+ agentRid: _AipAgents.AgentRid,
31
+ agentVersionString: _AipAgents.AgentVersionString,
32
+ $queryParams?: {
33
+ preview?: _Core.PreviewMode | undefined;
34
+ }
35
+ ]): Promise<_AipAgents.AgentVersion>;
36
+ //# sourceMappingURL=AgentVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentVersion.d.ts","sourceRoot":"","sources":["../../../src/public/AgentVersion.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAerD;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAE/C;AAUD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAC7B,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;IAEjD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAElC"}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _list = [0, "/v2/aipAgents/agents/{0}/agentVersions", 2];
19
+ /**
20
+ * List all versions for an AIP Agent.
21
+ * Versions are returned in descending order, by most recent versions first.
22
+ *
23
+ * @alpha
24
+ *
25
+ * Required Scopes: [api:aip-agents-read]
26
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions
27
+ */
28
+ export function list($ctx, ...args) {
29
+ return $foundryPlatformFetch($ctx, _list, ...args);
30
+ }
31
+ const _get = [0, "/v2/aipAgents/agents/{0}/agentVersions/{1}", 2];
32
+ /**
33
+ * Get version details for an AIP Agent.
34
+ *
35
+ * @alpha
36
+ *
37
+ * Required Scopes: [api:aip-agents-read]
38
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}
39
+ */
40
+ export function get($ctx, ...args) {
41
+ return $foundryPlatformFetch($ctx, _get, ...args);
42
+ }
43
+ //# sourceMappingURL=AgentVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentVersion.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["AgentVersion.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/aipAgents/agents/{0}/agentVersions\", 2];\n/**\n * List all versions for an AIP Agent.\n * Versions are returned in descending order, by most recent versions first.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}/agentVersions\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/aipAgents/agents/{0}/agentVersions/{1}\", 2];\n/**\n * Get version details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,4CAA4C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD","ignoreList":[]}
@@ -0,0 +1,103 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ export type LooselyBrandedString<T extends string> = string & {
3
+ __LOOSE_BRAND?: T;
4
+ };
5
+ /**
6
+ * Log Safety: UNSAFE
7
+ */
8
+ export interface Agent {
9
+ rid: AgentRid;
10
+ version: AgentVersionString;
11
+ metadata: AgentMetadata;
12
+ parameters: Record<ParameterId, Parameter>;
13
+ }
14
+ /**
15
+ * Metadata for an Agent.
16
+ *
17
+ * Log Safety: UNSAFE
18
+ */
19
+ export interface AgentMetadata {
20
+ displayName: string;
21
+ description?: string;
22
+ inputPlaceholder?: string;
23
+ suggestedPrompts: Array<string>;
24
+ }
25
+ /**
26
+ * A RID identifying an AIP Agent created in AIP Agent Studio.
27
+ *
28
+ * Log Safety: SAFE
29
+ */
30
+ export type AgentRid = LooselyBrandedString<"AgentRid">;
31
+ /**
32
+ * Log Safety: SAFE
33
+ */
34
+ export interface AgentVersion {
35
+ string: AgentVersionString;
36
+ version: AgentVersionDetails;
37
+ }
38
+ /**
39
+ * Semantic version details for an Agent.
40
+ *
41
+ * Log Safety: SAFE
42
+ */
43
+ export interface AgentVersionDetails {
44
+ major: number;
45
+ minor: number;
46
+ }
47
+ /**
48
+ * The semantic version of the Agent, formatted as ".".
49
+ *
50
+ * Log Safety: SAFE
51
+ */
52
+ export type AgentVersionString = LooselyBrandedString<"AgentVersionString">;
53
+ /**
54
+ * Log Safety: UNSAFE
55
+ */
56
+ export interface ListAgentVersionsResponse {
57
+ data: Array<AgentVersion>;
58
+ nextPageToken?: _Core.PageToken;
59
+ }
60
+ /**
61
+ * Log Safety: UNSAFE
62
+ */
63
+ export interface ObjectSetParameter {
64
+ expectedObjectTypes: Array<_Core.ObjectTypeId>;
65
+ }
66
+ /**
67
+ * A parameter configured for an Agent in AIP Agent Studio.
68
+ *
69
+ * Log Safety: UNSAFE
70
+ */
71
+ export interface Parameter {
72
+ parameterType: ParameterType;
73
+ access: ParameterAccessMode;
74
+ description?: string;
75
+ }
76
+ /**
77
+ * READ_ONLY: Allows the parameter to be read by the Agent, but the Agent cannot generate updates for it.
78
+ READ_WRITE: Allows the parameter to be read and updated by the Agent.
79
+ *
80
+ * Log Safety: SAFE
81
+ */
82
+ export type ParameterAccessMode = "READ_ONLY" | "READ_WRITE";
83
+ /**
84
+ * The unique identifier for a parameter, as configured in AIP Agent Studio.
85
+ *
86
+ * Log Safety: UNSAFE
87
+ */
88
+ export type ParameterId = LooselyBrandedString<"ParameterId">;
89
+ /**
90
+ * Log Safety: UNSAFE
91
+ */
92
+ export type ParameterType = ({
93
+ type: "string";
94
+ } & StringParameter) | ({
95
+ type: "objectSet";
96
+ } & ObjectSetParameter);
97
+ /**
98
+ * Log Safety: UNSAFE
99
+ */
100
+ export interface StringParameter {
101
+ defaultValue?: string;
102
+ }
103
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE,QAAQ,CAAC;IACd,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;CAC5C;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC1B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;CAChD;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,mBAAmB,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;KAKK;AACL,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,YAAY,CAAC;AAE7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,eAAe,CAAC,GACtC,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,kBAAkB,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.js","names":[],"sources":["_components.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * The given Agent could not be found.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface AgentNotFound {
10
+ errorCode: "NOT_FOUND";
11
+ errorName: "AgentNotFound";
12
+ errorInstanceId: string;
13
+ parameters: {
14
+ agentRid: unknown;
15
+ };
16
+ }
17
+ /**
18
+ * The given AgentVersion could not be found.
19
+ *
20
+ * Log Safety: SAFE
21
+ */
22
+ export interface AgentVersionNotFound {
23
+ errorCode: "NOT_FOUND";
24
+ errorName: "AgentVersionNotFound";
25
+ errorInstanceId: string;
26
+ parameters: {
27
+ agentRid: unknown;
28
+ agentVersionString: unknown;
29
+ };
30
+ }
31
+ /**
32
+ * The provided version string is not a valid format for an Agent version.
33
+
34
+ *
35
+ * Log Safety: SAFE
36
+ */
37
+ export interface InvalidAgentVersion {
38
+ errorCode: "INVALID_ARGUMENT";
39
+ errorName: "InvalidAgentVersion";
40
+ errorInstanceId: string;
41
+ parameters: {
42
+ agentRid: unknown;
43
+ version: unknown;
44
+ };
45
+ }
46
+ /**
47
+ * Failed to retrieve the latest published version of the Agent because the Agent has no published versions.
48
+
49
+ *
50
+ * Log Safety: SAFE
51
+ */
52
+ export interface NoPublishedAgentVersion {
53
+ errorCode: "INVALID_ARGUMENT";
54
+ errorName: "NoPublishedAgentVersion";
55
+ errorInstanceId: string;
56
+ parameters: {
57
+ agentRid: unknown;
58
+ };
59
+ }
60
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,sBAAsB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,qBAAqB,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH;AAED;;;;;KAKK;AACL,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,yBAAyB,CAAC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.js","names":[],"sources":["_errors.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ export type { Agent, AgentMetadata, AgentRid, AgentVersion, AgentVersionDetails, AgentVersionString, ListAgentVersionsResponse, ObjectSetParameter, Parameter, ParameterAccessMode, ParameterId, ParameterType, StringParameter, } from "./_components.js";
2
+ export type { AgentNotFound, AgentVersionNotFound, InvalidAgentVersion, NoPublishedAgentVersion, } from "./_errors.js";
3
+ export * as Agents from "./public/Agent.js";
4
+ export * as AgentVersions from "./public/AgentVersion.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,KAAK,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,aAAa,EACb,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * as Agents from "./public/Agent.js";
17
+ export * as AgentVersions from "./public/AgentVersion.js";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Agents","AgentVersions"],"sources":["index.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport * as Agents from \"./public/Agent.js\";\nexport * as AgentVersions from \"./public/AgentVersion.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,MAAM,MAAM,mBAAmB;AAC3C,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type * as _AipAgents from "../_components.js";
4
+ /**
5
+ * Get details for an AIP Agent.
6
+ *
7
+ * @alpha
8
+ *
9
+ * Required Scopes: [api:aip-agents-read]
10
+ * URL: /v2/aipAgents/agents/{agentRid}
11
+ */
12
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
13
+ agentRid: _AipAgents.AgentRid,
14
+ $queryParams?: {
15
+ version?: _AipAgents.AgentVersionString | undefined;
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_AipAgents.Agent>;
19
+ //# sourceMappingURL=Agent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../src/public/Agent.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAcrD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,CAAC;QACpD,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAE3B"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _get = [0, "/v2/aipAgents/agents/{0}", 2];
19
+ /**
20
+ * Get details for an AIP Agent.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:aip-agents-read]
25
+ * URL: /v2/aipAgents/agents/{agentRid}
26
+ */
27
+ export function get($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _get, ...args);
29
+ }
30
+ //# sourceMappingURL=Agent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Agent.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_get","get","$ctx","args"],"sources":["Agent.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _get = [0, \"/v2/aipAgents/agents/{0}\", 2];\n/**\n * Get details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,0BAA0B,EAAE,CAAC,CAAC;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,IAAI,EAAE,GAAGG,IAAI,CAAC;AACrD","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ import type * as _AipAgents from "../_components.js";
4
+ /**
5
+ * List all versions for an AIP Agent.
6
+ * Versions are returned in descending order, by most recent versions first.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:aip-agents-read]
11
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions
12
+ */
13
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
14
+ agentRid: _AipAgents.AgentRid,
15
+ $queryParams?: {
16
+ pageSize?: _Core.PageSize | undefined;
17
+ pageToken?: _Core.PageToken | undefined;
18
+ preview?: _Core.PreviewMode | undefined;
19
+ }
20
+ ]): Promise<_AipAgents.ListAgentVersionsResponse>;
21
+ /**
22
+ * Get version details for an AIP Agent.
23
+ *
24
+ * @alpha
25
+ *
26
+ * Required Scopes: [api:aip-agents-read]
27
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}
28
+ */
29
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
30
+ agentRid: _AipAgents.AgentRid,
31
+ agentVersionString: _AipAgents.AgentVersionString,
32
+ $queryParams?: {
33
+ preview?: _Core.PreviewMode | undefined;
34
+ }
35
+ ]): Promise<_AipAgents.AgentVersion>;
36
+ //# sourceMappingURL=AgentVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentVersion.d.ts","sourceRoot":"","sources":["../../../src/public/AgentVersion.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAerD;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAE7B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAE/C;AAUD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,UAAU,CAAC,QAAQ;IAC7B,kBAAkB,EAAE,UAAU,CAAC,kBAAkB;IAEjD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAElC"}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _list = [0, "/v2/aipAgents/agents/{0}/agentVersions", 2];
19
+ /**
20
+ * List all versions for an AIP Agent.
21
+ * Versions are returned in descending order, by most recent versions first.
22
+ *
23
+ * @alpha
24
+ *
25
+ * Required Scopes: [api:aip-agents-read]
26
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions
27
+ */
28
+ export function list($ctx, ...args) {
29
+ return $foundryPlatformFetch($ctx, _list, ...args);
30
+ }
31
+ const _get = [0, "/v2/aipAgents/agents/{0}/agentVersions/{1}", 2];
32
+ /**
33
+ * Get version details for an AIP Agent.
34
+ *
35
+ * @alpha
36
+ *
37
+ * Required Scopes: [api:aip-agents-read]
38
+ * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}
39
+ */
40
+ export function get($ctx, ...args) {
41
+ return $foundryPlatformFetch($ctx, _get, ...args);
42
+ }
43
+ //# sourceMappingURL=AgentVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentVersion.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["AgentVersion.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _list = [0, \"/v2/aipAgents/agents/{0}/agentVersions\", 2];\n/**\n * List all versions for an AIP Agent.\n * Versions are returned in descending order, by most recent versions first.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}/agentVersions\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/aipAgents/agents/{0}/agentVersions/{1}\", 2];\n/**\n * Get version details for an AIP Agent.\n *\n * @alpha\n *\n * Required Scopes: [api:aip-agents-read]\n * URL: /v2/aipAgents/agents/{agentRid}/agentVersions/{agentVersionString}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,KAAK,GAAG,CAAC,CAAC,EAAE,wCAAwC,EAAE,CAAC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,4CAA4C,EAAE,CAAC,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@osdk/foundry.aipagents",
3
+ "version": "0.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/palantir/foundry-platform-typescript.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./build/browser/index.js",
12
+ "import": "./build/esm/index.js"
13
+ },
14
+ "./*": {
15
+ "browser": "./build/browser/public/*.js",
16
+ "import": "./build/esm/public/*.js"
17
+ }
18
+ },
19
+ "dependencies": {
20
+ "@osdk/shared.client": "^1.0.1",
21
+ "@osdk/shared.net.platformapi": "~0.3.0",
22
+ "@osdk/foundry.core": "2.1.0"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.5.4",
26
+ "@osdk/monorepo.api-extractor": "~0.0.0",
27
+ "@osdk/monorepo.tsup": "~0.0.0",
28
+ "@osdk/monorepo.tsconfig": "~0.0.0"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "files": [
34
+ "build/cjs",
35
+ "build/esm",
36
+ "build/browser",
37
+ "CHANGELOG.md",
38
+ "package.json",
39
+ "templates",
40
+ "*.d.ts"
41
+ ],
42
+ "module": "./build/esm/index.js",
43
+ "types": "./build/esm/index.d.ts",
44
+ "sls": {
45
+ "dependencies": {
46
+ "com.palantir.foundry.api:api-gateway": {
47
+ "minVersion": "1.950.0",
48
+ "maxVersion": "1.x.x",
49
+ "optional": true
50
+ }
51
+ }
52
+ },
53
+ "type": "module",
54
+ "scripts": {
55
+ "check-attw": "monorepo.tool.attw esm",
56
+ "check-spelling": "cspell --quiet .",
57
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
58
+ "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
59
+ "lint": "eslint . && dprint check --config $(find-up dprint.json)",
60
+ "transpile": "monorepo.tool.transpile"
61
+ }
62
+ }