@atlanai/sdk 0.2.2 → 0.2.4

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 (148) hide show
  1. package/README.md +6 -2
  2. package/dist/client.d.ts +20 -3
  3. package/dist/client.js +130 -9
  4. package/dist/errors.d.ts +10 -0
  5. package/dist/errors.js +34 -1
  6. package/dist/evals.d.ts +135 -8
  7. package/dist/evals.js +1004 -73
  8. package/dist/index.d.ts +3 -2
  9. package/dist/index.js +7 -1
  10. package/dist/manifest.json +84 -11
  11. package/dist/raw/agent/apis/AgentsApi.d.ts +29 -0
  12. package/dist/raw/agent/apis/AgentsApi.js +62 -1
  13. package/dist/raw/agent/apis/SessionsApi.d.ts +2 -2
  14. package/dist/raw/agent/apis/SessionsApi.js +2 -2
  15. package/dist/raw/agent/models/AgentAgentArtifactView.d.ts +48 -0
  16. package/dist/raw/agent/models/AgentAgentArtifactView.js +13 -0
  17. package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.d.ts +12 -0
  18. package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.js +2 -0
  19. package/dist/raw/agent/models/AgentAgentEnvironmentMeta.d.ts +12 -0
  20. package/dist/raw/agent/models/AgentAgentEnvironmentMeta.js +2 -0
  21. package/dist/raw/agent/models/AgentAgentMeta.d.ts +48 -0
  22. package/dist/raw/agent/models/AgentAgentMeta.js +13 -0
  23. package/dist/raw/agent/models/AgentAgentProviderArtifactView.d.ts +55 -2
  24. package/dist/raw/agent/models/AgentAgentProviderArtifactView.js +8 -0
  25. package/dist/raw/agent/models/AgentAgentProviderCreate.d.ts +24 -3
  26. package/dist/raw/agent/models/AgentAgentProviderCreate.js +4 -0
  27. package/dist/raw/agent/models/AgentAgentProviderMeta.d.ts +56 -13
  28. package/dist/raw/agent/models/AgentAgentProviderMeta.js +8 -0
  29. package/dist/raw/agent/models/AgentAgentProviderPatch.d.ts +13 -0
  30. package/dist/raw/agent/models/AgentAgentProviderPatch.js +4 -0
  31. package/dist/raw/agent/models/AgentAgentProviderType.d.ts +19 -9
  32. package/dist/raw/agent/models/AgentAgentProviderType.js +18 -8
  33. package/dist/raw/agent/models/AgentListAgentFrameworks401Response.d.ts +1 -0
  34. package/dist/raw/agent/models/AgentListAgentFrameworks401Response.js +1 -0
  35. package/dist/raw/agent/models/AgentPageSessionEventView.d.ts +3 -3
  36. package/dist/raw/agent/models/AgentPageSessionEventView.js +3 -3
  37. package/dist/raw/agent/models/AgentRemoteSessionEvent.d.ts +38 -0
  38. package/dist/raw/agent/models/AgentRemoteSessionEvent.js +58 -0
  39. package/dist/raw/agent/models/AgentSessionArtifactView.d.ts +25 -0
  40. package/dist/raw/agent/models/AgentSessionArtifactView.js +2 -0
  41. package/dist/raw/agent/models/AgentSessionEventView.d.ts +30 -0
  42. package/dist/raw/agent/models/AgentSessionEventView.js +57 -0
  43. package/dist/raw/agent/models/AgentSessionMeta.d.ts +25 -0
  44. package/dist/raw/agent/models/AgentSessionMeta.js +2 -0
  45. package/dist/raw/agent/models/AgentSessionStreamFrame.d.ts +8 -6
  46. package/dist/raw/agent/models/AgentSessionStreamFrame.js +7 -0
  47. package/dist/raw/agent/models/AgentSyncState.d.ts +27 -0
  48. package/dist/raw/agent/models/AgentSyncState.js +55 -0
  49. package/dist/raw/agent/models/TriggerBody.d.ts +52 -0
  50. package/dist/raw/agent/models/TriggerBody.js +58 -0
  51. package/dist/raw/agent/models/index.d.ts +4 -1
  52. package/dist/raw/agent/models/index.js +4 -1
  53. package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +1 -0
  54. package/dist/raw/eval/models/EvalListDatasets401Response.js +1 -0
  55. package/dist/raw/file/models/FileList401Response.d.ts +1 -0
  56. package/dist/raw/file/models/FileList401Response.js +1 -0
  57. package/dist/raw/mcp/apis/ServersApi.d.ts +2 -2
  58. package/dist/raw/mcp/apis/ServersApi.js +2 -2
  59. package/dist/raw/mcp/models/McpConnectionState.d.ts +2 -1
  60. package/dist/raw/mcp/models/McpConnectionState.js +2 -1
  61. package/dist/raw/mcp/models/McpListServers401Response.d.ts +1 -0
  62. package/dist/raw/mcp/models/McpListServers401Response.js +1 -0
  63. package/dist/raw/mcp/models/McpServerTestResponse.d.ts +13 -2
  64. package/dist/raw/model/models/ModelListProviders401Response.d.ts +1 -0
  65. package/dist/raw/model/models/ModelListProviders401Response.js +1 -0
  66. package/dist/raw/registry/apis/WorkspacesApi.d.ts +28 -0
  67. package/dist/raw/registry/apis/WorkspacesApi.js +61 -1
  68. package/dist/raw/registry/models/CreateWorkspaceBody.d.ts +9 -0
  69. package/dist/raw/registry/models/CreateWorkspaceBody.js +2 -0
  70. package/dist/raw/registry/models/RegistryAggregate401Response.d.ts +1 -0
  71. package/dist/raw/registry/models/RegistryAggregate401Response.js +1 -0
  72. package/dist/raw/registry/models/RegistryWorkspaceView.d.ts +9 -0
  73. package/dist/raw/registry/models/RegistryWorkspaceView.js +4 -0
  74. package/dist/raw/registry/models/SearchRequest.d.ts +1 -1
  75. package/dist/raw/registry/models/SetVisibilityBody.d.ts +33 -0
  76. package/dist/raw/registry/models/SetVisibilityBody.js +50 -0
  77. package/dist/raw/registry/models/index.d.ts +1 -0
  78. package/dist/raw/registry/models/index.js +1 -0
  79. package/dist/raw/secret/apis/OauthApi.d.ts +143 -0
  80. package/dist/raw/secret/apis/OauthApi.js +335 -0
  81. package/dist/raw/secret/apis/index.d.ts +1 -0
  82. package/dist/raw/secret/apis/index.js +19 -0
  83. package/dist/raw/secret/index.d.ts +1 -0
  84. package/dist/raw/secret/index.js +1 -0
  85. package/dist/raw/secret/models/GatewayOauthCompleteRequest.d.ts +32 -0
  86. package/dist/raw/secret/models/GatewayOauthCompleteRequest.js +50 -0
  87. package/dist/raw/secret/models/GatewayOauthCompletion.d.ts +46 -0
  88. package/dist/raw/secret/models/GatewayOauthCompletion.js +55 -0
  89. package/dist/raw/secret/models/GatewayOauthConnection.d.ts +83 -0
  90. package/dist/raw/secret/models/GatewayOauthConnection.js +83 -0
  91. package/dist/raw/secret/models/GatewayOauthOwner.d.ts +31 -0
  92. package/dist/raw/secret/models/GatewayOauthOwner.js +59 -0
  93. package/dist/raw/secret/models/GatewayOauthProviderView.d.ts +69 -0
  94. package/dist/raw/secret/models/GatewayOauthProviderView.js +69 -0
  95. package/dist/raw/secret/models/GatewayOauthStartRequest.d.ts +52 -0
  96. package/dist/raw/secret/models/GatewayOauthStartRequest.js +59 -0
  97. package/dist/raw/secret/models/GatewayOauthStarted.d.ts +39 -0
  98. package/dist/raw/secret/models/GatewayOauthStarted.js +54 -0
  99. package/dist/raw/secret/models/SecretCompleteOauth400Response.d.ts +70 -0
  100. package/dist/raw/secret/models/SecretCompleteOauth400Response.js +80 -0
  101. package/dist/raw/secret/models/SecretCompleteOauth413Response.d.ts +64 -0
  102. package/dist/raw/secret/models/SecretCompleteOauth413Response.js +74 -0
  103. package/dist/raw/secret/models/SecretCompleteOauth415Response.d.ts +64 -0
  104. package/dist/raw/secret/models/SecretCompleteOauth415Response.js +74 -0
  105. package/dist/raw/secret/models/SecretCompleteOauth422Response.d.ts +63 -0
  106. package/dist/raw/secret/models/SecretCompleteOauth422Response.js +75 -0
  107. package/dist/raw/secret/models/SecretDisconnectOauth400Response.d.ts +67 -0
  108. package/dist/raw/secret/models/SecretDisconnectOauth400Response.js +77 -0
  109. package/dist/raw/secret/models/SecretOauthCallback400Response.d.ts +68 -0
  110. package/dist/raw/secret/models/SecretOauthCallback400Response.js +78 -0
  111. package/dist/raw/secret/models/SecretOauthCallback401Response.d.ts +80 -0
  112. package/dist/raw/secret/models/SecretOauthCallback401Response.js +90 -0
  113. package/dist/raw/secret/models/SecretOauthCallback403Response.d.ts +66 -0
  114. package/dist/raw/secret/models/SecretOauthCallback403Response.js +76 -0
  115. package/dist/raw/secret/models/SecretOauthCallback404Response.d.ts +65 -0
  116. package/dist/raw/secret/models/SecretOauthCallback404Response.js +75 -0
  117. package/dist/raw/secret/models/SecretOauthCallback500Response.d.ts +64 -0
  118. package/dist/raw/secret/models/SecretOauthCallback500Response.js +74 -0
  119. package/dist/raw/secret/models/SecretOauthCallback503Response.d.ts +66 -0
  120. package/dist/raw/secret/models/SecretOauthCallback503Response.js +76 -0
  121. package/dist/raw/secret/models/SecretOauthCallback504Response.d.ts +63 -0
  122. package/dist/raw/secret/models/SecretOauthCallback504Response.js +75 -0
  123. package/dist/raw/secret/models/index.d.ts +19 -0
  124. package/dist/raw/secret/models/index.js +19 -0
  125. package/dist/raw/skill/models/SkillInsightSchemas401Response.d.ts +1 -0
  126. package/dist/raw/skill/models/SkillInsightSchemas401Response.js +1 -0
  127. package/dist/resource-types.d.ts +670 -0
  128. package/dist/resource-types.js +2 -0
  129. package/dist/resources.d.ts +10 -0
  130. package/dist/resources.js +54 -4
  131. package/dist/resources.json +86 -0
  132. package/dist/tracing/client.d.ts +8 -1
  133. package/dist/tracing/client.js +43 -16
  134. package/dist/tracing/config.d.ts +3 -1
  135. package/dist/tracing/config.js +7 -2
  136. package/dist/tracing/exporter.d.ts +19 -1
  137. package/dist/tracing/exporter.js +56 -14
  138. package/dist/tracing/propagation.d.ts +2 -0
  139. package/dist/tracing/propagation.js +16 -0
  140. package/dist/tracing/semconv.d.ts +4 -0
  141. package/dist/tracing/semconv.js +14 -2
  142. package/dist/tracing/spans.d.ts +2 -0
  143. package/dist/tracing/spans.js +12 -1
  144. package/dist/tracing/version.d.ts +1 -1
  145. package/dist/tracing/version.js +1 -1
  146. package/package.json +1 -1
  147. package/dist/raw/agent/models/Box.d.ts +0 -342
  148. package/dist/raw/agent/models/Box.js +0 -167
