asteroid-odyssey 1.7.228 → 1.7.238

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/index.d.mts CHANGED
@@ -4964,11 +4964,11 @@ type EnvironmentLiveEnvironmentData = {
4964
4964
  */
4965
4965
  environmentId: CommonUuid;
4966
4966
  };
4967
- query: {
4967
+ query?: {
4968
4968
  /**
4969
- * The agent the env is expected to belong to. Resolution fails (404) if it belongs to a different agent.
4969
+ * Optional assertion that the env belongs to this agent; resolution fails (404) on mismatch. Omit it access is already gated on the env's own agent and organisation.
4970
4970
  */
4971
- expectedAgentId: CommonUuid;
4971
+ expectedAgentId?: CommonUuid;
4972
4972
  };
4973
4973
  url: '/environments/{environmentId}/live-environment';
4974
4974
  };
@@ -5010,11 +5010,11 @@ type EnvironmentStopData = {
5010
5010
  */
5011
5011
  environmentId: CommonUuid;
5012
5012
  };
5013
- query: {
5013
+ query?: {
5014
5014
  /**
5015
- * The agent the env is expected to belong to. Stop fails (404) if it belongs to a different agent.
5015
+ * Optional assertion that the env belongs to this agent; the stop fails (404) on mismatch. Omit it access is already gated on the env's own agent and organisation.
5016
5016
  */
5017
- expectedAgentId: CommonUuid;
5017
+ expectedAgentId?: CommonUuid;
5018
5018
  };
5019
5019
  url: '/environments/{environmentId}/stop';
5020
5020
  };
@@ -5867,7 +5867,7 @@ declare const docsSearchSearch: <ThrowOnError extends boolean = false>(options:
5867
5867
  /**
5868
5868
  * Resolve live environment by id (external)
5869
5869
  *
5870
- * Resolve live-environment connection details (proxied CDP URL / CUA) by env id. Verifies the env belongs to expectedAgentId AND is external-owned; returns 404 if either gate fails.
5870
+ * Resolve live-environment connection details (proxied CDP URL / CUA) by env id. External-owned envs only; access is gated on the env's agent belonging to the caller's organisation. Returns 404 if either gate fails.
5871
5871
  */
5872
5872
  declare const environmentLiveEnvironment: <ThrowOnError extends boolean = false>(options: Options<EnvironmentLiveEnvironmentData, ThrowOnError>) => RequestResult<EnvironmentLiveEnvironmentResponses, EnvironmentLiveEnvironmentErrors, ThrowOnError, "fields">;
5873
5873
  /**
package/dist/index.d.ts CHANGED
@@ -4964,11 +4964,11 @@ type EnvironmentLiveEnvironmentData = {
4964
4964
  */
4965
4965
  environmentId: CommonUuid;
4966
4966
  };
4967
- query: {
4967
+ query?: {
4968
4968
  /**
4969
- * The agent the env is expected to belong to. Resolution fails (404) if it belongs to a different agent.
4969
+ * Optional assertion that the env belongs to this agent; resolution fails (404) on mismatch. Omit it access is already gated on the env's own agent and organisation.
4970
4970
  */
4971
- expectedAgentId: CommonUuid;
4971
+ expectedAgentId?: CommonUuid;
4972
4972
  };
4973
4973
  url: '/environments/{environmentId}/live-environment';
4974
4974
  };
@@ -5010,11 +5010,11 @@ type EnvironmentStopData = {
5010
5010
  */
5011
5011
  environmentId: CommonUuid;
5012
5012
  };
5013
- query: {
5013
+ query?: {
5014
5014
  /**
5015
- * The agent the env is expected to belong to. Stop fails (404) if it belongs to a different agent.
5015
+ * Optional assertion that the env belongs to this agent; the stop fails (404) on mismatch. Omit it access is already gated on the env's own agent and organisation.
5016
5016
  */
5017
- expectedAgentId: CommonUuid;
5017
+ expectedAgentId?: CommonUuid;
5018
5018
  };
5019
5019
  url: '/environments/{environmentId}/stop';
5020
5020
  };
@@ -5867,7 +5867,7 @@ declare const docsSearchSearch: <ThrowOnError extends boolean = false>(options:
5867
5867
  /**
5868
5868
  * Resolve live environment by id (external)
5869
5869
  *
5870
- * Resolve live-environment connection details (proxied CDP URL / CUA) by env id. Verifies the env belongs to expectedAgentId AND is external-owned; returns 404 if either gate fails.
5870
+ * Resolve live-environment connection details (proxied CDP URL / CUA) by env id. External-owned envs only; access is gated on the env's agent belonging to the caller's organisation. Returns 404 if either gate fails.
5871
5871
  */
5872
5872
  declare const environmentLiveEnvironment: <ThrowOnError extends boolean = false>(options: Options<EnvironmentLiveEnvironmentData, ThrowOnError>) => RequestResult<EnvironmentLiveEnvironmentResponses, EnvironmentLiveEnvironmentErrors, ThrowOnError, "fields">;
5873
5873
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asteroid-odyssey",
3
- "version": "1.7.228",
3
+ "version": "1.7.238",
4
4
  "description": "SDK for interacting with Asteroid Agents API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",