@@ -3,8 +3,8 @@
3
3
  // Regenerate (from the atlanai-sdk-python repo):
4
4
  // python scripts/gen_semconv.py --lang ts --out <path-to>/src/semconv.ts
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SERVICE_NAME = exports.ORG_NAME = exports.GEN_AI_USAGE_TOTAL_TOKENS = exports.GEN_AI_USAGE_OUTPUT_TOKENS = exports.GEN_AI_USAGE_OUTPUT_COST = exports.GEN_AI_USAGE_INPUT_TOKENS = exports.GEN_AI_USAGE_INPUT_COST = exports.GEN_AI_USAGE_COST = exports.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = exports.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = exports.GEN_AI_TOOL_TYPE = exports.GEN_AI_TOOL_NAME = exports.GEN_AI_TOOL_CALL_RESULT = exports.GEN_AI_TOOL_CALL_ID = exports.GEN_AI_TOOL_CALL_ARGUMENTS = exports.GEN_AI_SYSTEM_INSTRUCTIONS = exports.GEN_AI_RESPONSE_MODEL = exports.GEN_AI_RESPONSE_ID = exports.GEN_AI_REQUEST_MODEL = exports.GEN_AI_PROVIDER_NAME = exports.GEN_AI_OUTPUT_MESSAGES = exports.GEN_AI_INPUT_MESSAGES = exports.ATLAN_VISITOR_ID = exports.ATLAN_TRACE_NAME = exports.ATLAN_TAGS = exports.ATLAN_SPAN_TYPE = exports.ATLAN_SDK_VERSION = exports.ATLAN_SDK_SCHEMA_VERSION = exports.ATLAN_SDK_LANGUAGE = exports.ATLAN_SCORE_VALUE = exports.ATLAN_SCORE_STRING_VALUE = exports.ATLAN_SCORE_SCORER_VERSION = exports.ATLAN_SCORE_SCORER_ID = exports.ATLAN_SCORE_NAME = exports.ATLAN_SCORE_DATA_TYPE = exports.ATLAN_SCORE_COMMENT = exports.ATLAN_OUTPUT = exports.ATLAN_OBSERVATION_STATUS_MESSAGE = exports.ATLAN_OBSERVATION_LEVEL = exports.ATLAN_INTERNAL_AS_ROOT = exports.ATLAN_INPUT = exports.ATLAN_EVAL_EXPERIMENT_ID = exports.ATLAN_ENVIRONMENT = exports.ATLAN_CONSENT_STORE_CONTENT = exports.ATLAN_COMPLETION_START_TIME = exports.SCORE_DATA_TYPES = exports.OBSERVATION_LEVELS = exports.SPAN_TYPE_ALIASES = exports.SPAN_TYPES = exports.SCHEMA_VERSION = void 0;
7
- exports.GATEWAY_OWNED_RESOURCE_ATTRIBUTES = exports.EVENT_ATTRIBUTE_TYPES = exports.ATLAN_METADATA_PREFIX = exports.PREFIX_ATTRIBUTE_TYPES = exports.CONTENT_ATTRIBUTES = exports.SPAN_ATTRIBUTE_OWNERS = exports.SPAN_ATTRIBUTE_TYPES = exports.RESOURCE_ATTRIBUTE_OWNERS = exports.RESOURCE_ATTRIBUTE_TYPES = exports.USER_ID = exports.USER_EMAIL = exports.SESSION_ID = void 0;
6
+ exports.GEN_AI_USAGE_OUTPUT_COST = exports.GEN_AI_USAGE_INPUT_TOKENS = exports.GEN_AI_USAGE_INPUT_COST = exports.GEN_AI_USAGE_COST = exports.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = exports.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = exports.GEN_AI_TOOL_TYPE = exports.GEN_AI_TOOL_NAME = exports.GEN_AI_TOOL_CALL_RESULT = exports.GEN_AI_TOOL_CALL_ID = exports.GEN_AI_TOOL_CALL_ARGUMENTS = exports.GEN_AI_SYSTEM_INSTRUCTIONS = exports.GEN_AI_RESPONSE_MODEL = exports.GEN_AI_RESPONSE_ID = exports.GEN_AI_REQUEST_MODEL = exports.GEN_AI_PROVIDER_NAME = exports.GEN_AI_OUTPUT_MESSAGES = exports.GEN_AI_INPUT_MESSAGES = exports.ATLAN_VISITOR_ID = exports.ATLAN_TRACE_NAME = exports.ATLAN_TAGS = exports.ATLAN_SPAN_TYPE = exports.ATLAN_SDK_VERSION = exports.ATLAN_SDK_SCHEMA_VERSION = exports.ATLAN_SDK_LANGUAGE = exports.ATLAN_SCORE_VALUE = exports.ATLAN_SCORE_STRING_VALUE = exports.ATLAN_SCORE_SCORER_VERSION = exports.ATLAN_SCORE_SCORER_ID = exports.ATLAN_SCORE_NAME = exports.ATLAN_SCORE_DATA_TYPE = exports.ATLAN_SCORE_COMMENT = exports.ATLAN_OUTPUT = exports.ATLAN_OBSERVATION_STATUS_MESSAGE = exports.ATLAN_OBSERVATION_LEVEL = exports.ATLAN_INTERNAL_AS_ROOT = exports.ATLAN_INPUT = exports.ATLAN_EVAL_EXPERIMENT_ID = exports.ATLAN_EVAL_EVIDENCE_TRUNCATED = exports.ATLAN_EVAL_EVIDENCE_COMPLETE = exports.ATLAN_EVAL_DATASET_RECORD_ID = exports.ATLAN_EVAL_CASE_ID = exports.ATLAN_ENVIRONMENT = exports.ATLAN_CONSENT_STORE_CONTENT = exports.ATLAN_COMPLETION_START_TIME = exports.SCORE_DATA_TYPES = exports.OBSERVATION_LEVELS = exports.SPAN_TYPE_ALIASES = exports.SPAN_TYPES = exports.SCHEMA_VERSION = void 0;
7
+ exports.GATEWAY_OWNED_RESOURCE_ATTRIBUTES = exports.EVENT_ATTRIBUTE_TYPES = exports.ATLAN_METADATA_PREFIX = exports.PREFIX_ATTRIBUTE_TYPES = exports.CONTENT_ATTRIBUTES = exports.SPAN_ATTRIBUTE_OWNERS = exports.SPAN_ATTRIBUTE_TYPES = exports.RESOURCE_ATTRIBUTE_OWNERS = exports.RESOURCE_ATTRIBUTE_TYPES = exports.USER_ID = exports.USER_EMAIL = exports.SESSION_ID = exports.SERVICE_NAME = exports.ORG_NAME = exports.GEN_AI_USAGE_TOTAL_TOKENS = exports.GEN_AI_USAGE_OUTPUT_TOKENS = void 0;
8
8
  exports.SCHEMA_VERSION = "agent-sdk.v1";
9
9
  exports.SPAN_TYPES = ["task", "llm", "tool", "function", "score", "session", "turn"];
10
10
  exports.SPAN_TYPE_ALIASES = {
@@ -17,6 +17,10 @@ exports.SCORE_DATA_TYPES = ["NUMERIC", "CATEGORICAL", "BOOLEAN"];
17
17
  exports.ATLAN_COMPLETION_START_TIME = "atlan.completion_start_time";
18
18
  exports.ATLAN_CONSENT_STORE_CONTENT = "atlan.consent.store_content";
19
19
  exports.ATLAN_ENVIRONMENT = "atlan.environment";
20
+ exports.ATLAN_EVAL_CASE_ID = "atlan.eval.case_id";
21
+ exports.ATLAN_EVAL_DATASET_RECORD_ID = "atlan.eval.dataset_record_id";
22
+ exports.ATLAN_EVAL_EVIDENCE_COMPLETE = "atlan.eval.evidence_complete";
23
+ exports.ATLAN_EVAL_EVIDENCE_TRUNCATED = "atlan.eval.evidence_truncated";
20
24
  exports.ATLAN_EVAL_EXPERIMENT_ID = "atlan.eval.experiment_id";
21
25
  exports.ATLAN_INPUT = "atlan.input";
22
26
  exports.ATLAN_INTERNAL_AS_ROOT = "atlan.internal.as_root";
@@ -95,6 +99,10 @@ exports.SPAN_ATTRIBUTE_TYPES = {
95
99
  "user.id": "string",
96
100
  "atlan.visitor.id": "string",
97
101
  "atlan.eval.experiment_id": "string",
102
+ "atlan.eval.case_id": "string",
103
+ "atlan.eval.dataset_record_id": "string",
104
+ "atlan.eval.evidence_complete": "bool",
105
+ "atlan.eval.evidence_truncated": "bool",
98
106
  "atlan.score.name": "string",
99
107
  "atlan.score.value": "double",
100
108
  "atlan.score.data_type": "string",
@@ -137,6 +145,10 @@ exports.SPAN_ATTRIBUTE_OWNERS = {
137
145
  "user.id": "app",
138
146
  "atlan.visitor.id": "app",
139
147
  "atlan.eval.experiment_id": "app",
148
+ "atlan.eval.case_id": "app",
149
+ "atlan.eval.dataset_record_id": "app",
150
+ "atlan.eval.evidence_complete": "sdk",
151
+ "atlan.eval.evidence_truncated": "sdk",
140
152
  "atlan.score.name": "app",
141
153
  "atlan.score.value": "app",
142
154
  "atlan.score.data_type": "app",
@@ -54,6 +54,8 @@ export declare class AtlanSpan {
54
54
  /** @internal */
55
55
  _initialize(asType: string, asRoot: boolean): void;
56
56
  private serialize;
57
+ /** Mark a case root after all task and scorer work has ended. */
58
+ markEvidenceComplete(): this;
57
59
  update(fields: UpdateFields): this;
58
60
  /** Braintrust-compatible spelling for incrementally adding span fields. */
59
61
  log(fields: UpdateFields): this;
@@ -117,7 +117,18 @@ class AtlanSpan {
117
117
  this.otel.setAttribute(sc.ATLAN_INTERNAL_AS_ROOT, true);
118
118
  }
119
119
  serialize(value) {
120
- return (0, serialize_js_1.serializePayload)(value, this.config.maxPayloadBytes);
120
+ const encoded = (0, serialize_js_1.serializePayload)(value, this.config.maxPayloadBytes);
121
+ if (encoded.endsWith(serialize_js_1.TRUNCATION_SUFFIX) && this.otel.isRecording()) {
122
+ this.otel.setAttribute(sc.ATLAN_EVAL_EVIDENCE_TRUNCATED, true);
123
+ }
124
+ return encoded;
125
+ }
126
+ /** Mark a case root after all task and scorer work has ended. */
127
+ markEvidenceComplete() {
128
+ if (this.otel.isRecording()) {
129
+ this.otel.setAttribute(sc.ATLAN_EVAL_EVIDENCE_COMPLETE, true);
130
+ }
131
+ return this;
121
132
  }
122
133
  update(fields) {
123
134
  const span = this.otel;
@@ -1,4 +1,4 @@
1
1
  /** SDK identity (SPEC §2.2, §5.1). Kept in sync with package.json — the
2
2
  * version test fails the build on drift. */
3
3
  export declare const SDK_LANGUAGE = "typescript";
4
- export declare const SDK_VERSION = "0.2.2";
4
+ export declare const SDK_VERSION = "0.2.4";
@@ -4,4 +4,4 @@ exports.SDK_VERSION = exports.SDK_LANGUAGE = void 0;
4
4
  /** SDK identity (SPEC §2.2, §5.1). Kept in sync with package.json — the
5
5
  * version test fails the build on drift. */
6
6
  exports.SDK_LANGUAGE = "typescript";
7
- exports.SDK_VERSION = "0.2.2";
7
+ exports.SDK_VERSION = "0.2.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlanai/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Atlan Agent Gateway management SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
@@ -1,342 +0,0 @@
1
- /**
2
- * Harness and agent catalog
3
- * A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
4
- *
5
- * The version of the OpenAPI document: 0.1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { GatewayArtifactIdentityRevealView } from './GatewayArtifactIdentityRevealView';
13
- import type { AgentSessionToolCall } from './AgentSessionToolCall';
14
- import type { AgentMessageRole } from './AgentMessageRole';
15
- import type { AgentSessionUsage } from './AgentSessionUsage';
16
- import type { RegistryRelationshipsView } from './RegistryRelationshipsView';
17
- /**
18
- * Published representation of Box.
19
- * @export
20
- * @interface Box
21
- */
22
- export interface Box {
23
- /**
24
- * Value of the `app` field.
25
- * @type {string}
26
- * @memberof Box
27
- */
28
- app?: string;
29
- /**
30
- * Value of the `artifact_status` field.
31
- * @type {string}
32
- * @memberof Box
33
- */
34
- artifactStatus: string;
35
- /**
36
- * RFC 3339 commit timestamp (the cross-table monotonic cursor).
37
- * @type {string}
38
- * @memberof Box
39
- */
40
- commitTs: string;
41
- /**
42
- * Value of the `content_hash_hex` field.
43
- * @type {string}
44
- * @memberof Box
45
- */
46
- contentHashHex?: string;
47
- /**
48
- * Value of the `created_at` field.
49
- * @type {string}
50
- * @memberof Box
51
- */
52
- createdAt: string;
53
- /**
54
- * Value of the `created_by` field.
55
- * @type {string}
56
- * @memberof Box
57
- */
58
- createdBy: string;
59
- /**
60
- * Human-readable description.
61
- * @type {string}
62
- * @memberof Box
63
- */
64
- description?: string;
65
- /**
66
- * Human-readable name.
67
- * @type {string}
68
- * @memberof Box
69
- */
70
- displayName?: string;
71
- /**
72
- * Kind-prefixed Crockford-base32 handle (`<kind>_<base32>`).
73
- * @type {string}
74
- * @memberof Box
75
- */
76
- id: string;
77
- /**
78
- * Value of the `identity` field.
79
- * @type {GatewayArtifactIdentityRevealView}
80
- * @memberof Box
81
- */
82
- identity?: GatewayArtifactIdentityRevealView;
83
- /**
84
- * Whether this is the head (latest) version of its line.
85
- * @type {boolean}
86
- * @memberof Box
87
- */
88
- isLatest: boolean;
89
- /**
90
- * Domain discriminator for this resource.
91
- * @type {string}
92
- * @memberof Box
93
- */
94
- kind: string;
95
- /**
96
- * Stable machine handle ([AIP-122](https://google.aip.dev/122)): a short,
97
- * identifier-shaped label (kebab-case by convention) meant for references,
98
- * paths and code. **Not unique**, and not the artifact's identity — `id` is
99
- * the only stable handle. Not format-validated today, so existing rows may
100
- * hold prose.
101
- * @type {string}
102
- * @memberof Box
103
- */
104
- name: string;
105
- /**
106
- * The Control-Plane OIDC client id this artifact authenticates as
107
- * (`x-gateway-identity` kinds); absent for every other kind.
108
- *
109
- * **Derived, not stored, and present on the create response only.** The
110
- * registry would resolve it from the artifact's `service_principals` row
111
- * rather than keep a second copy on the artifact — but only the create path
112
- * does that lookup, because it has just provisioned the identity. Every read
113
- * shape (single read, list, search, `PATCH`) is built by one constructor that
114
- * sets this `None`, so it is absent from all four.
115
- *
116
- * This block used to name the single-artifact read as a second populated path.
117
- * It was never one. Adding it means deciding whether list and search pay a
118
- * per-row identity read too; the lookup a future implementation would call is
119
- * `registry_server::identity::artifact_principal`. It is the public half of the
120
- * credential pair and is not secret.
121
- * @type {string}
122
- * @memberof Box
123
- */
124
- oidcClientId?: string;
125
- /**
126
- * Canonical owner: the `users.user_id` this artifact belongs to, FK-backed.
127
- *
128
- * Defaulted to the creating principal, so this is normally set. Absent for a row created
129
- * before that default landed, for a system-plane write, and for a principal with no directory
130
- * row — a service account or a seed has nothing to own anything with.
131
- * @type {string}
132
- * @memberof Box
133
- */
134
- ownerId?: string;
135
- /**
136
- * `project_`-prefixed handle of the project grouping this artifact, when it has
137
- * one. Absent for an artifact that lives directly in its workspace — which also
138
- * means it is not packaged into any Claude Code plugin, since packaging is
139
- * per-project (project-2026-07-30-first-class-project-table).
140
- * @type {string}
141
- * @memberof Box
142
- */
143
- projectId?: string;
144
- /**
145
- * The source repository this artifact came from, as a `repo_`-prefixed
146
- * handle. Absent when the artifact has no repo.
147
- * @type {string}
148
- * @memberof Box
149
- */
150
- repoId?: string;
151
- /**
152
- * Advisory origin timestamp for imported artifacts (RFC 3339); absent for
153
- * natively-created artifacts. Distinct from `created_at` (the commit time).
154
- * @type {string}
155
- * @memberof Box
156
- */
157
- sourceCreatedAt?: string;
158
- /**
159
- * Advisory upstream author (git `Name <email>`) of the first version
160
- * upstream; absent when unset.
161
- * @type {string}
162
- * @memberof Box
163
- */
164
- sourceCreatedBy?: string;
165
- /**
166
- * sha256 of the materialized content; absent when unset.
167
- * @type {string}
168
- * @memberof Box
169
- */
170
- sourceDigest?: string;
171
- /**
172
- * The artifact's identifier in the system it came from — what the upstream
173
- * calls it, as opposed to `source_uri`'s where-it-lives. Filterable and
174
- * sortable, so a re-sync reconciles on this rather than on `name`; absent
175
- * when unset.
176
- * @type {string}
177
- * @memberof Box
178
- */
179
- sourceId?: string;
180
- /**
181
- * Advisory upstream last-modified timestamp (RFC 3339); absent when unset.
182
- * @type {string}
183
- * @memberof Box
184
- */
185
- sourceLastModifiedAt?: string;
186
- /**
187
- * Advisory upstream author (git `Name <email>`) of the last change; absent
188
- * when unset.
189
- * @type {string}
190
- * @memberof Box
191
- */
192
- sourceLastModifiedBy?: string;
193
- /**
194
- *
195
- * @type {any}
196
- * @memberof Box
197
- */
198
- sourceMetadata?: any | null;
199
- /**
200
- * Advisory timestamp (RFC 3339) of the last sync that produced a version.
201
- * @type {string}
202
- * @memberof Box
203
- */
204
- sourceSyncedAt?: string;
205
- /**
206
- * Content authority for the line: `git`, `atlan`, `local`, or `external`
207
- * for a system the gateway does not know (a customer's own runner or catalog).
208
- * @type {string}
209
- * @memberof Box
210
- */
211
- sourceType: string;
212
- /**
213
- * Scheme-tagged origin; absent for a service-managed (`atlan`) line.
214
- * @type {string}
215
- * @memberof Box
216
- */
217
- sourceUri?: string;
218
- /**
219
- * Advisory upstream version id (git commit hash / tag); distinct from
220
- * `version_label`. Absent when unset.
221
- * @type {string}
222
- * @memberof Box
223
- */
224
- sourceVersion?: string;
225
- /**
226
- * Value of the `updated_at` field.
227
- * @type {string}
228
- * @memberof Box
229
- */
230
- updatedAt: string;
231
- /**
232
- * Value of the `updated_by` field.
233
- * @type {string}
234
- * @memberof Box
235
- */
236
- updatedBy: string;
237
- /**
238
- * The free-form label the write set, verbatim. Absent when none was sent, and *not* the name
239
- * the version shipped under — that is the release's own `version_label`.
240
- * @type {string}
241
- * @memberof Box
242
- */
243
- versionLabel?: string;
244
- /**
245
- * This version's position in its line — the write index, 1-based and dense over versions
246
- * *written*. Distinct from a release's `version_ordinal`, which counts versions **shipped**;
247
- * the two agree under the default `auto` release policy and diverge under `manual`.
248
- * @type {number}
249
- * @memberof Box
250
- */
251
- versionOrdinal: number;
252
- /**
253
- * `workspace_`-prefixed handle.
254
- * @type {string}
255
- * @memberof Box
256
- */
257
- workspaceId: string;
258
- /**
259
- * Message text; absent for a tool-only assistant turn.
260
- * @type {string}
261
- * @memberof Box
262
- */
263
- content?: string | null;
264
- /**
265
- * Whether the owning session's subject is a gateway-owned system artifact,
266
- * denormalized for the history guard (no lookup). Server-owned: the
267
- * create/update services always set it from the parent session.
268
- * @type {boolean}
269
- * @memberof Box
270
- */
271
- isSubjectSystem?: boolean;
272
- /**
273
- *
274
- * @type {AgentMessageRole}
275
- * @memberof Box
276
- */
277
- messageRole?: AgentMessageRole;
278
- /**
279
- * The model that produced an assistant message.
280
- * @type {string}
281
- * @memberof Box
282
- */
283
- modelId?: string | null;
284
- /**
285
- * Order within the session (0-based); the stable sort key for playback.
286
- * @type {number}
287
- * @memberof Box
288
- */
289
- sequenceNumber?: number;
290
- /**
291
- * The owning `session` handle.
292
- * @type {string}
293
- * @memberof Box
294
- */
295
- sessionId?: string;
296
- /**
297
- * The tool call this message answers (message_role `tool`).
298
- * @type {string}
299
- * @memberof Box
300
- */
301
- toolCallId?: string | null;
302
- /**
303
- * Requested tool calls on an assistant turn (OpenAI shape). Empty otherwise.
304
- * @type {Array<AgentSessionToolCall>}
305
- * @memberof Box
306
- */
307
- toolCalls?: Array<AgentSessionToolCall>;
308
- /**
309
- * The tool's name (message_role `tool`).
310
- * @type {string}
311
- * @memberof Box
312
- */
313
- toolName?: string | null;
314
- /**
315
- *
316
- * @type {AgentSessionUsage}
317
- * @memberof Box
318
- */
319
- usage?: AgentSessionUsage;
320
- /**
321
- * Value of the `permissions` field.
322
- * @type {{ [key: string]: boolean; }}
323
- * @memberof Box
324
- */
325
- permissions?: {
326
- [key: string]: boolean;
327
- } | null;
328
- /**
329
- * Value of the `relationships` field.
330
- * @type {RegistryRelationshipsView}
331
- * @memberof Box
332
- */
333
- relationships?: RegistryRelationshipsView | null;
334
- }
335
- /**
336
- * Check if a given object implements the Box interface.
337
- */
338
- export declare function instanceOfBox(value: object): value is Box;
339
- export declare function BoxFromJSON(json: any): Box;
340
- export declare function BoxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Box;
341
- export declare function BoxToJSON(json: any): Box;
342
- export declare function BoxToJSONTyped(value?: Box | null, ignoreDiscriminator?: boolean): any;
@@ -1,167 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Harness and agent catalog
6
- * A `harness` is a tool a human drives; an `agent` is built with an `agent_framework` and run on an `agent_provider`. The gateway executes neither. This surface is the typed catalog for both — plus the `agent_framework` and `harness_vendor` catalogs, the `agent_provider` substrate, the `agent_environment` sandbox, and the `session`/`session_message` run history — the one agent run-trigger, live session reads (poll + SSE), and the access-controlled trace facade.
7
- *
8
- * The version of the OpenAPI document: 0.1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfBox = instanceOfBox;
17
- exports.BoxFromJSON = BoxFromJSON;
18
- exports.BoxFromJSONTyped = BoxFromJSONTyped;
19
- exports.BoxToJSON = BoxToJSON;
20
- exports.BoxToJSONTyped = BoxToJSONTyped;
21
- const GatewayArtifactIdentityRevealView_1 = require("./GatewayArtifactIdentityRevealView");
22
- const AgentSessionToolCall_1 = require("./AgentSessionToolCall");
23
- const AgentMessageRole_1 = require("./AgentMessageRole");
24
- const AgentSessionUsage_1 = require("./AgentSessionUsage");
25
- const RegistryRelationshipsView_1 = require("./RegistryRelationshipsView");
26
- /**
27
- * Check if a given object implements the Box interface.
28
- */
29
- function instanceOfBox(value) {
30
- if ((!('artifactStatus' in value) && !('artifact_status' in value)) || (value['artifactStatus'] === undefined && value['artifact_status'] === undefined))
31
- return false;
32
- if ((!('commitTs' in value) && !('commit_ts' in value)) || (value['commitTs'] === undefined && value['commit_ts'] === undefined))
33
- return false;
34
- if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
35
- return false;
36
- if ((!('createdBy' in value) && !('created_by' in value)) || (value['createdBy'] === undefined && value['created_by'] === undefined))
37
- return false;
38
- if (!('id' in value) || value['id'] === undefined)
39
- return false;
40
- if ((!('isLatest' in value) && !('is_latest' in value)) || (value['isLatest'] === undefined && value['is_latest'] === undefined))
41
- return false;
42
- if (!('kind' in value) || value['kind'] === undefined)
43
- return false;
44
- if (!('name' in value) || value['name'] === undefined)
45
- return false;
46
- if ((!('sourceType' in value) && !('source_type' in value)) || (value['sourceType'] === undefined && value['source_type'] === undefined))
47
- return false;
48
- if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
49
- return false;
50
- if ((!('updatedBy' in value) && !('updated_by' in value)) || (value['updatedBy'] === undefined && value['updated_by'] === undefined))
51
- return false;
52
- if ((!('versionOrdinal' in value) && !('version_ordinal' in value)) || (value['versionOrdinal'] === undefined && value['version_ordinal'] === undefined))
53
- return false;
54
- if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
55
- return false;
56
- return true;
57
- }
58
- function BoxFromJSON(json) {
59
- return BoxFromJSONTyped(json, false);
60
- }
61
- function BoxFromJSONTyped(json, ignoreDiscriminator) {
62
- if (json == null) {
63
- return json;
64
- }
65
- return {
66
- 'app': json['app'] == null ? undefined : json['app'],
67
- 'artifactStatus': json['artifact_status'],
68
- 'commitTs': json['commit_ts'],
69
- 'contentHashHex': json['content_hash_hex'] == null ? undefined : json['content_hash_hex'],
70
- 'createdAt': json['created_at'],
71
- 'createdBy': json['created_by'],
72
- 'description': json['description'] == null ? undefined : json['description'],
73
- 'displayName': json['display_name'] == null ? undefined : json['display_name'],
74
- 'id': json['id'],
75
- 'identity': json['identity'] == null ? undefined : (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewFromJSON)(json['identity']),
76
- 'isLatest': json['is_latest'],
77
- 'kind': json['kind'],
78
- 'name': json['name'],
79
- 'oidcClientId': json['oidc_client_id'] == null ? undefined : json['oidc_client_id'],
80
- 'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
81
- 'projectId': json['project_id'] == null ? undefined : json['project_id'],
82
- 'repoId': json['repo_id'] == null ? undefined : json['repo_id'],
83
- 'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
84
- 'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
85
- 'sourceDigest': json['source_digest'] == null ? undefined : json['source_digest'],
86
- 'sourceId': json['source_id'] == null ? undefined : json['source_id'],
87
- 'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
88
- 'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
89
- 'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
90
- 'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
91
- 'sourceType': json['source_type'],
92
- 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
93
- 'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
94
- 'updatedAt': json['updated_at'],
95
- 'updatedBy': json['updated_by'],
96
- 'versionLabel': json['version_label'] == null ? undefined : json['version_label'],
97
- 'versionOrdinal': json['version_ordinal'],
98
- 'workspaceId': json['workspace_id'],
99
- 'content': json['content'] === undefined ? undefined : json['content'] === null ? null : json['content'],
100
- 'isSubjectSystem': json['is_subject_system'] == null ? undefined : json['is_subject_system'],
101
- 'messageRole': json['message_role'] == null ? undefined : (0, AgentMessageRole_1.AgentMessageRoleFromJSON)(json['message_role']),
102
- 'modelId': json['model_id'] === undefined ? undefined : json['model_id'] === null ? null : json['model_id'],
103
- 'sequenceNumber': json['sequence_number'] == null ? undefined : json['sequence_number'],
104
- 'sessionId': json['session_id'] == null ? undefined : json['session_id'],
105
- 'toolCallId': json['tool_call_id'] === undefined ? undefined : json['tool_call_id'] === null ? null : json['tool_call_id'],
106
- 'toolCalls': json['tool_calls'] == null ? undefined : (json['tool_calls'].map(AgentSessionToolCall_1.AgentSessionToolCallFromJSON)),
107
- 'toolName': json['tool_name'] === undefined ? undefined : json['tool_name'] === null ? null : json['tool_name'],
108
- 'usage': json['usage'] == null ? undefined : (0, AgentSessionUsage_1.AgentSessionUsageFromJSON)(json['usage']),
109
- 'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
110
- 'relationships': json['relationships'] === undefined ? undefined : json['relationships'] === null ? null : (0, RegistryRelationshipsView_1.RegistryRelationshipsViewFromJSON)(json['relationships']),
111
- };
112
- }
113
- function BoxToJSON(json) {
114
- return BoxToJSONTyped(json, false);
115
- }
116
- function BoxToJSONTyped(value, ignoreDiscriminator = false) {
117
- if (value == null) {
118
- return value;
119
- }
120
- return {
121
- 'app': value['app'],
122
- 'artifact_status': value['artifactStatus'],
123
- 'commit_ts': value['commitTs'],
124
- 'content_hash_hex': value['contentHashHex'],
125
- 'created_at': value['createdAt'],
126
- 'created_by': value['createdBy'],
127
- 'description': value['description'],
128
- 'display_name': value['displayName'],
129
- 'id': value['id'],
130
- 'identity': (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewToJSON)(value['identity']),
131
- 'is_latest': value['isLatest'],
132
- 'kind': value['kind'],
133
- 'name': value['name'],
134
- 'oidc_client_id': value['oidcClientId'],
135
- 'owner_id': value['ownerId'],
136
- 'project_id': value['projectId'],
137
- 'repo_id': value['repoId'],
138
- 'source_created_at': value['sourceCreatedAt'],
139
- 'source_created_by': value['sourceCreatedBy'],
140
- 'source_digest': value['sourceDigest'],
141
- 'source_id': value['sourceId'],
142
- 'source_last_modified_at': value['sourceLastModifiedAt'],
143
- 'source_last_modified_by': value['sourceLastModifiedBy'],
144
- 'source_metadata': value['sourceMetadata'],
145
- 'source_synced_at': value['sourceSyncedAt'],
146
- 'source_type': value['sourceType'],
147
- 'source_uri': value['sourceUri'],
148
- 'source_version': value['sourceVersion'],
149
- 'updated_at': value['updatedAt'],
150
- 'updated_by': value['updatedBy'],
151
- 'version_label': value['versionLabel'],
152
- 'version_ordinal': value['versionOrdinal'],
153
- 'workspace_id': value['workspaceId'],
154
- 'content': value['content'],
155
- 'is_subject_system': value['isSubjectSystem'],
156
- 'message_role': (0, AgentMessageRole_1.AgentMessageRoleToJSON)(value['messageRole']),
157
- 'model_id': value['modelId'],
158
- 'sequence_number': value['sequenceNumber'],
159
- 'session_id': value['sessionId'],
160
- 'tool_call_id': value['toolCallId'],
161
- 'tool_calls': value['toolCalls'] == null ? undefined : (value['toolCalls'].map(AgentSessionToolCall_1.AgentSessionToolCallToJSON)),
162
- 'tool_name': value['toolName'],
163
- 'usage': (0, AgentSessionUsage_1.AgentSessionUsageToJSON)(value['usage']),
164
- 'permissions': value['permissions'],
165
- 'relationships': (0, RegistryRelationshipsView_1.RegistryRelationshipsViewToJSON)(value['relationships']),
166
- };
167
- }